skip to main content

Classification of Box Sizes in Automated Systems Using YOLOv8 and Computer Vision

Ayu Sarah Annisa  -  Department of Physics, Faculty of Mathematics and Natural Sciences, Andalas University, Padang, Indonesia, 251613, Indonesia
*Meqorry Yusfi orcid  -  Department of Physics, Faculty of Mathematics and Natural Sciences, Andalas University, Padang, Indonesia, 251613, Indonesia
Received: 15 Oct 2025; Revised: 18 May 2026; Accepted: 22 May 2026; Available online: 30 May 2026; Published: 30 May 2026.

Citation Format:
Abstract

The logistics and distribution industry requires a fast and accurate automated sorting system to improve operational efficiency. This research develops a computer vision-based automated sorting system using YOLO (You Only Look Once) to detect and classify box sizes in real time. The system consists of an ESP32-CAM as a visual sensor, an ESP8266 NodeMCU as a microcontroller, and a servo motor as an actuator using the MQTT communication protocol. The detection results are sent through a local MQTT broker for low latency processing without the internet. The YOLOv8 model used successfully achieved a detection and classification accuracy of 98.15%. The top camera showed more stable performance (89-96%) than the front camera (83-96%) due to the influence of distance and angle of image capture. The tests were conducted under fixed lighting conditions and only distinguished between small (< 5×5×5 cm) and large (≥ 5×5×5 cm) boxes, with a maximum load limit of 700 grams. The system is still limited in classifying objects close to the size limit, and is not optimal for variable lighting.

Keywords: Instrumentation and Electronics; Applied Physics

Article Metrics:

Article Info
Section: Articles
Language : EN
  1. R. Krishnan, E. Perumal, M. Govindaraj, and L. Kandasamy, “Enhancing logistics operations through technological advancements for superior service efficiency,” in Innovative Technologies for Increasing Service Productivity, IGI Global, 2024, pp. 61–82. doi: 10.4018/979-8-3693-2019-8.ch004
  2. Z. B. Abilovani, W. Yahya, and F. A. Bakhtiar, “Implementasi Protokol MQTT Untuk Sistem Monitoring Perangkat IoT,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 2, no. 12, pp. 7521–7527, 2018, [Online]. Available: http://j-ptiik.ub.ac.id
  3. D. S. Pratama, “Rancang Bangun Conveyor Penyortir Mur Berbasis Raspberry Pi Menggunakan Metode Contour,” J. Tek. Elektro, vol. 11 Nomor 02, pp. 246–254, 2022
  4. M. L. Ali and Z. Zhang, “The YOLO Framework: A Comprehensive Review of Evolution, Applications, and Benchmarks in Object Detection,” Computers, vol. 13, no. 12, 2024, doi: 10.3390/computers13120336
  5. Amna et al., “Machine vision-based automatic fruit quality detection and grading,” Front. Agric. Sci. Eng., vol. 0, no. 0, p. 0, 2023, doi: 10.15302/j-fase-2023532
  6. Z. Duan, W. Liu, S. Zeng, C. Zhu, L. Chen, and W. Cui, “System for Fresh-Cut Flowers,” 2024
  7. V. N. Pham, Q. H. Do Ba, D. A. Tran Le, Q. M. Nguyen, D. Do Van, and L. Nguyen, “A Low-Cost Deep-Learning-Based System for Grading Cashew Nuts,” Computers, vol. 13, no. 3, pp. 1–22, 2024, doi: 10.3390/computers13030071
  8. L. Petru and G. Mazen, “PWM control of a DC motor used to drive a conveyor belt,” in Procedia Engineering, Elsevier Ltd, 2015, pp. 299–304. doi: 10.1016/j.proeng.2015.01.371
  9. F. Rahman, F. Faridah, A. I. Nur, and A. N. Makkaraka, “Rancang Bangun Prototipe Manipulator Lengan Robot Menggunakan Motor Servo Berbasis Mikrokontroler,” ILTEK J. Teknol., vol. 15, no. 01, pp. 42–46, 2020, doi: 10.47398/iltek.v15i01.11
  10. S. Mahmood, S. Alani, F. Hasan, and M. Mustafa, “ESP 8266 Node MCU Based Weather Monitoring System,” European Alliance for Innovation n.o., Sep. 2020. doi: 10.4108/eai.28-6-2020.2298609
  11. M. Wijayanti, “PROTOTYPE SMART HOME DENGAN NODEMCU ESP8266 BERBASIS IOT,” J. Ilm. Tek., vol. 1, no. 2, pp. 101–107, 2022
  12. R. A. Light, “Mosquitto: server and client implementation of the MQTT protocol,” J. Open Source Softw., vol. 2, no. 13, p. 265, 2017, doi: 10.21105/joss.00265
  13. X. Liu, T. Zhang, N. Hu, P. Zhang, and Y. Zhang, “The method of Internet of Things access and network communication based on MQTT,” Comput. Commun., vol. 153, no. December 2019, pp. 169–176, 2020, doi: 10.1016/j.comcom.2020.01.044
  14. S. Van Der Walt et al., “Scikit-image: Image processing in python,” PeerJ, vol. 2014, no. 1, 2014, doi: 10.7717/peerj.453
  15. T. Cheng, L. Song, Y. Ge, W. Liu, X. Wang, and Y. Shan, “YOLO-World: Real-Time Open-Vocabulary Object Detection,” pp. 16901–16911, 2024, [Online]. Available: http://arxiv.org/abs/2401.17270
  16. M. Glučina, N. Anđelić, I. Lorencin, and Z. Car, “Detection and Classification of Printed Circuit Boards Using YOLO Algorithm,” Electron., vol. 12, no. 3, 2023, doi: 10.3390/electronics12030667
  17. M. Anwar, Y. Kristian, and E. Setyati, “Classification Of Chili Plant Diseases Equipped With Leaf and Fruit Image Segmentation Using Yolo V7,” J. Inf. Technol. Comput. Sci., vol. 6, no. 1, 2023
  18. B. R. Prabhu, A., K, A. K., Abhiram, A., & Pushpa, “Mango Fruit Classification using Computer Vision System,” 4th Int. Conf. Inven. Res. Comput. Appl., pp. 1797–1802, 2022, doi: https://doi.org/10.1109/ICIRCA54612.2022.9985773
  19. A. Siregar, B., Pradaning, R., & Hizriadi, “Cocoa Ripeness Level Sorting System Using Integrated Computer Vision Technology On Conveyor Belt,” 8th Int. Conf. Electr. Electron. Inf. Eng., pp. 1–6, 2023, doi: https://doi.org/10.1109/ICEEIE59078.2023.10334634
  20. I. Aryeni, H. M. Maulidiah, H. Toar, M. J. Wimbang, and I. Gunawan, “Application of Computer Vision for Real-Time Detection of Fruit Color and Size in Fruit Sorter,” J. Appl. Electr. Eng., vol. 7, 2023
  21. S. Wardoyo, J. Saepul, and A. S. P. Suryo Pramudyo, “Rancang Bangun Alat Uji Karakteristik Motor DC Servo, Battery, dan Regulator untuk Aplikasi Robot Berkaki,” Setrum Sist. Kendali-Tenaga-elektronika-telekomunikasi-komputer, vol. 2, no. 2, p. 111, 2016, doi: 10.36055/setrum.v2i2.490

Last update:

No citation recorded.

Last update:

No citation recorded.