基于改进的RT-DETR小目标PCB缺陷检测OA
PCB small object defect detection based on improved RT-DETR
针对印刷电路板(PCB)缺陷检测中普遍存在漏检、误检、缺陷目标微小难以检测等问题,文中提出一种改进的RT-DETR算法.首先,在主干网络设计了多尺度特征边缘信息融合(MSFEIF)模块,增强了网络对多尺度边缘信息特征的提取,并实现了边缘信息的全局传播;同时,在原有AIFI模块基础上引入了高效自适应注意力(EAA)机制,构建了AIFI-EAA尺度交互模块,在减小计算复杂度的同时加快了推理速度并增强了模型的检测精度;此外,结合RepC3与RmtBlock结构优势,设计了RmtBlockC3模块,有效增强了网络的空间建模与全局感知能力;最后,将Inner-IoU思想与MPDIoU损失函数相融合,在不增加模型参数的前提下,提升边界框回归的匹配度与关键点定位精度,从而进一步提升检测效果.通过在PCB缺陷数据集上的实验,验证了改进后的模型算法相较于RT-DETR基准模型表现出了更优的性能,精确率(P)提高了4.3%,召回率(R)提高了3.3%,平均精度均值(mAP@0.5)提高了3.5%,表明该算法在PCB小目标缺陷检测的实际应用中有较高的价值.
An improved RT-DETR algorithm is proposed to tackle common challenges in printed circuit board(PCB)defect detection,including missed detections,false detections,and the low detection rate of tiny defects.Firstly,a multi-scale feature edge information fusion(MSFEIF)module is designed in the backbone network to enhance the network 's ability to extract multi-scale edge features and achieve global propagation of edge information.Additionally,an efficient adaptive attention(EAA)mechanism is introduced to the original AIFI module,and an AIFI-EAA scale interaction module is constructed.This modification reduces computational complexity,speeds up inference,and improves the detection accuracy of the model.Furthermore,combining the advantages of RepC3 and RmtBlock structures,a new RmtBlockC3 module is designed to effectively enhance the spatial modeling and global perception capabilities of the network.Finally,by integrating the Inner-IoU concept with the MPDIoU loss function,the matching accuracy of bounding box regression and keypoint localization accuracy is improved without increasing model parameters,so as to further enhance the detection performance.Experiments on the PCB defect dataset demonstrate that the improved model achieves superior performance compared to the baseline RT-DETR.Specifically,its precision increases by 4.3%,its recall rate by 3.3%,and its mean average precision(mAP@0.5)by 3.5%.These results indicate that the proposed algorithm holds high value for the practical application of small object defect detection in PCB inspection.
张宗旋;孙旋
广西高校先进制造与自动化技术重点实验室,广西 桂林 541006||桂林理工大学 机械与控制工程学院,广西 桂林 541006广西高校先进制造与自动化技术重点实验室,广西 桂林 541006||桂林理工大学 机械与控制工程学院,广西 桂林 541006||广西特种工程装备与控制重点实验室,广西 桂林 541004
信息技术与安全科学
小目标检测RT-DETR缺陷检测PCB特征融合Transformer
small object detectionRT-DETRdefect detectionPCBfeature fusionTransformer
《现代电子技术》 2026 (13)
119-127,9
广西特种工程装备与控制重点实验室(桂林航天工业学院)开放基金(2411KFYB02)
评论