This link contains a small example of how to use the OpenCV library for python, cv2 to stream data from the camera to the python shell. I want to do some experiments and would like to use the following YouTube video: https://www.youtube.com/watch?v=oCUqsPLvYBQ .
I tried to adapt the example as follows:
import numpy as np import cv2 cap = cv2.VideoCapture('https://www.youtube.com/watch?v=oCUqsPLvYBQ') while(True):
What causes the error:
WARNING: Couldn't read movie file https:
Is there a simple fix that will allow me to transfer this video to my python shell via cv2 ? Not entirely committed to cv2 if there are other libraries that will accomplish the same goal.
Aaron source share