UWP获取实时网络摄像头视频流 [英] UWP get live webcam video stream
问题描述
我正在查看 MediaCapture
类,但是它没有似乎没有透露我在寻找什么.我想要网络摄像头中的实时Stream
-不要记录或预览.我正在使用 Microsoft Cognitive Services Emotion API (Microsoft认知服务Emotion API),并且我想关注
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.
推荐答案
Microsoft认知服务视频API(包括Emotion)是REST API,不是流API,因此不支持您的方案.
The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is not supported.
您可以做的是定期捕获一个帧,并对其中一个图像API进行RESTful调用.
What you can do instead is periodically capture a frame and make RESTful calls to one of the image APIs.
这篇关于UWP获取实时网络摄像头视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!