Making multi-view on by default (slower but more accurate)

This commit is contained in:
Tadas Baltrusaitis
2018-11-05 08:13:33 +00:00
parent 126b34f181
commit d5d07b4436
2 changed files with 4 additions and 2 deletions

View File

@@ -342,9 +342,10 @@ bool LandmarkDetector::DetectLandmarksInVideo(const cv::Mat &rgb_image, CLNF& cl
// Do the actual landmark detection (and keep it only if successful)
// Perform multi-hypothesis detection here (as face detector can pick up multiple of them)
bool old_value = params.multi_view;
params.multi_view = true;
bool landmark_detection_success = DetectLandmarksInImage(rgb_image, bounding_box, clnf_model, params, grayscale_image);
params.multi_view = false;
params.multi_view = old_value;
// If landmark reinitialisation unsucessful continue from previous estimates

View File

@@ -331,7 +331,8 @@ void FaceModelParameters::init()
validation_boundary = 0.725f;
limit_pose = true;
multi_view = false;
multi_view = true;
reinit_video_every = 2;