[go: up one dir, main page]

CN105424722A - Bottle cap unqualified product marking method based on machine vision - Google Patents

Bottle cap unqualified product marking method based on machine vision Download PDF

Info

Publication number
CN105424722A
CN105424722A CN201510753888.0A CN201510753888A CN105424722A CN 105424722 A CN105424722 A CN 105424722A CN 201510753888 A CN201510753888 A CN 201510753888A CN 105424722 A CN105424722 A CN 105424722A
Authority
CN
China
Prior art keywords
bottle cap
image
bottle
circle
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510753888.0A
Other languages
Chinese (zh)
Inventor
刘影
吕辰刚
郭玺
丁珏
杨嘉琛
米岩
陈德胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University
Original Assignee
Tianjin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CN201510753888.0A priority Critical patent/CN105424722A/en
Publication of CN105424722A publication Critical patent/CN105424722A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/892Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the flaw, defect or object feature examined
    • G01N21/898Irregularities in textured or patterned surfaces, e.g. textiles, wood
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N2021/8909Scan signal processing specially adapted for inspection of running sheets

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Wood Science & Technology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及一种基于机器视觉的瓶盖不合格品标记方法,该方法用LED白色环形光源照明待测瓶盖表面,步骤如下:1)采集合格瓶盖的图像信息;2)采集待测瓶盖图像;3)对经过中值滤波预处理后的图像进行二值化处理;4)进行圆定位,找到瓶盖边沿作为圆边,以圆心为原点建立坐标系;5)根据合格瓶盖上的生产日期喷码的像素点数预设检测目标的像素点数的上下限,利用步骤4)得到的圆边和已经建立的坐标系,将圆内设定为感兴趣区域ROI,将ROI内生产日期喷码作为检测目标,进行瓶盖检测;6)标记不合格产品。本发明所用算法简单,步骤少,实现了图像的快速检测,检测效率高;受环境影响较小,准确率高。

The invention relates to a method for marking unqualified bottle caps based on machine vision. The method uses an LED white ring light source to illuminate the surface of the bottle cap to be tested, and the steps are as follows: 1) collecting image information of qualified bottle caps; 2) collecting the bottle cap to be tested Cap image; 3) Binarize the image after median filter preprocessing; 4) Carry out circle positioning, find the edge of the bottle cap as the round edge, and establish a coordinate system with the center of the circle as the origin; 5) According to the qualified bottle cap The number of pixels of the production date inkjet presets the upper and lower limits of the number of pixels of the detection target. Using the circle edge obtained in step 4) and the established coordinate system, set the inside of the circle as the region of interest ROI, and set the production date in the ROI Coding is used as the detection target to detect bottle caps; 6) Mark unqualified products. The algorithm used in the invention is simple, has few steps, realizes rapid detection of images, has high detection efficiency, is less affected by the environment, and has high accuracy.

Description

一种基于机器视觉的瓶盖不合格品标记方法A method for marking unqualified bottle caps based on machine vision

所属技术领域Technical field

本发明涉及一种瓶盖检测不合格品标记方法,属于机器视觉领域。The invention relates to a method for marking unqualified products of bottle cap detection, which belongs to the field of machine vision.

背景技术Background technique

饮料、啤酒等工业生产线中,大都采用人工目测的方法来检查瓶子是否合格。特别是瓶盖生产中,需要在瓶盖上打印生产日期,会有喷码模糊或漏喷的情况。由于人眼容易发生视觉和肢体疲劳,常常效率很低,会造成漏检或者误检,且人工成本也越来越高。这些不合格产品流入市场会造成消费者不信任产品的质量,影响销售,甚至导致误饮过期产品危害健康等问题。In industrial production lines such as beverages and beer, most of them use manual visual inspection to check whether the bottles are qualified. Especially in the production of bottle caps, it is necessary to print the production date on the bottle caps, and there may be situations where the spray code is blurred or missed. Because human eyes are prone to visual and physical fatigue, the efficiency is often very low, which will cause missed or false detections, and the labor cost is also getting higher and higher. The flow of these substandard products into the market will cause consumers to distrust the quality of the products, affect sales, and even cause problems such as drinking expired products by mistake and endangering health.

