I use these commands:
1 find ./negatives/ -name '*.jpg' > negatives.dat
2 opencv_createsamples -img object.png -num 3000 -bg negatives.dat -vec samples.vec -maxxangle 0.3 -maxyangle 0.3 -maxzangle 0.3 -maxidev 100 -bgcolor 0 -bgthresh 0 -w 20 -h 20
3 opencv_traincascade -data haarcascade -vec samples.vec -bg negatives.dat -numPos 10 -numNeg 3000 -numStages 2 -w 20 -h 20 -minHitRate 0.7 -maxFalseAlarmRate 0.6 -mode ALL
negative images are from http://tutorial-haartraining.googlecode.com/svn/trunk/
object image is C:\fakepath\object.png
the result is
===== TRAINING 1-stage =====
POS count : consumed 10 : 10
NEG count : acceptanceRatio 3000 : 0.000429487
Required leaf false alarm rate achieved. Branch training terminated.
now, I have no idea how to resolve this problem, need help.