PCB defect detection algorithm based on improved YOLOv5

Rui Wu, Haibin Li
{"title":"PCB defect detection algorithm based on improved YOLOv5","authors":"Rui Wu, Haibin Li","doi":"10.1117/12.3004442","DOIUrl":null,"url":null,"abstract":"Aiming at the problem of small contrast difference between the defective region and the background region in PCB images, This Article presents an enhanced YOLOv5 algorithm with a multi-scale detection approach. To enhance the YOLOv5 algorithm, this Article upgrades its backbone network by replacing Characteristics Abstraction network with the ASPP module. This change aims to improve the network's perceptual field and Characteristics extraction capability. Secondly, in order to improve the attention of the model to other regions, this Article introduces the attention mechanism Coordinate Attention module, which embeds the location information into the channel attention and achieves multi-scale processing and Characteristics fusion. Finally, this Article uses different sizes of anchor frames for multiscale detection of defective targets. The experimental results show that the size of the improved multiscale network model is only 83% of the size of the original YOLOv5 model, and the mAP on the dataset reaches 97.2%. The algorithm proposed in this Article can effectively detect various defects in PCB images and has high detection precision and low false detection rate, which has good practical value and prospect of popularization and application.","PeriodicalId":143265,"journal":{"name":"6th International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE 2023)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-08-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"6th International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE 2023)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.3004442","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Aiming at the problem of small contrast difference between the defective region and the background region in PCB images, This Article presents an enhanced YOLOv5 algorithm with a multi-scale detection approach. To enhance the YOLOv5 algorithm, this Article upgrades its backbone network by replacing Characteristics Abstraction network with the ASPP module. This change aims to improve the network's perceptual field and Characteristics extraction capability. Secondly, in order to improve the attention of the model to other regions, this Article introduces the attention mechanism Coordinate Attention module, which embeds the location information into the channel attention and achieves multi-scale processing and Characteristics fusion. Finally, this Article uses different sizes of anchor frames for multiscale detection of defective targets. The experimental results show that the size of the improved multiscale network model is only 83% of the size of the original YOLOv5 model, and the mAP on the dataset reaches 97.2%. The algorithm proposed in this Article can effectively detect various defects in PCB images and has high detection precision and low false detection rate, which has good practical value and prospect of popularization and application.
基于改进YOLOv5的PCB缺陷检测算法
针对PCB图像中缺陷区域与背景区域对比度差小的问题,本文提出了一种基于多尺度检测方法的增强YOLOv5算法。为了增强YOLOv5算法,本文对其骨干网进行了升级,用ASPP模块替换了特征抽象网络。这种改变旨在提高网络的感知场和特征提取能力。其次,为了提高模型对其他区域的关注,本文引入了关注机制坐标关注模块,将位置信息嵌入到通道关注中,实现多尺度处理和特征融合。最后,本文采用不同尺寸的锚框架对缺陷目标进行多尺度检测。实验结果表明,改进的多尺度网络模型的大小仅为原始YOLOv5模型大小的83%,数据集上的mAP达到97.2%。本文提出的算法能有效检测PCB图像中的各种缺陷,检测精度高,误检率低,具有良好的实用价值和推广应用前景。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信