A defect detection method for PCB based on the improved YOLOv4

被引:0
|
作者
Wu J. [1 ]
Cheng Y. [1 ]
Shao J. [1 ]
Yang D. [1 ]
机构
[1] Hunan Provincial Key Laboratory of Health Maintenance for Mechanical Equipment, Hunan University of Science and Technology, Xiangtan
关键词
Dichotomous K-means clustering; Inceptionv3; MobileNetV3; PCB board defect detection; YOLOv4;
D O I
10.19650/j.cnki.cjsi.J2108244
中图分类号
学科分类号
摘要
The existing PCB defect detection methods has problems of low efficiency, high false detection rate, low generality and poor real-time performance. To address these issues, a PCB defect detection method based on the improved you only look once (YOLO) v4 algorithm is proposed. Anchor frames are determined by the improved dichotomous K-means clustering combined with intersection over union (IoU) loss function. In this way, the problem that the pre-defined anchor frames are not applicable to PCB small target defect detection is solved. MobileNetV3 is introduced as a feature extraction network to enhance the detection performance of small target defects on PCB, while facilitating deployment in the field on lightweight mobile terminals. Inceptionv3 is introduced as the detection network, which utilizes multiple convolutional kernels for operations to meet the requirements of PCB defect detection in multiple categories. The PCB_DATASET dataset is used as the test object. The proposed method is compared with Faster R-CNN, YOLOv4 and MobileNetV3-YOLOv4 for evaluation experiments. Results show that the mean average precision (mAP) of the proposed method is 99.10%, the model size is 53.2 MB, and the detection speed is 43.01 FPS. The detection mAP is improved by 4.88%, 0.05%, and 2.01%, respectively. The model size is reduced by 0, 203.2, and 3.3 MB, respectively. And the detection speed is improved by 29.93 FPS. The speed is increased by 29.93, 6.37, and 0.79 FPS, which meets requirements of high inspection accuracy and inspection speed in PCB industrial production sites. © 2021, Science Press. All right reserved.
引用
收藏
页码:171 / 178
页数:7
相关论文
共 24 条
  • [1] LIU W S, FANG Y J., A PCB bare board defect recognition algorithm based on multiscale lightweight convolutional networks, Automation & Information Engineering, 41, 5, pp. 20-25, (2020)
  • [2] TANG B, KONG J Y, WU SH Q., A review of machine vision surface defect detection, Journal of Image and Graphics, 22, 12, pp. 1640-1663, (2017)
  • [3] MOGANTI M, ERCAL F, DAGLI C H, Et al., Automatic PCB inspection algorithms: A survey, Computer Vision and Image Understanding, 63, 2, pp. 287-313, (1996)
  • [4] GAIDHANE V H, HOTE Y V, SINGH V., An efficient similarity measure approach for PCB surface defect detection, Pattern Analysis and Applications, 21, 1, pp. 277-289, (2018)
  • [5] WANG D, MA CH Y, CHEN G., A novel fast alignment algorithm for PCB images, Computer Science, 43, pp. 152-155, (2016)
  • [6] WANG Y L, CAO J T, JI X F., Convolutional neural network-based algorithm for PCB defect detection and identification, Journal of Electronic Measurement and Instrumentation, 33, 8, pp. 78-84, (2019)
  • [7] WU F P, GUO J H, ZHANG X M, Et al., 3D quality inspection method for PCB solder joint surface, Chinese Journal of Scientific Instrument, 39, 5, pp. 233-240, (2018)
  • [8] GUO SH G., PCB defect detection algorithm based on travel coding, Journal of Computer Applications, 29, 9, pp. 2554-2555, (2009)
  • [9] LI Y F, LI SH Y., Defect detection of printed circuit boards based on gradient direction information entropy, China Mechanical Engineering, 28, 6, pp. 695-701, (2017)
  • [10] XIE H W, ZHANG X M, KUANG Y C., PCB solder joint detection method based on statistical analysis of image features, Chinese Journal of Scientific Instrument, 32, 2, pp. 401-407, (2011)