changeset 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 d71a4d174b1a
children b55adb13f262
files scripts/classify-objects.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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()
 
--- a/setup.py	Tue Jul 06 00:28:24 2021 -0400
+++ b/setup.py	Mon Jul 19 11:25:16 2021 -0400
@@ -5,7 +5,7 @@
     
 setuptools.setup(
     name='trafficintelligence',
-    version='0.2.7',
+    version='0.2.8',
     author='Nicolas Saunier',
     author_email='nicolas.saunier@polymtl.ca',
     url='https://bitbucket.org/Nicolas/trafficintelligence',