Abstract
In laboratory and low-cost industrial settings, automated detection and counting of small assembly components continue to be difficult tasks, especially when illumination conditions are unpredictable and annotated data is few. In this paper, a hybrid computer vision system that combines a deep learning-based object detector with traditional colour analysis is presented for the real-time identification and color-based classification of assembly cubes. The suggested method uses an HSV-based post-processing technique for colour recognition and a YOLOv8 model trained as a single-class detector for cube-shaped object localisation. While retaining good detection and classification accuracy, this division greatly lowers dataset complexity and annotation effort. A GoPro Hero 8 camera running in webcam mode at 1080p resolution and 30 frames per second was used to experimentally evaluate the system. To increase resilience against changes in illumination, object orientation, and background, a new dataset of over 400 photos was employed for both training and validation. With mAP50 values ranging from 0.93 to 0.96, experimental results show good detection ability and dependable colour categorisation in a variety of test conditions. On consumer-grade hardware, real-time operation was attained at 15–25 frames per second. The results confirm that the proposed YOLO–HSV hybrid architecture offers an efficient, interpretable, and scalable solution for color-based object detection and counting. The system is particularly suitable for educational laboratories, rapid prototyping, and low-cost assembly monitoring applications, bridging the gap between deep learning research and practical deployment.
References
Andreozzi, E., Fratini, A., Esposito, D., Naik, G., Polley, C., Gargiulo, G. D., & Bifulco, P. (2020). Forcecardiography: A Novel Technique to Measure Heart Mechanical Vibrations onto the Chest Wall. Sensors, 20(14), 3885. https://doi.org/10.3390/s20143885
Asundi, S., Fitz-Coy, N., & Latchman, H. (2021). Evaluation of Murrell’s EKF-Based Attitude Estimation Algorithm for Exploiting Multiple Attitude Sensor Configurations. Sensors, 21(19), 6450. https://doi.org/10.3390/s21196450
Chuya-Sumba, J., Alonso-Valerdi, L. M., & Ibarra-Zarate, D. I. (2022a). Deep-Learning Method Based on 1D Convolutional Neural Network for Intelligent Fault Diagnosis of Rotating Machines. Applied Sciences, 12(4), 2158. https://doi.org/10.3390/app12042158
Chuya-Sumba, J., Alonso-Valerdi, L. M., & Ibarra-Zarate, D. I. (2022b). Deep-Learning Method Based on 1D Convolutional Neural Network for Intelligent Fault Diagnosis of Rotating Machines. Applied Sciences, 12(4), 2158. https://doi.org/10.3390/app12042158
Guan, C., Zhang, Z., Zhu, L., & Liu, S. (2022). Mathematical formulation and a hybrid evolution algorithm for solving an extended row facility layout problem of a dynamic manufacturing system. Robotics and Computer-Integrated Manufacturing, 78, 102379. https://doi.org/10.1016/j.rcim.2022.102379
Han, S., Mannan, N., Stein, D. C., Pattipati, K. R., & Bollas, G. M. (2021). Classification and regression models of audio and vibration signals for machine state monitoring in precision machining systems. Journal of Manufacturing Systems, 61, 45–53. https://doi.org/10.1016/j.jmsy.2021.08.004
Hošovský, A., Piteľ, J., Trojanová, M., & Židek, K. (2021). Computational Intelligence in the Context of Industry 4.0. In Implementing Industry 4.0 in SMEs (pp. 27–94). Springer International Publishing. https://doi.org/10.1007/978-3-030-70516-9_2
Hrehova, S., Husár, J., Lazorík, P., & Trojanowski, P. (2024). The concept of an intelligent mobile application with elements of augmented reality and PLM software for value stream mapping. Annals of Operations Research. https://doi.org/10.1007/s10479-024-06006-4
Husár, J., Hrehová, S., Knapčíková, L., & Trojanowski, P. (2024). Mixed Reality as a Perspective Education Tool in Industry 5.0 (pp. 60–73). https://doi.org/10.1007/978-3-031-56444-4_5
Nazim, A., Židek, K., Balog, M., Kalman, O., & Svetlík, J. (2024). Implementation of SmartTechLab Digital Twin to AR/VR Technology for Educational Purposes (pp. 19–32). https://doi.org/10.1007/978-3-031-59238-6_2
Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You Only Look Once: Unified, Real-Time Object Detection. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 779–788. https://doi.org/10.1109/CVPR.2016.91
Zhou, T., Vera, P., Canu, S., & Ruan, S. (2022). Missing Data Imputation via Conditional Generator and Correlation Learning for Multimodal Brain Tumor Segmentation. Pattern Recognition Letters, 158, 125–132. https://doi.org/10.1016/j.patrec.2022.04.019

