diff python/cvutils.py @ 628:977407c9f815

corrected bugs in loading interactions (index shifted) and added functionalities to play/plot interactions
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 16 Feb 2015 11:58:51 +0100
parents 9202628a4130
children 3058e00887bc
line wrap: on
line diff
--- a/python/cvutils.py	Mon Feb 16 08:41:14 2015 +0100
+++ b/python/cvutils.py	Mon Feb 16 11:58:51 2015 +0100
@@ -240,7 +240,7 @@
             else:
                 lastFrameNum = lastFrameNumArg
             nZerosFilename = int(ceil(log10(lastFrameNum)))
-            while ret and not quitKey(key) and frameNum < lastFrameNum:
+            while ret and not quitKey(key) and frameNum <= lastFrameNum:
                 ret, img = capture.read()
                 if ret:
                     if undistort: