Merge pull request #5180 from boatx:bugfix/proper-conversion-of-numpy-array-to-mat
This commit is contained in:
commit
11a829f9de
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user