Ask Your Question

Revision history [back]

I had the same issue and I solved this error by changing the address of the camera from

cap = cv2.VideoCapture(1)

to : cap = cv2.VideoCapture(0)