Mercurial Hosting > traffic-intelligence
diff python/storage.py @ 482:f6415f012640
adding functionalities (save images directly to display trajectories to create movies
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 02 Apr 2014 16:12:24 -0400 |
parents | a2ff03a52b73 |
children | 343cfd185ca6 |
line wrap: on
line diff
--- a/python/storage.py Wed Apr 02 01:45:53 2014 -0400 +++ b/python/storage.py Wed Apr 02 16:12:24 2014 -0400 @@ -252,8 +252,8 @@ connection.commit() connection.close() -def loadIndicators(filename): - '''Loads interaction indicators +def loadInteractions(filename): + '''Loads interaction and their indicators TODO choose the interactions to load''' interactions = [] @@ -295,7 +295,7 @@ # CREATE TEMP TABLE IF NOT EXISTS object_instants AS SELECT OF.object_id, min(frame_number) as first_instant, max(frame_number) as last_instant from positions P, objects_features OF where P.trajectory_id = OF.trajectory_id group by OF.object_id order by OF.object_id def createBoundingBoxTable(filename, invHomography = None): - '''Create the table to store the object bounding boxes + '''Create the table to store the object bounding boxes in image space ''' connection = sqlite3.connect(filename) cursor = connection.cursor()