Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to generate HAAR cascade xml file for finger detection

Hello there,

I'm trying to make a simple Android Camera app that integrates OpenCV Library to detect human fingers. Eventually, I would want that app to grow and support Camera detected hand gestures. But first I need to understand how to create my own HAAR cascade xml file for finger detection. I found this list of steps to do but I have the slightest idea where to start and what exactly to prepare and do. Can someone give advice?

Btw, the steps I mentioned above are as follows :
1. Creating the description file of positive samples
2. Creating the description file of negative samples
3. Packing the positive samples into a vec file
4. Training the classifier
5. Converting the trained cascade into a xml file
6. Using the xml file to detect the object