1. Nicolas Saunier
  2. TrafficIntelligence

Commits

Nicolas Saunier  committed 95276d3

renamed TrackingParameters to ProcessParameters

  • Participants
  • Parent commits 5ad2f51
  • Branches default

Comments (0)

Files changed (4)

File python/storage.py

View file
 # Utils to read .ini type text files for configuration, meta data...
 #########################
 
-class TrackingParameters:
-    '''Class for tracking and safety parameters
+class ProcessParameters:
+    '''Class for all parameters controlling data processing: input, method parameters, etc. for tracking, classification and safety
 
     Note: framerate is already taken into account'''
 

File scripts/classify-objects.py

View file
 import cvutils, moving, ml
 
 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene')
+parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True)
 parser.add_argument('-d', dest = 'directoryName', help = 'name of the parent directory containing the videos and extracted trajectories to process', required = True)
-parser.add_argument('-o', dest = 'homographyFilename', help = 'name of the image to world homography file')
+# parser.add_argument('-o', dest = 'homographyFilename', help = 'name of the image to world homography file')
 # need a classification config file for speed distribution parameters, svm models, frequency parameters, area parameters etc
 #parser.add_argument('--cfg', dest = 'svmType', help = 'SVM type', default = SVM_C_SVC, type = long)
 
 #parser.add_argument('-o', dest = 'nOrientations', help = 'number of orientations in HoG', default = 9, type = int)
 #parser.add_argument('-p', dest = 'nPixelsPerCell', help = 'number of pixels per cell', default = 8, type = int)
 #parser.add_argument('-c', dest = 'nCellsPerBlock', help = 'number of cells per block', default = 2, type = int)
+
 args = parser.parse_args()
-
-print('TODO') # add all parameters for classification (distribution parameters)
+params = storage.ProcessParameters(args.configFilename)

File scripts/display-trajectories.py

View file
 args = parser.parse_args()
 
 if args.configFilename: # consider there is a configuration file
-    params = storage.TrackingParameters(args.configFilename)
+    params = storage.ProcessParameters(args.configFilename)
     videoFilename = params.videoFilename
     databaseFilename = params.databaseFilename
     if params.homography != None:

File scripts/safety-analysis.py

View file
 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true')
 args = parser.parse_args()
 
-params = storage.TrackingParameters()
-params.loadConfigFile(args.configFilename)
+params = storage.ProcessParameters(args.configFilename)
 
 # parameters for prediction methods
 if args.predictionMethod: