R
Railway13mo ago
doodsie

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
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
there is no camera connected to the server?
doodsie
doodsieOP13mo ago
No description
Brody
Brody13mo ago
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?
doodsie
doodsieOP13mo ago
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.
Brody
Brody13mo ago
you would indeed need to get a camera feed from the frontend and stream it to your backend
doodsie
doodsieOP13mo ago
umm how can i do that, im sorry im new about this
Brody
Brody13mo ago
I'm really sorry but these threads aren't for programming help
doodsie
doodsieOP13mo ago
anyways thank you brodyy!!!
Brody
Brody13mo ago
no problem, you can always google tutorials for what I just said you'd need to do though!
Want results from more Discord servers?
Add your server