Emgucv摄像头使用
来源:互联网 发布:python 书籍 知乎 2016 编辑:程序博客网 时间:2024/05/29 03:59
Emgucv摄像头使用
1、引用
using Emgu.CV;
using Emgu.CV.CvEnum;
2、引用变量
private VideoCapture _capture = null;private Mat _frame;
3、VideoCapture需要加载方法
private void ProcessFrame(object sender, EventArgs e) { if (_capture != null && _capture.Ptr != IntPtr.Zero) { _capture.Retrieve(_frame, 0); imageBox1.Image = _frame;//imageBox1显示控件 } }
4、开启摄像头
private void btnOpenCapture_Click(object sender, EventArgs e) { _capture = new VideoCapture(); _capture.ImageGrabbed += ProcessFrame; _frame = new Mat(); if (_capture != null) _capture.Start();//摄像头开启 }
5、摄像头关闭
private void btnStop_Click(object sender, EventArgs e) { _capture.Stop();//摄像头关闭 }
另一种开启摄像头的方法
private void btnOpenCapture_Click(object sender, EventArgs e) { //方法1(上面做介绍) _capture = new VideoCapture(); _capture.ImageGrabbed += ProcessFrame; _frame = new Mat(); //方法2 Application.Idle+=(x,y) => imageBox2.Image = _capture.QueryFrame(); if (_capture != null) _capture.Start();//摄像头开启 }
0 0
- Emgucv摄像头使用
- EmguCV学习-摄像头采集
- emgucv读取摄像头
- c#下使用EmguCV操作摄像头和最简单的人脸检测
- EmguCV的配置和获取摄像头画面
- 在Unity3D中使用EmguCV
- 示例:使用EmguCV视频截图
- 使用EmguCv播放指定视频
- 使用EmguCV处理Kinect数据流
- Emgucv使用FaceRecognizer类人脸识别
- EmguCV的配置与使用
- 在xna中输出摄像头数据(通过EmguCV)
- c# emgucv 获取外部摄像头(ip camera)
- EmguCV使用Stitcher类来拼接图像
- 使用emguCV/C# opencv绘制自定义直方图
- EmguCV之ImageBox和HistogramBox的使用
- 有关EmguCV使用技巧的简单汇总
- emgucv使用遇到的一些问题
- 旋转数组的最小数字
- idea多project
- 统计单词个数
- C语言查找字符
- getaddrinfo ENOTFOUND api.github.com api.github.com:443
- Emgucv摄像头使用
- Linux服务器上部署web环境
- 2017春招实习总结篇
- Vue-login 案例的学习(二)
- 【PHP学习笔记1】php基础介绍
- Java 反射最佳实践
- c++关于目录的创建与读取操作
- 算法---N以内2出现的次数
- 4.29