Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/dltrack.py @ 1264:dff5b678a33a
corrected bugs in dltrack
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 22 May 2024 17:11:40 -0400 |
| parents | 77fbd0e2ba7d |
| children | 0f5bebd62a55 |
comparison
equal
deleted
inserted
replaced
| 1263:39740c4668ac | 1264:dff5b678a33a |
|---|---|
| 44 params, videoFilename, databaseFilename, homography, invHomography, intrinsicCameraMatrix, distortionCoefficients, undistortedImageMultiplication, undistort, firstFrameNum = storage.processVideoArguments(args) | 44 params, videoFilename, databaseFilename, homography, invHomography, intrinsicCameraMatrix, distortionCoefficients, undistortedImageMultiplication, undistort, firstFrameNum = storage.processVideoArguments(args) |
| 45 | 45 |
| 46 if args.homographyFilename is not None: | 46 if args.homographyFilename is not None: |
| 47 homography = np.loadtxt(args.homographyFilename) | 47 homography = np.loadtxt(args.homographyFilename) |
| 48 if args.intrinsicCameraMatrixFilename is not None: | 48 if args.intrinsicCameraMatrixFilename is not None: |
| 49 intrinsicCameraMatrix = loadtxt(args.intrinsicCameraMatrixFilename) | 49 intrinsicCameraMatrix = np.loadtxt(args.intrinsicCameraMatrixFilename) |
| 50 if args.distortionCoefficients is not None: | 50 if args.distortionCoefficients is not None: |
| 51 distortionCoefficients = args.distortionCoefficients | 51 distortionCoefficients = np.array(args.distortionCoefficients) |
| 52 if args.firstFrameNum is not None: | 52 if args.firstFrameNum is not None: |
| 53 firstFrameNum = args.firstFrameNum | 53 firstFrameNum = args.firstFrameNum |
| 54 if args.lastFrameNum is not None: | 54 if args.lastFrameNum is not None: |
| 55 lastFrameNum = args.lastFrameNum | 55 lastFrameNum = args.lastFrameNum |
| 56 elif args.configFilename is not None: | 56 elif args.configFilename is not None: |
