Cascade trained from trainingcascade unaccurate
Hi I trained a classifier using 1000 positive female faces from the FERET database and 2500 negative images including male FERET faces and some background images not containing any faces, with the intention of classifying gender. The training was complete after 18 hours/7 training stages and the output classifier gives the results as below.
Could anyone explain why and what was wrong with my method?
Here are my parameters:
opencv_traincascade -data classifier\ -vec female.vec -bg negative.txt -numStages 12 -minHitRate 0.995 -maxFalseAlarmRate 0.5 -numPos 1000 -numNeg 2500 -w 30 -h 37 -precalcValBufSize 2048 -precalcIdxBufSize 2048 -featureType HAAR
Can you please add your detection command and parameters given there? First guesses:
BUT since you detect everything except the actual face region, I am guessing there is just not enough training data to diverse between classes.