More work on the recorder.

This commit is contained in:
Tadas Baltrusaitis
2017-11-02 20:11:58 +00:00
parent be5a4cd41d
commit 4f4bf263d6
5 changed files with 173 additions and 11 deletions

View File

@@ -99,8 +99,21 @@ RecorderOpenFace::RecorderOpenFace(const std::string out_directory, const std::s
// Prepare image recording
observation_count = 0;
}
void RecorderOpenFace::WriteObservation()
{
observation_count++;
// Write out the CSV file (it will always be there, even if not outputting anything more but frame/face numbers)
this->csv_recorder.WriteLine(observation_count, timestamp, landmark_detection_success;
// TODO HOG
}
void RecorderOpenFace::SetObservationHOG(bool good_frame, const cv::Mat_<double>& hog_descriptor, int num_cols, int num_rows, int num_channels)
{
this->hog_recorder.SetObservationHOG(good_frame, hog_descriptor, num_cols, num_rows, num_channels);