Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 233:ab1a11176d7b
initial sqlite code and bug corrected in cvutils
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 04 Jul 2012 16:02:00 -0400 |
parents | b7612c6d5702 |
children | 584613399513 |
line wrap: on
line diff
--- a/python/cvutils.py Tue Jul 03 00:17:30 2012 -0400 +++ b/python/cvutils.py Wed Jul 04 16:02:00 2012 -0400 @@ -54,7 +54,7 @@ def loadPointCorrespondences(filename): '''Loads and returns the corresponding points in world (first 2 lines) and image spaces (last 2 lines)''' - from numpy.lib.io import loadtxt + from numpy.lib.npyio import loadtxt from numpy import float32 points = loadtxt(filename, dtype=float32) return (points[:2,:].T, points[2:,:].T) # (world points, image points)