针对上述人工检测存在的缺陷,进行基于机器视觉的瓶盖检测研究,建立一套光学成像、图像采集和数字图像处理及分析为平台的检测系统,不仅具有理论依据,而且也有很大的经济价值,能够确保最大范围内减少和杜绝上述现象发生,提高产品品质。Aiming at the above-mentioned defects of manual detection, the research on bottle cap detection based on machine vision and the establishment of a detection system based on the platform of optical imaging, image acquisition, digital image processing and analysis not only have theoretical basis, but also have great economic value , can ensure to reduce and eliminate the occurrence of the above phenomena to the greatest extent, and improve product quality.

机器视觉检测在很多检测领域已有应用,在瓶盖检测方面也有应用先例,但是大多都是对瓶盖內垫和外表面的瑕疵检测(如专利CN102095733A,CN103884651A),这些均是对于瓶盖外观质量的检测,而对于瓶盖上的喷码信息(如生产日期)的检测鲜有研究。在工业生产线中,每秒至少要检测5个瓶子以上,并且需要检测瓶盖生产日期喷码的存在性,完整性和清晰性等特点,若不合格就要做出标注或剔除。这对检测系统和软件处理的实时性都有较高要求。Machine vision detection has been applied in many detection fields, and there are also application precedents in bottle cap detection, but most of them are for the detection of defects on the inner pad and outer surface of the bottle cap (such as patent CN102095733A, CN103884651A), these are all for the appearance of the bottle cap However, there is little research on the detection of the coding information (such as the date of production) on the bottle cap. In the industrial production line, at least 5 bottles must be detected per second, and the existence, integrity and clarity of the production date coding on the bottle cap need to be detected. If it is unqualified, it must be marked or rejected. This has high requirements for the real-time performance of the detection system and software processing.

发明内容Contents of the invention

本发明的目的在于克服人工检测存在的不足之处及瓶盖检测的局限性,提供一种基于机器视觉的瓶盖不合格瓶在线标注方法。本发明的技术方案如下:The purpose of the present invention is to overcome the shortcomings of manual detection and the limitations of bottle cap detection, and provide an online labeling method for unqualified bottle caps based on machine vision. Technical scheme of the present invention is as follows:

一种基于机器视觉的瓶盖不合格品标记方法,该方法用LED白色环形光源照明待测瓶盖表面,步骤如下:A method for marking unqualified bottle caps based on machine vision. The method uses an LED white ring light source to illuminate the surface of the bottle cap to be tested. The steps are as follows:

1)将合格瓶子放置在待测工位,采集瓶盖的图像信息,调节相机和光源,使采集的瓶盖背景图像与其上所喷的生产日期的对比度达到最大,以便后续的处理;1) Place the qualified bottle at the station to be tested, collect the image information of the bottle cap, adjust the camera and light source, so that the contrast between the background image of the collected bottle cap and the production date sprayed on it reaches the maximum for subsequent processing;

2)将待检测的瓶子传送到待测工位,采集其瓶盖图像,对所采集的瓶盖图像进行中值滤波预处理,以去除噪音干扰并增强检测目标信息;2) Transfer the bottle to be detected to the station to be tested, collect the cap image, and perform median filter preprocessing on the collected cap image to remove noise interference and enhance the detection target information;

3)根据实际环境调整合适的阈值,对经过中值滤波预处理后的图像进行二值化处理,使二值化后的图像有效地将背景和目标分开;3) Adjust the appropriate threshold according to the actual environment, and perform binarization processing on the image preprocessed by the median filter, so that the binarized image can effectively separate the background and the target;

4)对3)得到的图像进行圆定位,找到瓶盖边沿作为圆边,以圆心为原点建立坐标系,采用下列步骤进行圆定位:4) 3) the image that obtains is carried out circular positioning, finds the bottle cap edge as the circular edge, takes the center of circle as the origin to establish a coordinate system, adopts the following steps to carry out circular positioning:

一、设定一个环形区域,使得瓶盖边沿处于内环和外环之间。1. Set an annular area so that the edge of the bottle cap is between the inner ring and the outer ring.

二、查找区域设为环形区域内,查找方向是从内环到外环;2. The search area is set within the ring area, and the search direction is from the inner ring to the outer ring;

三、以内环圆心为原点,在内环与外环之间设置多条固定间隔的搜索线;3. With the center of the inner ring as the origin, set multiple search lines at fixed intervals between the inner ring and the outer ring;

