How to implement k nearest neighbour in opencv 3.2.0
AttributeError: module 'cv2' has no attribute 'KNearest'
AttributeError: module 'cv2' has no attribute 'KNearest'
the good news is: you don't have to "implement" it, it's already built in ;)
but the api has changed slightly from opencv2.4, have a look at the digits.py sample
also:
>>> help(cv2.ml.KNearest_create())
for pydocs
Asked: 2017-05-20 02:38:52 -0600
Seen: 1,129 times
Last updated: May 20 '17