Merge pull request #5180 from boatx:bugfix/proper-conversion-of-numpy-array-to-mat

pull/4163/merge
Alexander Alekhin 9 years ago
commit 11a829f9de
  1. 2
      modules/python/src2/cv2.cpp

@ -282,7 +282,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
if( type < 0 ) if( type < 0 )
{ {
if( typenum == NPY_INT64 || typenum == NPY_UINT64 || type == NPY_LONG ) if( typenum == NPY_INT64 || typenum == NPY_UINT64 || typenum == NPY_LONG )
{ {
needcopy = needcast = true; needcopy = needcast = true;
new_typenum = NPY_INT; new_typenum = NPY_INT;

Loading…
Cancel
Save