简体   繁体   中英

Get video frames from webcam in HTML and use it for OPENCV python

I know it may sound very simple for most of you but i need to get video (Frame by frame) from HTML or java script and use it in python OPENCV. I am already experienced with python OPENCV, Deeplearning etc but i have no idea about HTML or JS and how to use Frame from any device(Mobile,Laptop) camera. I need to make python app. So need to know some way to get frame from HTML and use it in python code. Thank you in advance for all the help.

So i actually used html getmedia to get webcam/camera feed (using JS). Then i used that image in byte format. Convert it in PIL/opencv, preprocess it (or do whatever i want) and turned it back in bytes for html page viewing.

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