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

This commit is contained in:
Alexander Alekhin 2015-08-13 10:03:43 +00:00
commit 11a829f9de

View File

@ -282,7 +282,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
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;
new_typenum = NPY_INT;