Recording CSV data in images.

This commit is contained in:
Tadas Baltrusaitis 2018-01-18 17:19:44 +00:00
parent 98e45c5cd0
commit df23dc2eb5
2 changed files with 6 additions and 0 deletions

View file

@ -318,6 +318,7 @@ namespace OpenFaceOffline
// Do not cary state accross images // Do not cary state accross images
clnf_model.Reset(); clnf_model.Reset();
face_analyser.Reset(); face_analyser.Reset();
recorder.Close();
// TODO how to report errors from the reader here? exceptions? logging? Problem for future versions? // TODO how to report errors from the reader here? exceptions? logging? Problem for future versions?
} }

View file

@ -108,6 +108,11 @@ namespace UtilitiesOF {
m_recorder = new Utilities::RecorderOpenFace(in_filename_std, *parameters->GetParams(), output_directory_std); m_recorder = new Utilities::RecorderOpenFace(in_filename_std, *parameters->GetParams(), output_directory_std);
} }
void Close()
{
m_recorder->Close();
}
void WriteObservation() void WriteObservation()
{ {
m_recorder->WriteObservation(); m_recorder->WriteObservation();