如何在Windows 7中访问网络摄像头 [英] How to access the Webcam in Windows 7

查看:140
本文介绍了如何在Windows 7中访问网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个简单的程序,将网络摄像头中的视频转换为ASCII文本,例如ASCII艺术视频.我目前拥有Visual Studio 2008,并将很快升级到VS2010.我的机器是Windows 7、64位.我的问题是,我可以使用哪个SDK,该SDK允许我从网络摄像头中获取帧,处理这些帧,然后将它们显示在窗口中.我知道,如果我在2005年会问这个问题,我只会使用avicap32.dll.但是据我了解,这已被Microsoft Media Foundation取代.在Media Foundation中,从网络摄像头框架中提取RGB数据并将其转换为文本似乎非常困难.所以我的问题是,我应该使用什么?我应该尝试返回并使用DirectShow库吗?

I am trying to write a a simple program that converts video from my webcam into ASCII text, like an ASCII art video. I currently have Visual Studio 2008, and will soon upgrade to VS 2010. My machine is Windows 7, 64 bit. My question is, which SDK can I use which will allow me to take frames from my webcam, process the frames, and then display them in a window. I know that if I would have asked this question in 2005, I would simply use avicap32.dll. As I understand it, though, this has been superceded by Microsoft Media Foundation. Extracting RGB data from a webcam frame and converting to text seems really difficult in Media Foundation. So my question is, what should I use? Should I try to go back and use the DirectShow libraries?

Thanks in advance!

推荐答案

尝试一下OpenCV库,它完全支持相机和图像处理,并且完全免费;)

我不确定这个项目的网络是什么,但是这里有指向OpenCV Wiki的链接.您可以在那里找到所需的任何内容.

http://opencv.willowgarage.com/wiki/
Try out OpenCV library which has very nice support for cameras and image processing at all and its for free ;)

I''m not sure whats the web of this projectbut here''s link to OpenCV wiki. You can find anything you need there.

http://opencv.willowgarage.com/wiki/


这篇关于如何在Windows 7中访问网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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