diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index c593676415..2de187ceea 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -510,13 +510,6 @@ PyObject* pyopencv_from(const cvflann_flann_distance_t& value) return PyInt_FromLong(int(value)); } -template<> -bool pyopencv_to(PyObject*, cv::flann::SearchParams &, const char *) -{ - CV_Assert(!"not implemented"); - return false; -} - template<> bool pyopencv_to(PyObject* obj, int& value, const char* name) { @@ -1055,6 +1048,12 @@ bool pyopencv_to(PyObject *o, cv::flann::IndexParams& p, const char *name) return ok; } +template<> +bool pyopencv_to(PyObject* obj, cv::flann::SearchParams & value, const char * name) +{ + return pyopencv_to(obj, value, name); +} + template bool pyopencv_to(PyObject *o, Ptr& p, const char *name) {