Mercurial > hg > nsaunier > traffic-intelligence
diff scripts/compute-homography.py @ 795:a34ec862371f
merged with dev branch
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 09 May 2016 15:33:11 -0400 |
| parents | bf4a1790cfac |
| children | 1fdafa9f6bf4 |
line wrap: on
line diff
--- a/scripts/compute-homography.py Tue Nov 03 13:48:56 2015 -0500 +++ b/scripts/compute-homography.py Mon May 09 15:33:11 2016 -0400 @@ -100,10 +100,12 @@ print('Click on {0} 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)) plt.figure() plt.imshow(worldImg) + plt.tight_layout() worldPts = args.unitsPerPixel*np.array(plt.ginput(args.nPoints, timeout=3000)) plt.close('all') homography, mask = cv2.findHomography(videoPts, worldPts)