四、当搜索线上某点极性从灰度值1到灰度值0变化时,考虑为所找边界点;4. When the polarity of a certain point on the search line changes from gray value 1 to gray value 0, it is considered to be the boundary point to be found;

五、利用在各条搜索线上找到的边界点组成圆边;5. Use the boundary points found on each search line to form a circular edge;

5)根据合格瓶盖上的生产日期喷码的像素点数预设检测目标的像素点数的上下限,利用步骤4)得到的圆边和已经建立的坐标系,将圆内设定为感兴趣区域ROI,将ROI内生产日期喷码作为检测目标,根据实际情况,设定合适的检测目标的像素大小,过滤图像中因光强导致的无关细小像素黑点的影响,若检测目标的像素点数在规定的上下限内即为合格,否则判定为不合格产品;5) Preset the upper and lower limits of the pixel points of the detection target according to the pixel points of the production date on the qualified bottle cap, and use the circle edge obtained in step 4) and the established coordinate system to set the inside of the circle as the area of interest ROI, the production date in the ROI is used as the detection target. According to the actual situation, set the appropriate pixel size of the detection target to filter the influence of irrelevant small pixel black spots caused by light intensity in the image. If the number of pixels of the detection target is within If it is within the specified upper and lower limits, it is qualified, otherwise it is judged as unqualified product;

6)对于不合格产品,通过串行I/O输出控制信号,打开电磁阀,利用标注单元的喷嘴喷出带颜色的标记不合格瓶子。6) For unqualified products, output the control signal through the serial I/O, open the solenoid valve, and use the nozzle of the marking unit to spray out the marked unqualified bottle with color.

本发明的有益效果是:首先,该方法所用算法简单,步骤少,实现了图像的快速检测,检测效率高;其次,该方法受环境影响较小,准确率高;使用光电触发拍照,实时性好;该检测方法新颖,适用范围广,对于工业玻璃瓶装产品检测均适用;该方法可以附加在现有生产线上,实现边生产边检测的在线检测。本发明适用于自动化生产中瓶盖表面生产日期喷码不合格品的标记工作。The beneficial effects of the present invention are as follows: firstly, the algorithm used in the method is simple, the steps are few, the rapid detection of the image is realized, and the detection efficiency is high; secondly, the method is less affected by the environment and has a high accuracy rate; Good; the detection method is novel and has a wide range of applications, and is applicable to the detection of industrial glass bottled products; this method can be added to the existing production line to realize on-line detection during production. The invention is suitable for marking unqualified products with the date of production on the surface of bottle caps in automatic production.

附图说明Description of drawings

图1用于本发明的基于机器视觉对瓶盖不合格品标记的装置示意图。Fig. 1 is used in the schematic diagram of the device for marking unqualified bottle caps based on machine vision of the present invention.

图2本发明的基于机器视觉对瓶盖表面生产日期检测方法流程图。Fig. 2 is a flow chart of the method for detecting the production date on the surface of the bottle cap based on machine vision of the present invention.

图3(a)本发明方法待测原始瓶盖图像,(b)步骤1采集到的瓶盖图像。Fig. 3 (a) the image of the original bottle cap to be tested by the method of the present invention, (b) the image of the bottle cap collected in step 1.

图4(a)本发明方法检测到的合格瓶盖判定结果图,(b)不合格瓶盖判定结果图。Fig. 4 (a) the judgment result diagram of qualified bottle cap detected by the method of the present invention, (b) the judgment result diagram of unqualified bottle cap.

具体实施方式detailed description

下面结合附图和具体实例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific examples.

