mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 04:52:29 +00:00
Making multi-view on by default (slower but more accurate)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -331,7 +331,8 @@ void FaceModelParameters::init()
|
||||
validation_boundary = 0.725f;
|
||||
|
||||
limit_pose = true;
|
||||
multi_view = false;
|
||||
|
||||
multi_view = true;
|
||||
|
||||
reinit_video_every = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user