我的報錯是:
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 5000 : 5000
Train dataset for temp stage can not be filled. Branch training terminated
Cascade classifier can't be trained. Check the used training parameters.
解決辦法:
我出現這種錯誤的原因是訓練數據的路徑問題。比如先前路徑是xxx.jpg,改成./neg/xxx.jpg,就ok了!
Ubuntu可用 ls ./neg/*.* > neg.txt 直接生成。