Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/display-trajectories.py @ 1246:2397de73770d
dltrack saves after projecting coordinates
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 09 Feb 2024 17:47:33 -0500 |
| parents | 371c718e57d7 |
| children | 8e61ff3cd503 |
comparison
equal
deleted
inserted
replaced
| 1245:371c718e57d7 | 1246:2397de73770d |
|---|---|
| 25 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to display', type = int) | 25 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to display', type = int) |
| 26 parser.add_argument('--save-images', dest = 'saveAllImages', help = 'save all images', action = 'store_true') | 26 parser.add_argument('--save-images', dest = 'saveAllImages', help = 'save all images', action = 'store_true') |
| 27 parser.add_argument('--nzeros', dest = 'nZerosFilenameArg', help = 'number of digits in filenames', type = int) | 27 parser.add_argument('--nzeros', dest = 'nZerosFilenameArg', help = 'number of digits in filenames', type = int) |
| 28 | 28 |
| 29 args = parser.parse_args() | 29 args = parser.parse_args() |
| 30 params, videoFilename, databaseFilename, invHomography, intrinsicCameraMatrix, distortionCoefficients, undistortedImageMultiplication, undistort, firstFrameNum = storage.processVideoArguments(args) | 30 params, videoFilename, databaseFilename, homography, invHomography, intrinsicCameraMatrix, distortionCoefficients, undistortedImageMultiplication, undistort, firstFrameNum = storage.processVideoArguments(args) |
| 31 | 31 |
| 32 if args.homographyFilename is not None: | 32 if args.homographyFilename is not None: |
| 33 invHomography = inv(loadtxt(args.homographyFilename)) | 33 invHomography = inv(loadtxt(args.homographyFilename)) |
| 34 if args.intrinsicCameraMatrixFilename is not None: | 34 if args.intrinsicCameraMatrixFilename is not None: |
| 35 intrinsicCameraMatrix = loadtxt(args.intrinsicCameraMatrixFilename) | 35 intrinsicCameraMatrix = loadtxt(args.intrinsicCameraMatrixFilename) |
| 36 if args.distortionCoefficients is not None: | 36 if args.distortionCoefficients is not None: |
| 37 distortionCoefficients = args.distortionCoefficients | 37 distortionCoefficients = args.distortionCoefficients |
| 38 if args.undistortedImageMultiplication is not None: | 38 if args.undistortedImageMultiplication is not None: |
