diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 0f9c530db..07fa7f60a 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -111,9 +111,9 @@ public: _sizes[i] = sizes[i]; if( cn > 1 ) { - if( _sizes[dims-1] == 1 ) + /*if( _sizes[dims-1] == 1 ) _sizes[dims-1] = cn; - else + else*/ _sizes[dims++] = cn; } PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);