Learning OpenCV

时间:2024-01-04 12:18:02

1. 读取图片 opencv/highgui.h

2. 读取视频 opencv/cv.h opencv/highgui.h

3. 高斯平滑滤波

Learning OpenCV

4. 灰度单通道与边缘检测

Learning OpenCV

5. 摄像头打开

void main(){

VideoCapture cap(0);
for (;;)
{
Mat frame;
cap >> frame;
imshow("qq", frame);
imwrite("F:\\结果\\源图.bmp", frame);
if (waitKey(30) >= 0) break;
}

}

Learning OpenCV

6. 摄像头目标点追踪 导入lkdemoc.cpp文件

Learning OpenCV

7. 人脸识别 facedetect

samples/cpp/facedetect.cpp

参考:http://blog.csdn.net/gxiaob/article/details/8251788          http://www.cnblogs.com/emouse/archive/2013/04/23/3037234.html

Learning OpenCV

>>图像处理软件

>>视频处理软件

>>人脸疲劳(情绪等)识别

>>时态追踪学习