diff --git a/lib/local/Recorder/src/RecorderCSV.cpp b/lib/local/Recorder/src/RecorderCSV.cpp index 06eb6da0..f37e3a55 100644 --- a/lib/local/Recorder/src/RecorderCSV.cpp +++ b/lib/local/Recorder/src/RecorderCSV.cpp @@ -187,7 +187,12 @@ void RecorderCSV::WriteLine(int observation_count, double time_stamp, bool landm // Output the 2D eye landmarks for (auto eye_lmk : eye_landmarks) { - output_file << ", " << eye_lmk; + output_file << ", " << eye_lmk.x; + } + + for (auto eye_lmk : eye_landmarks) + { + output_file << ", " << eye_lmk.y; } } diff --git a/lib/local/Recorder/src/RecorderOpenFace.cpp b/lib/local/Recorder/src/RecorderOpenFace.cpp index 1b67de94..2db847d8 100644 --- a/lib/local/Recorder/src/RecorderOpenFace.cpp +++ b/lib/local/Recorder/src/RecorderOpenFace.cpp @@ -154,7 +154,7 @@ void RecorderOpenFace::WriteObservation() // As we are writing out the header, work out some things like number of landmarks, names of AUs etc. int num_face_landmarks = landmarks_2D.rows / 2; int num_eye_landmarks = eye_landmarks.size(); - int num_model_modes = pdm_params_local.rows / 2; + int num_model_modes = pdm_params_local.rows; std::vector au_names_class; for (auto au : au_occurences)