The invention relates to a method for culling the defective deformation of a bottle cap, which comprises the following steps: collecting an image with a good bottle cap; and making a template by selecting the area of the box lid. Identify the position of the cap by template matching, find the edge of the support ring, find the edge of the cap on the cap, and measure the vertical distance between the upper edge and the lower edge; make a correction to the obtained cover rectangle, so that the lower edge of the lower edge moves down more pixels, the upper edge moves down less pixels, and in the corrected rectangular area. The Blob analysis is carried out; the analysis results of Blob are filtered and analyzed, less than the set threshold T, then the lid is intact; the lid is deformed and eliminated than the set threshold T. One
【技术实现步骤摘要】
一种瓶盖变形不良品剔除的方法
本专利技术涉及一种瓶盖变形不良品剔除的方法。
技术介绍
在高速的生产线上,输送线体带着装满液体的瓶子飞快的向后段包装运行,液体灌装后要通过自动化的设备旋转封盖,由于是在快速运动的过程中旋转封盖,经常出现封盖倾斜、变形的情况发生,这种情况的产品流入后段包装后,由于瓶子漏气,没有足够的支撑力,会导致在堆放的时候倒塌;如果流入市场则会引起客户的投诉;但由于产线速度很快,仅仅靠人工的抽检是完全解决不了问题的,因此,通过视觉的方式来检测瓶盖变形的方法应运而生,这样既解决的当前存在的问题,维护了公司的形象,而且节约了劳动成本,提高了生产效率。
技术实现思路
针对上述问题,本专利技术的目的是提供一种可以在线检测瓶盖变形并对不良品予以剔除的方法。为实现上述目的,本专利技术采取以下技术方案:一种瓶盖变形不良品剔除的方法,包括下列步骤:1)采集一幅瓶盖完好的图像;2)通过框选盖子的区域制作模板。3)通过模板匹配确认瓶盖的位置,找支撑环下边缘,再找瓶盖上边缘,测量上边缘与下边缘的垂直距离;4)对得到的盖子外接矩形进行修正,使得下边缘向下平移较多的像素,上边缘向下平移较少的个像素;5)在修正后的矩形区域里进行Blob分析;6)对Blob的分析结果进行过滤分析,小于设定阈值T,则盖子完好;大于设定阈值T,则盖子变形;7)剔除瓶盖变形不良品。本专利技术由于采取以上技术方案,其具有以下优点:(1)本专利技术能有效过解决瓶盖变形的问题,检测速度快,每分钟能检测3000个瓶子。(2)本专利技术检测算法稳定,抗干扰,有很好的鲁棒性,一旦设定好,短时间不需要调整。附图 ...
【技术保护点】
1.一种瓶盖变形不良品剔除的方法,包括下列步骤:
【技术特征摘要】
1.一种瓶盖变形不良品剔除的方法,包括下列步骤:1)采集一幅瓶盖完好的图像;2)通过框选盖子的区域制作模板。3)通过模板匹配确认瓶盖的位置,找支撑环下边缘,再找瓶盖上边缘,测量上边缘与下边缘的垂直距离;4)对得到的盖子外接矩形...
【专利技术属性】
技术研发人员:于振,余天洪,亢君,陈忠,
申请(专利权)人:天津普达软件技术有限公司,
类型:发明
国别省市:天津,12
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。