How to create Haar Cascade (.xml file) to use in OpenCV?

Alexander Logger picture Alexander Logger · Jan 4, 2010 · Viewed 104.5k times · Source

If you are familiar with OpenCV library, you know what Haar Cascade image object detection is. By image object detection I mean, like human face detection or something else. I have some Haar Cascade XMLs for face detection, but I don't know how to create my own. I want to create Haar Cascade XMLs to detect simple bright circle light sources (i.e. flashing infrared light from TV remote control).

So, how do I create a Haar Cascade (.xml file) to use in OpenCV?

Answer

Tony The Lion picture Tony The Lion · Jan 4, 2010