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

前端 未结 3 608
清歌不尽
清歌不尽 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:40

    Under lab conditions you send full images

    You seem to be under lab conditions, so there is a simplistic, yet usable solution, just stream PNG's in Base64 using Websockets. On the client side (web browser) you just receive the base64 images and directly load them into the src of an . It works for lab scenarios very well, albeit slow.

提交回复
热议问题