参见图1,一种基于机器视觉的瓶盖不合格品标记的系统装置,从功能上分6个模块,即传送带1、图像采集模块2、光电触发器3、照明模块4、图像处理与识别5和输出控制装置6。上述图像采集模块2使用120万像素CCD相机,照明模块4使用LED环形光源,图像处理与识别模块5使用工控机。输出控制装置由电磁阀控制的喷嘴组成。传送带1将待测瓶子输送到拍照工位,所述光电触发装置3用于检测瓶子是否到达拍照位置,以便产生脉冲信号输送到工控机5,工控机发出信号触发相机2拍照;环形光源4为相机拍照时提供照明以提高图像质量,CCD相机位于传送带1正上方,并通过环形光源中间拍照,拍摄的图像被输送到工控机中进行处理;输出控制装置与工控机相连,当检测到不合格产品时输出控制信号控制喷嘴6喷出颜料对其进行标记。See Figure 1, a system device for marking unqualified bottle caps based on machine vision, which is divided into six functional modules, namely conveyor belt 1, image acquisition module 2, photoelectric trigger 3, lighting module 4, image processing and recognition 5 and output control device 6. The above-mentioned image acquisition module 2 uses a 1.2 million-pixel CCD camera, the lighting module 4 uses an LED ring light source, and the image processing and recognition module 5 uses an industrial computer. The output control device consists of a nozzle controlled by a solenoid valve. The conveyor belt 1 transports the bottle to be tested to the photographing station, and the photoelectric trigger device 3 is used to detect whether the bottle arrives at the photographing position, so as to generate a pulse signal and deliver it to the industrial computer 5, and the industrial computer sends a signal to trigger the camera 2 to take pictures; the ring light source 4 is The camera provides lighting to improve the image quality when taking pictures. The CCD camera is located directly above the conveyor belt 1 and takes pictures through the middle of the ring light source. The captured images are sent to the industrial computer for processing; the output control device is connected to the industrial computer. When unqualified When the product is produced, the output control signal controls the nozzle 6 to spray paint to mark it.

参见图2,本发明的基于机器视觉对瓶盖表面生产日期检测不合格品标记的流程图。步骤如下:Referring to Fig. 2, the flow chart of the present invention based on machine vision to detect defective product marks on the bottle cap surface production date. Proceed as follows:

(1)将工业相机放置到生产线工件传送带正上方的待测工位,待测位置上放置合格瓶盖的产品,调节相机本身曝光补偿和环形光源亮度使得获取瓶盖背景图像与生产日期喷码对比度达到最大。(1) Place the industrial camera at the station to be tested directly above the workpiece conveyor belt of the production line, place qualified bottle cap products on the position to be tested, adjust the exposure compensation of the camera itself and the brightness of the ring light source to obtain the background image of the bottle cap and spray the production date Contrast is maximized.

(2)启动传送带,待测瓶子随传送带到达拍摄位置,触发相机获取待测瓶盖图像,经过通道传送到工控机图像处理系统。(2) Start the conveyor belt, the bottle to be tested arrives at the shooting position along with the conveyor belt, trigger the camera to acquire the image of the bottle cap to be tested, and transmit it to the image processing system of the industrial computer through the channel.

(3)首先对图像进行预处理,经过多次测试,使用中值滤波效果最好,处理后图像目标信息增强。(3) Firstly, the image is preprocessed. After many tests, the median filtering effect is the best, and the image target information is enhanced after processing.

(4)对步骤(4)处理后图像二值化,根据图像灰度直方图,设定合适的阈值,提高图像识别率。(4) Binarize the processed image in step (4), and set an appropriate threshold according to the gray histogram of the image to improve the image recognition rate.

(5)在二值化后图像中找到瓶盖边缘作为圆边,并以圆心为原点建立坐标系。方法如下:第一步,以瓶盖为基准,设定一个环形区域,使得瓶盖边沿处于内环和外环之间。第二步,将环形区域作为查找圆边区域,查找方向是从内环到外环;第三步,以内环圆心为起点设置多条射线,在内环与外环之间截取相邻间隔为10px线段作的搜索线。第四步,当线段上某点极性从灰度值1到灰度值0变化时,考虑为所找边界点。第五步,设定最小边界强度为20,搜索线宽度为3px,圆边缘像素为3px,依据以上条件可以得到以搜索线上点为边界点组成的圆边。(5) Find the edge of the bottle cap in the binarized image as the round edge, and establish a coordinate system with the center of the circle as the origin. The method is as follows: In the first step, based on the bottle cap, set a circular area so that the edge of the bottle cap is between the inner ring and the outer ring. In the second step, the circular area is used as the search circle area, and the search direction is from the inner ring to the outer ring; in the third step, multiple rays are set with the center of the inner ring as the starting point, and the adjacent interval between the inner ring and the outer ring is intercepted as 10px line segments for search lines. In the fourth step, when the polarity of a certain point on the line segment changes from gray value 1 to gray value 0, it is considered as the boundary point to be found. The fifth step is to set the minimum border strength to 20, the width of the search line to 3px, and the circle edge pixels to 3px. According to the above conditions, a circle edge composed of points on the search line as boundary points can be obtained.

