摘要
针对PET饮料瓶在封盖过程中的缺陷问题,提出了一种基于机器视觉技术的检测算法。首先,搭建了检测系统硬件平台,对检测难点进行了分析;然后,使用模板匹配算法检测瓶盖的有无,并根据匹配结果对持胚环区域和瓶盖上边缘区域进行了定位;通过Harris角点检测算法确定了持胚环所在的基准直线方程,采用Canny边缘检测算法与最小二乘算法拟合出了瓶盖上边缘直线方程;最后,通过计算瓶盖上边缘线与基准直线的夹角和距离完成了对歪盖、高盖的检测。研究结果表明:该检测算法检测效果良好,处理效率高,准确率可达99%以上,单个PET瓶检测效率为100 ms左右,且算法通用性强。
Aiming at the problems of defects in PET bottle capping production line,a detection algorithm based on machine vision technology was proposed. Firstly,the hardware platform of the system was built,so that the detection difficulties were analyzed. The template matching algorithm was introduced to detect the presence or absence of the cap,and the regions of the embryo ring and upper edge of the cap were positioned from the matching results. Then,the Harris corner detection algorithm was used to fit the straight line of the embryo ring. Furthermore,the Canny algorithm and the least squares algorithm were used to fit the straight line of upper edge of the cap. Finally,by calculating the angle and distance between the line of upper edge of the cap and the reference line,the defects of inclined cap and high cap were categorized. The results indicate that the detection algorithm has great detection result and efficient real-time processing efficiency,with the detection accuracy up to 99%,the detection efficiency is less than 100 ms.
作者
吴兰兰
陈硕
黄祥斌
陆华
WU Lan-lan;CHEN Shuo;HUANG Xiang-bin;LU Hua(School of Mechanical Engineering and Automation, Fuzhou University, Fuzhou 350116, China;Fuzhou Sunlong Ink Jet Printing Technology Co. , Ltd. , Fuzhou 350014, China)
出处
《机电工程》
CAS
北大核心
2018年第5期533-539,共7页
Journal of Mechanical & Electrical Engineering