如何编写代码以捕获网络摄像头图像 [英] how to write code to capture web cam image

查看:94
本文介绍了如何编写代码以捕获网络摄像头图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在学习vc ++,您能提供一个代码来捕获使用vc ++ mfc的网络摄像头(usb)拍摄的图像,并且应将其存储在文件中.
以便以后可以将该文件从服务器传输到客户端.
如果没有代码,请告诉我该方法可以在其中调用的站点,以便我纠正我的问题.

i am learning vc++ can u please provide a code to capture a image taken by webcam(usb) using vc++ mfc''s and that should be stored in an file.
such that later that file can be transfered to clients from server.
if not code tell me the site where the method calls available such that i will rectify my problem.

推荐答案

DirectShow中有一个名为AMCap的示例Windows SDK的样本,教您如何完成.

在此处下载Windows SDK- Windows SDK [
There is a sample called AMCap in the DirectShow samples of the Windows SDK that teaches you how it''s done.

Download the Windows SDK here - Windows SDK[^]

AMCap is available in the following path - [SDK Install Directory]\ Samples\ Multimedia\ DirectShow\ Capture\ AmCap


在CodeProject上有许多文章介绍使用DirectShow进行视频捕获.

http://www.codeproject.com/KB/audio-video/#Audio&视频-DirectShow
There are number of articles on CodeProject for video capturing using DirectShow.

http://www.codeproject.com/KB/audio-video/#Audio & Video - DirectShow


您可以使用框架(请参见上面的答案)执行此操作,也可以创建内核模式驱动程序.

问候,

K,D.
you can do this using a framework (see above answers) or you can create a kernel mode driver.

Regards,

K,D.


这篇关于如何编写代码以捕获网络摄像头图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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