I have used the same parameters used in this tutorial.
perl bin/createsamples.pl positives.txt negatives.txt samples 1500\ "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1\ -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40"
BUT changed the numPos parameter as it gave me an error of insufficient positive images.
ALSO had decreased the stages as it was below the desired accuracy rate(should be less than 0.0004) and mine was 0.0002. Used these parameters.
opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt -numStages 16 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 880 -numNeg 600 -w 80 -h 40 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024
Got my cascade.xml file, but still not detecting properly. cascade.xml file took 3 days for processing.(Image attached) Have used Opencv3.1.0 Please help!!!