简体   繁体   中英

How do i access my webcam with python (Django) from the browser with the help of HTML and Javascript?

我正在尝试创建一个网络应用程序,我需要将来自网络摄像头的视频输入转换为 Javascript 或 HTML 并将其传递给 Python (Django),在那里我可以对每一帧使用 OpenCV。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM