Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 673:5505f9dbb28e
corrected import bug
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 26 May 2015 15:02:47 +0200 |
parents | 5473b7460375 |
children | da1352b89d02 |
line wrap: on
line diff
--- a/python/cvutils.py Tue May 26 13:53:40 2015 +0200 +++ b/python/cvutils.py Tue May 26 15:02:47 2015 +0200 @@ -483,7 +483,7 @@ def invertHomography(homography): '''Returns an inverted homography Unnecessary for reprojection over camera image''' - from numpy import inv + from numpy.linalg import inv invH = inv(homography) invH /= invH[2,2] return invH