这个实验和之前的画圆的类似,先捕捉图像,然后再上面输出文字。
#include "stdafx.h" #include "highgui.h" #include "cv.h" #include "stdio.h&quo[......]
这个实验和之前的画圆的类似,先捕捉图像,然后再上面输出文字。
#include "stdafx.h" #include "highgui.h" #include "cv.h" #include "stdio.h&quo[......]
写了一个小程序,获得摄像头输出之后直接在上面画图。
cvCircle(CvArr* img, CvPoint center, int radius, CvScalar color, int thickness=1, int lineType=8, int shift=0)
img为图像指[......]
本文使用环境:
1. XP 下,VS2008
2. 只适合你用Release编译出来的结果,不适合Debug版本(因为我测试Debug版本在XP上始终无法成功,所以删除了所有相关的 *d.dll)
3. 只是简单的测试之类的(如果你想更专业,可以只分发用到的DLL;或者重新编译OpenCV生成 L[......]