I am using Windows 7 and I have installed python3.6 in it. I have created a virtual environment in which I have installed openCV using pip3 install
(it appears as follows in my pip3 list: opencv-python 3.4.1.15).
When I stream a video direclty from the webcam of the laptop it works and frame
is a 'numpy.ndarray':
frame= cv2.VideoCapture(0)
However, when I try to read it from an external .avi file, frame
appears to be empty:
frame=cv2.VideoCapture(video.avi)
My question is similar to this one [1], and apparently the solution they have provided him is adding some dll opencv files to the windows path. However, I am not sure how I could do that if I installed the opencv with pip inside my virtualenv.