A Lightweight Barcode Detection Algorithm Based on Deep Learning
Source abstract
Abstract
For existing situations of missed detections, false detections, and repeated detections in barcode detection algorithms in real-world scenarios, a barcode detection algorithm based on improved YOLOv8 is proposed. The EfficientViT block based on a linear self-attention mechanism is introduced into the backbone of the original model to enhance the model’s attention to barcode features. In the model’s neck, linear mapping and grouped convolution are used to improve the C2f module, and the ADown convolution block is utilized to modify the model’s downsampling, which reduces the model’s parameters and computational cost while improving the efficiency of model feature fusion. Finally, the reconstruction of the model’s detection head and the modification of the loss function are implemented to enhance the model’s training quality and reduce the model’s error in barcode detection. Experimental results indicate that the improved model exhibits an increase of 1.8% in recall rate and 1.9% in mAP50:95 for barcode localization and classification. The FPS is improved by 40 frames per second. The model’s parameter count is reduced by 74.2%, and FLOPs are decreased by 79.6%. Furthermore, the proposed model outperforms other models in terms of model size and barcode detection accuracy.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: QR Code Applications and Technologies · Advanced Image and Video Retrieval Techniques · Currency Recognition and Detection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Key Laboratory of Modern Textile Machinery & Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou 310018, China
Funding
The Science and Technology Program of Zhejiang Province, China · Zhejiang Provincial Department of Education Research Project · the Zhejiang Sci-Tech University Research Start-up Fund, China
References (32)
Show source-provided references
1. Yan, L.Y., Tan, G.W.H., Loh, X.M., Hew, J.J., and Ooi, K.B. (2021). QR code and mobile payment: The disruptive forces in retail. J. Retail. Consum. Serv., 58.10.1016/j.jretconser.2020.102300 ↗
2. Mobile payment is not all the same: The adoption of mobile payment systems depending on the technology applied10.1016/j.techfore.2018.09.018 ↗
3. Using barcode to track student attendance and assets in higher education institutions10.1016/j.procs.2021.04.005 ↗
4. XOR-ed visual secret sharing scheme with robust and meaningful shadows based on QR codes10.1007/s11042-019-08351-0 ↗
5. Nuhi, A., Memeti, A., Imeri, F., and Cico, B. (2020, January 8–11). Smart attendance system using qr code. Proceedings of the 2020 9th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro.10.1109/MECO49872.2020.9134225 ↗
6. Küng, K., Aeschbacher, K., Rütsche, A., Goette, J., Zürcher, S., Schmidli, J., and Schwendimann, R. (2021). Effect of barcode technology on medication preparation safety: A quasi-experimental study. Int. J. Qual. Health Care, 33.10.1093/intqhc/mzab043 ↗
7. Ang, J.L.F., Lee, W.K., Ooi, B.Y., and Ooi, T.W.M. (2020, January 9–11). Location Sensing using QR codes via 2D camera for Automated Guided Vehicles. Proceedings of the 2020 IEEE Sensors Applications Symposium (SAS), Kuala Lumpur, Malaysia.10.1109/SAS48726.2020.9220022 ↗
8. Ohbuchi, E., Hanaizumi, H., and Hock, L.A. (2004, January 18–20). Barcode readers using the camera device in mobile phones. Proceedings of the 2004 International Conference on Cyberworlds, Tokyo, Japan.
9. Wachenfeld, S., Terlunen, S., and Jiang, X. (2008, January 8–11). Robust recognition of 1-d barcodes using camera phones. Proceedings of the 2008 19th International Conference on Pattern Recognition, Tampa, FL, USA.10.1109/ICPR.2008.4761085 ↗
10. Katona, M., and Nyúl, L.G. (2013, January 27–29). Efficient 1D and 2D barcode detection using mathematical morphology. Proceedings of the Mathematical Morphology and Its Applications to Signal and Image Processing: 11th International Symposium, ISMM 2013, Uppsala, Sweden.10.1007/978-3-642-38294-9_39 ↗
11. Mobile encrypted traffic classification using deep learning: Experimental evaluation, lessons learned, and challenges10.1109/TNSM.2019.2899085 ↗
12. A survey on deep learning for named entity recognition10.1109/TKDE.2020.2981314 ↗
13. Chen, J., Wen, Y., Nanehkaran, Y.A., Zhang, D., and Zeb, A. (2023). Multiscale attention networks for pavement defect detection. IEEE Trans. Instrum. Meas., 72.10.1109/TIM.2023.3298391 ↗
14. Liu, M., Jiang, J., Zhu, C., and Yin, X.C. (, January 17–24). Vlpd: Context-aware pedestrian detection via vision-language semantic self-supervision. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.
15. Hansen, D.K., Nasrollahi, K., and Rasmussen, C.B. (2017). Real-time barcode detection and classification using deep learning. International Joint Conference on Computational Intelligence, SCITEPRESS Digital Library.10.5220/0006508203210327 ↗
16. Tian, Y., Che, Z., Zhai, G., and Gao, Z. (2018, January 9–12). BAN, a barcode accurate detection network. Proceedings of the 2018 IEEE Visual Communications and Image Processing (VCIP), Taichung, Taiwan.10.1109/VCIP.2018.8698633 ↗
17. EMBDN: An efficient multiclass barcode detection network for complicated environments10.1109/JIOT.2019.2933254 ↗
18. Fine localization and distortion resistant detection of multi-class barcode in complex environments10.1007/s11042-019-08578-x ↗
19. Xu, X., Xue, Z., and Zhao, Y. (2022). Research on an algorithm of express parcel sorting based on deeper learning and multi-information recognition. Sensors, 22.10.3390/s22176705 ↗
20. Cai, H., Li, J., and Hu, M. (2023, January 4–6). Efficientvit: Lightweight multi-scale attention for high-resolution dense prediction. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France.10.1109/ICCV51070.2023.01587 ↗
21. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
22. Han, K., Wang, Y., and Tian, Q. (2020, January 14–19). Ghostnet: More features from cheap operations. Proceedings of the IEEE/CVF conference on computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00165 ↗
23. Wang, C.Y., Yeh, I.H., and Liao, H.Y.M. (2024). Yolov9: Learning what you want to learn using programmable gradient information. arXiv.10.1007/978-3-031-72751-1_1 ↗
24. Zhang, H., and Zhang, S. (2024). Focaler-IoU: More Focused Intersection over Union Loss. arXiv.
25. Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection
26. Bolya, D., Foley, S., and Hays, J. (2020, January 23–28). Tide: A general toolbox for identifying object detection errors. Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK.10.1007/978-3-030-58580-8_33 ↗
27. Zheng, Z., Wang, P., Liu, W., Li, J., Ye, R., and Ren, D. (2020, January 7–12). Distance-IoU loss: Faster and better learning for bounding box regression. Proceedings of the AAAI Conference on Artificial Intelligence 2020, New York, NY, USA.
28. Zhang, Y.F., Ren, W., and Zhang, Z. (2021). Focal and efficient IOU loss for accurate bounding box regression. arXiv.10.1016/j.neucom.2022.07.042 ↗
29. Gevorgyan, Z. (2022). SIoU loss: More powerful learning for bounding box regression. arXiv.
30. Wang, C.Y., Bochkovskiy, A., and Liao, H.Y.M. (2023, January 18–22). YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.00721 ↗
31. Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., and Ding, G. (2024). Yolov10: Real-time end-to-end object detection. arXiv.
32. Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., Liu, Y., and Chen, J. (2024, January 16–22). DETRs beat YOLOs on real-time object detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR52733.2024.01605 ↗