Hololens - 访问相机框架 [英] Hololens - Access Camera Frames

查看:33
本文介绍了Hololens - 访问相机框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 3D 模式下,如何从 hololens 相机访问视频流中的所有帧?我正在使用 C#.

How can I access all frames in a video stream from the hololens camera, when in 3D mode? I'm using C#.

unity VideoCapture 类似乎没有提供:http://docs.unity3d.com/550/Documentation/ScriptReference/VR.WSA.WebCam.VideoCapture.html

The unity VideoCapture class doesn't seem to provide this: http://docs.unity3d.com/550/Documentation/ScriptReference/VR.WSA.WebCam.VideoCapture.html

和带有方法 MediaCapture.StartPreviewToCustomSinkAsync 的 microsoft MediaCapture 类没有很好的文档记录.https://msdn.microsoft.com/en-us/library/windows/desktop/ms701626(v=vs.85).aspx

and the microsoft MediaCapture class with method MediaCapture.StartPreviewToCustomSinkAsync is not very well documented. https://msdn.microsoft.com/en-us/library/windows/desktop/ms701626(v=vs.85).aspx

推荐答案

您可以尝试使用 MediaCapture FrameReader API

You can try using the MediaCapture FrameReader API

文档:https://msdn.microsoft.com/en-gb/windows/uwp/audio-video-camera/process-media-frames-with-mediaframereader#create-a-frame-阅读器框架源

示例代码:https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CameraFrames

这篇关于Hololens - 访问相机框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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