Slightly better gaze estimation for off axis images.

This commit is contained in:
Tadas Baltrusaitis 2016-12-07 10:00:17 -05:00
parent d0cf22969c
commit ee48946818
4 changed files with 3 additions and 3 deletions

View file

@ -717,7 +717,7 @@ namespace OpenFaceOffline
output_features_file.Write("frame, timestamp, confidence, success"); output_features_file.Write("frame, timestamp, confidence, success");
if (output_gaze) if (output_gaze)
output_features_file.Write(", gaze_0_x, gaze_0_y, gaze_0_z, gaze_1_x, gaze_1_y, gaze_2_z"); output_features_file.Write(", gaze_0_x, gaze_0_y, gaze_0_z, gaze_1_x, gaze_1_y, gaze_1_z");
if (output_pose) if (output_pose)
output_features_file.Write(", pose_Tx, pose_Ty, pose_Tz, pose_Rx, pose_Ry, pose_Rz"); output_features_file.Write(", pose_Tx, pose_Ty, pose_Tz, pose_Rx, pose_Ry, pose_Rz");

View file

@ -141,7 +141,7 @@ void FaceAnalysis::EstimateGaze(const LandmarkDetector::CLNF& clnf_model, cv::Po
cv::Mat faceLdmks3d = clnf_model.GetShape(fx, fy, cx, cy); cv::Mat faceLdmks3d = clnf_model.GetShape(fx, fy, cx, cy);
faceLdmks3d = faceLdmks3d.t(); faceLdmks3d = faceLdmks3d.t();
cv::Mat offset = (cv::Mat_<double>(3, 1) << 0, -3.50, 0); cv::Mat offset = (cv::Mat_<double>(3, 1) << 0, -3.5, 7.0);
int eyeIdx = 1; int eyeIdx = 1;
if (left_eye) if (left_eye)
{ {

View file

@ -1,2 +1,2 @@
Mean error, median error Mean error, median error
9.428, 8.730 9.428, 8.611