mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 13:02:30 +00:00
A number of fixes to the recorder:
- camera parameters in the meta file - fixing bug with video output - Relative and full path input in the meta file
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Utilities
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
RecorderOpenFaceParameters(std::vector<std::string> &arguments, bool sequence, double fps_vid_out = 30);
|
||||
RecorderOpenFaceParameters(std::vector<std::string> &arguments, bool sequence, float fx = -1, float fy = -1, float cx = -1, float cy = -1, double fps_vid_out = 30);
|
||||
|
||||
bool isSequence() const { return is_sequence; }
|
||||
bool output2DLandmarks() const { return output_2D_landmarks; }
|
||||
@@ -68,6 +68,11 @@ namespace Utilities
|
||||
std::string outputCodec() const { return output_codec; }
|
||||
double outputFps() const { return fps_vid_out; }
|
||||
|
||||
float getFx() const { return fx; }
|
||||
float getFy() const { return fy; }
|
||||
float getCx() const { return cx; }
|
||||
float getCy() const { return cy; }
|
||||
|
||||
private:
|
||||
|
||||
// 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
|
||||
@@ -88,6 +93,9 @@ namespace Utilities
|
||||
std::string output_codec;
|
||||
double fps_vid_out;
|
||||
|
||||
// Camera parameters for recording in the meta file;
|
||||
float fx, fy, cx, cy;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user