Defect Detection of Spray Printed Variable Color 2D Code Based on ResNet34-TE

被引:0
作者
Li Ying [1 ]
Dong Yao [1 ]
He Zifen [1 ]
Yuan Hao [1 ]
Sun Fuyang [1 ]
Gong Lingxi [1 ]
机构
[1] Kunming Univ Sci & Technol, Fac Mech & Elect Engn, Kunming 650500, Yunnan, Peoples R China
关键词
defect detection; ResNet; Transformer; color 2D code; contour detection; CLASSIFICATION; SYSTEM;
D O I
10.3788/LOP232723
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Addressing the defect characteristics of multicolor interference and the high complexity of spray-printed variable color 2D codes, along with the challenges of insufficient accuracy and low efficiency in current detection methods used by printing enterprises, this paper proposes a defect classification model by integrating ResNet34 and Transformer structure (ResNet34-TE). Initially, a color 2D code defect dataset is constructed, followed by the introduction of a contour shape detection method to identify the target region and mitigate background interference. ResNet34 serves as the backbone network for feature extraction. In a significant modification, the average pooling layer is omitted, and a Transformer encoder layer is employed to capture the global information of the extracted features, emphasizing the region of interest. Experimental results demonstrate that the accuracy of ResNet34-TE reaches 96. 80%, with the average detection time for a single sheet reduced to 15. 59 ms. This represents a 5. 3 percentage points improvement in accuracy and a 5. 8% enhancement in detection speed compared to the baseline model, outperforming classical models. Additionally, on the public defect detection dataset NEU-DET, the proposed model achieves an accuracy of 98. 86%, surpassing mainstream defect classification algorithms. Consequently, the proposed model exhibits superior classification effectiveness in defect recognition.
引用
收藏
页数:12
相关论文
共 31 条
  • [1] Melgar M E V, Farias M C Q., High density two-dimensional color code, Multimedia Tools and Applications, 78, 2, pp. 1949-1970, (2019)
  • [2] Huo L N, Zhu J X, Singh P K, Et al., Research on QR image code recognition system based on artificial intelligence algorithm, Journal of Intelligent Systems, 30, 1, pp. 855-867, (2021)
  • [3] Wang X H, Chen H., Generation parameter optimization of color QR code based on jet printing technology, Packaging Engineering, 39, 7, pp. 199-203, (2018)
  • [4] Lin Q, Xia J F, Tu Z Z, Et al., Discrimination of handwritten and printed texts based on frame features and viterbi decoder, Laser & Optoelectronics Progress, 56, 6, (2019)
  • [5] Wang K B, Li Y, Li Y H, Et al., Cigarette package image registration method based on feature of single-angle region, Laser & Optoelectronics Progress, 60, 2, (2023)
  • [6] Lou H J, Zheng Y L, Liao K Y, Et al., Defect target detection for printed matter based on Siamese-YOLOv4, Journal of Computer Applications, 41, 11, pp. 3206-3212, (2021)
  • [7] Ohyama W, Suzuki K, Wakabayashi T., Recognition and defect detection of dot-matrix text via variation-model based learning, Proceedings of SPIE, (2017)
  • [8] Wu Y, Lu Y J., An intelligent machine vision system for detecting surface defects on packing boxes based on support vector machine, Measurement and Control, 52, 7, pp. 1102-1110, (2019)
  • [9] Han Y, Wu Y B, Cao D H, Et al., Defect detection on button surfaces with the weighted least-squares model, Frontiers of Optoelectronics, 10, 2, pp. 151-159, (2017)
  • [10] Guo L Y, Li S N, Hu W J, Et al., Sub-pixel level defect detection based on Notch filter and image registration, International Journal of Pattern Recognition and Artificial Intelligence, 32, 6, (2018)