diff python/cvutils.py @ 538:bd1ad468e928

corrected bug and added capability to save undistorted image
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 03 Jul 2014 13:57:32 -0400
parents 5585ebd8ad61
children 749672171789 97c5fef5b2d6
line wrap: on
line diff
--- a/python/cvutils.py	Wed Jul 02 17:43:16 2014 -0400
+++ b/python/cvutils.py	Thu Jul 03 13:57:32 2014 -0400
@@ -144,7 +144,7 @@
                     key = cv2.waitKey(wait)
             cv2.destroyAllWindows()
         else:
-            print('Video capture for {} failed'.format(videoFilename))
+            print('Video capture for {} failed'.format(filename))
 
     def getImagesFromVideo(videoFilename, firstFrameNum = 0, nFrames = 1, saveImage = False, outputPrefix = 'image'):
         '''Returns nFrames images from the video sequence'''