Application of Computer Vision for Real-Time Detection of Fruit Color and Size in Fruit Sorter

  • Illa Aryeni Politeknik Negeri Batam, Batam, Indonesia
  • Hana Mutialif Maulidiah Politeknik Negeri Batam, Batam, Indonesia https://orcid.org/0000-0002-4413-8656
  • Handri Toar Politeknik Negeri Batam, Batam, Indonesia https://orcid.org/0000-0003-3431-3040
  • Muhammad Jaka Wimbang Wicaksono Politeknik Negeri Batam, Batam, Indonesia
  • Indra Gunawan Universitas Andalas, Padang, Indonesia
Keywords: Computer vision, Digital image processing, Segmentation, HSV, Sorting

Abstract

Computer vision aims to build a computer that can see like humans. Humans can immediately recognize and define an object after seeing and recording an object. This is different from computer visual systems, where camera recordings cannot be directly translated, defined, and recognized by computers, therefore digital image processing is needed first. In this study, computer vision technology was used to detect fruit based on color, size, and shape in real time. The fruit is placed on a conveyor belt, then the fruit object is captured by a webcam using object tracking. Computer vision algorithms and programs can detect fruit objects and recognize ripe and unripe fruits by converting RGB (Red, Green, Blue) colors into HSV (Hue, Saturation, Value) for the color segmentation process. After the detection process, a selector is placed at the end of the conveyor which is used to sort the fruit into 2 categories, namely ripe and unripe. In addition, this study also determines the size and shape of the fruit. From design, realization, and testing, it was found that the success rate of detecting ripe fruit was 97.33% and unripe fruit was 93.33%. To get maximum results, it needs to be supported by room lighting settings that are kept constant.

Downloads

Download data is not yet available.

References

F. Marpaung, F. Aulia, N. Suryani SKom, and R. Cyra Nabila SKom, COMPUTER VISION DAN PENGOLAHAN CITRA DIGITAL. [Online]. Available: www.pustakaaksara.co.id

T. S. Huang, “Computer Vision: Evolution and Promise,” 1996, doi: 10.5170/CERN-1996-008.21.

R. Munir, “Pengantar Interpretasi dan Pengolahan Citra (Bagian 1) IF4073 Interpretasi dan Pengolahan Citra,” 2021.

J. A. Fracarolli, F. F. Adimari Pavarin, W. Castro, and J. Blasco, “Computer vision applied to food and agricultural products,” Revista Ciencia Agronomica, vol. 51, no. 5, pp. 1–20, 2020, doi: 10.5935/1806-6690.20200087.

W. Sriratana, N. Narknam, R. Apichitanon, and N. Tammarugwattana, “Application of webcam for inspection of rice grain quality by using image processing technique,” in International Conference on Control, Automation and Systems, IEEE Computer Society, Oct. 2020, pp. 1134–1139. doi: 10.23919/ICCAS50221.2020.9268316.

D. Mehta, S. Sehgal, T. Choudhury, and T. Sarkar, “Fruit Quality Analysis using modern Computer Vision Methodologies,” Proceedings of the IEEE Madras Section International Conference 2021, MASCON 2021, 2021, doi: 10.1109/MASCON51689.2021.9563427.

A. Bhargava and A. Bansal, “Fruits and vegetables quality evaluation using computer vision: A review,” Journal of King Saud University - Computer and Information Sciences, vol. 33, no. 3. King Saud bin Abdulaziz University, pp. 243–257, Mar. 01, 2021. doi: 10.1016/j.jksuci.2018.06.002.

S. M. Iqbal, B. Sundaresan, and A. Gopal, “Development of fruit dropping mechanisms for sorting of fruits,” Proceedings - TIMA 2017: 9th International Conference on Trends in Industrial Measurement and Automation, Oct. 2017, doi: 10.1109/TIMA.2017.8064788.

