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.