Using multiple haarcascades for better facial detection.

asked 2017-04-19 20:51:54 -0500

skippy130 gravatar image


I'm using OpenCV 3.2 in Android Studio to help build an app that does facial detection and recognition. The issue I'm having right now is that the facial detection is really wonky. What I mean is that often times in the video feed it'll identify the ceiling as a face and make a jumpy rectangle that keeps going in and out and sometimes just disappears even when the only thing in the frame is a face.

So far I've only used the frontal_face.xml file to do facial detection but I've been told that I can use additional haarcascade xml files, like frontal_face_alt.xml, together to yield better detection. However I have no idea how to use two or more cascades at once. If anyone has any advice on how to use at least the frontal_face and frontal_face_alt cascades together please let me know. Or if you have any other ideas that could improve facial detection then please feel free to share that too.

Thanks in advance!

edit retag flag offensive close merge delete