Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

K-Nearest Neighbors implementation on OpenCV 3.0

$
0
0
Hi, I'm trying to implement a simple digits recognizer using KNn in OpenCV-CPP, I've got a folder with all images I want to train the classifier, that is ten folders, one for every digits, containing an image of the corresponding digit, but I don't know how to load those in Mat. These are the Mat I'd want to use:>Mat matTrainFeatures(0,number_of_train_elements,CV_32F);>Mat matSample(0,number_of_sample_elements,CV_32F); Thanks in advice.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>