A cigarette package mildew and debris detection system and method
By designing a cigarette pack detection system including a cigarette pack slicing device and a detection device, the problems of low manual detection efficiency and low accuracy of cigarette packs are solved, and automatic detection of mold and debris are realized, the detection efficiency and accuracy are improved, and the quality of tobacco wire is ensured.
Patent Information
- Application Number
- CN202111387475.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-11-22
AI Technical Summary
The existing cigarette factories use artificial eyes to detect whether the cigarette pack is moldy or contains debris. The detection efficiency is low and the accuracy cannot be guaranteed. The moldy tobacco wire may enter the subsequent processing process, causing pollution and losses.
Design a mold and debris detection system for cigarette packs, including a rack, cigarette pack slicing device and detection device. The cigarette pack slicing device automatically slices the cigarette pack to be cut. The detection device acquires the image of the cigarette pack after slice through the imaging element, and processes the image through the detection unit to realize automatic detection of mold and debris in the cigarette pack.
It improves the efficiency and accuracy of smoke pack mold and debris detection, avoids subjective errors in manual testing, ensures the quality of tobacco wire, and reduces losses in the cigarette factory.
Smart Images

Figure CN114062373B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of tobacco detection, and in particular to a system and method for detecting mold and foreign matter in cigarette packages. Background Art
[0002] Before slicing and loosening cigarette packs, cigarette factories need to check whether the cigarette packs are moldy or contain foreign matter. If moldy tobacco is allowed to enter the subsequent processing, the mold will spread and contaminate more tobacco, causing greater losses to the cigarette factory.
[0003] At present, cigarette factories use manual visual inspection to detect cigarette packs for mold and debris. Before cigarette packs enter the cigarette pack slicer for processing, the staff observes the outer surface of the cigarette pack. If moldy areas or debris are found on the surface of the cigarette pack, the cigarette pack will be registered and discarded, and new cigarette packs will be transported from the warehouse for inspection and processing. In addition, mold and debris may also appear inside the cigarette packs. It may not be possible to screen cigarette packs with internal mold through human visual observation. Therefore, it is very necessary to detect mold and debris on the outer surface and inside of the cigarette packs before and during the cutting process. Summary of the invention
[0004] The embodiments of the present application provide a system and method for detecting mold and foreign matter in cigarette packages, which are used to solve the technical problems of low detection efficiency and unguaranteed detection accuracy in the existing manual detection of mold and foreign matter in cigarette packages in cigarette factories.
[0005] In order to achieve the above objectives, the present application provides the following technical solutions:
[0006] A cigarette pack mold and debris detection system, comprising a frame and a cigarette pack slicing device and a detection device arranged on the frame;
[0007] The cigarette pack slicing device is used to slice the cigarette packs to be cut, and comprises a conveying element, a cigarette pack cutting table, a limiting element and a cutter. The conveying element is arranged on the frame, the cigarette pack cutting table can be rotatably arranged on the frame and is located above the conveying element, the limiting element can be movably arranged on the frame and used to fix the cigarette packs to be cut, and the cutter can be movably arranged on the frame and used to slice the cigarette packs to be cut;
[0008] The detection device is used to detect sliced cigarette packs, and includes a light source element, an imaging element and a detection unit. The light source element is used to illuminate the sliced cigarette packs and is fixedly mounted on the frame. The imaging element is used to obtain images of the sliced cigarette packs and is fixed to the frame via an adjustable component. The detection unit is used to connect with the imaging element to obtain images of the sliced cigarette packs for detection.
[0009] Preferably, the detection device includes two light source elements and two imaging elements, the two light source elements are respectively a first light source element and a second light source element, and the two imaging elements are respectively a first imaging element and a second imaging element; the first imaging element is fixedly arranged on the frame through the adjustable component and is located on the side of the pressure plate of the limiting element, and the second imaging element is fixedly installed on the column of the frame through the adjustable component and is located above the conveying element; the first light source element is fixedly installed on the column of the frame through the light source fixing frame and is located on both sides of the pressure plate of the limiting element, and the second light source element is fixedly installed on the frame through the light source fixing frame and is located below the first imaging element.
[0010] Preferably, the light source fixing frame is bent to adjust the irradiation direction of the light source of the light source element.
[0011] Preferably, the adjustable component is used to adjust the shooting direction of the imaging element up and down and left and right, and the adjustable component includes a supporting element connected to the frame, a first connecting axis connected to the supporting element, a connecting piece connected to the first connecting axis, a second connecting axis connected to the connecting piece, and a connecting seat connected to the second connecting axis, the imaging element is mounted on the connecting seat, the connecting seat is moved and adjusted on the second connecting axis to adjust the shooting direction of the imaging element, and the connecting piece is rotated on the first connecting axis to adjust the position of the second connecting axis.
[0012] Preferably, the limiting element includes a pressing plate and a pushing plate arranged on the frame, the pressing plate is used to press the cigarette pack to be cut from the forward direction of the conveying element, and the pushing plate is used to push the cigarette pack to be cut from the direction opposite to the forward direction of the conveying element.
[0013] Preferably, the cigarette packet cutting table is mounted on the frame via a third connecting shaft, the third connecting shaft is connected to a first driving element, and the first driving element drives the third connecting shaft to rotate and drives the cigarette packet cutting table to rotate around the third connecting shaft.
[0014] The present application also provides a method for detecting mold and foreign matter in cigarette packages, comprising the following steps:
[0015] Acquire image data of the sliced cigarette pack from the detection unit of the above-mentioned cigarette pack mold and debris detection system, wherein the image data includes first image data and second image data;
[0016] Perform image processing on the image data to obtain a processed detection result.
[0017] Preferably, the step of performing image processing on the first image data to obtain a processed detection result includes:
[0018] Applying perspective transformation correction processing to the image in the first image data to obtain a front view image;
[0019] Using gamma correction to adjust the brightness of the front view image to obtain an adjusted image;
[0020] The adjusted image is filtered by using a bilateral filtering method to obtain a filtered image;
[0021] Segmenting the filtered image using a watershed method to obtain a segmented image;
[0022] The segmented image is processed from different directions by using Gabor filtering to obtain a plurality of processed images, each of the processed images is binarized to obtain a binarized image corresponding to each of the processed images, and the plurality of binarized images are processed by OR to obtain a merged image;
[0023] The merged image is screened by a contour screening method to obtain a first contour region; if the area of the first contour region is greater than an area threshold, the first contour region is an abnormal image.
[0024] Preferably, the segmented image is processed from different directions using Gabor filtering to obtain a plurality of processed images, including: the segmented image is processed from three directions of 0°, 45° and 90° using Gabor filtering respectively to obtain three processed images.
[0025] Preferably, the step of performing image processing on the second image data to obtain a processed detection result comprises:
[0026] Converting the image in the second image data using the HSV color space to obtain an HSV image;
[0027] Using a color detection method to distinguish whether the HSV image is a normal color, and obtain a plurality of distinguished regional images; performing a binarization process on each of the regional images, and obtaining a regional binary image corresponding to each of the regional images; and performing an OR process on the plurality of regional binary images, and obtaining a merged binary image;
[0028] The merged binary image is screened by using a contour screening method to obtain a second contour region; if the area of the second contour region is greater than an area threshold, the second contour region is an abnormal image.
[0029] It can be seen from the above technical scheme that the embodiments of the present application have the following advantages: a system and method for detecting mildew and debris of cigarette packs are provided, wherein the system comprises a frame and a cigarette pack slicing device and a detection device arranged on the frame. The system for detecting mildew and debris of cigarette packs can automatically cut the cigarette packs to be cut through the cigarette pack slicing device, and then obtain the image of the cut cigarette pack through the camera element of the detection device. The detection unit obtains the image of the cut cigarette pack and detects the image, thereby realizing automatic detection of mildew and debris of cigarette packs, improving detection efficiency, and using automatic detection to avoid subjective errors of manual detection, thereby improving the accuracy of detection of mildew and debris of cigarette packs, and solving the technical problems of low detection efficiency and inability to guarantee detection accuracy in the existing manual detection of mildew and debris of cigarette packs in cigarette factories. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 This is a structural framework diagram of a cigarette pack slicing device of a cigarette pack mildew and debris detection system according to an embodiment of the present application;
[0032] Figure 2 This is a structural framework diagram of a detection device of a cigarette pack mildew and debris detection system according to an embodiment of the present application;
[0033] Figure 3 This is a schematic structural diagram of a detection device of a cigarette pack mildew and foreign matter detection system according to another embodiment of the present application;
[0034] Figure 4 This is a schematic structural diagram of a light source fixing frame of a cigarette pack mildew and debris detection system according to an embodiment of the present application;
[0035] Figure 5 This is a schematic structural diagram of an adjustable component of a cigarette pack mildew and debris detection system according to another embodiment of the present application;
[0036] Figure 6 This is a flowchart of the steps of a method for detecting mold and foreign matter in cigarette packages according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected" and "mutual coupling" or "direct coupling" or "communication connection" described in the present invention should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements, or it can be an indirect coupling or communication connection through some interfaces, devices or units. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0039] The embodiments of the present application provide a system and method for detecting mold and foreign matter in cigarette packages, which are used to solve the technical problems of low detection efficiency and failure to ensure detection accuracy in the existing manual detection of mold and foreign matter in cigarette packages in cigarette factories.
[0040] Figure 1 This is a structural framework diagram of a cigarette pack slicing device of a cigarette pack mold and debris detection system according to an embodiment of the present application. Figure 2 This is a structural framework diagram of a detection device of a cigarette pack mildew and debris detection system according to an embodiment of the present application.
[0041] like Figure 1 and Figure 2 As shown, an embodiment of the present application provides a cigarette pack mold and foreign matter detection system, including a frame 10 and a cigarette pack slicing device 20 and a detection device 30 arranged on the frame 10.
[0042] like Figure 1 and Figure 2 As shown, in the embodiment of the present application, the frame 10 mainly plays a supporting role and is used to support various structural elements in the cigarette packet slicing device 20 and the detection device 30.
[0043] like Figure 1As shown, in the embodiment of the present application, the cigarette pack slicing device 20 is mainly used to trim the cigarette pack to be cut, so as to facilitate the detection device 30 to detect the cigarette pack. The cigarette pack slicing device 20 includes a conveying element 21, a cigarette pack cutting table 22, a limiting element 23 and a cutter 24. The conveying element 21 is arranged on the frame 10, the cigarette pack cutting table 22 is rotatably arranged on the frame 10 and is located above the conveying element 21, the limiting element 23 is movably arranged on the frame 10 and is used to fix the cigarette pack to be cut, and the cutter 24 is movably arranged on the frame 10 and is used to slice the cigarette pack to be cut.
[0044] In the embodiment of the present application, the conveying element 21 is mainly used to convey the cigarette pack 101. In the present embodiment, the conveying element 21 includes two conveying elements, one conveying element conveys the cigarette pack to be cut to below the cutter 24, and the other conveying element conveys the cigarette pack that has passed the inspection of the inspection device 20.
[0045] It should be noted that the conveying element 21 may be a conveyor belt, or a chain with a conveying function.
[0046] In the embodiment of the present application, the cigarette pack cutting table 22 is mainly used to hold the cigarette packs to be cut off. The cigarette pack cutting table 22 is installed on the frame 10 through the third connecting shaft 11. The third connecting shaft 11 is connected to the first driving element. The first driving element drives the third connecting shaft 11 to rotate and drives the cigarette pack cutting table 22 to rotate around the third connecting shaft 11.
[0047] It should be noted that the first driving element can be a motor or a driving source such as a cylinder. When the first driving element drives the third connecting shaft 11 to rotate, the cigarette packet cutting table 22 swings around the third connecting shaft 11 on the frame 10. The first driving element is mounted on the frame 10.
[0048] In the embodiment of the present application, the limiting element 23 is mainly used to limit the movement of the cigarette pack to be cut during the cutting process. The limiting element 23 includes a pressure plate 231 and a push plate 232 arranged on the frame 10. The pressure plate 231 is used to press the cigarette pack to be cut from the forward direction of the conveying element 21, and the push plate 232 is used to push the cigarette pack to be cut from the direction opposite to the forward direction of the conveying element 21.
[0049] It should be noted that the pressing plate 231 and the pushing plate 232 are respectively mounted on the guide rails, which are mounted on the frame 10. The pressing plate 231 and the pushing plate 232 are driven by the second driving element to move horizontally in opposite directions on the guide rails. Figure 1 As shown, the moving direction of the pressing plate 231 and the pushing plate 232 refers to the moving direction of the conveying element 21. In this embodiment, the second driving element is preferably a cylinder, and other driving sources with linear stroke can also be selected. The second driving element is mounted on the frame 10
[0050] In the embodiment of the present application, the cutter 24 is mainly used to cut the cigarette packs to be cut, and the cutter 24 is driven to move in the vertical direction by the third driving element.
[0051] It should be noted that the third driving element is preferably a cylinder, and other driving sources with a linear stroke may also be selected. The third driving element is mounted on the frame 10 .
[0052] In the embodiment of the present application, the working principle of the cigarette pack slicing device 20 is as follows: the cigarette pack to be cut is transported to the cutting position through a conveying element 21, the cigarette pack cutting table 22 falls, the conveying element 21 pushes the cigarette pack to be cut forward for a distance, so that the cigarette pack part to be cut is located on the cigarette pack cutting table 22, the push plate 232 pushes the cigarette pack to be cut forward, the pressing plate 231 moves forward to compact the cigarette pack to be cut, the cutter 24 falls to cut a layer of the cigarette pack to be cut, the cigarette pack cutting table 22 is lifted to the initial position, the cut cigarette pack slice falls onto another conveying element 21, and the pressing plate 231 and the push plate 232 return to their initial positions. Figure 1 As shown, the pressing plate 231 presses from the left side, and the pushing plate 232 pushes from the right side, so that the cigarette pack to be cut can be compacted, so that the cigarette pack to be cut will not move to the right, which plays a limiting role.
[0053] like Figure 2 As shown, in the embodiment of the present application, the detection device 30 is mainly used to detect the sliced cigarette packs. The detection device 30 includes a light source element 31, an imaging element 32 and a detection unit 33. The light source element 31 is used to illuminate the sliced cigarette packs and is fixedly mounted on the frame 10. The imaging element 32 is used to obtain the image of the sliced cigarette packs and is fixed on the frame 10 through an adjustable component 40. The detection unit 33 is used to connect with the imaging element 32 to obtain the image of the sliced cigarette packs for detection.
[0054] It should be noted that the light source element 31 provides light for the imaging element 32 to ensure the clarity of the image captured by the imaging element 32. The light source element 31 can be an incandescent lamp, or an element with lighting function such as an LED lamp. The imaging element 32 can be an industrial camera, or other imaging equipment with a camera function such as a video camera. The detection unit 33 is mainly used to obtain and store the image captured by the imaging element 32. In this embodiment, the detection unit 33 includes an industrial control touch all-in-one machine and a detection program. The detection unit 33 communicates with the central control system, and the detection results are stored in the industrial control touch all-in-one machine, and the central control system can call to view the detection results. Among them, the DC in the detection program executes the mold and debris detection method of the cigarette package.
[0055] The present application provides a cigarette pack mildew and debris detection system, comprising a frame, a cigarette pack slicing device and a detection device arranged on the frame. The cigarette pack mildew and debris detection system can automatically cut the cigarette pack to be cut through the cigarette pack slicing device, and then obtain the image of the cut cigarette pack through the camera element of the detection device. The detection unit obtains the image of the cut cigarette pack and detects the image, thereby realizing automatic detection of cigarette pack mildew and debris, improving the detection efficiency, and using automatic detection to avoid the subjective error of manual detection, and improving the accuracy of cigarette pack mildew and debris detection, solving the technical problems of low detection efficiency and unguaranteed detection accuracy in the existing manual detection of cigarette pack mildew and debris in cigarette factories.
[0056] Figure 3 This is a schematic diagram of the structure of a detection device of a cigarette pack mildew and foreign matter detection system according to another embodiment of the present application. Figure 4 This is a schematic structural diagram of a light source fixing frame of a cigarette pack mildew and debris detection system according to an embodiment of the present application.
[0057] like Figure 2 and Figure 3 As shown, in one embodiment of the present application, the detection device 30 includes at least two light source elements 31 and two imaging elements 32, the two light source elements 31 are respectively a first light source element 311 and a second light source element 312, and the two imaging elements 32 are respectively a first imaging element 321 and a second imaging element 322; the first imaging element 321 is fixedly mounted on the frame 10 through an adjustable component 40 and is located on the side of the pressure plate of the limiting element 23, and the second imaging element 322 is fixedly mounted on the column of the frame 10 through the adjustable component 40 and is located above the conveying element 21; the first light source element 311 is fixedly mounted on the column of the frame 10 through a light source fixing frame 12 and is located on both sides of the pressure plate of the limiting element 23, and the second light source element 312 is fixedly mounted on the frame 10 through the light source fixing frame 12 and is located below the first imaging element 321.
[0058] It should be noted that the image capturing direction of the camera element 32 is adjusted by the adjustable component 40, and the light source irradiation position or direction of the light source element 31 is adjusted by the light source fixing frame 12. Figure 4 As shown, the light source fixing frame 12 is bent to adjust the irradiation direction of the light source element 31. The light source element 31 is fixedly connected to the light source fixing frame 12 by screws, and the light source fixing frame 12 is fixed to the frame 10 by screws.
[0059] Figure 5 This is a schematic structural diagram of an adjustable component of a cigarette pack mildew and debris detection system according to another embodiment of the present application.
[0060] like Figure 5As shown, in one embodiment of the present application, the adjustable component 40 is used to adjust the shooting direction of the camera element up and down and left and right. The adjustable component 40 includes a supporting element 41 connected to the frame 10, a first connecting shaft 42 connected to the supporting element 41, a connecting member 43 connected to the first connecting shaft 42, a second connecting shaft 44 connected to the connecting member 43, and a connecting seat 45 connected to the second connecting shaft 44. The camera element 32 is mounted on the connecting seat 45. The connecting seat 45 is moved and adjusted on the second connecting shaft 44 to adjust the shooting direction of the camera element 32. The connecting member 43 is rotated on the first connecting shaft 42 to adjust the position of the second connecting shaft 44.
[0061] It should be noted that the camera element 32 is fixedly connected to the connecting seat 45 by screws, and the connecting seat 45 is connected to the second connecting shaft 44 by holes, so that the connecting seat 45 can slide on the second connecting shaft 44, and the second connecting shaft 44 is fixed to the connecting seat 45 by a set screw. The second connecting shaft 44 is matched with the hole on the connecting member 43, and the connecting member 43 can slide on the second connecting shaft 44, and the second connecting shaft 44 can be fixed to the connecting member 43 by a set screw. The first connecting shaft 42 is matched with the hole on the connecting member 43, and the connecting member 43 can slide on the first connecting shaft 42, and the first connecting shaft 42 can be fixed to the connecting member 43 by a set screw. The first connecting shaft 42 is matched with the hole on the supporting element 41, and the first connecting shaft 42 can be fixed to the supporting element 41 by a set screw. The supporting element 41 is fixed to the frame 10 by screws. Among them, at least two connecting through holes are provided on the connecting member 43.
[0062] Embodiment 2:
[0063] Figure 6 This is a flowchart of the steps of a method for detecting mold and foreign matter in cigarette packages according to an embodiment of the present application.
[0064] like Figure 6 As shown, the present application also provides a method for detecting mold and foreign matter in cigarette packages, comprising the following steps:
[0065] S1. Obtaining image data of the sliced cigarette pack from the detection unit of the above-mentioned cigarette pack mold and debris detection system, the image data including first image data and second image data;
[0066] S2. Perform image processing on the image data to obtain the processed detection result;
[0067] S3. If the test result shows that the cigarette package is moldy and / or contains foreign matter, an alarm is issued.
[0068] It should be noted that the content of the cigarette pack mold and foreign matter detection system in the method of the second embodiment has been described in detail in the first embodiment, and will not be described in detail in this embodiment. In this embodiment, the first image data refers to the data obtained from the first camera element, and the second image data refers to the data obtained from the second camera element.
[0069] In the embodiment of the present application, the step of performing image processing on the first image data to obtain the processed detection result includes:
[0070] Performing perspective transformation correction processing on the image in the first image data to obtain a front view image;
[0071] The brightness of the front-view image is adjusted by gamma correction to obtain an adjusted image;
[0072] The adjusted image is filtered by using a bilateral filtering method to obtain a filtered image;
[0073] The filtered image is segmented using the watershed method to obtain a segmented image;
[0074] The segmented image is processed from different directions by using Gabor filtering to obtain multiple processed images, each processed image is binarized to obtain a binarized image corresponding to each processed image, and the multiple binarized images are processed by OR to obtain a merged image;
[0075] The binary image of the merged image is screened by using a contour screening method to obtain a first contour region; if the area of the first contour region is greater than an area threshold, the first contour region is an abnormal image.
[0076] In an embodiment of the present application, the segmented image is processed from different directions using Gabor filtering to obtain multiple processed images, including: the segmented image is processed from three directions of 0°, 45° and 90° using Gabor filtering to obtain three processed images.
[0077] It should be noted that the image for obtaining the first image data is not obtained directly facing the sliced cigarette pack, and it is necessary to use perspective transformation correction to correct the image to obtain a front view image; due to the uneven brightness of the section caused by the tilted shooting angle of the first camera element to obtain the image, it is necessary to use gamma correction to adjust the overall brightness of the front view image to obtain an adjusted image; then the adjusted image is processed by bilateral filtering and watershed methods, and the obtained segmented image can be separated from the background within the cigarette pack section range; the segmented image is sequentially processed by Gabor filtering and contour screening methods to obtain the first contour area, and according to the area of the first contour area being greater than the area threshold, it is indicated that the first contour area is an abnormal image, that is, the cigarette pack is moldy and / or contains debris. In this embodiment, perspective transformation correction, gamma correction, bilateral filtering, watershed, Gabor filtering, binarization processing and contour screening are relatively mature technologies, which are not limited here. Among them, the area threshold can be selected as 500mm, or it can be limited according to needs.
[0078] In the embodiment of the present application, each processed image is binarized to obtain a binarized image corresponding to each processed image. The binarization mainly divides each processed image for the first time, marks the normal area of the obtained binarized image as 0, and marks the abnormal area of the obtained binarized image as 1. When the merged image is screened by contour screening, the contour marked as 1 is mainly screened out from the merged image to obtain the first contour area.
[0079] In the embodiment of the present application, the step of performing image processing on the second image data to obtain the processed detection result includes:
[0080] The image in the second image data is converted using the HSV color space to obtain an HSV image;
[0081] A color detection method is used to distinguish whether the HSV image is normal color, and a plurality of distinguished regional images are obtained; each regional image is binarized to obtain a regional binary image corresponding to each regional image, and multiple regional binary images are processed by OR to obtain a merged binary image;
[0082] The merged binary image is screened by using a contour screening method to obtain a second contour region; if the area of the second contour region is greater than the area threshold, the second contour region is an abnormal image.
[0083] It should be noted that the HSV color space, color detection method, binarization processing and contour screening method are relatively mature technologies, which are not limited here. In this embodiment, the HSV image is distinguished as normal color by using the color detection method: the yellow and brown of the tobacco leaves in the cigarette pack and the dark green of the conveyor belt are classified as normal colors, and the others are classified as abnormal colors.
[0084] In the embodiment of the present application, the detection program of the detection unit 33 executes the above-mentioned cigarette pack mold and foreign matter detection method, and can automatically detect the image of the cigarette pack after slicing obtained by the camera element 32, and obtain the result of whether the cigarette pack is moldy and / or contains foreign matter, thereby improving the accuracy and efficiency of the detection. The detection unit 33 also saves the detection results for easy viewing.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0087] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0089] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting mold and foreign matter in cigarette packages, characterized in that: The following steps are involved: Acquire image data of the sliced cigarette pack from a detection unit of a cigarette pack mold and foreign matter detection system, wherein the image data includes first image data and second image data; Performing image processing on the image data to obtain a processed detection result; The step of performing image processing on the first image data to obtain a processed detection result includes: Applying perspective transformation correction processing to the image in the first image data to obtain a front view image; Using gamma correction to adjust the brightness of the front view image to obtain an adjusted image; The adjusted image is filtered by using a bilateral filtering method to obtain a filtered image; Segmenting the filtered image using a watershed method to obtain a segmented image; The segmented image is processed from different directions by using Gabor filtering to obtain a plurality of processed images, each of the processed images is binarized to obtain a binarized image corresponding to each of the processed images, and the plurality of binarized images are processed by OR to obtain a merged image; The merged image is screened by a contour screening method to obtain a first contour region; if the area of the first contour region is greater than an area threshold, the first contour region is an abnormal image; The cigarette pack mold and debris detection system comprises a frame and a cigarette pack slicing device and a detection device arranged on the frame; The cigarette pack slicing device is used to slice the cigarette packs to be cut, and comprises a conveying element, a cigarette pack cutting table, a limiting element and a cutter. The conveying element is arranged on the frame, the cigarette pack cutting table can be rotatably arranged on the frame and is located above the conveying element, the limiting element can be movably arranged on the frame and used to fix the cigarette packs to be cut, and the cutter can be movably arranged on the frame and used to slice the cigarette packs to be cut; The detection device is used to detect the sliced cigarette packs, and the detection device includes a light source element, an imaging element and a detection unit. The light source element is used to illuminate the sliced cigarette packs and is fixedly mounted on the frame. The imaging element is used to obtain the image of the sliced cigarette packs and is fixed to the frame through an adjustable component. The detection unit is used to connect with the imaging element to obtain the image of the sliced cigarette packs for detection. The image for obtaining the first image data is not obtained directly facing the sliced cigarette pack, and the uneven brightness of the cut surface is caused by the tilted shooting angle of the image for obtaining the first image data.
2. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The detection device includes two light source elements and two imaging elements, the two light source elements are respectively a first light source element and a second light source element, and the two imaging elements are respectively a first imaging element and a second imaging element; the first imaging element is fixedly arranged on the frame through the adjustable component and is located on the side of the pressure plate of the limiting element, and the second imaging element is fixedly installed on the column of the frame through the adjustable component and is located above the conveying element; the first light source element is fixedly installed on the column of the frame through the light source fixing frame and is located on both sides of the pressure plate of the limiting element, and the second light source element is fixedly installed on the frame through the light source fixing frame and is located below the first imaging element.
3. The method for detecting mold and foreign matter in cigarette packages according to claim 2, characterized in that: The light source fixing frame is bent to adjust the irradiation direction of the light source of the light source element.
4. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The adjustable component is used to adjust the shooting direction of the imaging element up and down and left and right. The adjustable component includes a supporting element connected to the frame, a first connecting axis connected to the supporting element, a connecting piece connected to the first connecting axis, a second connecting axis connected to the connecting piece, and a connecting seat connected to the second connecting axis. The imaging element is mounted on the connecting seat. The connecting seat is moved and adjusted on the second connecting axis to adjust the shooting direction of the imaging element. The connecting piece is rotated on the first connecting axis to adjust the position of the second connecting axis.
5. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The limiting element includes a pressing plate and a pushing plate arranged on the frame, the pressing plate is used to press the cigarette pack to be cut from the forward direction of the conveying element, and the pushing plate is used to push the cigarette pack to be cut from the direction opposite to the forward direction of the conveying element.
6. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The cigarette packet cutting table is installed on the frame via a third connecting shaft, and the third connecting shaft is connected to a first driving element. The first driving element drives the third connecting shaft to rotate and drives the cigarette packet cutting table to rotate around the third connecting shaft.
7. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The segmented image is processed from different directions using Gabor filtering to obtain a plurality of processed images, including: the segmented image is processed from three directions of 0°, 45° and 90° using Gabor filtering respectively to obtain three processed images.
8. The method for detecting mold and foreign matter in cigarette packages according to claim 1, characterized in that: The step of performing image processing on the second image data to obtain a processed detection result comprises: Converting the image in the second image data using the HSV color space to obtain an HSV image; Using a color detection method to distinguish whether the HSV image is a normal color, and obtain a plurality of distinguished regional images; performing a binarization process on each of the regional images, and obtaining a regional binary image corresponding to each of the regional images; and performing an OR process on the plurality of regional binary images, and obtaining a merged binary image; The merged binary image is screened by using a contour screening method to obtain a second contour region; if the area of the second contour region is greater than an area threshold, the second contour region is an abnormal image.
Citation Information
Patent Citations
Liquid crystal screen Mura defect detection method based on computer vision
CN111563889A
Tobacco bale mildew and impurity monitoring system based on machine vision
CN113600508A
Cigarette block centering cutting device for vertical slicing machine
CN203789118U
Visual detection device of cigarette packaging equipment
CN209600956U
Mildew and impurity detection system for tobacco bales
CN216560308U