I have a few questions on how to train a custom openCV classifier. I hope the right people can answer this.
I am thinking of training one classifier with masked male images as positive images and masked female images as negative images. Will this work? or do I need to create two custom classifiers one for detecting male gender with masked male images as positive and everything else as negative images and vice versa for the case females.
How many positive and negative images should I use for training the custom classifier?
What model does OpenCV use for object detection?
Finally, can you explain the content of an example cascade XML file is. An example shown below
<opencv_storage> <cascade type_id="opencv-cascade-classifier"><stageType>BOOST</stageType> <featureType>HAAR</featureType> <height>24</height> <width>24</width> <stageParams> <maxWeakCount>211</maxWeakCount> </stageParams> <featureParams> <maxCatCount>0</maxCatCount></featureParams> <stageNum>25</stageNum> <stages> <_> <maxWeakCount>9</maxWeakCount> <stageThreshold>-5.0425500869750977e+00</stageThreshold> <weakClassifiers>