(6)将找到圆边内部作为处理区域,生产日期喷码作为检测目标。根据实际情况,设定合适的检测目标的像素大小,当检测目标数在设定的阈值内判断为合格,否则不合格。(6) Find the inside of the round edge as the processing area, and print the production date as the detection target. According to the actual situation, set the appropriate pixel size of the detection target. When the number of detection targets is within the set threshold, it is judged as qualified, otherwise it is unqualified.

(7)不合格信号经工控机输出,控制打开电磁阀,连接在电磁阀上的喷嘴喷出颜料,标记不合格瓶子,完成标记后,继续检测下一个待测瓶盖。具体操作步骤如下:(7) The unqualified signal is output by the industrial computer to control the opening of the solenoid valve, and the nozzle connected to the solenoid valve sprays the paint to mark the unqualified bottle. After the marking is completed, continue to detect the next bottle cap to be tested. The specific operation steps are as follows:

待测饮料瓶在传送带上一次经过光电触发器,CCD相机和标注单元,已知光电触发器距离相机M,相机与喷嘴距离为N,传送带速度为v。瓶子经过触发器时,传感器给工控机发送信号记录当前时间为t,以此为参考时间,相机经过M/V时间,相机开始拍照采集图像,经工控机检测判断后,合格品不发出信号,不合格品则经过N/V输出控制信号,打开电磁阀,使喷嘴喷出红色颜料标记瓶子。The beverage bottle to be tested passes through the photoelectric trigger, CCD camera and marking unit once on the conveyor belt. It is known that the distance between the photoelectric trigger and the camera is M, the distance between the camera and the nozzle is N, and the speed of the conveyor belt is v. When the bottle passes the trigger, the sensor sends a signal to the industrial computer to record the current time as t, which is used as a reference time. When the camera passes the M/V time, the camera starts to take pictures and collect images. After the industrial computer detects and judges, the qualified product does not send out a signal. The unqualified product will output the control signal through N/V, open the solenoid valve, and make the nozzle spray out the red pigment to mark the bottle.

图3所示,左边图像为相机拍摄原始图像,右图为调整相机曝光率和光源后采集的图像,这样调节后的图像使得后续处理判断更简单。As shown in Figure 3, the image on the left is the original image captured by the camera, and the image on the right is the image collected after adjusting the exposure rate of the camera and the light source. This adjusted image makes subsequent processing and judgment easier.

参见图4,(a)为合格瓶盖的判断结果,图中可以看出瓶边沿为找到的圆边,检测目标时只对圆内的喷码做检测。(b)为瓶盖上生产日期不完整时的检测结果,当生产日期有缺损,不清晰时均会被判断为不合格。See Figure 4, (a) is the judgment result of qualified bottle caps. It can be seen from the figure that the edge of the bottle is the found round edge. When detecting the target, only the inkjet code inside the circle is detected. (b) is the test result when the production date on the bottle cap is incomplete. If the production date is missing or unclear, it will be judged as unqualified.

Claims (1)

