Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/learn-motion-patterns.py @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 15 Jun 2018 11:19:10 -0400 |
| parents | 933670761a57 |
| children | d0e339359d8a |
comparison
equal
deleted
inserted
replaced
| 1027:6129296848d3 | 1028:cc5cb04b04b0 |
|---|---|
| 1 #! /usr/bin/env python3 | 1 #! /usr/bin/env python3 |
| 2 | 2 |
| 3 import sys, argparse | 3 import sys, argparse |
| 4 | 4 |
| 5 #import matplotlib.pyplot as plt | |
| 6 import numpy as np | 5 import numpy as np |
| 7 | 6 |
| 8 import ml, utils, storage, moving | 7 from trafficintelligence import ml, utils, storage, moving |
| 9 | 8 |
| 10 parser = argparse.ArgumentParser(description='The program learns prototypes for the motion patterns') #, epilog = '' | 9 parser = argparse.ArgumentParser(description='The program learns prototypes for the motion patterns') #, epilog = '' |
| 11 #parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file') | 10 #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', required = True) | 11 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file', required = True) |
| 13 parser.add_argument('-o', dest = 'outputPrototypeDatabaseFilename', help = 'name of the Sqlite database file to save prototypes') | 12 parser.add_argument('-o', dest = 'outputPrototypeDatabaseFilename', help = 'name of the Sqlite database file to save prototypes') |
