I am using ubuntu16.04 and trying to run opencv script. when i use:
video_capture = cv2.VideoCapture(-1)
it gives me error VIDEOIO ERROR: V4L: can't find camera device No video window opens But when i run
video_capture = cv2.VideoCapture('test.jpg')
It opens window shows the picture and close the window. Please tell me why it is not streaming video directly from camera.