Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 236:eb4525853030
added script to display trajectories
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 06 Jul 2012 01:03:52 -0400 |
parents | 584613399513 |
children | e0988a8ace0c |
line wrap: on
line diff
--- a/python/cvutils.py Thu Jul 05 23:32:14 2012 -0400 +++ b/python/cvutils.py Fri Jul 06 01:03:52 2012 -0400 @@ -143,7 +143,7 @@ print('frame {0}'.format(frameNum)) for obj in objects: if obj.existsAtInstant(frameNum): - if obj.getFirstInstant() == frameNum: + if not hasattr(obj, 'projectedPositions'): if homography != None: obj.projectedPositions = obj.positions.project(homography) else: