mirror of
https://github.com/opencv/opencv.git
synced 2026-09-29 04:09:43 +03:00
Expose CirclesGridFinderParameters in findCirclesGrid.
This commit is contained in:
1 parent
f46fa6e096
commit
11b24eb49f
6 files changed
+62
-39
No files matched your search
@@ -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