首页 | 官方网站   微博 | 高级检索  
     

基于Canny和双线性插值的镍片边缘提取算法
引用本文:杨舒,曾寿金,刘震,唐辉,方宇轩.基于Canny和双线性插值的镍片边缘提取算法[J].福建工程学院学报,2022,0(6):567-572.
作者姓名:杨舒  曾寿金  刘震  唐辉  方宇轩
作者单位:福建工程学院机械与汽车工程学院
摘    要:手机锂电池保护板在生产过程中需要利用视觉检测镍片角度偏差、折叠等各类缺陷,但由于镍片尺寸小且这些缺陷在灯光下会产生不同程度的反光,导致获得的镍片图像边缘不清晰。为此,本研究提出了一种基于Canny算子和双线性插值的高亮镍片边缘提取算法。首先对原始图像分割出感兴趣区域并进行灰度处理,再利用Canny算子提取其像素级边缘,最后用双线性插值法提取其亚像素级边缘。为验证该算法的有效性,将其与工程中常用的Sobel 边缘提取算法进行实验对比,计算边缘内部包含面积的像素数量、等级及边缘提取的时间,判断两类算法在精度和效率上的优劣。实验结果表明,基于Canny 算子和双线性插值的高亮镍片边缘提取算法能精准提取镍片的亚像素边缘,提取的像素精度达到了0.1 pixel,平均边缘提取时间为0.835 s,比Sobel 节省了20.57%的时间,能够满足工业生产的精度需求与效率要求。

关 键 词:边缘提取  锂电池保护板  镍片  Canny算子  亚像素

Edge extraction algorithm of nickel sheet based on Canny operator and bilinear interpolation
YANG Shu,ZENG Shoujin,LIU Zhen,TANG Hui,FANG Yuxuan.Edge extraction algorithm of nickel sheet based on Canny operator and bilinear interpolation[J].Journal of Fujian University of Technology,2022,0(6):567-572.
Authors:YANG Shu  ZENG Shoujin  LIU Zhen  TANG Hui  FANG Yuxuan
Affiliation:School of Mechanical and Automotive Engineering, Fujian University of Technology
Abstract:In the production process of the lithium battery protection plates of the mobile phone, visual detection has to be used for various defects such as angle deviation, folding and so on. However, due to the small size of the nickel plate and the fact that these defects will produce different degrees of reflection under the light, the edge of the obtained nickel plate image is not clear. Therefore, an algorithm based on Canny operator and bilinear interpolation is proposed to extract the edge of the highlighted nickel sheet. Firstly, the original image was divided into regions of interest (ROI), which would then receive gray-scale processing, and then the pixel-level edges were extracted by Canny operator, and sub-pixel-level edges were extracted by bilinear interpolation. In order to verify the effectiveness of the algorithm, it was compared with Sobel edge extraction algorithm, which is commonly used in engineering, and the number and grade of pixels in the area inside the edge and the time of edge extraction were calculated. The advantages and disadvantages of the two algorithms in accuracy and efficiency were judged. Experimental results show that the edge extraction algorithm based on Canny operator and bilinear interpolation can accurately extract the sub-pixel edge of nickel sheet. The pixel accuracy is up to 0.1pixel, and the average edge extraction time is 0.835 s, which saves 20.57% of time compared with Sobel. The proposed method can meet the precision and efficiency requirements of industrial production.
Keywords:edge extraction  lithium battery protection plate  nickel sheet  Canny operator  sub-pixel
点击此处可从《福建工程学院学报》浏览原始摘要信息
点击此处可从《福建工程学院学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号