Hello,
Sorry if the title is not clear enough, I will try to explain it better.
I have a picture and I know there is only one face inside, i would like to know the best way to find that face.
For the moment, I'm doing this :
faceClassifier.detectMultiScale(img, faces, 1.2, 1, Objdetect.CASCADE_FIND_BIGGEST_OBJECT | Objdetect.CASCADE_DO_ROUGH_SEARCH, new Size(img.rows()/5, img.cols()/5), new Size(img.rows(), img.cols()));
But with this, I'm not getting the "best" face, but the bigger one, and I think it could result in an oversized rectangle around the face.
I could set minNeighbors to a high value, but sometimes, the face won't be good enough to be well detect, so i should not discard any candidate, because I should always find one !
Thanks for your help,
Florian