linux下的OPENCV实现色带检测

大部分代码参考Wu_Dongxia的,他的原创连接在这里。点击打开链接

代码在已经上传达xxx.

我只做了小部分修改。

1.改为ubuntu下运行,因此加入makefile。

2.删除了findtape.cpp里面的void display_information(Mat Frame,int width,int height,int linesnum,float angle,Point location)函数里面的没有使用的变量strFrameSize[30];

3.更改sprintf_s为sprintf,因为linux不支持sprintf_s。

4.我用的是虚拟机而且只有一个摄像头,所以把cap1(1)这一部分删除了。


猜你喜欢

转载自blog.csdn.net/komonder/article/details/80054638