Hololens-存取相机镜框 [英] Hololens - Access Camera Frames
问题描述
在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屋!