HAAR级联无法训练

时间:2018-02-17 08:10:56

标签: python-3.x opencv haar-classifier cascade-classifier

每当我尝试创建HAAR级联时,我都会收到以下错误。

===== TRAINING 0-stage =====
<BEGIN
POS count : consumed   9768 : 9768
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.

我不确定我做错了什么。

这是我使用的命令:

opencv_traincascade.exe -data F:\TrainingImages\HaarTraining\cascades -vec F:\TrainingImages\HaarTraining\vector\vector.vec -bg F:\TrainingImages\HaarTraining\negative\bg.txt -numPos 9768 -numNeg 18050 -numStages 15 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -w 24 -h 24 -acceptanceRatioBreakValue 10E-05 mode ALL

bg.txt文件的格式为

jpgTojpg0.jpg
jpgTojpg1.jpg
jpgTojpg10.jpg
jpgTojpg100.jpg
jpgTojpg1000.jpg
jpgTojpg1001.jpg
jpgTojpg1002.jpg
jpgTojpg1003.jpg

enter image description here

有人可以帮助我!!!

0 个答案:

没有答案