mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 03:12:42 +00:00
add -fdloc for customize face detection/classifier files
This commit is contained in:
@@ -83,6 +83,14 @@ FaceModelParameters::FaceModelParameters(vector<string> &arguments)
|
||||
i++;
|
||||
|
||||
}
|
||||
if (arguments[i].compare("-fdloc") ==0)
|
||||
{
|
||||
string face_detector_loc = arguments[i + 1];
|
||||
face_detector_location = face_detector_loc;
|
||||
valid[i] = false;
|
||||
valid[i + 1] = false;
|
||||
i++;
|
||||
}
|
||||
if (arguments[i].compare("-sigma") == 0)
|
||||
{
|
||||
stringstream data(arguments[i + 1]);
|
||||
@@ -253,12 +261,7 @@ void FaceModelParameters::init()
|
||||
reinit_video_every = 4;
|
||||
|
||||
// Face detection
|
||||
#if OS_UNIX
|
||||
face_detector_location = "classifiers/haarcascade_frontalface_alt.xml";
|
||||
#else
|
||||
face_detector_location = "classifiers/haarcascade_frontalface_alt.xml";
|
||||
#endif
|
||||
|
||||
quiet_mode = false;
|
||||
|
||||
// By default use HOG SVM
|
||||
|
||||
Reference in New Issue
Block a user