I am trying to create a new cascade file for face detection, I have 30000 faces database in gray-scale. Below are commands i am using for creating New Cascade for Opencv, I want to know which parameter i have to change to improve my detection. I had got acceptanceRatio in last stage of training is about 0.0001.
I can able to detect faces using this cascade but want to improve it.
perl bin/createsamples.pl positives.txt negatives.txt samples 30000 "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 30 -h 30"
python ./tools/mergevec.py -v samples/ -o samples.vec
opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 27000 -numNeg 54000 -w 30 -h 30 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024
Please Help if someone know anything about it. Thanks