1 | initial version |
Basically, try out some of these guides:
http://www.aishack.in/2010/10/k-nearest-neighbors-in-opencv/
http://docs.opencv.org/modules/ml/doc/k_nearest_neighbors.html
http://areshopencv.blogspot.be/2011/07/artificial-intelligence-k-nearest.html
If the code generates problems, then address them to us :)