I had been successfully using the Haar Cascade algorithm for face detection/counting, and it had been working perfectly. With the 4.0 firmware, the accuracy is significantly lower. Even with a clear face image, the algorithm is often returning no faces detected. Any thoughts on what has changed and what the possible cause is?
Here’s the code that creates the Haar Cascade.
face_cascade = image.HaarCascade(“frontalface”, stages=25)
Nothing special about the image capture - using the recommended defaults:
# Reset sensor sensor.reset() sensor.set_contrast(3) sensor.set_gainceiling(16) sensor.set_framesize(sensor.HQVGA) sensor.set_pixformat(sensor.GRAYSCALE)