基于SURF特征改进的空调标签缺陷检测算法
2025-08-09周慧子刘跃霖刘青李建武



中图分类号:TP317.4 文献标识码:A DOI:10.7535/hbkd.2025yx03010
An improved air conditioner label defect detection algorithm based on SURF features
ZHOU Huizi1'²,LIU Yuelin³,LIU Qing4,LI Jianwul
(1.School of Computer Science and Technology,Beijing Institute of Technology,Beijing 10o081,China; 2.Big Data Center,Zhuhai Gree Electric Appliances Company Limited,Zhuhai,Guangdong 519o7o,China; 3.Ara Institute of Canterbury International Enginering College(Zhongxin International College of Engineering), ShenyangJianzhu University,Shenyang,Liaoning1lol68,China; 4.School of Economics and Management,Hebei University of Science and Technology, Shijiazhuang,Hebei O50o18,China)
Abstract:Aiming at thebottleneck that deep learning algorithms are not compatible withdevice detectionand new sample colection,aswellaspoordetectiontimelinessandgeneralizationability,atraditionaltemplatematchingdetectionalgorithm basedonSURFfeatures was proposed.Firstly,SURFalgorithm was usedtoextractfeaturesfrom theimage,andthe product quantization theory was used to construct search tres.The matching points were quickly screned basedon spatial position informationof feature points.Secondly,the homographymatrix and afine transformation matrix wereobtained from the matching points,and the two matrices werecombined to scree the \"interior points\"forofset calculationand image registration.Finaly,combined withtheideaoflocal defect density measurement,thedefect densitywascalculatedby integratingtheregionalforegroundandbackground weighting method,andthequalificationofthelabelwasdeterminedbythe defectdensity.Atthesametime,forthesceneofsmallcharacterswithfewfeaturesandlocalofset,animproved method wasproposed toavoid misjudgment.The results show that thealgorithm improves the stability and detection acuracyof feature point matching. The accuracy,recall and Fl on the self-built data set are 98.67% , 97.69% and 98.18% , respectively,which arebettr thanthemainstream methods.The practicalapplicationonthedevice meets thereal-time requirements.Thealgorithmcaneffectively improve thestabilityoffeature pointsandthe detectionacuracy,meet the detection timeliness of equipment,and provide technical reference for its practicability.
Keywords:image processing;defect detection;SURF characteristics;image registration;defect density
随着工业4.0的浪潮推进,标签的质量已经成为衡量企业生产能力和市场竞争力的关键指标之一。为节约成本,大部分企业的空调内机标签是由人工粘贴的,存在人为造成的贴错、贴偏、漏贴等情况,并且生产线上采用人工目视检测的方式来判断产品外观合格性,不能有效保证检测精度,因此需要研制空调内机标签质量自动化检测设备对空调机身外观进行检测,达到省时省力、提高生产效率的目的[1]。
常用的标签缺陷检测方法有2种:基于传统图像处理的检测和基于深度学习模型的检测。关于传统图像处理的检测方法,周阳等[2]采用Halcon展开日化瓶瓶底喷码质量检测算法研究,利用基于形状的模板匹配法实现字符区域的定位;尚玉廷[3」利用专门特殊算法分割提取随机畸变字符集,创建每个独立字符的匹配模板,并记录相对位置区域进行包装箱型号标记缺陷检测;张永宏等[4]采用尺度不变特征转换算子(scale-invariant feature transform,SIFT)进行模板匹配,利用像素差值的方式来实现缺陷检测;BENJELIL等5使用交互式信息进行字符检测,找到自动缺陷检测算法检测到的图像与标准图像之间的差异,实现字符缺陷检测;HUA等[6]采用快速鲁棒特征描述子(speeded up robust feature descriptor,SURF)与特征跟踪角检测器进行图像特征提取,解决了拐角检测中拐角信息丢失、位置偏移等问题。此类方法能适应更多类型标签的检测,但由于特征点检测依赖于检测算子,通常因为检测速度慢和特征点不稳定出现误识别,对畸变、旋转等情况适应性较差[7]。……
