基于改进YOLOv5s的大尺寸导光板缺陷检测①刘霞,张环宇(东北石油大学电气信息工程学院,大庆163318)通信作者:张环宇,E-mail:932939991@qq.com摘要:导光板(LGP)是液晶显示器(LCD)背光模组的主要部件.导光板的缺陷将直接影响液晶显示器的显示效果.针对导光板图像纹理背景复杂、低对比度、缺陷尺寸小等问题,本文提出了一种用于大尺寸导光板缺陷检测的AYOLOv5s网络.首先,将导光板图像进行分图处理,然后在主干部分和特征融合部分集成Transformer和注意力机制coordinateattention,并选择Meta-ACON激活函数.最后,基于自建数据集LGPDD进行了大量实验.实验结果表明,LGP缺陷检测算法的平均精度(mAP)可以达到99.20%,并且FPS可达77,可以实现在12s/pcs内对尺寸为17英寸的导光板中的亮点、划伤、异物、磕碰伤、脏污等缺陷具有较好的实际检测效果.关键词:导光板缺陷检测;分图处理;AYOLOv5s;注意力机制;深度学习引用格式:刘霞,张环宇.基于改进YOLOv5s的大尺寸导光板缺陷检测.计算机系统应用,2023,32(2):339–346.http://www.c-s-a.org.cn/1003-3254/8881.htmlDefectDetectionofLarge-sizeLightGuidePlateBasedonImprovedYOLOv5sLIUXia,ZHANGHuan-Yu(SchoolofElectricalInformationEngineering,NortheastPetroleumUniversity,Daqing163318,China)Abstract:Alightguideplate(LGP)isthemaincomponentofthebacklightmoduleofaliquidcrystaldisplay(LCD),whosedefectscandirectlyaffectthedisplayeffectofLCD.Toaddresstheproblemsofcomplextexturebackground,lowcontrast,andsmalldefectsizeofLGPimages,thisstudyproposesanAYOLOv5snetworkfordefectdetectionoflarge-sizeLGPimages.First,theLGPimageisdividedintodifferentimages.Then,Transformerandtheattentionmechanismcoordinateattentionareintegratedinthemainpartandfeaturefusionpart,andtheMeta-ACONactivationfunctionisselected.Finally,massiveexperimentsarecarriedoutonthebasisoftheself-builtdatasetLGPDD.TheexperimentalresultsindicatethatthedefectdetectionalgorithmforLGPenjoysthemeanaverageaccuracy(mAP)ofupto99.20%andFPSof77,whichcanrealizegoodeffectsinthepracticaldetectionofbrightspots,scratches,foreignbodies,bumps,dirt,andotherdefectsinthe17-inchLGPin12s/pcs.Keywords:defectdetectionoflightguideplate;figureprocessing;AYOLOv5s;attentionmechanism;deeplearning1前言随...