# HG changeset patch # User Nicolas Saunier # Date 1390803716 18000 # Node ID 51810d737d866751efcfd3ab04e0ad971ddb23d8 # Parent eb8baa080470d8283f694a7b2281207c3a40cd97 timeout in compute-homography.py for Paul diff -r eb8baa080470 -r 51810d737d86 scripts/compute-homography.py --- 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