I am reading an avi file usinh python 2.7 and opencv2.4.I am using windows 10.My sample code is
import numpy as np import cv2 cap = cv2.VideoCapture(\'videos
When you put cap.isOpened() it check that, the video is read properly, So the while loop is not working there.
cap.isOpened()
while
But when you changed to while True it will execute without proper reading that's why it's giving an error.
while True
Make sure than you are properly reading the video file.