Some recording fixes and cleanup

This commit is contained in:
Tadas Baltrusaitis
2017-11-05 08:14:01 +00:00
parent ca3b252d19
commit c80016fc0c
3 changed files with 44 additions and 135 deletions

View File

@@ -96,8 +96,13 @@ namespace Recorder
void WriteObservation();
std::string GetCSVFile() { return csv_filename; }
private:
// Keeping track of what to output and how to output it
const RecorderOpenFaceParameters params;
// Keep track of the file and output root location
std::string record_root;
std::string filename;
@@ -107,8 +112,6 @@ namespace Recorder
RecorderCSV csv_recorder;
RecorderHOG hog_recorder;
const RecorderOpenFaceParameters params;
// The actual temporary storage for the observations
double timestamp;

View File

@@ -51,8 +51,8 @@ namespace Recorder
{
public:
// Constructors
RecorderOpenFaceParameters();
RecorderOpenFaceParameters(std::vector<std::string> &arguments, double fps_vid_out = 30, std::string output_codec = "DIVX");
bool isSequence() const { return is_sequence; }
@@ -69,10 +69,7 @@ namespace Recorder
double outputFps() const { return fps_vid_out; }
private:
// The default values initializer
void init();
// If we are recording results from a sequence each row refers to a frame, if we are recording an image each row is a face
bool is_sequence;