Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insuff

Posted MISAYAONE

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insuff相关的知识,希望对你有一定的参考价值。

问题:Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insufficient count of samples in given vec-file.)

解析:设置的numPos过大,由于训练时POS_count会随你设置的numPos增大,每一级都按一定的次序增大,后来可能会超过样本库中正样本的个数,就会报这个错误


为了避免出现opencv error,在用opencv_traincascade.exe的时候,-numPos要稍微低于实际的正样本数目,比
如你有2100个你就可以将numpos设为1900-2000

以上是关于Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insuff的主要内容,如果未能解决你的问题,请参考以下文章

python smtp发送邮件:500 Error: bad syntax

CentOS YUM / RPM Error Signature Key ID BAD

python print 在windows上 出现 Bad file descriptor error

/usr/local/ssl/lib/libssl.a: error adding symbols: Bad value

configure: error: /usr/include/openssl is a bad --with-openssl prefix

Axios Post 请求 Giving Error 400 , Bad Request