Mercurial Hosting > traffic-intelligence
comparison scripts/dltrack.py @ 1280:2abeccdbb985 default tip
removing print debug
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 03 Jul 2024 15:13:15 -0400 |
parents | 8e61ff3cd503 |
children |
comparison
equal
deleted
inserted
replaced
1279:9562f5e8edf8 | 1280:2abeccdbb985 |
---|---|
40 parser.add_argument('--cyclist-match-prop', dest = 'cyclistMatchingProportion', help = 'minimum proportion of time a bike exists and is associated with a pedestrian to be merged as cyclist', type = float, default = 0.3) | 40 parser.add_argument('--cyclist-match-prop', dest = 'cyclistMatchingProportion', help = 'minimum proportion of time a bike exists and is associated with a pedestrian to be merged as cyclist', type = float, default = 0.3) |
41 #parser.add_argument('--max-temp-overal', dest = 'maxTemporalOverlap', help = 'maximum proportion of time to merge 2 bikes associated with same pedestrian', type = float, default = 0.05) | 41 #parser.add_argument('--max-temp-overal', dest = 'maxTemporalOverlap', help = 'maximum proportion of time to merge 2 bikes associated with same pedestrian', type = float, default = 0.05) |
42 | 42 |
43 args = parser.parse_args() | 43 args = parser.parse_args() |
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 | |
46 print(params, videoFilename, databaseFilename, homography) | |
47 | 45 |
48 if args.homographyFilename is not None: | 46 if args.homographyFilename is not None: |
49 homography = np.loadtxt(args.homographyFilename) | 47 homography = np.loadtxt(args.homographyFilename) |
50 if args.intrinsicCameraMatrixFilename is not None: | 48 if args.intrinsicCameraMatrixFilename is not None: |
51 intrinsicCameraMatrix = np.loadtxt(args.intrinsicCameraMatrixFilename) | 49 intrinsicCameraMatrix = np.loadtxt(args.intrinsicCameraMatrixFilename) |