Mercurial Hosting > traffic-intelligence
changeset 934:39691b460fca
bug correction
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jul 2017 15:36:59 -0400 |
parents | 8ac7f61c6e4f |
children | 0e63a918a1ca |
files | scripts/compute-homography.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/compute-homography.py Fri Jul 14 02:11:21 2017 -0400 +++ b/scripts/compute-homography.py Fri Jul 14 15:36:59 2017 -0400 @@ -57,7 +57,7 @@ plt.tight_layout() videoPts = np.array(plt.ginput(args.nPoints, timeout=3000)) if args.undistort: - videoPts = cvutils.newCameraProject(videoPts, np.linalg.inv(newCameraMatrix)) + videoPts = cvutils.newCameraProject(videoPts.T, np.linalg.inv(newCameraMatrix)).T print('Click on {} points in the world image'.format(args.nPoints)) plt.figure() plt.imshow(worldImg)