UWP get live webcam video stream

心不动则不痛 提交于 2019-12-01 03:23:05

问题


I was looking into the MediaCapture class, however it doesn't seem to expose what I'm looking for. I want the live Stream from the web cam - not to record it or preview it. I'm working on the Microsoft Cognitive Services Emotion API and I want to follow this example, but instead of getting a local video stream from the file system - I want to get a Stream from a web cam.


回答1:


The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is not supported.

What you can do instead is periodically capture a frame and make RESTful calls to one of the image APIs.



来源:https://stackoverflow.com/questions/37945265/uwp-get-live-webcam-video-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!