# HG changeset patch # User Nicolas Saunier # Date 1341432120 14400 # Node ID ab1a11176d7b18f165a727d2b4d389272804eeb4 # Parent 04355e51d895a45334858f1cc16ee8dfbf9fe6db initial sqlite code and bug corrected in cvutils diff -r 04355e51d895 -r ab1a11176d7b python/cvutils.py --- 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) diff -r 04355e51d895 -r ab1a11176d7b python/utils.py --- 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 #########################