diff scripts/compute-homography.py @ 897:f5a49b603e8b

minor
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 14 Jun 2017 01:11:56 -0400
parents 739acd338cc0
children 8ac7f61c6e4f
line wrap: on
line diff
--- a/scripts/compute-homography.py	Thu Jun 01 17:55:40 2017 -0400
+++ b/scripts/compute-homography.py	Wed Jun 14 01:11:56 2017 -0400
@@ -92,12 +92,12 @@
     if args.undistort:        
         [map1, map2] = cvutils.computeUndistortMaps(videoImg.shape[1], videoImg.shape[0], args.undistortedImageMultiplication, np.loadtxt(args.intrinsicCameraMatrixFilename), args.distortionCoefficients)
         videoImg = cv2.remap(videoImg, map1, map2, interpolation=cv2.INTER_LINEAR)
-    print('Click on {0} points in the video frame'.format(args.nPoints))
+    print('Click on {} points in the video frame'.format(args.nPoints))
     plt.figure()
     plt.imshow(videoImg)
     plt.tight_layout()
     videoPts = np.array(plt.ginput(args.nPoints, timeout=3000))
-    print('Click on {0} points in the world image'.format(args.nPoints))
+    print('Click on {} points in the world image'.format(args.nPoints))
     plt.figure()
     plt.imshow(worldImg)
     plt.tight_layout()