KNN for android

asked 2018-02-01 07:48:27 -0600

updated 2018-02-01 08:32:51 -0600

berak gravatar image

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.

edit retag flag offensive close merge delete

Comments

  • "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 ?

berak gravatar imageberak ( 2018-02-01 08:04:38 -0600 )edit
  • I got this earlier when extracting RGB values of the image. R:57 G:113 B:97 (Average RGB values)
    • I want to compare the recent extracted RGB values from the RGB dataset of images to determine which image dataset does the capture image belong
    • im using colorhistogram to represent the colors of the captured image. For graphical interface only
j0hnd3v gravatar imagej0hnd3v ( 2018-02-01 08:22:09 -0600 )edit

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 ?

berak gravatar imageberak ( 2018-02-01 08:32:13 -0600 )edit
1

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.

j0hnd3v gravatar imagej0hnd3v ( 2018-02-01 08:45:46 -0600 )edit

so, last question -- how do you store your data ?

berak gravatar imageberak ( 2018-02-01 10:05:17 -0600 )edit

store it using database.

j0hnd3v gravatar imagej0hnd3v ( 2018-02-01 21:03:36 -0600 )edit

what should be the structure of building my trainingset sir?

j0hnd3v gravatar imagej0hnd3v ( 2018-02-01 21:27:10 -0600 )edit