opencv

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  我的目录下创建正样本描述文件


7 Linux下进行C语言的编译及链接操作时应该注意:其中如果a.cpp 调用b.cpp 里面的函数时,可以直接使用gcc生成 gcc a.cpp b.cpp -o main 可执行文件main

问题1:reference to symbol '_ZNSspLEc@@GLIBCXX_3.4'
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
解决方法:当出现上述问题时,可以直接在命令行里添加链接库文件 -lstdc++。

问题2:'log2@@GLIBC_2.2.5' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line
/usr/lib/libm.so.6: could not read symbols: Invalid operatio
解决方法:
当出现上述问题时,可以直接在命令行里添加链接库文件 -lm。
gcc myKmeans.cpp Remove_sky.cpp skyreg.cpp -o skyreg -lm -lstdc++ `pkg-config --cflags --libs opencv`



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值