摘要
针对手机屏幕图像划痕缺陷形状不规则、深浅对比度低的问题,提出基于机器视觉的手机屏幕表面划痕检测方法。首先采用PatMax算法和仿射变换对手机屏幕图像进行预处理;然后采用剪切变换将图像分解成低频和高频两部分,构造0°、45°、90°和135°四种方向的元素形状对低频部分进行灰度闭运算操作,同时对高频部分进行N×M中值滤波去噪处理,通过剪切逆变换生成增强图像;最后采用改进的Otsu双阈值方法对目标进行提取。随机选取450张手机屏幕图像进行实验,检测率最高可达98.7%,结果表明,该方法能够有效增强图像的细节信息,相比其他方法,极大地保证了划痕缺陷的完整性。
Aiming at the problem of irregular shape and low contrast of the scratches in the image of mobile phone screen,a method based on machine vision was proposed to detect the surface scratches of mobile phone screen.Firstly,the PatMax algorithm and affine transformation were adopted to preprocess the screen images of mobile phone.Then the shear transformation was used to decompose the image into two parts:low frequency and high frequency,the element shapes in four directions of 0°,45°,90°and 135°were constructed to perform gray-scale closing operation on the low frequency part,and the N×M median filter denoising operation was performed on the high frequency part,the enhanced image was generated by the inverse shear transformation.Finally,the improved Otsu double threshold method was used to extract the target.450 pieces of mobile phone screen images were randomly selected for experiments,and the highest detection rate is 98.7%.The results show that this method can effectively enhance the detail information of the images,which greatly guarantees the integrity of the scratch defects.
作者
张建国
李颖
齐家坤
季甜甜
刘隽
ZHANG Jianguo;LI Ying;QI Jiakun;JI Tiantian;LIU Jun(School of Mechanical Engineering,Shanghai Institute of Technology,Shanghai 201418,China)
出处
《应用光学》
CAS
CSCD
北大核心
2020年第5期984-989,共6页
Journal of Applied Optics
基金
上海科技成果转化促进会联盟计划—难题招标专项资助项目(LM201770)
上海市自然科学基金面上资助项目(19ZR1455100)。
关键词
机器视觉
划痕检测
剪切变换
灰度形态学
Otsu双阈值
machine vision
scratch detection
shear transformation
gray morphology
Otsu double threshold