Accept default argument of FLANN index parameters
This commit is contained in:
parent
232d6b87f4
commit
db52841544
@ -23,6 +23,9 @@ bool pyopencv_to(PyObject *o, cv::flann::IndexParams& p, const char *name)
|
||||
PyObject* item = NULL;
|
||||
Py_ssize_t pos = 0;
|
||||
|
||||
if (!o || o == Py_None)
|
||||
return true;
|
||||
|
||||
if(PyDict_Check(o)) {
|
||||
while(PyDict_Next(o, &pos, &key, &item)) {
|
||||
if( !PyString_Check(key) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user