如何在DirectShow或Media Foundation中拍摄静态照片 [英] How to take a still photo in either DirectShow or Media Foundation

查看:55
本文介绍了如何在DirectShow或Media Foundation中拍摄静态照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用DirectShow或Media Foundation API制作照片(静止图像)?

Is there a way to make a photo (still image) with either DirectShow or Media Foundation APIs?

我可以进行视频捕获,并且可以捕获第一帧,并称之为一天,但这不是照片。通常,相机具有独特的视频和照片模式,其中照片模式可提供更高的分辨率。

I got video capture working and I can just capture the very first frame and call it a day, but that's not what a photo is. Usually cameras have distinct video and photo modes, where photo mode allows for a lot greater resolution.

例如,我有Logitech HD Pro网络摄像头C920,它声称允许做15mp的照片。随附的软件可拍摄5168x2907的照片图像。到目前为止,我还没有在DirectShow或Media Foundation中看到任何照片模式,使用DirectShow或Media Foundation在视频模式下使用该摄像头可以拍摄的最高分辨率是2304x1536,RGB24或I420的帧率为2 FPS。 >

For example, I have Logitech HD Pro Webcam C920 and it claims to allow to do 15mp photos. The software that came with it takes 5168x2907 photo images. So far I haven't seen any photo mode in DirectShow or Media Foundation, and the highest resolution I can take with that webcam in a video mode using either DirectShow or Media Foundation is 2304x1536 with 2 FPS in either RGB24 or I420.

推荐答案

好像必须寻找 PIN_CATEGORY_STILL 的输出引脚。也有msdn文章捕获静止图像图钉中的图像

Looks like one must look for output pin of PIN_CATEGORY_STILL. There is also a msdn article Capturing an Image From a Still Image Pin.

这篇关于如何在DirectShow或Media Foundation中拍摄静态照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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