使用vs2008 C#从网络摄像头捕获图像 [英] capture an image from web camera using vs2008 c#

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

问题描述

我正在创建Windows项目,我想从网络摄像机捕获图像.我如何为此功能编写代码.

请提供适当的解决方案.

感谢

I am creating an windows project and I want capture an image from web camera. How I can code for this functionality.

Please give proper solution.

thanks

推荐答案

这取决于相机驱动程序.如果它是标准Windows映像设备(WIA),则可以使用WIA方法.
如果摄像机具有标准的DirectShow捕获驱动程序,则可以使用Microsoft的DirectX Media SDK进行捕获,但是除非您对C ++非常满意,否则您可能希望使用DirectShow之上的库来简化生活.
我们正在使用名为Leadtools的第三方多媒体工具包来捕获来自网络摄像头的图像.有关更多信息,请参见以下链接:
http://support.leadtools.com/CS/forums/10345/ShowPost.aspx
This depends on the camera driver. If it''s a standard Windows imaging device (WIA), you can use the WIA approach.
If the camera has a standard DirectShow capture driver, you can use DirectX Media SDK from Microsoft to capture from it, but unless you''re very good with C++, you might want to use a library built on top of DirectShow to make life easier.
We are using a third-party multimedia toolkit named leadtools to capture images from our web cameras. For more information, please see the below link:
http://support.leadtools.com/CS/forums/10345/ShowPost.aspx


尝试
使用WIA的WebCam快速图像捕获服务 [ ^ ]
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId = 1339& lngWId = 10 [ http://code.google.com/p/webcam-capture/ [
Try
WebCam Fast Image Capture Service using WIA[^]
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10[^]
http://code.google.com/p/webcam-capture/[^] (I have never tried this before though).


请参阅此页面

http://social.msdn.microsoft.com/Forums/ar/csharpgeneral/thread/6c827f62-59bc-4f2d-be5f-647ee7bd58cd [
Refer this page

http://social.msdn.microsoft.com/Forums/ar/csharpgeneral/thread/6c827f62-59bc-4f2d-be5f-647ee7bd58cd[^]


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

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