1.一种基于机器视觉的瓶盖不合格品标记方法,该方法用LED白色环形光源照明待测瓶盖表面,步骤如下:1. A method for marking unqualified bottle caps based on machine vision, the method uses LED white ring light source to illuminate the surface of the bottle cap to be tested, and the steps are as follows: 1)将合格瓶子放置在待测工位,采集瓶盖的图像信息,调节相机和光源,使采集的瓶盖背景图像与其上所喷的生产日期的对比度达到最大,以便后续的处理;1) Place the qualified bottle at the station to be tested, collect the image information of the bottle cap, adjust the camera and light source, so that the contrast between the background image of the collected bottle cap and the production date sprayed on it reaches the maximum for subsequent processing; 2)将待检测的瓶子传送到待测工位,采集其瓶盖图像,对所采集的瓶盖图像进行中值滤波预处理,以去除噪音干扰并增强检测目标信息;2) Transfer the bottle to be detected to the station to be tested, collect its cap image, and perform median filter preprocessing on the collected cap image to remove noise interference and enhance the detection target information; 3)根据实际环境调整合适的阈值,对经过中值滤波预处理后的图像进行二值化处理,使二值化后的图像有效地将背景和目标分开;3) Adjust the appropriate threshold according to the actual environment, and perform binarization processing on the image preprocessed by the median filter, so that the binarized image can effectively separate the background and the target; 4)对3)得到的图像进行圆定位,找到瓶盖边沿作为圆边,以圆心为原点建立坐标系,采用下列步骤进行圆定位:4) 3) the image that obtains is carried out circular positioning, finds the bottle cap edge as the circular edge, takes the center of circle as the origin to establish a coordinate system, adopts the following steps to carry out circular positioning: 一、设定一个环形区域,使得瓶盖边沿处于内环和外环之间。1. Set an annular area so that the edge of the bottle cap is between the inner ring and the outer ring. 二、查找区域设为环形区域内,查找方向是从内环到外环;2. The search area is set within the ring area, and the search direction is from the inner ring to the outer ring; 三、以内环圆心为原点,在内环与外环之间设置多条固定间隔的搜索线;3. With the center of the inner ring as the origin, set multiple search lines at fixed intervals between the inner ring and the outer ring; 四、当搜索线上某点极性从灰度值1到灰度值0变化时,考虑为所找边界点;4. When the polarity of a certain point on the search line changes from gray value 1 to gray value 0, it is considered to be the boundary point to be found; 五、利用在各条搜索线上找到的边界点组成圆边。5. Use the boundary points found on each search line to form a circular edge. 5)根据合格瓶盖上的生产日期喷码的像素点数预设检测目标的像素点数的上下限,利用步骤4)得到的圆边和已经建立的坐标系,将圆内设定为感兴趣区域ROI,将ROI内生产日期喷码作为检测目标,根据实际情况,设定合适的检测目标的像素大小,过滤图像中因光强导致的无关细小像素黑点的影响,若检测目标的像素点数在规定的上下限内即为合格,否则判定为不合格产品;5) Preset the upper and lower limits of the pixel points of the detection target according to the pixel points of the production date on the qualified bottle cap, and use the circle edge obtained in step 4) and the established coordinate system to set the inside of the circle as the area of interest ROI, the production date in the ROI is used as the detection target. According to the actual situation, set the appropriate pixel size of the detection target to filter the influence of irrelevant small pixel black spots caused by light intensity in the image. If the number of pixels of the detection target is within If it is within the specified upper and lower limits, it is qualified, otherwise it is judged as unqualified product; 6)对于不合格产品,通过串行I/O输出控制信号,打开电磁阀,利用标注单元的喷嘴喷出带颜色的标记不合格瓶子。6) For unqualified products, output the control signal through the serial I/O, open the solenoid valve, and use the nozzle of the marking unit to spray out the marked unqualified bottle with color.
CN201510753888.0A 2015-11-05 2015-11-05 Bottle cap unqualified product marking method based on machine vision Pending CN105424722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510753888.0A CN105424722A (en) 2015-11-05 2015-11-05 Bottle cap unqualified product marking method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510753888.0A CN105424722A (en) 2015-11-05 2015-11-05 Bottle cap unqualified product marking method based on machine vision

Publications (1)

Publication Number Publication Date
CN105424722A true CN105424722A (en) 2016-03-23

Family

ID=55503071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510753888.0A Pending CN105424722A (en) 2015-11-05 2015-11-05 Bottle cap unqualified product marking method based on machine vision

Country Status (1)

