Welcome to Francis Academic Press

Academic Journal of Computing & Information Science, 2022, 5(7); doi: 10.25236/AJCIS.2022.050711.

Two-Dimensional Codes Recognition Algorithm Based on Yolov5


Yi Luo1, Jiaxing Chen2

Corresponding Author:
Yi Luo

1School of Mechanical and Electrical Engineering, Central South University, Changsha 410083, China

2School of Automation, Harbin Institute of Technology, Harbin 150080, China


In order to realize fast and high-precision recognition of QR codes, a QR code recognition method using YOLOv5 algorithm is designed. The original image of the QR code will be obtained by using the LabelImg annotation tool and data enhancement method to build a data set, and trained by the YOLOv5s model. The experimental results show that the test on the real two-dimensional code can be effectively identified, and the average accuracy rate is about 90%, which can meet the requirements of real-time identification of the two-dimensional code when using an augmented reality device.


YOLOv5s; real-time recognition; QR code

Cite This Paper

Yi Luo, Jiaxing Chen. Two-Dimensional Codes Recognition Algorithm Based on Yolov5. Academic Journal of Computing & Information Science (2022), Vol. 5, Issue 7: 68-72. https://doi.org/10.25236/AJCIS.2022.050711.


[1] Zhu Huiqing, Dong Hao, Zhang Peiheng. QR code printing quality inspection system [J]. Fund research project exhibition, 2018, (4): 39-42.

[2] Moacir Godinho Filho, Antonio Gilberto Marchesini, Jan Riezebos, Nico Van daele, Gilberto Miller Devos Ganga. The application of Quick Response Manufacturing practices in Brazil, Europe, and the USA: An exploratory study [J]. International Journal of Production Economics. 2017(193): 437-448.

[3] Xue Peiying.Research on Correction and Recognition of QR Code on Metal Can Surface [D]. Xi’an University of Technology, 2020. DOI: 10.27398/d.cnki.gxalu.2020.001257.

[4] Wang Hongyan. Analysis of the problems and countermeasures of two-dimensional code in the application of book publishing [J]. China Media Science and Technology, 2021 (7): 62-64.

[5] Lu Yang, Gao Huimin. Research on QR code image binarization with uneven illumination [J]. Journal of Taiyuan University of Science and Technology, 2012, 33(5): 396-400.

[6] Liu Jihong, Wang Chengyuan. An Image Binarization Algorithm Based on Adaptive Threshold [C]. Proceedings of the 2009 China Conference on Control and Decision Making (3). 2009: 3958-3962.

[7] Lei H, Li L, Zhang P, et al. A binarization algorithm for digital meter image based on gray-scalem orphology [C]. International Congress on Image and Signal Processing. EEE, 2010: 2427-2429.

[8] Huang Jian, Zhang Gang. A review of object detection algorithms based on deep convolutional neural networks [J]. Computer Engineering and Applications, 2020, 56(17): 12-23.