How to create Haar Cascade (xml) for use with OpenCV?

If you are familiar with the OpenCV library, you know what the definition of cascading image objects is. I mean the definition of an image object, for example, a human face or something else. I have an xml cascade for detecting faces, but I don't know how to create my own. I want to create Haar Cascade xml to detect simple bright circle light sources (i.e. infrared light from the TV remote control blinks).

So how to create Haar Cascade (xml) for use with OpenCV?

+41
xml opencv emgucv
Jan 04 '10 at 17:11
source share
3 answers
+23
Jan 04 '10 at 18:00
source share
+10
Mar 23 2018-12-12T00:
source share

If you are interested in finding simple infrared light in a cascade of hara, it will be very strange. Since a simple IR unit does not have sufficient educational opportunities through opencv, like other objects (face, eyes, nose, etc.). Because IR is just a simple light that has only one feature of brightness in my point of view. But if you want to learn how to train the classifier, a link to it will help you.

http://note.sonots.com/SciSoftware/haartraining.html

And if you just want to detect an IR block, then you have two more options: one you go for DIP algorithms to detect a bright area, and the other, which I recommend to you, you can use an IR camera that simply transmits IR blob and you can easily detect infrared using opencv blob functiuons. If you think that the IR camera is expansive, you can make a simple webcam on the IR camera by removing the IR block (if any) and add a block of visible light, for example, a negative film, flexible material or any other. You can check the following link to convert a simple webcam to an IR camera.

http://www.metacafe.com/watch/385098/transform_your_webcam_into_an_infrared_cam/

+6
Dec 13 '11 at 5:23
source share



All Articles