![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv学习
李青胜
这个作者很懒,什么都没留下…
展开
-
利用opencv画一个圆、一条线段、一个矩形
1.cvCircle函数画一个圆: #include "stdafx.h" #include #include #include #include int _tmain(int argc,_TCHAR *argv[]) { IplImage * img = cvCreateImage(cvSize(500,500),IPL_DEPTH_8U,3); //创建一张图片 cv原创 2013-06-01 11:36:11 · 6674 阅读 · 0 评论 -
利用opencv打开摄像头读取视频
本人用的是台式机调试,所用用的摄像头也是普通的USB口的摄像头 开发环境:VS2010+opencv2.2.0 具体源码如下所示: #include "stdafx.h" #include #include #include #include #include int main( int argc, char** argv ) { //声明IplImage指针 IplI原创 2013-05-30 11:58:24 · 1643 阅读 · 3 评论 -
利用opencv进行鼠标绘图
开发环境:vs2010+opencv2.2.0 源代码如下所示: #ifdef _CH_ #pragma package #endif #include "stdafx.h" #include #include #include #include IplImage* inpaint_mask = 0; IplImage* img0 = 0,*img = 0,*inpai转载 2013-05-28 12:34:19 · 1463 阅读 · 0 评论 -
Fedora 16下安装 opencv2.3.0
1.下载opencv2.3.0 方式:在终端下输入:wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.3/OpenCV-2.3.0.tar.bz2 2.tar -xvf OpenCV-2.3.0.tar.bz2 3.在解压得到的Opencv-2.3.0文件夹里创建一个build文件夹原创 2013-11-07 12:08:18 · 628 阅读 · 0 评论 -
在ubuntu下利用opencv打开摄像头
测试环境:ubuntu10.04 + opencv2.3.0 在安装opencv之前要装上以下依赖库: sudo apt-get install ffmpeg libavcodec-dev libavcodec52 libavformat52 libavformat-dev sudo apt-get install libgstreamer0.10-0-dbg libgstreamer0原创 2013-11-10 17:04:25 · 4991 阅读 · 1 评论 -
利用opencv2.3.1打开两个摄像头
测试环境VS2010 + opencv 2.3.1 本来想用2.2.0开发,但只能打开单个摄像头,于是乎就换到opencv2.3.1了,源码如下所示: #include "stdafx.h" #include "highgui.h" #include "cv.h" int main(){ CvCapture* pCapture0 = cvCreateCameraCapture(0);原创 2013-12-01 19:39:59 · 1253 阅读 · 0 评论