Small fix.
This commit is contained in:
parent
fbc1f5b699
commit
83f6e11935
1 changed files with 5 additions and 7 deletions
|
@ -121,7 +121,7 @@ namespace OpenFaceDemo
|
|||
|
||||
String root = AppDomain.CurrentDomain.BaseDirectory;
|
||||
|
||||
clnf_params = new FaceModelParameters(root, true);
|
||||
clnf_params = new FaceModelParameters(root, false); // TODO check this
|
||||
clnf_model = new CLNF(clnf_params);
|
||||
face_analyser = new FaceAnalyserManaged(root, true, 112);
|
||||
gaze_analyser = new GazeAnalyserManaged();
|
||||
|
@ -304,11 +304,9 @@ namespace OpenFaceDemo
|
|||
double time_stamp = (DateTime.Now - (DateTime)startTime).TotalMilliseconds;
|
||||
|
||||
// The face analysis step (only done if recording AUs, HOGs or video)
|
||||
if(detectionSucceeding)
|
||||
{
|
||||
face_analyser.AddNextFrame(frame, clnf_model.CalculateAllLandmarks(), detectionSucceeding, true, false);
|
||||
gaze_analyser.AddNextFrame(clnf_model, detectionSucceeding, fx, fy, cx, cy);
|
||||
}
|
||||
face_analyser.AddNextFrame(frame, clnf_model.CalculateAllLandmarks(), detectionSucceeding, true, false);
|
||||
gaze_analyser.AddNextFrame(clnf_model, detectionSucceeding, fx, fy, cx, cy);
|
||||
|
||||
List<Tuple<Point, Point>> lines = null;
|
||||
List<Tuple<double, double>> landmarks = null;
|
||||
List<Tuple<double, double>> eye_landmarks = null;
|
||||
|
|
Loading…
Reference in a new issue