S. P. Walhekar, K. Rajendra Tungar, S. N. Thorat, R. N. Mundhe, and S. Devidas Gaikhe, “Fruit Sorting Machine,” International Journal of Advanced Research in Science, Communication and Technology (IJARSCT, vol. 2, no. 6, 2022, doi: 10.48175/568.

A. Shaikh, A. Sayyed, and M. Shaikh, “Grading and Sorting of Fruits Based On Image Processing,” 2020.

J. F. Bautista, C. D. Ocena, M. J. Cabreros, and S. P. L. Alagao, “Automated Sorter and Grading of Tomatoes using Image Analysis and Deep Learning Techniques,” in 2020 IEEE 12th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management, HNICEM 2020, Institute of Electrical and Electronics Engineers Inc., Dec. 2020. doi: 10.1109/HNICEM51456.2020.9400055.

“(PDF) Comparison of Multi-class Classification Algorithms on Early Diagnosis of Heart Diseases.” Accessed: Oct. 28, 2023. [Online]. Available: https://www.researchgate.net/publication/338950098_Comparison_of_Multi-class_Classification_Algorithms_on_Early_Diagnosis_of_Heart_Diseases

L. Amatullah, I. Ein, and M. M. Santoni, Identifikasi Penyakit Daun Kentang Berdasarkan Fitur Tekstur dan Warna Dengan Menggunakan Metode K-Nearest Neighbor. 2021. [Online]. Available: https://www.kaggle.com/

R. (Rahmadwati) Rahmadwati, “Sistem Diagnosis Kanker Servik Berdasarkan Karakteristik Morfologi,” EECCIS, vol. 7, no. 2, p. 61394, 2013, Accessed: Oct. 28, 2023. [Online]. Available: https://www.neliti.com/publications/61394/

P. Srinivasan and V. Srinivasna, “A Comprehensive Diagnostic Tool for Skin Cancer Using a Multifaceted Computer Vision Approach,” 2020 7th International Conference on Soft Computing and Machine Intelligence, ISCMI 2020, pp. 213–217, Nov. 2020, doi: 10.1109/ISCMI51676.2020.9311557.

C. N. Kumar, E. Nithin, C. Sai Krishna, and C. Bindhu Madhavi, “Real-Time Face Mask Detection using Computer Vision and Machine Learning,” Proceedings of the 2023 2nd International Conference on Electronics and Renewable Systems, ICEARS 2023, pp. 1532–1537, 2023, doi: 10.1109/ICEARS56392.2023.10085276.

D. Firmanda and D. Pramadihanto, “Computer Vision Based Analysis for Cursor Control Using Object Tracking and Color Detection,” Proceedings - 2014 7th International Symposium on Computational Intelligence and Design, ISCID 2014, vol. 2, pp. 525–528, Apr. 2015, doi: 10.1109/ISCID.2014.277.

S. Hernanto and I. S. Suwardi, “Webcam virtual keyboard,” Proceedings of the 2011 International Conference on Electrical Engineering and Informatics, ICEEI 2011, 2011, doi: 10.1109/ICEEI.2011.6021617.

E. Rijanto, E. Adiwiguna, L. Rozaqi, A. P. Sadono, and M. H. Nugraha, “Experimental Performance Evaluation of Computer Vision for an Upper Limbs Rehabilitation Robot,” 2019 International Conference on Computer, Control, Informatics and its Applications: Emerging Trends in Big Data and Artificial Intelligence, IC3INA 2019, pp. 59–63, Oct. 2019, doi: 10.1109/IC3INA48034.2019.8949599.

S. Siregar, I. Bin Ibrahim, M. I. Sani, and M. I. Sari, “Design of Computer Vision Based Ball Detection System on Wheeled Robot Soccer,” Proceedings - 2018 International Conference on Control, Electronics, Renewable Energy and Communications, ICCEREC 2018, pp. 46–49, Jul. 2018, doi: 10.1109/ICCEREC.2018.8711988.

Z. Qin, Z. Gao, B. Wen, Y. Zhang, A. Wu, and Z. Wu, “Development of mobile robot system based on computer vision,” Proceedings - 2020 3rd World Conference on Mechanical Engineering and Intelligent Manufacturing, WCMEIM 2020, pp. 1–5, Dec. 2020, doi: 10.1109/WCMEIM52463.2020.00008.

Y.-J. Zhang, “An Overview of Image and Video Segmentation in the Last 40 Years,” Advances in Image and Video Segmentation, pp. 1–16, Apr. 2011, doi: 10.4018/978-1-59140-753-9.CH001.

N. Resfita, R. Kurnia, and Fitrilina, “The Application of Multilevel Colour Thresholding for Coffee Colour Detection in a Coffee Maker Prototype,” 2020.

D. Khattab, H. M. Ebied, A. S. Hussein, and M. F. Tolba, “Color image segmentation based on different color space models using automatic GrabCut,” Scientific World Journal, vol. 2014, Aug. 2014, doi: 10.1155/2014/126025.

N. Vandenbroucke, L. Macaire, and J. G. Postaire, “Color image segmentation by pixel classification in an adapted hybrid color space. Application to soccer image analysis,” Computer Vision and Image Understanding, vol. 90, no. 2, pp. 190–216, May 2003, doi: 10.1016/S1077-3142(03)00025-0.

P. Objek Bergerak Berdasarkan Pendekatan Adaptive Threshold untuk Alpha Matting Menggunakan Metode K-Means Rofiq Harun, “Pelacakan Objek Bergerak Berdasarkan Pendekatan Adaptive Threshold untuk Alpha Matting Menggunakan Metode K-Means,” Jambura Journal of Electrical and Electronics Engineering, vol. 2, no. 1, pp. 1–7, Jan. 2020, doi: 10.37905/JJEEE.V2I1.4289.

Published
2023-12-22
How to Cite
Aryeni, I., Maulidiah, H., Toar, H., Wicaksono, M., & Gunawan, I. (2023). Application of Computer Vision for Real-Time Detection of Fruit Color and Size in Fruit Sorter. Journal of Applied Electrical Engineering, 7(2), 61-66. https://doi.org/10.30871/jaee.v7i2.6740

Most read articles by the same author(s)