Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 858:2faabcbde2c4
minor improvements
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 11 Oct 2016 17:57:50 -0400 |
parents | 26daf35180ad |
children | 8f28b4fcf129 |
line wrap: on
line diff
--- a/python/cvutils.py Thu Oct 06 17:16:31 2016 -0400 +++ b/python/cvutils.py Tue Oct 11 17:57:50 2016 -0400 @@ -244,7 +244,7 @@ ret = False capture.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, firstFrameNum) frameNum = firstFrameNum - while frameNum<=lastFrameNum and frameNum<rawCount: + while frameNum<lastFrameNum and frameNum<rawCount: ret, img = capture.read() i = 0 while not ret and i<10: