Mercurial Hosting > traffic-intelligence
comparison scripts/nomad/site-parameters-optimization.py @ 1189:ccab20f85710
changed to better parameters
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sat, 25 Jun 2022 01:09:20 +0200 |
parents | 7117a31555c1 |
children | d24d57e4de24 |
comparison
equal
deleted
inserted
replaced
1188:82fc21f6dfdf | 1189:ccab20f85710 |
---|---|
95 gf = ['feature-based-tracking', config, '--gf', '--video-filename', video, '--database-filename', db, '--homography-filename', homo, '--mask-filename', mask] | 95 gf = ['feature-based-tracking', config, '--gf', '--video-filename', video, '--database-filename', db, '--homography-filename', homo, '--mask-filename', mask] |
96 #run in command line and print directly | 96 #run in command line and print directly |
97 subprocess.check_output(gf + para[8:16]) # ['--min-feature-time', 'x', '--mm-connection-distance', 'x', '--mm-segmentation-distance', 'x', '--min-nfeatures-group', 'x'] | 97 subprocess.check_output(gf + para[8:16]) # ['--min-feature-time', 'x', '--mm-connection-distance', 'x', '--mm-segmentation-distance', 'x', '--min-nfeatures-group', 'x'] |
98 | 98 |
99 def computeMota(annotations, objects, Mota): | 99 def computeMota(annotations, objects, Mota): |
100 matchingDistance = 500 | 100 matchingDistance = 5 |
101 firstInstant = 0 | 101 firstInstant = 0 |
102 lastInstant = 50000 | 102 lastInstant = 50000 |
103 return moving.computeClearMOT(annotations, objects, matchingDistance, firstInstant, lastInstant)[1] | 103 return moving.computeClearMOT(annotations, objects, matchingDistance, firstInstant, lastInstant)[1] |
104 | 104 |
105 | 105 |