Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/classify-objects.py @ 1240:bb14f919d1cb
cleaned use of centile (np only) and added info in classify-objects
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 05 Feb 2024 14:14:14 -0500 |
| parents | 5654c9173548 |
| children | ab4c72b9475c |
comparison
equal
deleted
inserted
replaced
| 1239:31173c4699d2 | 1240:bb14f919d1cb |
|---|---|
| 8 | 8 |
| 9 from trafficintelligence import cvutils, moving, ml, storage, utils | 9 from trafficintelligence import cvutils, moving, ml, storage, utils |
| 10 | 10 |
| 11 # TODO add mode detection live, add choice of kernel and svm type (to be saved in future classifier format) | 11 # TODO add mode detection live, add choice of kernel and svm type (to be saved in future classifier format) |
| 12 | 12 |
| 13 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene') | 13 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene', epilog='The integer ids for the categories are stored in the moving module:\n{}'.format(moving.userType2Num)) |
| 14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) | 14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) |
| 15 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file (overrides the configuration file)') | 15 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file (overrides the configuration file)') |
| 16 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file (overrides the configuration file)') | 16 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file (overrides the configuration file)') |
| 17 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to classify', type = int, default = None) | 17 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to classify', type = int, default = None) |
| 18 parser.add_argument('--start-frame0', dest = 'startFrame0', help = 'starts with first frame for videos with index problem where frames cannot be reached', action = 'store_true') | 18 parser.add_argument('--start-frame0', dest = 'startFrame0', help = 'starts with first frame for videos with index problem where frames cannot be reached', action = 'store_true') |
