Mercurial Hosting > traffic-intelligence
diff python/compute-homography.py @ 302:9d88a4d97473
corrected bug in compute-homography
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 18 Mar 2013 23:37:45 -0400 |
parents | be3761a09b20 |
children |
line wrap: on
line diff
--- a/python/compute-homography.py Mon Mar 11 01:07:08 2013 -0400 +++ b/python/compute-homography.py Mon Mar 18 23:37:45 2013 -0400 @@ -71,7 +71,7 @@ homography = np.array([]) if '-p' in options.keys(): - worldPts, videoPts = cvutils.loadPointCorrespondences(args[0]) + worldPts, videoPts = cvutils.loadPointCorrespondences(options['-p']) homography, mask = cv2.findHomography(videoPts, worldPts) # method=0, ransacReprojThreshold=3 elif '-i' in options.keys() and '-w' in options.keys(): nPoints = 4