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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top