opencv haartraining training error-penCV Error: Assertion failed (elements_read == 1) in unknown fun
来源:互联网 发布:福利王朝邀请码淘宝 编辑:程序博客网 时间:2024/06/05 06:14
problem:
opencv haartraining training error:
Parent node: 2
*** 1 cluster ***
OpenCV Error: Assertion failed (elements_read == 1) in unknown function, file
..
\..\..\..\apps\haartraining\cvhaartraining.cpp, line 1859
solution:
The problem is that your vec-file has exactly the same samples count that you passed in command line -numPos 979. Training application used all samples from the vec-file to train 0-stage and it can not get new positive samples for the next stage training because vec-file is over. The bug of traincascade is that it had assert() in such cases, but it has to throw an exception with error message for a user. It was fixed in r8913. -numPose is a samples count that is used to train each stage. Some already used samples can be filtered by each previous stage (ie recognized as background), but no more than (1 - minHitRate) * numPose on each stage. So vec-file has to contain >= (numPose + (numStages-1) * (1 - minHitRate) * numPose) + S, where S is a count of samples from vec-file that can be recognized as background right away. I hope it can help you to create vec-file of correct size and chose right numPos value.
http://stackoverflow.com/questions/10863560/haar-training-opencv-assertion-failed
- opencv haartraining training error-penCV Error: Assertion failed (elements_read == 1) in unknown fun
- Why always OpenCV Error: Assertion failed (elements_read == 1) in unknown function ?
- OpenCV Error: Assertion failed (dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0)) in unknown fun
- opencv 分类器训练 Assertion failed (elements_read == 1) in icvGetHaarTraininDataFrom
- OpenCV Error: Assertion failed (s >= 0)
- OpenCV Error: Assertion failed
- OpenCV Error:Assertion failed ...
- OpenCV Error: Assertion failed
- opencv error:assertion failed<src.cols>0&&src.rows>0>in unknown function
- OpenCV Error: Assertion failed (dsize.area() > 0) in cv::resize
- OpenCV Error: Assertion failed (src.type() == dst.type()) in cvResize, file /usr/local/OpenCV-2.0.0/
- 编程报错:OpenCV Error:Assertion failed<scn ==3 || scn == 4>in cvtColor
- OpenCV Error: Assertion failed ( ssize.area() > 0 )
- 【opencv】错误提示OpenCV Error: Assertion failed <dims <=2 && data && <unsigned >i0 ...
- 编程报错 OpenCV Error:Assertion failed<scn ==3 || scn == 4>
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow
- 关于形参数组、临时变量数组大小问题
- 安卓按键设置TextView字体的大小
- 经典c程序100例==1--100——Classic c program 100 = = 1-100
- 《计算机文化》第7章
- JAVA序列化技术概述
- opencv haartraining training error-penCV Error: Assertion failed (elements_read == 1) in unknown fun
- linux dbca 报错ORA-00119 ORA-00130
- 为啥你要返回栈指针?
- 继实现索引遇到的问题
- UIColor,CGColor,CIColor三者的区别和联系
- 二叉树系列文章之三 二叉树的非递归遍历
- Java面向对象
- 安卓修改系统的屏幕亮度
- Skiplist实现——(C++版)