Country Link
CN (1) CN105424722A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106018412A (en) * 2016-05-12 2016-10-12 天津大学 Bottle cap surface production date detection method based on visible light communication
CN106052793A (en) * 2016-06-15 2016-10-26 天津大学 Machine vision based liquid level sub-quality product marking method
CN108327398A (en) * 2018-03-30 2018-07-27 湖北工程学院 It is merged facial mask detection method and device
CN108375588A (en) * 2018-04-16 2018-08-07 安徽金种子酒业股份有限公司 A kind of online checking system of opaque bottle
CN109472787A (en) * 2018-11-08 2019-03-15 上海金啤包装检测科技有限公司 The detection method and equipment of bottle cap, production line, computer equipment, storage medium
CN109509185A (en) * 2018-11-08 2019-03-22 上海金啤包装检测科技有限公司 The detection method and equipment of bottle cap, production line, computer equipment, storage medium
CN109506591A (en) * 2018-09-14 2019-03-22 天津大学 A kind of adaptive illumination optimization method being adapted to complex illumination scene
CN110174399A (en) * 2019-04-10 2019-08-27 晋江双龙制罐有限公司 Solid content qualification detection method and its detection system in a kind of transparent can
CN110586490A (en) * 2019-08-12 2019-12-20 广州市日睛自动化机械有限公司 Bottle cap visual detection machine
CN111164644A (en) * 2017-08-02 2020-05-15 Ft系统公司 Method and device for detecting the angular position of a bottle cap relative to a bottle
CN111650215A (en) * 2020-07-07 2020-09-11 福建泉州源始物语信息科技有限公司 A cosmetic bottle cap defect detection system
CN111812098A (en) * 2020-06-22 2020-10-23 燕山大学 A device and method for marking defective ceramic bowls based on machine vision
CN112446918A (en) * 2019-09-04 2021-03-05 三赢科技(深圳)有限公司 Method and device for positioning target object in image, computer device and storage medium
CN112965189A (en) * 2021-03-24 2021-06-15 绵阳精恒光通讯有限公司 Calibration method for photoelectric module
CN113165040A (en) * 2018-11-29 2021-07-23 杰富意钢铁株式会社 Apparatus and method for detecting mark of round steel and method for manufacturing steel product
CN114608405A (en) * 2022-03-23 2022-06-10 深圳数码模汽车技术有限公司 Integrated detection method for automobile part contour and hole position

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003002311A (en) * 2001-06-20 2003-01-08 Japan Crown Cork Co Ltd Inspection method for bottle.cap assembly and apparatus for the same
JP4314378B2 (en) * 1999-07-15 2009-08-12 キリンテクノシステム株式会社 Resin cap illumination imaging device
CN201689059U (en) * 2010-05-19 2010-12-29 山东明佳包装检测科技有限公司 Device for detecting character-printing quality on PET bottles
CN102095733A (en) * 2011-03-02 2011-06-15 上海大学 Machine vision-based intelligent detection method for surface defect of bottle cap
CN103606169A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting defects of bottle cap
CN103604808A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Visual detection method for bottle cap defects
CN103604806A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting seal ring defect
CN103884720A (en) * 2014-03-13 2014-06-25 广东工业大学 FPGA (Field Programmable Gate Array)-based real-time PET (Polyethylene Terephthalate) bottle cover defect detection system and method
CN104502359A (en) * 2014-12-10 2015-04-08 天津普达软件技术有限公司 Method for accurately detecting bottle blank and bottle opening defects

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4314378B2 (en) * 1999-07-15 2009-08-12 キリンテクノシステム株式会社 Resin cap illumination imaging device
JP2003002311A (en) * 2001-06-20 2003-01-08 Japan Crown Cork Co Ltd Inspection method for bottle.cap assembly and apparatus for the same
CN201689059U (en) * 2010-05-19 2010-12-29 山东明佳包装检测科技有限公司 Device for detecting character-printing quality on PET bottles
CN102095733A (en) * 2011-03-02 2011-06-15 上海大学 Machine vision-based intelligent detection method for surface defect of bottle cap
CN103606169A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting defects of bottle cap
CN103604808A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Visual detection method for bottle cap defects
CN103604806A (en) * 2013-12-04 2014-02-26 天津普达软件技术有限公司 Method for detecting seal ring defect
CN103884720A (en) * 2014-03-13 2014-06-25 广东工业大学 FPGA (Field Programmable Gate Array)-based real-time PET (Polyethylene Terephthalate) bottle cover defect detection system and method
CN104502359A (en) * 2014-12-10 2015-04-08 天津普达软件技术有限公司 Method for accurately detecting bottle blank and bottle opening defects

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106018412A (en) * 2016-05-12 2016-10-12 天津大学 Bottle cap surface production date detection method based on visible light communication
CN106052793A (en) * 2016-06-15 2016-10-26 天津大学 Machine vision based liquid level sub-quality product marking method
CN111164644B (en) * 2017-08-02 2023-10-10 Ft系统公司 Method and device for detecting the angular position of a closure relative to a bottle
CN111164644A (en) * 2017-08-02 2020-05-15 Ft系统公司 Method and device for detecting the angular position of a bottle cap relative to a bottle
CN108327398A (en) * 2018-03-30 2018-07-27 湖北工程学院 It is merged facial mask detection method and device
CN108375588A (en) * 2018-04-16 2018-08-07 安徽金种子酒业股份有限公司 A kind of online checking system of opaque bottle
CN109506591A (en) * 2018-09-14 2019-03-22 天津大学 A kind of adaptive illumination optimization method being adapted to complex illumination scene
CN109472787A (en) * 2018-11-08 2019-03-15 上海金啤包装检测科技有限公司 The detection method and equipment of bottle cap, production line, computer equipment, storage medium
CN109509185A (en) * 2018-11-08 2019-03-22 上海金啤包装检测科技有限公司 The detection method and equipment of bottle cap, production line, computer equipment, storage medium
CN113165040B (en) * 2018-11-29 2024-10-29 杰富意钢铁株式会社 Device and method for detecting mark of round steel and method for manufacturing steel
CN113165040A (en) * 2018-11-29 2021-07-23 杰富意钢铁株式会社 Apparatus and method for detecting mark of round steel and method for manufacturing steel product
CN110174399A (en) * 2019-04-10 2019-08-27 晋江双龙制罐有限公司 Solid content qualification detection method and its detection system in a kind of transparent can
CN110586490A (en) * 2019-08-12 2019-12-20 广州市日睛自动化机械有限公司 Bottle cap visual detection machine
CN110586490B (en) * 2019-08-12 2024-05-17 广州市日睛自动化机械有限公司 Bottle lid visual inspection machine
CN112446918A (en) * 2019-09-04 2021-03-05 三赢科技(深圳)有限公司 Method and device for positioning target object in image, computer device and storage medium
CN111812098A (en) * 2020-06-22 2020-10-23 燕山大学 A device and method for marking defective ceramic bowls based on machine vision
CN111650215A (en) * 2020-07-07 2020-09-11 福建泉州源始物语信息科技有限公司 A cosmetic bottle cap defect detection system
CN111650215B (en) * 2020-07-07 2023-02-14 福建泉州源始物语信息科技有限公司 Cosmetic bottle cap flaw detection system
CN112965189A (en) * 2021-03-24 2021-06-15 绵阳精恒光通讯有限公司 Calibration method for photoelectric module
CN114608405A (en) * 2022-03-23 2022-06-10 深圳数码模汽车技术有限公司 Integrated detection method for automobile part contour and hole position

