Summary: | Surface Mount Technology (SMT) pin solder joint defects are hard to detect since the joints are smaller and denser and have high similarity between defect samples and standard samples in solder joint images. We propose an improved YOLOv5 defect detection algorithm embedding Cascade Shuffle Space to Depth (CSSD), Coordinate Attention (CA) mechanism module, and K-means++ algorithm. The proposed improved Yolov5 significantly impacts the loss and model parameter reduction and higher positioning precision of the defect location on the disk. The optimum anchor box produces better clustering and stability. Compared with the original YOLOv5 under the same test conditions, the method in this paper improves the precision by 12.2%, recall by 9.4%, mAP by 9.0%, and model parameters reduced by 1.3M. In conclusion, the experimental results show that the algorithm proposed in this paper has a better detection effect and a smaller parameter scale. It also can better meet the defect detection and model deployment in the actual industrial production environment. © 2023, Penerbit Akademia Baru. All rights reserved.
|