使用Aforge捕获图像 [英] Image Capturing using Aforge

查看:88
本文介绍了使用Aforge捕获图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我一直在使用AForge在c#中启动网络摄像头.但是我无法捕获图像.任何人都可以答复如何在c#中使用Aforge捕获和保存图像.
谢谢.


I have been using AForge to start my Webcam in c#. But I couldn''t capture an image. Could any reply how to capture and save image using Aforge in c#.
Thank you.

推荐答案

请观看此视频: http://www.youtube.com/watch?v=j4tAbB258wc [ ^ ].

基本上,您需要使用AForge.Video.DirectShow.VideoCaptureDevice,请参见:
http://www.aforgenet.com/framework/docs/html/f4d3c2ba-605c-f066-f969-68260ce5e141.htm [ ^ ],
http://www.aforgenet.com/framework/docs/html/d07e8a0c-1820-0acd-5120-74a9afbe1417.htm [ ^ ],
http://aforge.googlecode.com/svn/trunk/Sources/Video.DirectShow/VideoCaptureDevice.cs [ ^ ].

您是否需要捕获单个静止图像?大多数摄像机都提供捕获它的选项,但是您应该对其进行检查,如上面引用的源代码的注释中所述.另请参见AForge.NET Andrew Kirillov 作者的解释. : Camera Vision-C#上的视频监视 [
Please watch this video: http://www.youtube.com/watch?v=j4tAbB258wc[^].

Basically, you need to use AForge.Video.DirectShow.VideoCaptureDevice, please see:
http://www.aforgenet.com/framework/docs/html/f4d3c2ba-605c-f066-f969-68260ce5e141.htm[^],
http://www.aforgenet.com/framework/docs/html/d07e8a0c-1820-0acd-5120-74a9afbe1417.htm[^],
http://aforge.googlecode.com/svn/trunk/Sources/Video.DirectShow/VideoCaptureDevice.cs[^].

Do you need to capture a single still image? Most cameras provide an option to capture it, but you should check it up, as explained in the comment to the source code referenced above. See also the explanation by the author of AForge.NET Andrew Kirillov in his CodeProject article: Camera Vision - video surveillance on C#[^].

—SA


这篇关于使用Aforge捕获图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