如何以编程方式从Microsoft LifeCam捕获8MP静止图像? [英] How to capture 8MP still image from a Microsoft LifeCam programatically?

查看:109
本文介绍了如何以编程方式从Microsoft LifeCam捕获8MP静止图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Microsoft LifeCam,它能够捕获8MP(3840 x 2160)静态jpg图像。

I have a Microsoft LifeCam that is capable of capturing 8MP (3840 x 2160) still jpg images.

在切换到以下位置时,使用LifeCam随附的软件此模式下,视频捕获被禁用。仅适用于静态照片。视频捕获最多只能达到1280 x 720。

Using the software that comes with the LifeCam when you switch to this mode then video capture is disabled. It is intended for still photos only. Video capture only goes up to 1280 x 720.

我看不到如何使用提供的软件以外的任何方法访问该功能。在GraphEdit中检查捕获设备时,只有1个引脚(称为捕获),并且仅提供视频。

I can't see how to get access to the functionality using any method other than the supplied software. When inspecting the capture device in GraphEdit there is only 1 pin (called "capture") and it only supplies video.

如何访问此功能(最好使用C#) ?

How can I access this functionality (preferably using C#)?

推荐答案

DirectShow用于视频捕获(流式视频),而不是静止图像。对于静止图像,您需要使用其他API: Windows图像采集(WIA)

DirectShow is intended for video capture (streaming video), not stills. For stills you need to use different API: Windows Image Acquisition (WIA).

我的理解是,使用后处理(例如超分辨率和插值)可以实现最高分辨率,并且该模式无法通过流视频驱动程序使用。

My understanding is that highest resolution is achieved using post-processing, such as superresolution and interpolation, and this mode is not available through streaming video driver.

规范说它只是5MP。 WIA(和TWAIN)驱动程序的可用性可能取决于操作系统版本。由于USB带宽限制,最大分辨率-甚至是非插值-都可以限制为压缩视频格式。这篇文章-无法使IAMStreamConfig.SetFormat()正常工作使用LifeCam Studio -枚举模式并显示该模型最多支持Full HD(1920x1080)分辨率。

The spec says it's 5MP only. WIA (and TWAIN) driver availability might be subject to operating system version. Due to USB bandwidth limits maximal resolution - even non-interpolated - can be limited to compressed video formats. This post - Can't make IAMStreamConfig.SetFormat() to work with LifeCam Studio - enumerates modes and shows that this model supports up to Full HD (1920x1080) resolutions.

这篇关于如何以编程方式从Microsoft LifeCam捕获8MP静止图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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