mirror of
https://github.com/opencv/opencv.git
synced 2026-07-25 21:33:04 +04:00
Expose CirclesGridFinderParameters in findCirclesGrid.
This commit is contained in:
@@ -798,6 +798,21 @@ PyObject* pyopencv_from(const Size& sz)
|
||||
return Py_BuildValue("(ii)", sz.width, sz.height);
|
||||
}
|
||||
|
||||
template<>
|
||||
bool pyopencv_to(PyObject* obj, Size_<float>& sz, const char* name)
|
||||
{
|
||||
(void)name;
|
||||
if(!obj || obj == Py_None)
|
||||
return true;
|
||||
return PyArg_ParseTuple(obj, "ff", &sz.width, &sz.height) > 0;
|
||||
}
|
||||
|
||||
template<>
|
||||
PyObject* pyopencv_from(const Size_<float>& sz)
|
||||
{
|
||||
return Py_BuildValue("(ff)", sz.width, sz.height);
|
||||
}
|
||||
|
||||
template<>
|
||||
bool pyopencv_to(PyObject* obj, Rect& r, const char* name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user