3

I am trying to create a web-app and I need to get video input from the webcam into Javascript or HTML and pass it to Python (Django) where I can use OpenCV with each frame.

1 Answers1

2

You can use the WebRTC APIs to capture or stream video from the camera. You can check this documentation on it https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API.

And also this WebRTC implementation for Python https://github.com/aiortc/aiortc

I hope the links are of use.

fabrv
  • 384
  • 1
  • 4
  • 15