diff python/cvutils.py @ 788:5b970a5bc233 dev

updated classifying code to OpenCV 3.x (bug in function to load classification models)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 24 Mar 2016 16:37:37 -0400
parents b6d3bf350789
children 5b99b676265e
line wrap: on
line diff
--- a/python/cvutils.py	Thu Mar 17 16:01:19 2016 -0400
+++ b/python/cvutils.py	Thu Mar 24 16:37:37 2016 -0400
@@ -602,6 +602,6 @@
             inputData.append(features)
 
         nImages = len(inputData)
-        return array(inputData, dtype = float32), array([classLabel]*nImages, dtype = float32)
+        return array(inputData, dtype = float32), array([classLabel]*nImages)