I am struggling to create a custom haar classifier. I have found a couple tutorials on the web, but they do not specify which version of opencv they are using. What I need is
OpenCV provides two utility commands createsamples.exe
and haartraining.exe
, which can generate xml files used by Haar Classifiers. That is, with the xml file outputted from haartraining.exe
, you can directly use the face detection sample with your xml file to detect any customized objects.
About the detailed procedures to use the commands, you may consult Page 513-516 in the book "Learning OpenCV", or this tutorial.
About the internal mechanism of how the classifier works, you may consult the paper "Rapid Object Detection using a Boosted Cascade of Simple Features", which has been cited 5500+ times.