Mercurial Hosting > traffic-intelligence
changeset 673:5505f9dbb28e
corrected import bug
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 26 May 2015 15:02:47 +0200 |
parents | 5473b7460375 |
children | 01b89182891a |
files | python/cvutils.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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