mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 11:17:53 +00:00
Adapting eye gaze script, moving to new multi-face interface, a bug fix in rotation conversion
This commit is contained in:
@@ -70,9 +70,15 @@ namespace Utilities
|
||||
// Required observations for video/image-sequence
|
||||
void SetObservationTimestamp(double timestamp);
|
||||
|
||||
// Required observations for video/image-sequence
|
||||
void SetObservationFrameNumber(int frame_number);
|
||||
|
||||
// If in multiple face mode, identifying which face was tracked
|
||||
void SetObservationFaceID(int face_id);
|
||||
|
||||
// All observations relevant to facial landmarks
|
||||
void SetObservationLandmarks(const cv::Mat_<float>& landmarks_2D, const cv::Mat_<float>& landmarks_3D,
|
||||
const cv::Vec6f& params_global, const cv::Mat_<float>& params_local, float confidence, bool success);
|
||||
const cv::Vec6f& params_global, const cv::Mat_<float>& params_local, double confidence, bool success);
|
||||
|
||||
// Pose related observations
|
||||
void SetObservationPose(const cv::Vec6f& pose);
|
||||
@@ -123,7 +129,10 @@ namespace Utilities
|
||||
RecorderHOG hog_recorder;
|
||||
|
||||
// The actual temporary storage for the observations
|
||||
|
||||
double timestamp;
|
||||
int face_id;
|
||||
int frame_number;
|
||||
|
||||
// Facial landmark related observations
|
||||
cv::Mat_<float> landmarks_2D;
|
||||
@@ -147,8 +156,6 @@ namespace Utilities
|
||||
std::vector<cv::Point2f> eye_landmarks2D;
|
||||
std::vector<cv::Point3f> eye_landmarks3D;
|
||||
|
||||
int observation_count;
|
||||
|
||||
// For video writing
|
||||
cv::VideoWriter video_writer;
|
||||
std::string media_filename;
|
||||
|
||||
Reference in New Issue
Block a user