Similar Documents

Publication Publication Date Title
CN105424722A (en) Bottle cap unqualified product marking method based on machine vision
CN105865570A (en) Machine vision-based glass bottle liquid level detection method
CN110220917B (en) Crown cap surface defect online detection method based on image processing
CN106052793A (en) Machine vision based liquid level sub-quality product marking method
CN103604808B (en) A kind of bottle cap defective vision detection method
CN101566582B (en) Medicine bottle label information online detection system in powder injection production based on mechanical vision
CN105301003A (en) Method for detecting bottle cap surface production date based on machine vision
CN104237252A (en) Machine-vision-based method and device for intelligently detecting surface micro-defects of product
CN104597058B (en) The white wine foreign matter in bottles automatic detection device and method of a kind of view-based access control model
CN103063137B (en) A kind of medicine bottle measuring system based on machine vision and measuring method thereof
CN108267455B (en) Device and method for detecting defects of printed characters of plastic film
CN101858734A (en) Method and device for detecting PET bottleneck quality
CN105158268A (en) Intelligent online detection method, system and device for defects of fine-blanked parts
CN201707305U (en) Inspection system for inspecting quality of container caps
CN102095733A (en) Machine vision-based intelligent detection method for surface defect of bottle cap
CN105181714A (en) Image processing-based bottled liquid impurity detection system and detection method thereof
CN109785319B (en) System, device and method for detecting code-spraying character based on image processing
CN102621156A (en) Image-processing-based automatic micro part sorting system
CN107169491A (en) A kind of ring gear die number detection method
CN101565109A (en) Aluminum cap packaging online detection system in medical powder injection production based on mechanical vision
CN105403147A (en) Embedded bottle pre-form detection system and detection method
CN111060518A (en) A Stamping Part Defect Recognition Method Based on Instance Segmentation
CN104535006B (en) A kind of bottle cap gap width evaluation method of utilization transmission-type illumination imaging systems
CN107247057B (en) Method for detecting defects of production date on surface of bottle cap
CN201689062U (en) PET bottle mouth quality detection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160323