mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
547 B
22 lines
547 B
template<> |
|
bool pyopencv_to(PyObject *obj, CvTermCriteria& dst, const ArgInfo& info) |
|
{ |
|
CV_UNUSED(info); |
|
if(!obj) |
|
return true; |
|
return PyArg_ParseTuple(obj, "iid", &dst.type, &dst.max_iter, &dst.epsilon) > 0; |
|
} |
|
|
|
template<> |
|
bool pyopencv_to(PyObject* obj, CvSlice& r, const ArgInfo& info) |
|
{ |
|
CV_UNUSED(info); |
|
if(!obj || obj == Py_None) |
|
return true; |
|
if(PyObject_Size(obj) == 0) |
|
{ |
|
r = CV_WHOLE_SEQ; |
|
return true; |
|
} |
|
return PyArg_ParseTuple(obj, "ii", &r.start_index, &r.end_index) > 0; |
|
} |