在 Surface Pro 中获取红外相机框架

obtaining the infra red camera frame in a surface pro

信息似乎很少,希望有人能给我指点一个sdk、libary、代码来从surface pro中的hello camera获取infra frame。

opencv 支持吗?

更多信息相机是 Intel AVStream Camera 2500,如 Surface pro 的设备管理器中所列。

据我所知,Media Foundation API 不支持红外摄像机。 Microsoft 没有更新 API 以将其扩展到此类输入,即使它是 technically possible when it comes to undocumented.

您可以通过为 UWP 开发提供的更新 API 读取红外帧:Process media frames with MediaFrameReader, the keyword there is this: MediaFrameSourceKind.Infrared。这个 API 建立在 Media Foundation 和传感器 APIs 之上,即使单独的底层 Media Foundation 没有等效的 public 接口,也能为您提供红外摄像头。

鉴于这是 UWP API,如果您需要 OpenCV,则可能无法将其与 OpenCV 一起安装。 UWP/OpenCV 桥接可能在此处提供帮助:Create a helper Windows Runtime component for OpenCV interop

由于 OpenCV 应该直接与传统的 Windows APIs、DirectShow 和 Media Foundation 接口,因此它不太可能立即捕获红外流,除非,当然,驱动程序本身将其表示为普通视频。 "Proper" Surface Pro 上的标记为红外线,因此,分别从提到的 API 和 OpenCV 中隐藏了传感器。