[英]UWP get live webcam video stream
I was looking into the MediaCapture
class, however it doesn't seem to expose what I'm looking for. 我正在调查MediaCapture
类,但它似乎没有揭示我正在寻找的东西。 I want the live Stream
from the web cam - not to record it or preview it. 我想活Stream
从网络摄像头-不记录,或预览。 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 Cognitive Services Emotion API ,我想要遵循这个示例 ,但不是从文件系统获取本地视频流 - 我想从网络摄像头获取Stream
。
The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is not supported. Microsoft认知服务视频API(包括Emotion)是REST API,而不是流API,因此不支持您的方案。
What you can do instead is periodically capture a frame and make RESTful calls to one of the image APIs. 你可以做的是定期捕获一个帧并对其中一个图像API进行RESTful调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.