1 | initial version |
Hi,
it looks for me that you are using the CascadeClassifier. Which image type do you pass to the method setImage()? The only supported image type is CV_8UC1 (see: See online documentation of CascadeClassifier::setImage()).
Have you seen the Face Recognition with OpenCV tutorial? This tutorial briefly explain the new face recognition algorithms in OpenCV and how they can be used.
To evaluate a particular location in the image you only have to put this ROI to the FaceRecognizer::predict() method.