Solving Problem opencv 4.x.x video stream failed


I hope this can help

Change

videocapture = cv2.VideoCapture(0 )

to

videocapture = cv2.VideoCapture(0 , cv2.CAP_V4L )