mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 03:12:42 +00:00
Gaze visualization in offline GUI.
This commit is contained in:
@@ -482,6 +482,8 @@ namespace OpenFaceOffline
|
||||
|
||||
bool detectionSucceeding = ProcessFrame(clnf_model, clnf_params, frame, grayFrame, fx, fy, cx, cy);
|
||||
|
||||
double scale = clnf_model.GetRigidParams()[0];
|
||||
|
||||
double confidence = (-clnf_model.GetConfidence()) / 2.0 + 0.5;
|
||||
|
||||
if (confidence < 0)
|
||||
@@ -507,8 +509,7 @@ namespace OpenFaceOffline
|
||||
{
|
||||
landmarks = clnf_model.CalculateLandmarks();
|
||||
lines = clnf_model.CalculateBox((float)fx, (float)fy, (float)cx, (float)cy);
|
||||
//gaze_lines = face_analyser.CalculateGazeLines((float)fx, (float)fy, (float)cx, (float)cy); // TODO figure out what is happening here
|
||||
gaze_lines = new List<Tuple<Point, Point>>();
|
||||
gaze_lines = face_analyser.CalculateGazeLines(scale, (float)fx, (float)fy, (float)cx, (float)cy);
|
||||
}
|
||||
|
||||
// Visualisation
|
||||
|
||||
Reference in New Issue
Block a user