diff scripts/classify-objects.py @ 905:0e017178f7ab

correct bug in classify-objects script when correcting for distrotion
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 22 Jun 2017 23:40:16 -0400
parents 8f60ecfc2f06
children 3dd5acfa1899
line wrap: on
line diff
--- a/scripts/classify-objects.py	Thu Jun 22 18:08:46 2017 -0400
+++ b/scripts/classify-objects.py	Thu Jun 22 23:40:16 2017 -0400
@@ -73,6 +73,7 @@
 
 if undistort: # setup undistortion
     [map1, map2] = cvutils.computeUndistortMaps(width, height, undistortedImageMultiplication, intrinsicCameraMatrix, distortionCoefficients)
+    height, width = map1.shape
 
 pastObjects = []
 currentObjects = []