Merge pull request #3226 from whoshuu:patch-1
This commit is contained in:
commit
550bd24ca8
@ -219,7 +219,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info)
|
|||||||
|
|
||||||
if( PyInt_Check(o) )
|
if( PyInt_Check(o) )
|
||||||
{
|
{
|
||||||
double v[] = {PyInt_AsLong((PyObject*)o), 0., 0., 0.};
|
double v[] = {(double)PyInt_AsLong((PyObject*)o), 0., 0., 0.};
|
||||||
m = Mat(4, 1, CV_64F, v).clone();
|
m = Mat(4, 1, CV_64F, v).clone();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user