diff scripts/classify-objects.py @ 1169:9f7a4a026dab

correcting bug in classify objects that ignored the parameter for centile aggregation of speed, if used in classifier.cfg (updated pip version)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 19 Jul 2021 11:25:16 -0400
parents 49c0bb6eacc2
children d478d3122804
line wrap: on
line diff
--- a/scripts/classify-objects.py	Tue Jul 06 00:28:24 2021 -0400
+++ b/scripts/classify-objects.py	Mon Jul 19 11:25:16 2021 -0400
@@ -25,7 +25,7 @@
 classifierParams = storage.ClassifierParameters(params.classifierFilename)
 classifierParams.convertToFrames(params.videoFrameRate, 3.6) # conversion from km/h to m/frame
 
-speedAggregationFunc = utils.aggregationFunction(classifierParams.speedAggregationMethod)
+speedAggregationFunc = utils.aggregationFunction(classifierParams.speedAggregationMethod, classifierParams.speedAggregationCentile)
 if speedAggregationFunc is None:
     sys.exit()