Mercurial Hosting > traffic-intelligence
comparison scripts/display-trajectories.py @ 902:c69a8defe5c3
changed workflow of classify objects
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 22 Jun 2017 16:57:34 -0400 |
parents | 753a081989e2 |
children | c3e690c5536e |
comparison
equal
deleted
inserted
replaced
901:753a081989e2 | 902:c69a8defe5c3 |
---|---|
7 from numpy.linalg import inv | 7 from numpy.linalg import inv |
8 from numpy import loadtxt | 8 from numpy import loadtxt |
9 | 9 |
10 parser = argparse.ArgumentParser(description='The program displays feature or object trajectories overlaid over the video frames.', epilog = 'Either the configuration filename or the other parameters (at least video and database filenames) need to be provided.') | 10 parser = argparse.ArgumentParser(description='The program displays feature or object trajectories overlaid over the video frames.', epilog = 'Either the configuration filename or the other parameters (at least video and database filenames) need to be provided.') |
11 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file') | 11 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file') |
12 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file') | 12 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file (overrides the configuration file)') |
13 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file') | 13 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file (overrides the configuration file)') |
14 parser.add_argument('-t', dest = 'trajectoryType', help = 'type of trajectories to display', choices = ['feature', 'object'], default = 'feature') | 14 parser.add_argument('-t', dest = 'trajectoryType', help = 'type of trajectories to display', choices = ['feature', 'object'], default = 'feature') |
15 parser.add_argument('-o', dest = 'homographyFilename', help = 'name of the image to world homography file') | 15 parser.add_argument('-o', dest = 'homographyFilename', help = 'name of the image to world homography file') |
16 parser.add_argument('--intrinsic', dest = 'intrinsicCameraMatrixFilename', help = 'name of the intrinsic camera file') | 16 parser.add_argument('--intrinsic', dest = 'intrinsicCameraMatrixFilename', help = 'name of the intrinsic camera file') |
17 parser.add_argument('--distortion-coefficients', dest = 'distortionCoefficients', help = 'distortion coefficients', nargs = '*', type = float) | 17 parser.add_argument('--distortion-coefficients', dest = 'distortionCoefficients', help = 'distortion coefficients', nargs = '*', type = float) |
18 parser.add_argument('--undistorted-multiplication', dest = 'undistortedImageMultiplication', help = 'undistorted image multiplication', type = float) | 18 parser.add_argument('--undistorted-multiplication', dest = 'undistortedImageMultiplication', help = 'undistorted image multiplication', type = float) |