Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the FaceRecognizer classes are not part of the main opencv distribution.

to use that, you'll have to rebuild the opencv libs with the opencv_contrib repo ,

then it is also in a cv::face namespace, like:

Ptr<face::FaceRecognizer> fr = face::LBPHFaceRecognizer::create();

in the meantime, you should also try the new, builtin dnn based face recognition (with a pretrained network).

have a look at the answer here, please.

the FaceRecognizer classes classes are not part of the main opencv distribution.

to use that, you'll have to rebuild the opencv libs with the opencv_contrib repo ,

then it is also in a cv::face namespace, like:

Ptr<face::FaceRecognizer> fr = face::LBPHFaceRecognizer::create();

in the meantime, you should also try the new, builtin dnn based face recognition (with a pretrained network).

have a look at the answer here, please.