CN117630009A - A method and device for detecting defects in inner frame paper - Google Patents
A method and device for detecting defects in inner frame paper Download PDFInfo
- Publication number
- CN117630009A CN117630009A CN202311571277.5A CN202311571277A CN117630009A CN 117630009 A CN117630009 A CN 117630009A CN 202311571277 A CN202311571277 A CN 202311571277A CN 117630009 A CN117630009 A CN 117630009A
- Authority
- CN
- China
- Prior art keywords
- inner frame
- frame paper
- cigarette pack
- image
- detection
- 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
Links
- 230000007547 defect Effects 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 106
- 230000007246 mechanism Effects 0.000 claims abstract description 10
- 235000019504 cigarettes Nutrition 0.000 claims description 125
- 238000001914 filtration Methods 0.000 claims description 12
- 238000007781 pre-processing Methods 0.000 claims description 10
- 230000001154 acute effect Effects 0.000 claims description 6
- 238000004026 adhesive bonding Methods 0.000 claims description 3
- 241000208125 Nicotiana Species 0.000 abstract 6
- 235000002637 Nicotiana tabacum Nutrition 0.000 abstract 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 238000007373 indentation Methods 0.000 description 3
- 238000012706 support-vector machine Methods 0.000 description 3
- 238000007635 classification algorithm Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 238000001035 drying Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 1
- 229910052782 aluminium Inorganic materials 0.000 description 1
- 238000011143 downstream manufacturing Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000011888 foil Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000006748 scratching Methods 0.000 description 1
- 230000002393 scratching effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B07—SEPARATING SOLIDS FROM SOLIDS; SORTING
- B07C—POSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
- B07C5/00—Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
- B07C5/34—Sorting according to other particular properties
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B07—SEPARATING SOLIDS FROM SOLIDS; SORTING
- B07C—POSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
- B07C5/00—Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
- B07C5/36—Sorting apparatus characterised by the means used for distribution
- B07C5/361—Processing or control devices therefor, e.g. escort memory
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8887—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
技术领域Technical field
本申请涉及卷烟检测技术领域,更具体地,涉及一种内框纸缺陷检测方法及装置。The present application relates to the technical field of cigarette detection, and more specifically, to an inner frame paper defect detection method and device.
背景技术Background technique
按照工艺流程,FOCKE350型硬盒包装机主要包括烟支供给处理系统、内衬纸供给系统、内框纸供给系统、商标纸供给系统、烟包裹包成型系统等,内框纸涉及切割分离、裹包运动、折叠运动、传递运动等过程。受离心力与摩擦力作用,可能造成内框纸缺失、内框纸下移、内控纸破损、内框纸歪斜等,甚至出现内框纸切割边缘毛刺等缺陷烟包。内框纸主要用于翻盖硬盒成型后盒盖的定位,是消费者直接能感知的外观,对卷烟品牌形象维护至关重要,因此如何避免内框纸缺陷的烟包流入成品库,是设备、工艺、质量工作的一个重要课题。According to the process flow, the FOCKE350 hard box packaging machine mainly includes a cigarette supply and processing system, a lining paper supply system, an inner frame paper supply system, a trademark paper supply system, a cigarette wrapping forming system, etc. The inner frame paper involves cutting, separating, wrapping Packing movement, folding movement, transfer movement and other processes. Under the action of centrifugal force and friction, the inner frame paper may be missing, the inner frame paper may move downward, the inner control paper may be damaged, the inner frame paper may be skewed, etc., or even defective cigarette packs such as burrs on the cutting edges of the inner frame paper may appear. The inner frame paper is mainly used to position the lid of the clamshell hard box after it is formed. It is the appearance that consumers can directly perceive and is crucial to the maintenance of the cigarette brand image. Therefore, how to prevent cigarette packs with defects in the inner frame paper from flowing into the finished product warehouse is an important equipment , process, and quality work are an important topic.
现有技术中,由于FOCKE350型的结构紧凑性和电控系统的封闭性,内框纸监测装置安装与程序控制的工作量巨大,因此不能在烟包成型前对内框纸的位置与表面质量进行监测,而是在折叠转塔上的内框纸定位器前(如图1中的工位4上),采用两种方式进行检测:采用色标传感器,通过内框纸与内衬纸反射光强度的区别进行判定内框纸的有无;采用视觉成像对内框纸形状及位置进行检测。In the existing technology, due to the compact structure of the FOCKE350 model and the closed nature of the electronic control system, the installation and program control of the inner frame paper monitoring device requires a huge workload. Therefore, the position and surface quality of the inner frame paper cannot be checked before the cigarette pack is formed. Instead of monitoring, in front of the inner frame paper positioner on the folding turret (at station 4 in Figure 1), two methods are used for detection: using a color mark sensor, through the reflection of the inner frame paper and lining paper The difference in light intensity is used to determine the presence or absence of the inner frame paper; visual imaging is used to detect the shape and position of the inner frame paper.
但是上述检测只是减少内框纸缺陷的数量,主要是因为在内框纸定位器前被检测合格的内框纸仍需在折叠转塔上经过内框纸定位器、旋转折叠器、第二可移动折叠导轨工序,第二可移动折叠导轨工序决定着内框纸在烟包内最终的位置,因此上述监测方式属于中间监测,不是末端监测。内框纸定位器后的设备运行过程中如果出现内框纸丢失、刮烂等问题,只能依靠人工在下游工序进行大量自检才能保证产品质量,准确率和效率均较差。However, the above inspection only reduces the number of inner frame paper defects, mainly because the inner frame paper that has been tested before the inner frame paper positioner still needs to pass through the inner frame paper positioner, the rotary folder, and the second folding turret on the folding turret. The movable folding guide rail process and the second movable folding guide rail process determine the final position of the inner frame paper in the cigarette pack. Therefore, the above monitoring method is an intermediate monitoring, not an end monitoring. If problems such as loss or scratching of the inner frame paper occur during the operation of the equipment after the inner frame paper positioner, product quality can only be ensured by manually performing a large number of self-inspections in downstream processes, with poor accuracy and efficiency.
发明内容Contents of the invention
本申请提供一种内框纸缺陷检测方法及装置,将检测系统设置在折叠转塔的出口外侧的烟包轨道上,实现了末端检测,提高了内框纸缺陷检测的准确率,降低了产品的缺陷率。This application provides a method and device for detecting inner frame paper defects. The detection system is arranged on the cigarette pack track outside the outlet of the folding turret, which realizes end detection, improves the accuracy of inner frame paper defect detection, and reduces the cost of the product. defect rate.
本申请提供了一种内框纸缺陷检测方法,包括:This application provides a method for detecting defects in inner frame paper, including:
接收在折叠转塔的出口外侧的烟包轨道上采集到的烟包的图像;receiving images of cigarette packs collected on the cigarette pack track outside the outlet of the folding turret;
确定烟包的图像中的实际检测窗口;Determine the actual detection window in the image of the cigarette pack;
提取实际检测窗口内的纹理特征,并基于纹理特征判断烟包是否存在内框纸缺陷;Extract texture features within the actual detection window, and determine whether there are inner frame paper defects in the cigarette pack based on the texture features;
若存在内框纸缺陷,则控制原机剔除机构完成对存在内框纸缺陷的烟包进行剔除。If there is a defect in the inner frame paper, the original machine rejection mechanism is controlled to complete the rejection of the cigarette packs with defects in the inner frame paper.
优选地,烟包轨道的两侧对称设有检测缺口,烟包轨道的两侧外部分别设有照明装置和图像采集设备,图像采集设备正对检测缺口,照明装置与检测缺口的连线与烟包轨道的夹角为锐角,使得烟包的图像上,靠近照明装置的检测缺口的侧边的投影与烟包的上边缘具有夹角;Preferably, detection gaps are symmetrically provided on both sides of the cigarette pack track, and lighting devices and image acquisition equipment are respectively provided on both sides of the cigarette pack track. The image acquisition equipment faces the detection gap, and the connection between the lighting device and the detection gap is connected to the cigarette pack track. The included angle of the package track is an acute angle, so that on the image of the cigarette package, the projection of the side close to the detection gap of the lighting device has an included angle with the upper edge of the cigarette package;
切割后的内框纸端部位于烟包的顶面中部并向上翘起形成弧形段,内框纸端部位于图像采集设备的拍摄范围内。The end of the cut inner frame paper is located in the middle of the top surface of the cigarette pack and tilts upward to form an arc segment. The end of the inner frame paper is located within the shooting range of the image acquisition device.
优选地,基于纹理特征判断烟包是否存在内框纸缺陷,具体包括:Preferably, judging whether there is an inner frame paper defect in the cigarette pack based on texture features specifically includes:
若两侧的图像的实际检测窗口内均未检测到纹理特征,则判定烟包存在无内框纸缺陷。If no texture features are detected within the actual detection window of the images on both sides, it is determined that the cigarette pack has an inner-frame paper defect.
优选地,提取实际检测窗口内的纹理特征之前还包括:将图像转化为灰度图像,并采用导向滤波对灰度图像进行滤波预处理。Preferably, before extracting the texture features within the actual detection window, the method further includes: converting the image into a grayscale image, and using guided filtering to perform filtering preprocessing on the grayscale image.
优选地,将确认为正常的烟包的图像作为图像模板。Preferably, an image of a cigarette pack confirmed to be normal is used as the image template.
本申请还提供一种内框纸缺陷检测装置,包括图像接收模块、窗口确定模块、缺陷检测模块以及控制模块;This application also provides an inner frame paper defect detection device, including an image receiving module, a window determination module, a defect detection module and a control module;
图像接收模块用于接收在折叠转塔与涂胶装置之间的烟包轨道上采集到的烟包的图像;The image receiving module is used to receive images of cigarette packs collected on the cigarette pack track between the folding turret and the gluing device;
窗口确定模块用于确定烟包的图像中的实际检测窗口;The window determination module is used to determine the actual detection window in the image of the cigarette pack;
缺陷检测模块用于提取实际检测窗口内的纹理特征,并基于纹理特征判断烟包是否存在内框纸缺陷;The defect detection module is used to extract texture features within the actual detection window and determine whether there are inner frame paper defects in the cigarette pack based on the texture features;
控制模块用于在存在内框纸缺陷时,控制原机剔除机构完成对存在内框纸缺陷的烟包进行剔除。The control module is used to control the original machine rejection mechanism to complete the rejection of cigarette packs with inner frame paper defects when there are defects in the inner frame paper.
优选地,烟包轨道的两侧对称设有检测缺口,烟包轨道的两侧外部分别设有照明装置的图像采集设备,图像采集设备正对检测缺口,照明装置与检测缺口的连线与烟包轨道的夹角为锐角,使得烟包的图像上,靠近照明装置的检测缺口的侧边的投影与烟包的上边缘具有夹角;Preferably, detection gaps are symmetrically provided on both sides of the cigarette pack track, and image acquisition equipment of the lighting device is provided on both sides of the cigarette pack track. The image acquisition equipment faces the detection gap, and the connection between the lighting device and the detection gap is connected with the cigarette. The included angle of the package track is an acute angle, so that on the image of the cigarette package, the projection of the side close to the detection gap of the lighting device has an included angle with the upper edge of the cigarette package;
切割后的内框纸端部位于烟包的顶面中部并向上翘起形成弧形段,内框纸端部位于图像采集设备的拍摄范围内。The end of the cut inner frame paper is located in the middle of the top surface of the cigarette pack and tilts upward to form an arc segment. The end of the inner frame paper is located within the shooting range of the image acquisition device.
优选地,缺陷检测模块用于在两侧的图像的实际检测窗口内均未检测到纹理特征时,判定烟包存在无内框纸缺陷。Preferably, the defect detection module is used to determine that the cigarette pack has an inner-frame paper defect when no texture features are detected within the actual detection window of the images on both sides.
优选地,内框纸缺陷检测装置还包括图像预处理模块,图像预处理模块用于将图像转化为灰度图像,并采用导向滤波对灰度图像进行滤波预处理。Preferably, the inner frame paper defect detection device also includes an image preprocessing module, which is used to convert the image into a grayscale image, and use guided filtering to perform filtering preprocessing on the grayscale image.
优选地,内框纸缺陷检测装置还包括模板确定模块,模板确定模块用于将确认为正常的烟包的图像作为图像模板。Preferably, the inner frame paper defect detection device further includes a template determination module, which is used to use an image of a cigarette pack confirmed to be normal as an image template.
通过以下参照附图对本申请的示例性实施例的详细描述,本申请的其它特征及其优点将会变得清楚。Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings.
附图说明Description of drawings
被结合在说明书中并构成说明书的一部分的附图示出了本申请的实施例,并且连同其说明一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
图1为折叠转塔的结构示意图;Figure 1 is a schematic structural diagram of a folding turret;
图2为本申请提供的内框纸缺陷检测系统的结构示意图;Figure 2 is a schematic structural diagram of the inner frame paper defect detection system provided by this application;
图3为本申请提供的烟包轨道的检测缺口的示意图;Figure 3 is a schematic diagram of the detection gap of the cigarette pack track provided by this application;
图4为本申请提供的内框纸缺陷检测方法的流程图;Figure 4 is a flow chart of the inner frame paper defect detection method provided by this application;
图5为基于图3所示的内框纸缺陷检测系统获得的图像的示意图;Figure 5 is a schematic diagram of an image obtained based on the inner frame paper defect detection system shown in Figure 3;
图6A-6D示出了图像模板和具有不同内框纸缺陷的图像的示例;Figures 6A-6D show examples of image templates and images with different inner frame paper defects;
图7为本申请提供的内框纸缺陷检测装置的结构图。Figure 7 is a structural diagram of the inner frame paper defect detection device provided by this application.
具体实施方式Detailed ways
现在将参照附图来详细描述本申请的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本申请的范围。Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions, and numerical values set forth in these examples do not limit the scope of the present application unless otherwise specifically stated.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本申请及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application or its application or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods and devices should be considered a part of the specification.
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values are to be construed as illustrative only and not as limiting. Accordingly, other examples of the exemplary embodiments may have different values.
本申请提供一种内框纸缺陷检测方法及装置,将检测系统设置在折叠转塔的出口外侧的烟包轨道上,实现了末端检测,提高了内框纸缺陷检测的准确率,降低了产品的缺陷率。并且,本申请中,工控机自动生成缺陷类型以及自动统计同一缺陷类型的数量并输出,便于设备管理人员、修理人员了解设备装置。This application provides a method and device for detecting inner frame paper defects. The detection system is arranged on the cigarette pack track outside the outlet of the folding turret, which realizes end detection, improves the accuracy of inner frame paper defect detection, and reduces product cost. defect rate. Moreover, in this application, the industrial computer automatically generates defect types and automatically counts and outputs the number of the same defect type, which facilitates equipment managers and repair personnel to understand the equipment.
如图2和3所示,本申请的内框纸缺陷检测系统设置在折叠转塔100的出口(图1中的工位7)外侧的烟包轨道200上,位于涂胶装置前。烟包轨道200的下游还设有烟包干燥输送机构300,烟包干燥输送机构300处设有废品箱400。烟包轨道200上,每个烟包500通过推靶210进行定位。烟包轨道200的两侧对称设有检测缺口220,检测缺口220处设有到位检测开关30。As shown in Figures 2 and 3, the inner frame paper defect detection system of the present application is arranged on the cigarette pack track 200 outside the outlet of the folding turret 100 (station 7 in Figure 1), and is located in front of the glue application device. A cigarette pack drying and conveying mechanism 300 is also provided downstream of the cigarette pack track 200, and a waste box 400 is provided at the cigarette pack drying and conveying mechanism 300. On the cigarette pack track 200, each cigarette pack 500 is positioned by a push target 210. Detection gaps 220 are symmetrically provided on both sides of the cigarette pack track 200, and an in-position detection switch 30 is provided at the detection gap 220.
作为一个实施例,到位检测开关30为光纤传感器。As an embodiment, the position detection switch 30 is an optical fiber sensor.
烟包轨道200的两侧外部分别设有照明装置20和图像采集设备10,图像采集设备10正对检测缺口220。当烟包在轨道内运动,遮挡到位检测开关30的光线时,工控机控制照明装置20和图像采集设备10配合进行图像采集,通过USB端口传输到工控机的图像处理单元。照明装置20与检测缺口220的连线与烟包轨道200的夹角为锐角,使得烟包500的图像上,靠近照明装置20的检测缺口220的侧边(图3中为右侧边)的投影610与烟包600的上边缘具有夹角,如图5所示。由此,图像中,烟包的顶面形成直线AB,投影的一个边缘线形成直线CD,二者的交点为J。图5中,烟包的右侧为折角部分(即开口部分)620,左侧为烟包的底部。A lighting device 20 and an image acquisition device 10 are respectively provided on both sides of the cigarette package track 200 . The image acquisition device 10 faces the detection gap 220 . When the cigarette pack moves in the track and blocks the light of the in-position detection switch 30, the industrial computer controls the lighting device 20 and the image acquisition device 10 to cooperate to collect images and transmit them to the image processing unit of the industrial computer through the USB port. The angle between the line connecting the lighting device 20 and the detection notch 220 and the cigarette pack track 200 is an acute angle, so that in the image of the cigarette pack 500, the side (the right side in Figure 3) close to the detection notch 220 of the lighting device 20 The projection 610 has an included angle with the upper edge of the cigarette pack 600, as shown in Figure 5. Therefore, in the image, the top surface of the cigarette pack forms straight line AB, and one of the projected edge lines forms straight line CD, and the intersection point of the two is J. In Figure 5, the right side of the cigarette pack is the folded corner portion (i.e., the opening portion) 620, and the left side is the bottom of the cigarette pack.
烟包500位于烟包轨道200上时,切割后的内框纸端部位于烟包500的顶面中部上并向上翘起形成弧形段,内框纸端部位于图像采集设备的拍摄范围内。因此,如图5所示,图像中,烟包600的顶面中部具有弧形段,弧形段的最高点为Q。When the cigarette pack 500 is located on the cigarette pack track 200, the end of the cut inner frame paper is located on the middle of the top surface of the cigarette pack 500 and tilts upward to form an arc segment, and the end of the inner frame paper is located within the shooting range of the image acquisition device. . Therefore, as shown in Figure 5, in the image, the top surface of the cigarette pack 600 has an arc segment in the middle, and the highest point of the arc segment is Q.
基于上述,如图4所示,本申请提供的内框纸缺陷检测方法包括:Based on the above, as shown in Figure 4, the inner frame paper defect detection method provided by this application includes:
S410:接收在折叠转塔的出口外侧的烟包轨道上采集到的烟包的图像。S410: Receive images of cigarette packs collected on the cigarette pack track outside the outlet of the folding turret.
S420:确定烟包的图像中的实际检测窗口。S420: Determine the actual detection window in the image of the cigarette pack.
作为一个实施例,基于上述内框纸缺陷检测系统,确定烟包的图像中的实际检测窗口,具体包括:As an embodiment, based on the above inner frame paper defect detection system, the actual detection window in the image of the cigarette pack is determined, specifically including:
S4201:识别实测的图像中烟包的顶面边缘对应的第一直线和投影对应的第二直线,将第一直线与第二直线的交点作为第一交点J1(x1,y1);并识别图像模板中烟包的顶面边缘对应的第三直线和投影对应的第四直线,将第三直线与第四直线的交点作为第二交点J0(x0,y0)。S4201: Identify the first straight line corresponding to the top edge of the cigarette pack in the measured image and the second straight line corresponding to the projection, and use the intersection of the first straight line and the second straight line as the first intersection point J1 (x1, y1); and Identify the third straight line corresponding to the top edge of the cigarette pack in the image template and the fourth straight line corresponding to the projection, and use the intersection of the third straight line and the fourth straight line as the second intersection point J0 (x0, y0).
作为一个实施例,将确认为正常的烟包的图像作为图像模板,如图6A所示。As an example, an image of a cigarette pack confirmed to be normal is used as an image template, as shown in Figure 6A.
若烟包两侧的图像均未检测到第一交点,则判定烟包存在无内框纸缺陷,可能的原因为原机设备接收到空头、铝箔纸纸盘更换、内框纸纸盘更换等信号时出现的无内框纸和商标纸的烟包。If the first intersection point is not detected in the images on both sides of the cigarette pack, it is determined that the cigarette pack has no inner frame paper defect. Possible reasons are the original equipment receiving a blank, the replacement of the aluminum foil paper tray, the replacement of the inner frame paper tray, etc. Cigarette packs without inner frame paper and trademark paper that appear during the signal.
S4202:基于第一交点J1的坐标和第二交点J0的坐标确定浮动向量V=J1-J0=(x1-x0,y1-y0)。S4202: Determine the floating vector V=J1-J0=(x1-x0, y1-y0) based on the coordinates of the first intersection point J1 and the coordinates of the second intersection point J0.
S4203:依据浮动向量V移动标准检测窗口(其坐标为图像模板中检测窗口的坐标),获得与实测的图像对应的实际检测窗口的坐标,以消除烟包抖动带来的位置变化对图像的影响。S4203: Move the standard detection window according to the floating vector V (its coordinates are the coordinates of the detection window in the image template), and obtain the coordinates of the actual detection window corresponding to the measured image to eliminate the impact of position changes caused by the jitter of the cigarette pack on the image. .
S430:提取实际检测窗口内的纹理特征,并基于纹理特征判断烟包是否存在内框纸缺陷。S430: Extract texture features within the actual detection window, and determine whether there are inner frame paper defects in the cigarette pack based on the texture features.
作为一个实施例,基于LAWS纹理提取算法提取实际检测窗口内的纹理特征。As an embodiment, texture features within the actual detection window are extracted based on the LAWS texture extraction algorithm.
优选地,提取实际检测窗口内的纹理特征之前还包括:将图像转化为灰度图像,并采用导向滤波对灰度图像进行滤波预处理。Preferably, before extracting the texture features within the actual detection window, the method further includes: converting the image into a grayscale image, and using guided filtering to perform filtering preprocessing on the grayscale image.
作为一个实施例,基于纹理特征判断烟包是否存在内框纸缺陷,包括:As an example, determining whether there is an inner frame paper defect in a cigarette pack based on texture features includes:
Q1:基于支持向量机(Support Vector Machines,SVM)分类算法判断实际检测窗口中是否存在纹理缺陷。Q1: Determine whether there are texture defects in the actual detection window based on the Support Vector Machines (SVM) classification algorithm.
Q2:若烟包某侧或两侧识别到的纹理缺陷的面积超过第一阈值,则判定该烟包的内框纸存在破损或者表面产生压痕。若烟包某侧或两侧识别到的纹理缺陷的面积超过第二阈值(大于第一阈值),则判定该烟包无内框纸,如图6D给出的示例。若烟包两侧的内框纸纹理缺陷的面积都在第一阈值内,则执行Q3。Q2: If the area of texture defects identified on one or both sides of the cigarette pack exceeds the first threshold, it is determined that the inner frame paper of the cigarette pack is damaged or has indentations on the surface. If the area of the texture defect identified on one or both sides of the cigarette pack exceeds the second threshold (greater than the first threshold), it is determined that the cigarette pack does not have inner frame paper, as shown in the example in Figure 6D. If the areas of texture defects on the inner frame paper on both sides of the cigarette pack are within the first threshold, perform Q3.
Q3:基于角点匹配算法检测实际检测窗口中弧形段的最高点Q(x,y)。若最高点的纵坐标y小于歪斜的下限纵坐标值或大于歪斜的上限纵坐标值,则判定内框纸存在歪斜缺陷,如图6C给出的示例。若最高点的纵坐标y与第一交点J1的纵坐标值相等,且最高点的横坐标x大于下移最大横坐标(例如1mm)。若出现内框纸下移,横坐标会向折角方向偏移),则判定烟包存在内框纸下移缺陷,如图6B给出的示例。若最高点的纵坐标y大于等于第一交点J1的纵坐标值,且最高点的横坐标小于下移最大横坐标,则执行Q4。Q3: Detect the highest point Q(x,y) of the arc segment in the actual detection window based on the corner point matching algorithm. If the ordinate y of the highest point is less than the lower limit ordinate value of skew or greater than the upper limit ordinate value of skew, it is determined that the inner frame paper has a skew defect, as shown in the example in Figure 6C. If the ordinate y of the highest point is equal to the ordinate of the first intersection J1, and the abscissa x of the highest point is greater than the maximum abscissa of downward movement (for example, 1mm). If the inner frame paper moves downward (the abscissa will shift toward the folding angle), it is determined that the cigarette pack has a defect of the inner frame paper moving downward, as shown in the example in Figure 6B. If the ordinate y of the highest point is greater than or equal to the ordinate value of the first intersection point J1, and the abscissa of the highest point is less than the maximum abscissa of the downward movement, perform Q4.
Q4:识别实测的图像中内框纸的切割边缘是否存在突出的部位,若是,则判定该切割边缘存在毛刺。若烟包的左侧或右侧的毛刺面积超过设定值,则判定烟包存在内框纸毛刺超标缺陷。否则,烟包为正常烟包。Q4: Identify whether there is a protruding part on the cutting edge of the inner frame paper in the measured image. If so, determine whether there is a burr on the cutting edge. If the burr area on the left or right side of the cigarette pack exceeds the set value, it is determined that the cigarette pack has an excessive burr defect in the inner frame paper. Otherwise, the cigarette pack is a normal cigarette pack.
作为一个实施例,采用Blob(Binary large object)分析算法识别毛刺。As an embodiment, a Blob (Binary large object) analysis algorithm is used to identify burrs.
S440:若存在内框纸缺陷,则控制原机剔除机构完成对存在内框纸缺陷的烟包进行剔除。S440: If there is a defect in the inner frame paper, control the original machine rejection mechanism to complete the rejection of the cigarette packs with inner frame paper defects.
需要说明的是,上述无内框纸、内框纸存在破损或者表面产生压痕、内框纸存在歪斜缺陷、内框纸下移缺陷以及内框纸毛刺超标缺陷等均为内框纸缺陷。It should be noted that the above-mentioned paper without inner frame, inner frame paper with damage or indentation on the surface, inner frame paper with skew defects, inner frame paper with downward movement defects, inner frame paper with excessive burrs, etc. are all inner frame paper defects.
具体地,当工控机判定烟包存在内框纸缺陷时,则调用移位寄存成型:接收光纤传感器的高电平信号,从0累加到5时,工控机输出高电平信号到FOCKE350排除口的电磁阀,进而启动原机剔除机构动作,实现缺陷烟包的剔除。Specifically, when the industrial computer determines that there is a defect in the inner frame paper of the cigarette package, it calls the shift register forming: it receives the high-level signal from the optical fiber sensor, and when it accumulates from 0 to 5, the industrial computer outputs the high-level signal to the FOCKE350 elimination port. The solenoid valve activates the original machine's removal mechanism to remove defective cigarette packets.
基于上述,本申请提供的内框纸缺陷检测装置。如图7所示,内框纸缺陷检测装置包括图像接收模块710、窗口确定模块720、缺陷检测模块730以及控制模块740。Based on the above, this application provides an inner frame paper defect detection device. As shown in FIG. 7 , the inner frame paper defect detection device includes an image receiving module 710 , a window determination module 720 , a defect detection module 730 and a control module 740 .
图像接收模块710用于接收在折叠转塔与涂胶装置之间的烟包轨道上采集到的烟包的图像。The image receiving module 710 is used to receive images of cigarette packs collected on the cigarette pack track between the folding turret and the gluing device.
窗口确定模块720用于确定烟包的图像中的实际检测窗口。The window determination module 720 is used to determine the actual detection window in the image of the cigarette pack.
缺陷检测模块730用于提取实际检测窗口内的纹理特征,并基于纹理特征判断烟包是否存在内框纸缺陷。The defect detection module 730 is used to extract texture features within the actual detection window, and determine whether there is an inner frame paper defect in the cigarette pack based on the texture features.
控制模块740用于在存在内框纸缺陷时,控制原机剔除机构完成对存在内框纸缺陷的烟包进行剔除。The control module 740 is used to control the original machine rejection mechanism to complete the rejection of cigarette packs with inner frame paper defects when there are inner frame paper defects.
优选地,烟包轨道的两侧对称设有检测缺口,烟包轨道的两侧外部分别设有照明装置的图像采集设备,图像采集设备正对检测缺口,照明装置与检测缺口的连线与烟包轨道的夹角为锐角,使得烟包的图像上,靠近照明装置的检测缺口的侧边的投影与烟包的上边缘具有夹角。Preferably, detection gaps are symmetrically provided on both sides of the cigarette pack track, and image acquisition equipment of the lighting device is provided on both sides of the cigarette pack track. The image acquisition equipment faces the detection gap, and the connection between the lighting device and the detection gap is connected with the cigarette. The included angle of the package track is an acute angle, so that on the image of the cigarette package, the projection of the side close to the detection gap of the lighting device has an included angle with the upper edge of the cigarette package.
切割后的内框纸端部位于烟包的顶面中部并向上翘起形成弧形段,内框纸端部位于图像采集设备的拍摄范围内。The end of the cut inner frame paper is located in the middle of the top surface of the cigarette pack and tilts upward to form an arc segment. The end of the inner frame paper is located within the shooting range of the image acquisition device.
优选地,内框纸缺陷检测装置还包括图像预处理模块750,图像预处理模块750用于将图像转化为灰度图像,并采用导向滤波对灰度图像进行滤波预处理。Preferably, the inner frame paper defect detection device also includes an image preprocessing module 750. The image preprocessing module 750 is used to convert the image into a grayscale image, and use guided filtering to perform filtering preprocessing on the grayscale image.
优选地,内框纸缺陷检测装置还包括模板确定模块760,模板确定模块760用于将确认为正常的烟包的图像作为图像模板。Preferably, the inner frame paper defect detection device further includes a template determination module 760, which is used to use an image of a cigarette pack confirmed to be normal as an image template.
优选地,缺陷检测模块730包括纹理缺陷识别模块7301和判定模块7302,纹理缺陷识别模块7301用于基于SVM分类算法判断实际检测窗口中是否存在纹理缺陷。判定模块7302用于依据纹理缺陷的面积判断烟包是否存在内框纸以及内框纸是否存在破损或表面压痕。Preferably, the defect detection module 730 includes a texture defect identification module 7301 and a determination module 7302. The texture defect identification module 7301 is used to determine whether there are texture defects in the actual detection window based on the SVM classification algorithm. The determination module 7302 is used to determine whether there is an inner frame paper in the cigarette pack and whether there is damage or surface indentation in the inner frame paper based on the area of the texture defect.
优选地,缺陷检测模块730还包括最高点检测模块7303,最高点检测模块7303用于基于角点匹配算法检测实际检测窗口中弧形段的最高点。判定模块7302用于依据最高点的坐标判断烟包的内框纸是否存在下移或歪斜缺陷。Preferably, the defect detection module 730 also includes a highest point detection module 7303, which is used to detect the highest point of the arc segment in the actual detection window based on the corner point matching algorithm. The determination module 7302 is used to determine whether there is a downward movement or skew defect in the inner frame paper of the cigarette pack based on the coordinates of the highest point.
优选地,缺陷检测模块730还包括毛刺识别模块7304,毛刺识别模块7304用于识别实测的图像中内框纸的切割边缘是否存在突出的部位。判定模块7302用于依据毛刺面积判断烟包的内框纸是否存在毛刺超标缺陷。Preferably, the defect detection module 730 also includes a burr identification module 7304, which is used to identify whether there are protruding parts on the cutting edge of the inner frame paper in the measured image. The determination module 7302 is used to determine whether the inner frame paper of the cigarette pack has excessive burr defects based on the burr area.
虽然已经通过例子对本申请的一些特定实施例进行了详细说明,但是本领域的技术人员应该理解,以上例子仅是为了进行说明,而不是为了限制本申请的范围。本领域的技术人员应该理解,可在不脱离本申请的范围和精神的情况下,对以上实施例进行修改。本申请的范围由所附权利要求来限定。Although some specific embodiments of the present application have been described in detail through examples, those skilled in the art should understand that the above examples are for illustration only and are not intended to limit the scope of the present application. Those skilled in the art will understand that the above embodiments can be modified without departing from the scope and spirit of the application. The scope of the application is defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311571277.5A CN117630009A (en) | 2023-11-22 | 2023-11-22 | A method and device for detecting defects in inner frame paper |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311571277.5A CN117630009A (en) | 2023-11-22 | 2023-11-22 | A method and device for detecting defects in inner frame paper |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117630009A true CN117630009A (en) | 2024-03-01 |
Family
ID=90033136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311571277.5A Pending CN117630009A (en) | 2023-11-22 | 2023-11-22 | A method and device for detecting defects in inner frame paper |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117630009A (en) |
-
2023
- 2023-11-22 CN CN202311571277.5A patent/CN117630009A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN208716520U (en) | A kind of roll web cross cutting line two dimensional code spray printing and detection device | |
CN112561098B (en) | Automatic recycling system and method based on express paper packaging box image analysis | |
CN110403232B (en) | Cigarette quality detection method based on secondary algorithm | |
US9493258B2 (en) | Method and production system for producing and/or packaging cigarettes | |
CN106596570B (en) | Method and device for detecting defects of opaque coating layer of paper | |
CN104361672B (en) | A kind of method detected by bank note knuckle | |
CN109692820A (en) | Optical fiber metalwork surface defect on-line measuring device and method based on image procossing | |
US6373519B1 (en) | System and method for visually inspecting a cigarette packaging process | |
KR20110028240A (en) | Apparatus and method for checking container closures | |
WO2012027869A1 (en) | Online quality detection method for closure assembly | |
CN105301008A (en) | Tipping paper quality test warning system and on-line quality test method | |
CN113928618A (en) | Tobacco bale front and back appearance quality control system and control method thereof | |
ITBO20120284A1 (en) | METHOD OF INSPECTING A PRODUCT IN A PACKAGING MACHINE. | |
JP3904981B2 (en) | Wrapping / unfolding determination method and apparatus for wrapping paper | |
CN116353898A (en) | Cigarette pack appearance defect identification method, device and cigarette pack production system | |
CN117630009A (en) | A method and device for detecting defects in inner frame paper | |
CN205110159U (en) | Tobacco curing case sealer smoke box appearance quality detecting system | |
JP2024522219A (en) | Package quality inspection station and package quality inspection method | |
US10184897B2 (en) | System and method for determining an impact of manufacturing processes on the caliper of a sheet material | |
CN107796823B (en) | Cigarette packaging machine label paper appearance quality detecting system | |
ITBO20120282A1 (en) | METHOD OF INSPECTING A PRODUCT IN A PACKAGING MACHINE. | |
JP2007196129A (en) | Examination information management system | |
CN202305426U (en) | Front detection device of capsule detector | |
EP0852333A2 (en) | Method and apparatus for detecting glue on box blanks | |
CN116482125A (en) | A method for processing cloth defects based on machine vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |