An Enhanced Barcode Recognition Framework Integrating Yolov5 Detection with Pyzbar-Based Decoding

Authors

Vijaya J

Dept DSAI, IIITNR, Raipur (India)

G.S. Abhinav

UG Student/ IIITNR, Raipur (India)

Alla Abhiram

UG Student/ IIITNR, Raipur (India)

Nenavathu Pranay

UG Student/ IIITNR, Raipur (India)

Article Information

DOI: 10.51244/IJRSI.2025.12120048

Subject Category: Technology

Volume/Issue: 12/12 | Page No: 525-535

Publication Timeline

Submitted: 2025-12-17

Accepted: 2025-12-22

Published: 2026-01-04

Abstract

Barcode detection is an essential process in contemporary automation, inventory management, and retailing, which enables fast and precise data recovery. The greater dependence on automatic systems has brought about the need for more stable and effective barcode detection systems to deal with complex real-world environments. This paper introduces a hybrid system that combines state-of- the-art deep learning-based object detection with traditional barcode decoding methods in order to increase overall accuracy, reliability, and efficiency. The system implemented under the proposal uses the YOLOv5 model, a commonly used deep learning model renowned for its fast processing speeds and accurate localization. Utilizing YOLOv5, the system provides real-time barcode detection, even with difficult conditions like changing light conditions, occlusion, and cluttered backgrounds. The method improves detection rates greatly while balancing the trade-off between computational complexity and real-time processing constraints. In addition, the barcode scanning process is improved through the implementation of Pyzbar, an efficient library utilized for extracting ordered data from the 1D and 2D formats of barcodes. The system attains high adaptability across different barcode formats and operating environments, while maintaining deployment feasibility on modern edge and desktop platforms through model optimization strategies. In this combined procedure, flexibility can be increased along with minimizing the possibility of obtaining false negatives as well as refining data recovery rates. The outcomes showcase how deep learning-based object detection coupled with conventional decoding methods presents an extensive solution for barcode recognition in changing and complex environments. This research highlights the ability of hybrid models in providing high-performance barcode detection, ultimately leading to innovations in automation and intelligent data management systems.

Keywords

Barcode Detection, YOLOv5, Pyzbar

Downloads

References

1. Mashat, A. (2024). A QR code-enabled framework for fast biomedical image processing in medical diagnosis using deep learning. BMC Medical Imaging, 24(1), 198. [Google Scholar] [Crossref]

2. Liu, Y., Zhang, S., Jin, L., Xie, L., Wu, Y., & Wang, Z. (2019). Omnidirectional scene text detection with sequential-free box discretization. arXiv preprint arXiv:1906.02371. [Google Scholar] [Crossref]

3. Pappula, K. K., & Anasuri, S. (2024). Deep Learning for Industrial Barcode Recognition at High Throughput. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(1), 79-91. [Google Scholar] [Crossref]

4. Farhaoui, Y., & El Allaoui, A. (2024, April). Bar Code Detection for AI-Driven EDA and Big Data Analytics. In The International Workshop on Big Data and Business Intelligence (pp. 476-488). Cham: Springer Nature Switzerland. [Google Scholar] [Crossref]

5. Redmon, J., & Farhadi, A. (2018). Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767. [Google Scholar] [Crossref]

6. Bochkovskiy, A., Wang, C. Y., & Liao, H. Y. M. (2020). Yolov4: Optimal speed and accuracy of object detection. arXiv preprint arXiv:2004.10934. [Google Scholar] [Crossref]

7. Jocher, G., Chaurasia, A., & Qiu, J. Y. (2020). Ultralytics. YOLOv5: PyTorch Implementation of Object Detection Models. GitHub Repository. [Google Scholar] [Crossref]

8. Pyzbar Developers, ‘Pyzbar: Python Barcode Reader Library,” GitHub Repository, 2020. Retrieved from https://github.com/NaturalHistoryMuseum/pyzbar. [Google Scholar] [Crossref]

9. Aggarwal, M., Sahoo, P., Saha, S., & Das, P. (2023). Machine learning-mediated ultrasensitive detection of citrinin and associated mycotoxins in real food samples discerned from a photoluminescent carbon dot barcode array. Journal of Agricultural and Food Chemistry, 71(34), 12849-12858. [Google Scholar] [Crossref]

10. Tiwari, S., Moharana, S., Mohanty, D. P., Vala, V., Thakur, B. N., & Jagdishbhai, J. A. (2024, July). Synthetic Data Generation and Detection of Barcode QRcode for Mobile Screenshots. In 2024 IEEE International Conference on Electronics, Computing and Communication Technologies (CONECCT) (pp. 1-6). IEEE. [Google Scholar] [Crossref]

11. Bharath, G. V., & Kalaiarasi, K. (2025, July). Improving accuracy in barcode detection using mobile net algorithm compared to you only look once algorithm. In AIP Conference Proceedings (Vol. 3300, No. 1, p. 020254). AIP Publishing LLC. [Google Scholar] [Crossref]

12. Vezzali, E., Bolelli, F., Santi, S., & Grana, C. (2024, December). BarBeR-barcode benchmark repository: implementation and reproducibility notes. In International Workshop on Reproducible Research in Pattern Recognition (pp. 85-95). Cham: Springer Nature Switzerland. [Google Scholar] [Crossref]

13. Qiao, L. C., Wang, J. L., Gao, B. H., Yang, X. G., Feng, W. T., Zhang, Y. X., ... & Liu, W. (2021, December). Efficient 1D barcode localization method for imagery shipping label using deep learning models. In 2021 12th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP) (pp. 119-124). IEEE. [Google Scholar] [Crossref]

14. Kim, D., & Kang, J. (2022, January). Barcode Image Identification Based on Maximum a Posterior Probability. In 2022 IEEE International Conference on Consumer Electronics (ICCE) (pp. 1-2). IEEE. [Google Scholar] [Crossref]

15. Vijayaraj, J., Rithikravivarma, V., & Siddharth, S. (2025, February). Smart Barcode Scanning using X-ray Technology with Computer Vision and Machine Learning. In 2025 4th International Conference on Sentiment Analysis and Deep Learning (ICSADL) (pp. 1495-1498). IEEE. [Google Scholar] [Crossref]

16. Almabruk, T., Adalhamid, S., & Maziq, A. (2025, February). Optimizing Barcode Detection and Recognition with YOLOv5 and Dynamic Barcode Reader Techniques. In 2025 IEEE 22nd International Multi-Conference on Systems, Signals & Devices (SSD) (pp. 732-737). IEEE. [Google Scholar] [Crossref]

17. Kamnardsiri, T., Charoenkwan, P., Malang, C., & Wudhikarn, R. (2022). 1D barcode detection: Novel benchmark datasets and comprehensive comparison of deep convolutional neural network approaches. Sensors, 22(22), 8788. [Google Scholar] [Crossref]

18. Linan, W., Jiahang, L., Ryzhova, V. A., Yaryshev, S. N., & Djamiykov, T. S. (2022, September). Development of a Network Camera with a Built-in Mask and QR Code Recognition Function. In 2022 XXXI International Scientific Conference Electronics (ET) (pp. 1-4). IEEE. [Google Scholar] [Crossref]

19. Ilchuk, M. S. (2024). A ROBUST BARCODE DETECTION SYSTEM WITH MACHINE LEARNING. ВЧЕНІ ЗАПИСКИ, 6202463. [Google Scholar] [Crossref]

20. https://zenodo.org/records/7465864 [Google Scholar] [Crossref]

21. Qu, Y., & Zhang, F. (2025). FWL-YOLO: a lightweight model for barcode detection and recognition in express delivery waybills. Signal, Image and Video Processing, 19(3), 261. [Google Scholar] [Crossref]

22. D. Max, “Barcode Decoder: A YOLOv8-Based System for Barcode Detection,” GitHub Repository, 2025 [Google Scholar] [Crossref]

23. T. Do, Y. Tolcha, T. J. Jun, and D. Kim, “Smart Inference for Multi digit Convolutional Neural Network based Barcode Decoding,” arXiv preprint arXiv:2004.06297, 2020 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles