无线电工程2024,Vol.54Issue(1):6-13,8.DOI:10.3969/j.issn.1003-3106.2024.01.002
基于注意力机制与多尺度融合的PCB缺陷检测
Defect Detection of PCB Based on Attention Mechanism and Multi-scale Fusion
摘要
Abstract
Considering the low detection accuracy caused by defect areas of PCB due to excessive background interference and the small scale of defective objects,a defect detection method of PCB based on attention mechanism and multi-scale fusion is proposed.Firstly,to enhance the saliency of defective object features and make the model focus more on object features,a 3D attention module is introduced in the feature extraction network based on YOLOv5.Secondly,to make full use of the multi-scale features of tiny defective object,a weighted Bi-directional Feature Pyramid Network(BiFPN)is introduced in the feature fusion network to reduce the loss of feature information of the defective object and improve the detection accuracy of the model for small defective object.Finally,the experimental results show that the method can accurately detect the defective objects in PCB images,and the average detection accuracy is improved by 3.9%compared with the original method while the real-time performance is ensured,which shows the effectiveness of the method.关键词
印制电路板/缺陷检测/YOLOv5/注意力机制/多尺度融合Key words
PCB/defect detection/YOLOv5/attention mechanism/multi-scale fusion分类
信息技术与安全科学引用本文复制引用
陆维宽,周志立,阮秀凯,聂赛赛..基于注意力机制与多尺度融合的PCB缺陷检测[J].无线电工程,2024,54(1):6-13,8.基金项目
国家自然科学基金(61671329)National Natural Science Foundation of China(61671329) (61671329)