Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/display-trajectories.py @ 337:dc2e68e936c7
work in progress
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sun, 16 Jun 2013 23:44:36 -0400 |
| parents | 1d90e9080cb2 |
| children | 7b865f4174aa |
comparison
equal
deleted
inserted
replaced
| 336:124f85c6cfae | 337:dc2e68e936c7 |
|---|---|
| 7 from numpy.linalg.linalg import inv | 7 from numpy.linalg.linalg import inv |
| 8 from numpy import loadtxt | 8 from numpy import loadtxt |
| 9 | 9 |
| 10 options, args = getopt.getopt(sys.argv[1:], 'hi:d:t:o:f:',['help']) | 10 options, args = getopt.getopt(sys.argv[1:], 'hi:d:t:o:f:',['help']) |
| 11 # alternative long names are a pain to support ,'video-filename=','database-filename=', 'type=' | 11 # alternative long names are a pain to support ,'video-filename=','database-filename=', 'type=' |
| 12 | |
| 13 # replace with argparse | |
| 14 # type parser.add_argument('-t', choices=['feature', 'object']) | |
| 12 | 15 |
| 13 options = dict(options) | 16 options = dict(options) |
| 14 | 17 |
| 15 print options, args | 18 print options, args |
| 16 | 19 |
