KNN for android
Hi. im new at knn opencv i was trying to create a classifier of an image using KNN. i have the values of RGB for dataset and i extracted the captured image RGB. i want to compare the RGB dataset and capture RGB to determine which dataset does the captured image belong.
"i have the values of RGB for dataset and i extracted the captured image RGB." -- oh, please show us ! (at least an example)
"i want to compare the RGB dataset and capture RGB to determine which dataset does the captured image belong." -- that's slightly unclear.
have you thought about using histograms ?
do you have a single color per image only ? (it's still unclear, how your data is structured / organized.)
do you have "image classes" ? or are you looking for similar "clusters" of images ?
so i got image classes first one is healthy classes, with disease classes 1,with disease classes 2,with disease classes 3,with disease classes 4, and with disease classes 5. i want to compare the captured image with the rgb value of those classes. And determine the captured image if what type of classes it belongs. thanks for the reply sir.
so, last question -- how do you store your data ?
store it using database.
what should be the structure of building my trainingset sir?