changeset 960:0c1d1eeef544

corrected bug on new computer
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 20 Oct 2017 16:59:32 -0400
parents 4f32d82ca390
children ec1682ed999f
files scripts/compute-homography.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/compute-homography.py	Thu Aug 24 17:22:24 2017 -0400
+++ b/scripts/compute-homography.py	Fri Oct 20 16:59:32 2017 -0400
@@ -52,6 +52,7 @@
         [map1, map2], newCameraMatrix = 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 {} points in the video frame'.format(args.nPoints))
+    plt.ion()
     plt.figure()
     plt.imshow(videoImg)
     plt.tight_layout()