How do I stream an openCV video to an HTML webpage?

前端 未结 3 633
清歌不尽
清歌不尽 2020-12-24 13:45

I am making a robot that will have a webcam on it to provide some simple object detection. For right now, I would like to simply stream the video to a webpage hosted on the

3条回答
  •  悲哀的现实
    2020-12-24 14:16

    Try to read this and this .

    So basically you have to use OpenCV capture the frames and pack them into specific formats that fit the streaming protocol, then from your server use HTML5 to put it on the page. You may need to use VLC or FFMepg to pack your cv::Mat. Hope this will be helpful.

提交回复
热议问题