Mercurial > hg > nsaunier > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 527:37830a831818 | 528:5585ebd8ad61 |
|---|---|
| 27 | 27 |
| 28 if args.configFilename: # consider there is a configuration file | 28 if args.configFilename: # consider there is a configuration file |
| 29 params = storage.TrackingParameters(args.configFilename) | 29 params = storage.TrackingParameters(args.configFilename) |
| 30 videoFilename = params.videoFilename | 30 videoFilename = params.videoFilename |
| 31 databaseFilename = params.databaseFilename | 31 databaseFilename = params.databaseFilename |
| 32 homography = inv(params.homography) | 32 if params.homography != None: |
| 33 homography = inv(params.homography) | |
| 34 else: | |
| 35 homography = None | |
| 33 intrinsicCameraMatrix = params.intrinsicCameraMatrix | 36 intrinsicCameraMatrix = params.intrinsicCameraMatrix |
| 34 distortionCoefficients = params.distortionCoefficients | 37 distortionCoefficients = params.distortionCoefficients |
| 35 undistortedImageMultiplication = params.undistortedImageMultiplication | 38 undistortedImageMultiplication = params.undistortedImageMultiplication |
| 36 undistort = params.undistort | 39 undistort = params.undistort |
| 37 firstFrameNum = params.firstFrameNum | 40 firstFrameNum = params.firstFrameNum |
