mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-11 01:42:46 +00:00
Integrating OpenFace 1.0.0 changes into CE-CLM branch
This commit is contained in:
@@ -78,6 +78,7 @@ namespace Utilities
|
||||
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:
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ namespace Utilities
|
||||
|
||||
// The constructor for the visualizer that specifies what to visualize
|
||||
Visualizer(std::vector<std::string> arguments);
|
||||
Visualizer(bool vis_track, bool vis_hog, bool vis_align);
|
||||
|
||||
Visualizer(bool vis_track, bool vis_hog, bool vis_align, bool vis_aus);
|
||||
|
||||
// Adding observations to the visualizer
|
||||
|
||||
// Pose related observations
|
||||
@@ -67,6 +67,8 @@ namespace Utilities
|
||||
// Pose related observations
|
||||
void SetObservationPose(const cv::Vec6f& pose, double confidence);
|
||||
|
||||
void SetObservationActionUnits(const std::vector<std::pair<std::string, double> >& au_intensities, const std::vector<std::pair<std::string, double> >& au_occurences);
|
||||
|
||||
// Gaze related observations
|
||||
void SetObservationGaze(const cv::Point3f& gazeDirection0, const cv::Point3f& gazeDirection1, const std::vector<cv::Point2f>& eye_landmarks, const std::vector<cv::Point3f>& eye_landmarks3d, double confidence);
|
||||
|
||||
@@ -88,7 +90,8 @@ namespace Utilities
|
||||
bool vis_track;
|
||||
bool vis_hog;
|
||||
bool vis_align;
|
||||
|
||||
bool vis_aus;
|
||||
|
||||
// Can be adjusted to show less confident frames
|
||||
double visualisation_boundary = 0.4;
|
||||
|
||||
@@ -99,6 +102,7 @@ namespace Utilities
|
||||
cv::Mat tracked_image;
|
||||
cv::Mat hog_image;
|
||||
cv::Mat aligned_face_image;
|
||||
cv::Mat action_units_image;
|
||||
|
||||
// Useful for drawing 3d
|
||||
float fx, fy, cx, cy;
|
||||
|
||||
Reference in New Issue
Block a user