OPTIMIZATION OF APPLE EDGE DETECTION USING THE CANNY ALGORITHM IN DIGITAL IMAGE PROCESSING
Keywords:
Edge Detection, Canny Algorithm, Otsu Thresholding, Image Processing, AppleAbstract
Digital image processing has rapidly developed in various fields, one of which is the analysis of visual objects such as fruits. Edge detection is an important technique for identifying object boundaries in images, which is highly needed in the process of assessing the quality of apples. Apples have high economic value and are widely consumed, making accuracy in their visual analysis crucial, especially for automatic sorting and packaging purposes. However, variations in color, lighting, and ripeness levels pose challenges in the edge detection process. This study aims to optimize apple edge detection using the Canny algorithm, combined with Manual Thresholding and Otsu Thresholding methods. The preprocessing stages used include grayscale conversion, contrast stretching, and sharpening. The research was conducted on 200 apple images, consisting of 100 fresh apples and 100 rotten apples. The results show that the combination of Canny with Otsu Thresholding provides better detection performance compared to Manual Thresholding. Perfect detection accuracy for fresh apples increased from 27% to 51%, and for rotten apples from 51% to 81%. The average accuracy of the Otsu method was 66%, still below the 75% hypothesis, which was influenced by lighting variations during image acquisition. In conclusion, the Canny method with Otsu Thresholding is quite effective, especially for detecting the edges of rotten apples. Further suggestions include testing with controlled lighting and integrating additional methods for more stable results.
Downloads
References
Estri Pamungkasih, Rahmadina Fitria Ristanti, Kinta Ramayanti, & Iftita Yustitia Arini. (2023). Strategi Pengembangan Komoditas Buah Apel di Kabupaten Malang. Prosiding Seminar Nasional Pembangunan Dan Pendidikan Vokasi Pertanian, 4(1), 105–113. https://doi.org/10.47687/snppvp.v4i1.635
Khairunnisa, K., Judijanto, L., Muchtar, M., Dewi, E. N. F., Amri, N. A., Yuniansyah, Y., Sutoyo, M. N., & Zain, N. N. L. E. (2025). Image Processing. PT. Green Pustaka Indonesia.
Mustakim, S., Kom, M., Agustin, S., Kom, S., Kom, M., Rizal, A. A., Muflih, G. Z., Kom, M., Bulkis Kanata, S. T., & Iswanto, S. T. (2025). PENGOLAHAN CITRA DIGITAL. Cendikia Mulia Mandiri.
Nafis, M. A., Nazri, M., & Assolihin, R. (2025). Analisis dan Penerapan Teknik Segmentasi Citra untuk Deteksi Tepi pada Objek Berwarna. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8 (6), 679–698.
Perangin-angin, R., & Harianja, E. J. G. (2020). Comparison Detection Edge Lines Algoritma Canny dan Sobel. Jurnal TIMES, 8(2), 35–42. https://doi.org/10.51351/jtm.8.2.2019616
Ridho’i, A., Setyadjit, K., & Hariadi, B. (2022). Menentukan kualitas buah apel malang berdasarkan kulitnya memanfaatkan pengolahan citra digital.
Yanti, R., & Agung Ramadhanu. (2025). OPTIMASI HYBRID INTELLIGENT SYSTEM UNTUK IDENTIFIKASI BUAH: STUDI KASUS PISANG DAN APEL. INTI Nusa Mandiri, 19(2), 211–220. https://doi.org/10.33480/inti.v19i2.6382
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Khairul Anam, Arda Gusema Susilowati M.Kom, Johan Dharmawan (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

