comparison scripts/display-trajectories.py @ 393:eaf7765221d9

added code to create bounding boxes and display them (inc scripts)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 26 Jul 2013 02:12:08 -0400
parents 1917db662aa7
children d337bffd7283
comparison
equal deleted inserted replaced
392:dd4970f4221f 393:eaf7765221d9
35 homography = inv(loadtxt(args.homography)) 35 homography = inv(loadtxt(args.homography))
36 if args.firstFrameNum != None: 36 if args.firstFrameNum != None:
37 firstFrameNum = args.firstFrameNum 37 firstFrameNum = args.firstFrameNum
38 38
39 objects = storage.loadTrajectoriesFromSqlite(databaseFilename, args.trajectoryType) 39 objects = storage.loadTrajectoriesFromSqlite(databaseFilename, args.trajectoryType)
40 cvutils.displayTrajectories(videoFilename, objects, homography, firstFrameNum, rescale = args.rescale) 40 boundingBoxes = storage.loadBoundingBoxTable(databaseFilename)
41 cvutils.displayTrajectories(videoFilename, objects, boundingBoxes, homography, firstFrameNum, rescale = args.rescale)