changeset 443:51810d737d86

timeout in compute-homography.py for Paul
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 27 Jan 2014 01:21:56 -0500
parents eb8baa080470
children 4a62c3b1eb3a
files scripts/compute-homography.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/compute-homography.py	Mon Jan 27 01:19:19 2014 -0500
+++ b/scripts/compute-homography.py	Mon Jan 27 01:21:56 2014 -0500
@@ -85,11 +85,11 @@
     print('Click on {0} points in the video frame'.format(nPoints))
     plt.figure()
     plt.imshow(videoImg)
-    videoPts = np.array(plt.ginput(nPoints))
+    videoPts = np.array(plt.ginput(nPoints, timeout=3000))
     print('Click on {0} points in the world image'.format(nPoints))
     plt.figure()
     plt.imshow(worldImg)
-    worldPts = unitsPerPixel*np.array(plt.ginput(nPoints))
+    worldPts = unitsPerPixel*np.array(plt.ginput(nPoints, timeout=3000))
     plt.close('all')
     homography, mask = cv2.findHomography(videoPts, worldPts)
     # save the points in file