did small refactoring, probably broke a lot
This commit is contained in:
@@ -60,7 +60,8 @@ class VideoReader(object):
|
||||
def get_frame(self):
|
||||
succ, frame = self.cap.read()
|
||||
if not succ:
|
||||
raise ValueError('Error while reading video')
|
||||
raise ValueError('Error while reading video.\n' +
|
||||
'Or video is over.')
|
||||
self.ctr += 1
|
||||
if (self.ctr == self.cap.get(cv2.cv.CV_CAP_PROP_FRAME_COUNT) and
|
||||
self.loop):
|
||||
|
||||
Reference in New Issue
Block a user