EKTRAKSI HSV DAN GLCM DALAM METODE K-NN UNTUK KLASIFIKASI TINGKAT KEMATANGAN BUAH MENGKUDU
Keywords:Noni fruit, K-Nearest Neighbor, Mean Hue Saturation Value, Gray Level Co-Occurrence Matrix
Noni fruit is a fruit that is quite famous for its properties as a medicine that can cure diseases. The level of maturity of the noni fruit also affects the effectiveness of the fruit as a medicine. With the current technological developments, research on the classification of noni fruit maturity was carried out. It is intended that the selection of noni fruit can produce more effective results. K-Nearest Neighbor can be implemented to measure the maturity level of noni fruit. In this study, Mean HSV is also used as a color extractor and GLCM as a feature extractor. The dataset is 100 image data, with 80 images divided into training data and 20 test data. Then, the level of maturity is divided into four classes, namely: raw, undercooked, ripe, and rotten. Before the classification process is carried out, the previous image data is pre-processed. The first stage is to change the color of the image to grayscale which is then converted to an HSV image. The second stage is the extraction process using the GLCM method in order to produce the values of Energy, Contrast, Correlation, and Homogeneity. The third stage, followed by the feature extraction process using Mean HSV. After these processes, it is continued with the classification stage using the K-NN method. This study produces an accuracy value of 95% using the value of K = 5, pixel distance = 1, 4, and 8 in the test using a combination of the KNN, GLCM, and HSV algorithms.
Copyright (c) 2022 Candra Irawan, Eko Hari Rachmawanto
This work is licensed under a Creative Commons Attribution 4.0 International License.