Mercurial Hosting > traffic-intelligence
changeset 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 | 04355e51d895 |
children | 2d34060db2e9 |
files | python/cvutils.py python/utils.py |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
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)
--- a/python/utils.py Tue Jul 03 00:17:30 2012 -0400 +++ b/python/utils.py Wed Jul 04 16:02:00 2012 -0400 @@ -317,6 +317,16 @@ return [int(x) for x in l.split(separator)] ######################### +# sqlite +######################### + +#def dropTable(db, tableName): + + +#def removeObjectsSqlite(filename): +# 'Removes the objects and object_features tables in the filename' + +######################### # running tests #########################