OpenCv error can’t open camera through video capture September 8, 2023 by Tarik I got the same error. Try changing 0 to -1 cap = cv2.VideoCapture(-1) This solved the issue.