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.
2 | No.2 Revision |
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.