jasmcaus / opencv-course

Learn OpenCV in 4 Hours - Code used in my Python and OpenCV course on freeCodeCamp.
https://youtu.be/oXlwWbU8l2o
MIT License
1.11k stars 955 forks source link

Underestimate the number of faces #22

Closed Amirmohammadkazemi closed 3 years ago

Amirmohammadkazemi commented 3 years ago

In the image in the face_detect.py file, the number of faces is 26. But the program counts 19.

jasmcaus commented 3 years ago

That's not a bug, actually. The number of faces you get will vary on the image and classifier parameters you've chosen. You can't place a hard-and-fast bet on the number of faces you get because it depends on the image (how noisy, grainy etc) and how accurate you've asked the classifier to be (changing the parameters)