在用opencv_traincascade训练时出现:
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 18 : 18
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can’t be trained. Check the used training parameters.
查询了很多文章之后没有找到特别有效的方法,后面参考另一个博主的文章发现是存放负样本资源记录文件 neg.txt 的文件路径问题,原来报错的文件内容:
更改为绝对路径后:
更改之后运行成功,没有报错,生成 .xml 文件!