当前位置: 代码迷 >> 综合 >> 级联分类器 opencv_traincascade 错误:dataset for temp stage can not be filled····
  详细解决方案

级联分类器 opencv_traincascade 错误:dataset for temp stage can not be filled····

热度:92   发布时间:2024-01-04 03:58:59.0

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

训练的时候发生过这样的错误:
一般都是都是数据集方面有些问题,导致读取失败

1.检查正样本和负样本的描述文件,检查一下最后一行是否存在空行;

2.描述文件中图像的地址上否正确;
1.若描述文件和图像放置在同一个文件夹下,则描述文件只需要写出图像文件名即可,在-info参数中正确写出描述文件地址;
2.若描述文件和图像不在同一个文件夹下,则描述文件只需要写出图像文件的地址:
例如相对地址:

pos/1.jpg
pos/2.jpg
pos/3.jpg
  相关解决方案