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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top