How do I embed web cam output on a browser?
I’ve created a game that uses OpenCV’s video capture function to open up a webcam, where the user can interact and score points using colour detection.
I’ve got the app running on xampp, started via a browser.
But on starting, The browser opens a new python window and the game can be played.
Is there a way to embed this window on a browser?
@FD, I'm not sure but it might help you: https://docs.opencv.org/master/d5/d10... (OpenCV.js tutorials).
yea, but probably on your localhost. once you put it on a "real" server, it won't have access to any camera.
(bad planning ;)
while you can try to write a small MJPEG server (that's a video protocol, look it up, please) to serve your video feed to the browser, you probably need to rewrite it all, so it uses the webbrowsers (local, client, not from your server) camera from html / js.
again, have a look at opencv.js.