Reputation: 31
I am new to frontend/javascript development. Is there any simple solution to stream a HTML5 MediaDevice stream to flask? I have a simple flask server running, which does image processing via OpenCV and outputs the result as a jpeg stream.
Currently, I am using a USB camera as input device, but I want to use a web based solution. Overall, the input should be captured in the browser, send to the server for processing, and finally transferred back to the client.
Upvotes: 3
Views: 2173
Reputation: 31
https://www.kirupa.com/html5/accessing_your_webcam_in_html5.htm
well, this will give you a little idea how to proceed, I found your question while searching solution for myself.
further steps will include sending frames to the flask server -> processing image -> returning image -> displaying frames by javascript/HTML as shown in the above article.
hope this will help
Upvotes: 1