Nicla Vision: HaarCascade error

Hi all,

I just got the nicla vision board and tried to use OpenMV. When I was trying to test the build-in example: “Snapshot on Face Detection Example”. There is an error on the line:

“face_cascade = image.HaarCascade(“frontalface”, stages=25)”

which says: OSError: Could not find the file

What should I do to solve this problem? I checked several similar posts and it seems the HaarCascade is a build in, but not sure why this is not working on my end.

Thanks!

We had to disable those built-in Haar cascades to free space for new features and to support bigger built-in models. Note that the firmware already includes a built-in model that detects faces, and it’s better than the cascade. In future it should be possible to customize the built-in models and resources, so you’ll be able to add it back if you like.

Hi @iabdalkader ,
Thanks for the reply. For the new build-in face detection model, can you guide me to the source? I am trying to test this new one, not sure it there is any example or link I can look it up.

Thanks.

See the example in:

Examples->Machine-Learning->TensorFlow->tf_object_detection.py