loading
Error about connecting my camera to my web app
My system camera is working fine when running it on local, i encountered this problem when i connected it on railway.app
When i am running a Flask app on a server, attempting to open the camera using cv2.VideoCapture(0) will typically refer to the camera connected to the server where my app is hosted, not the user's camera.
10 Replies
Project ID:
N/A
there is no camera connected to the server?
I'm very confused as to what you would expect to happen when trying to capture from a camera while running on Railway? what camera could it possibly capture from?
It seems like my system is trying to open the camera of the server instead of opening the camera of the user
To access the user's camera, you'll need to involve the client-side (front-end) technologies, such as JavaScript. You can use the browser's capabilities to access the user's camera using the WebRTC API.
you would indeed need to get a camera feed from the frontend and stream it to your backend
umm how can i do that, im sorry im new about this
I'm really sorry but these threads aren't for programming help
anyways thank you brodyy!!!
no problem, you can always google tutorials for what I just said you'd need to do though!