I deployed a WebApp based on a Python Flask server. It contains javascript which allows users to access their own camera from the website (via getUserMedia).
I like to feed and process this video stream directly on client-side by using python libraries (e.g. open-cv). However, I believe the python-code is executed server-side (I couldnt find an exact reference, I am new to WebDev).
I want to avoid streaming the video to the server first and then processing it. I already tried this and am not satisfied because of quality loss and latency issues.
EDIT: turns out it is not possible! I have been using WebSockets for streaming the video to a server instead. However, the streaming is encoded in base64 and now you probably know why this su***. I defintely want to avoid WebRTC because all examples I found online are outdated...