Mercurial Hosting > traffic-intelligence
diff scripts/display-trajectories.py @ 528:5585ebd8ad61
corrected bugs for trajectory display for new code versions
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 25 Jun 2014 16:52:34 -0400 |
parents | 1ba618fb0f70 |
children | 95276d310972 |
line wrap: on
line diff
--- a/scripts/display-trajectories.py Sat Jun 21 14:46:20 2014 -0400 +++ b/scripts/display-trajectories.py Wed Jun 25 16:52:34 2014 -0400 @@ -29,7 +29,10 @@ params = storage.TrackingParameters(args.configFilename) videoFilename = params.videoFilename databaseFilename = params.databaseFilename - homography = inv(params.homography) + if params.homography != None: + homography = inv(params.homography) + else: + homography = None intrinsicCameraMatrix = params.intrinsicCameraMatrix distortionCoefficients = params.distortionCoefficients undistortedImageMultiplication = params.undistortedImageMultiplication