| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | #ifndef RECORDER_OPENFACE_PARAM_H |
| | #define RECORDER_OPENFACE_PARAM_H |
| |
|
| | #include <vector> |
| | #include <opencv2/core/core.hpp> |
| |
|
| | namespace Utilities |
| | { |
| |
|
| | class RecorderOpenFaceParameters |
| | { |
| |
|
| | public: |
| |
|
| | |
| | RecorderOpenFaceParameters(std::vector<std::string> &arguments, bool sequence, bool is_from_webcam, float fx = -1, float fy = -1, float cx = -1, float cy = -1, double fps_vid_out = 30); |
| | RecorderOpenFaceParameters(bool sequence, bool is_from_webcam, bool output_2D_landmarks, bool output_3D_landmarks, |
| | bool output_model_params, bool output_pose, bool output_AUs, bool output_gaze, bool output_hog, bool output_tracked, |
| | bool output_aligned_faces, bool record_bad = true, float fx = -1, float fy = -1, float cx = -1, float cy = -1, double fps_vid_out = 30); |
| |
|
| | bool isSequence() const { return is_sequence; } |
| | bool isFromWebcam() const { return is_from_webcam; } |
| | bool output2DLandmarks() const { return output_2D_landmarks; } |
| | bool output3DLandmarks() const { return output_3D_landmarks; } |
| | bool outputPDMParams() const { return output_model_params; } |
| | bool outputPose() const { return output_pose; } |
| | bool outputAUs() const { return output_AUs; } |
| | bool outputGaze() const { return output_gaze; } |
| | bool outputHOG() const { return output_hog; } |
| | bool outputTracked() const { return output_tracked; } |
| | bool outputAlignedFaces() const { return output_aligned_faces; } |
| | std::string outputCodec() const { return output_codec; } |
| | std::string imageFormatAligned() const { return image_format_aligned; } |
| | std::string imageFormatVisualization() const { return image_format_visualization; } |
| | double outputFps() const { return fps_vid_out; } |
| |
|
| | bool outputBadAligned() const { return record_aligned_bad; } |
| |
|
| | float getFx() const { return fx; } |
| | float getFy() const { return fy; } |
| | float getCx() const { return cx; } |
| | float getCy() const { return cy; } |
| |
|
| | void setOutputAUs(bool output_AUs) { this->output_AUs = output_AUs; } |
| | void setOutputGaze(bool output_gaze) { this->output_gaze = output_gaze; } |
| |
|
| | private: |
| | |
| | |
| | bool is_sequence; |
| | |
| | bool is_from_webcam; |
| |
|
| | |
| | bool output_2D_landmarks; |
| | bool output_3D_landmarks; |
| | bool output_model_params; |
| | bool output_pose; |
| | bool output_AUs; |
| | bool output_gaze; |
| | bool output_hog; |
| | bool output_tracked; |
| | bool output_aligned_faces; |
| | |
| | |
| | bool record_aligned_bad; |
| |
|
| | |
| | std::string output_codec; |
| | double fps_vid_out; |
| |
|
| | |
| | std::string image_format_aligned; |
| | std::string image_format_visualization; |
| |
|
| | |
| | float fx, fy, cx, cy; |
| |
|
| | }; |
| |
|
| | } |
| |
|
| | #endif |
| |
|