Mercurial Hosting > traffic-intelligence
comparison scripts/process.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 | 73b124160911 |
children | 0d7e5e290ea3 |
comparison
equal
deleted
inserted
replaced
1027:6129296848d3 | 1028:cc5cb04b04b0 |
---|---|
8 #atplotlib.use('Agg') | 8 #atplotlib.use('Agg') |
9 import matplotlib.pyplot as plt | 9 import matplotlib.pyplot as plt |
10 from numpy import percentile | 10 from numpy import percentile |
11 from pandas import DataFrame | 11 from pandas import DataFrame |
12 | 12 |
13 import storage, events, prediction, cvutils, utils | 13 from trafficintelligence import storage, events, prediction, cvutils, utils |
14 from metadata import * | 14 from trafficintelligence.metadata import * |
15 | 15 |
16 parser = argparse.ArgumentParser(description='This program manages the processing of several files based on a description of the sites and video data in an SQLite database following the metadata module.') | 16 parser = argparse.ArgumentParser(description='This program manages the processing of several files based on a description of the sites and video data in an SQLite database following the metadata module.') |
17 # input | 17 # input |
18 parser.add_argument('--db', dest = 'metadataFilename', help = 'name of the metadata file', required = True) | 18 parser.add_argument('--db', dest = 'metadataFilename', help = 'name of the metadata file', required = True) |
19 parser.add_argument('--videos', dest = 'videoIds', help = 'indices of the video sequences', nargs = '*', type = int) | 19 parser.add_argument('--videos', dest = 'videoIds', help = 'indices of the video sequences', nargs = '*', type = int) |