Question

I am using opencv and c++. Which face detector algorithm to use if I have 348x288 face images. In the paper for Haarcascade http://www.vision.caltech.edu/html-files/EE148-2005-Spring/pprs/viola04ijcv.pdf, it is said that haarcascade operates on 348x288 pixel images. Does that mean I cannot use haarcascade to detect the faces in my images?

Était-ce utile?

La solution

It can be used for your images as long as you setup the correct parameters for CascadeClassifier::detectMultiScale(), especially the following three:

  • scaleFactor – Parameter specifying how much the image size is reduced at each image scale.

  • minSize – Minimum possible object size. Objects smaller than that are ignored.

  • maxSize – Maximum possible object size. Objects bigger than that are ignored.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top