Publications
Sort:
Open Access Issue
Fast PCB defects detection method based on improved YOLOv5
Journal of Measurement Science and Instrumentation 2023, 14(3): 340-349
Published: 01 September 2023
Abstract PDF (8.5 MB) Collect
Downloads:37

A fast printed circuit board (PCB) defects detection method based on improved YOLOv5 is proposed to solve the problems of poor detection accuracy and low efficiency in detecting PCB defects in the industrial production process. Firstly, for the path aggregation network module (PANet), an improved attention mechanism module, parallel residual Ghostconv-convolutional block attention module (PRG-CBAM), is introduced, which eliminates the priority of the channel attention module and spatial attention module to increase the accuracy of object detection. Secondly, replacing the general convolution in the PANet module with ghost convolution (Ghostconv) can reduce the number of network parameters and the amount of calculation to improve the efficiency of object detection. The experimental results show that the proposed method compresses the parameters of YOLOv5s model by 18.8%, and detection speed of the algorithm for PCB board defects reaches 58.342 frame/s, which is 120.6%, 55.4% and 40.1% higher than that of single shot multiBox detector (SSD), YOLOv4 and YOLOv5s algorithms, respectively. The average detection accuracy reaches 99.0%, which is 28.1%, 2.0% and 1.5% higher than that of SSD, YOLOv4 and YOLOv5s algorithms, respectively. It indicates that the proposed board method has a remarkable real-time and high-precision detection effect, so it can be applied to the real-time detection of PCB defects in actual industrial production.

Total 1