1 | initial version |
there was a bug with the early 3.1 python bindings, you got 2 options:
update to current 3.2 (but then - please, both openccv main and opencv_contrib)
hack your current version, and recompile:
remove CV_WRAP
here so it simply says: int predict(InputArray src) const;
this will hide that method from the python interface, but in turn, let you use the desired:
id, confidence = model.predict(query)
2 | No.2 Revision |
there was a bug with the early 3.1 python bindings, you got 2 options:
update to current 3.2 (but then - please, both openccv opencv main and opencv_contrib)
hack your current 3.1 version, and recompile:
remove CV_WRAP
here so it simply says: int predict(InputArray src) const;
this will hide that method from the python interface, but in turn, let you use the desired:
id, confidence = model.predict(query)