Hololens-存取相机镜框 [英] Hololens - Access Camera Frames

查看:168
本文介绍了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#.

统一的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://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CameraFrames

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

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