Cv2.videocapture(0) opencv not recieveing webcam video feed

I am using Opencv and I am able to receive video feed from webcam using cv2.videocapture(0) on localhost but after deploying the project I can’t access web cam feed

It shows blank

1 Like

I am not familiar with OpenCV. From opencv document I can find, cv2.videocapture(0) will capture video from the connected camera. I think it is why it doesn’t work after deploying it to Render since there is no connected camera in Render server.

So how can we fix it?

HI there,

Its hard to answer this question without more context. It may be best if you open a ticket directly with us.

Regards,

Keith
Render Support, UTC+10 :australia: