Microsoft Media Foundation 网络摄像头界面 [英] Microsoft Media Foundation Webcam Interface

查看:27
本文介绍了Microsoft Media Foundation 网络摄像头界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直致力于开发一个 C++ 界面,以通过 Micrsoft Media Foundation 从所有类型的网络摄像头捕获图像.我已经编写了一些代码,可以连接多种类型的网络摄像头,并能够捕捉不同分辨率和格式的图像.

I've been working on a c++ interface to capture images from all types of webcams via the Micrsoft Media Foundation. I've already got a bit of code that can connect with several types of webcams and is able to capture images in different resolutions and formats.

我知道在 WinXP 下,可以使用 Direct Show 库更改网络摄像头的不同参数(例如白平衡、曝光时间等).不幸的是,Direct Show 库中可以轻松从网络摄像头捕获单个帧的界面已从 Win7 下的 Direct Show 中删除.有人知道我如何使用 Microsoft Media Foundation 或我可以与 Microsoft Media Foundation 结合的任何其他库来访问这些参数吗?

I know that under WinXP it is possible to change different parameters of the webcam (like white balance, exposure time e.g.) by using the Direct Show library. Unfortunately the interface in the Direct Show library that made it possible to easily capture single frames from a webcam is removed from Direct Show under Win7. Does anybody know how I can acces these parameters using Microsoft Media Foundation or any other library that I can combine with the Microsoft Media Foundation?

推荐答案

DirectShow 在 Windows 7 中还是不错的(最容易检查的是使用 GraphEditAMCap 来自 Windows SDK).然而,Media Foundation 在早期版本的 Windows 中缺乏必要的支持.

DirectShow is still good in Windows 7 (the easiest to check is using GraphEdit and AMCap from Windows SDK). Media Foundation however lacks essential support in earlier versions of Windows.

这篇关于Microsoft Media Foundation 网络摄像头界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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