opencv3.0 – 为什么opencv_traincascade失败:“临时阶段的训练数据集无法填充”?

到目前为止我尝试过的…

opencv_createsamples -info positive/positive.txt -vec positive.vec -w 100 -h 100 -num 2
opencv_createsamples -info negative/negative.txt -vec negative.vec -w 100 -h 100 -num 2
opencv_traincascade -vec positive.vec -data . -bg negative/negative.txt -numPos 1 -numNeg 1 -numStages 1 -w 100 -h 100

# outputs
Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

如何训练一个很少积极的HAAR模型?目标是在2d图像中跟踪2d图像.

最佳答案 你的一个论点是“numpos”,但是每
http://docs.opencv.org/2.4/doc/user_guide/ug_traincascade.html,它应该是“numPos”,有一个大写P.

点赞