opencv

来源:互联网 发布:淘宝商品购物车加不了 编辑:程序博客网 时间:2024/06/14 12:08

1        http://www.linuxidc.com/Linux/2015-05/116960.htm opencv在ubuntu 下的安装及测试

2    http://www.th7.cn/system/lin/201504/101956.shtml opencv 3.0 人脸检测实验

3   linux 下opencv 的训练级联分类器的一些问题:问题1 what():  basic_string::_S_construct null not valid

解决1:检查参数的书写格式是否正确

问题2:Train dataset for temp stage can not be filled. Branch training terminated.

解决2:检查正负样本的路径给的格式是否符合要求,正样本的vec 文件及负样本文件不能有路径,只能有文件名,也就是说,给出样本描述文件的相对路径就好啦,不用给绝对路径。我把正样本的描述文件pos.vec 及neg.txt 及neg 文件夹移到opencv_traincascade 所在的目录下就不在报告上诉错误。

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

是正样本及负样本的参数设置过高,导致没有新的样本可以被更新,可以减小正样本及负样本的数目设定即可。

4 VideoCapture类有两种用法,一种是VideoCapture(const string& filename)用来打开视频文件,一种是VideoCapture(int device)用来打开设备。

5 http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.html 当用此页的程序进行圆形检测的时候,提示错误--vector’在此作用域中尚未声明。

vector<Vec3f> circles;这一行出现错误,错误提示如上述所示,可以std::vetor<Vec3f>circles 就不会再提示上述错误6:opencv_createsamples -vec /home/x919/caffe-master/examples/hua/pos.vec -info /home/x919/caffe-master/examples/hua/test.txt  -bg /home/x919/caffe-master/examples/hua/non_trafficsign.txt -w 30 -h 30 -num 1213  我的目录下创建正样本描述文件

原创粉丝点击