Accept default argument of FLANN index parameters

This commit is contained in:
Hamdi Sahloul 2017-03-10 22:09:31 +09:00
parent 232d6b87f4
commit db52841544

View File

@ -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) ) {