Cigarette packet detection method, device and equipment of soft box packaging machine and storage medium

By acquiring cigarette pack images in a soft-box packaging machine and inspecting the sealing line and trademark areas, defective cigarette packs are eliminated based on process standards. This solves the problem of low detection efficiency in existing technologies, achieves accurate detection of sealing lines and trademark positions, and improves cigarette pack inspection efficiency and product quality.

CN120621798APending Publication Date: 2025-09-12HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511004753.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Existing soft box packaging machines are inefficient in cigarette pack inspection, resulting in defective cigarette packs flowing downstream and being unable to be effectively removed.

Method used

By acquiring images of cigarette packages on the conveyor belt, the seal area and trademark area are determined, and the seal line deviation is detected using the preset seal line positioning frame and pixel size mapping relationship. The seal line and trademark position are detected in combination with process standards, and the target cigarette package is rejected by the rejection mechanism if the detection fails.

Benefits of technology

The accuracy and efficiency of cigarette package inspection are improved, ensuring that defective cigarette packages are removed in a timely manner, and improving the quality of cigarette package products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120621798A_ABST
    Figure CN120621798A_ABST
Patent Text Reader

Abstract

The invention discloses a tobacco bale detection method, device and equipment of a soft box packaging machine and a storage medium, and relates to the tobacco bale detection technology, and the method comprises the steps that a tobacco bale image of a target tobacco bale on a conveying belt is obtained; determining a sealing area according to the cigarette packet image, and determining a sealing line deviation pixel value according to a preset sealing line positioning frame and a sealing line in the sealing area; according to the pixel size mapping relation and the seal line deviation pixel value, the seal line deviation size is determined; performing seal line detection according to the seal line deviation size and the process standard; determining a trademark area according to the cigarette packet image, and performing position detection according to the trademark area; if the detection result of the seal detection or the position detection is failure, the target cigarette packet is removed through a removing mechanism of the soft box packaging machine. And trademark position detection is performed according to the trademark area corresponding to the trademark, so that accurate detection of the seal line and the trademark area is realized, and the cigarette packet detection efficiency is improved. Supplementary tobacco bale detection on the basis of existing tobacco bale detection is achieved, and the quality of tobacco bale products is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cigarette package detection, and in particular to a cigarette package detection method, device, equipment and storage medium for a soft box packaging machine. Background Art

[0002] As cigarette pack production continues to increase, there's a need to inspect cigarette pack seals and labels during the production process. Current inspection methods for flexible packaging machines result in defective packs being passed downstream. Improving inspection efficiency is a pressing issue. Summary of the Invention

[0003] The present invention provides a cigarette pack detection method, device, equipment and storage medium for a soft box packaging machine, so as to solve the problem of low cigarette pack detection efficiency in the current soft box packaging machine.

[0004] According to one aspect of the present invention, a cigarette pack detection method for a soft carton packaging machine is provided, which is applied to the soft carton packaging machine and comprises:

[0005] Acquire a cigarette pack image of a target cigarette pack on a conveyor belt;

[0006] Determine a seal area according to the cigarette package image, and determine a seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area;

[0007] Determine the seal line deviation size according to the pixel size mapping relationship and the seal line deviation pixel value; perform seal line detection according to the seal line deviation size and process standards;

[0008] determining a trademark area based on the cigarette package image, and performing position detection based on the trademark area;

[0009] If the seal detection or the position detection results in failure, the target cigarette pack is rejected by the rejection mechanism of the soft box packaging machine.

[0010] According to another aspect of the present invention, a cigarette pack detection device for a soft carton packaging machine is provided, which is applied to the soft carton packaging machine and comprises:

[0011] A cigarette pack image acquisition module is used to acquire a cigarette pack image of a target cigarette pack on a conveyor belt;

[0012] a pixel difference determination module, configured to determine a seal area based on the cigarette package image, and determine a seal line deviation pixel value based on a preset seal line positioning frame and the seal line in the seal area;

[0013] A seal line detection module is used to determine the seal line deviation size based on the pixel size mapping relationship and the seal line deviation pixel value; and perform seal line detection based on the seal line deviation size and process standards;

[0014] a trademark detection module, configured to determine a trademark area based on the cigarette package image and perform position detection based on the trademark area;

[0015] The rejection module is configured to reject the target cigarette pack through the rejection mechanism of the soft box packaging machine if the seal detection or the position detection has a detection result of failure.

[0016] According to another aspect of the present invention, there is provided a device for use in a soft box packaging machine, the soft box packaging machine including a conveyor belt and a rejection mechanism, the cigarette pack detection equipment of the soft box packaging machine including: a photo box, a camera installed on the photo box, at least one processor, and a memory communicatively connected to the at least one processor, the processor being connected to the camera installed on the photo box, and the processor being also connected to the controller of the rejection mechanism; the memory storing a computer program executable by the at least one processor, the computer program being executed by the at least one processor so that the at least one processor can execute the cigarette pack detection method for the soft box packaging machine described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cigarette pack detection method for a soft box packaging machine according to any embodiment of the present invention when executed.

[0018] The technical solution of the embodiments of the present invention captures a target cigarette pack image on a conveyor belt; determines a seal area based on the pack image, and determines a seal line deviation pixel value based on a preset seal line positioning frame and the seal line within the seal area; determines a seal line deviation dimension based on a pixel size mapping relationship and the seal line deviation pixel value; performs seal line detection based on the seal line deviation dimension and process standards; determines a trademark area based on the pack image, and performs position detection based on the trademark area; and if either the seal detection or the position detection fails, the target cigarette pack is rejected by the soft carton packaging machine's rejection mechanism. Compared to the current low efficiency of cigarette pack detection, the technical solution provided by the embodiments of the present invention converts the seal line deviation pixel value based on the pack image into a seal line deviation dimension, and performs seal line detection based on process standards and the seal line deviation dimension. Label position detection is performed based on the corresponding trademark area, achieving accurate detection of both the seal line and the label area, thereby improving cigarette pack detection efficiency. This provides supplementary cigarette pack detection in addition to existing cigarette pack detection, thereby improving cigarette product quality.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 This is a flow chart of a cigarette pack detection method for a soft box packaging machine provided by an embodiment of the present invention;

[0022] Figure 2 1 is a structural diagram of a photographing box provided by an embodiment of the present invention;

[0023] Figure 3 Schematic diagram of the relative positions of the photographing box and the conveyor belt provided by an embodiment of the present invention;

[0024] Figure 4 This is an electrical schematic diagram of cigarette pack detection in a soft box packaging machine provided by an embodiment of the present invention;

[0025] Figure 5 is a schematic diagram of a cigarette packet detection image provided by an embodiment of the present invention;

[0026] Figure 6 2 is a schematic structural diagram of a cigarette pack detection device for a soft box packaging machine provided by an embodiment of the present invention;

[0027] Figure 7 It is a structural schematic diagram of another cigarette pack detection device of a soft box packaging machine implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or apparatuses.

[0030] As cigarette pack production continues to increase, there's a need to inspect cigarette pack seals and labels during the production process. Current inspection methods for flexible packaging machines result in defective packs being passed downstream. Improving inspection efficiency is a pressing issue.

[0031] Figure 1 This is a flow chart of a cigarette pack detection method for a soft box packaging machine provided by an embodiment of the present invention. This embodiment is applicable to the case where a cigarette pack is supplementarily detected on a soft box packaging machine. This method can be executed by a cigarette pack detection device of the soft box packaging machine. The cigarette pack detection device of the soft box packaging machine can be implemented in the form of hardware and / or software. Figure 1 As shown, the method of the soft box packaging machine includes:

[0032] Step S101: Acquire a cigarette pack image of a target cigarette pack on a conveyor belt.

[0033] Optionally, obtaining an image of a target cigarette pack on a conveyor belt includes:

[0034] When it is detected that the target cigarette pack moves to the position of the photo box, the image of the target cigarette pack on the conveyor belt is conveyed by the camera; the photo box is arranged above the conveyor belt, the photo box is rectangular, the photo box is close to the conveyor belt and is parallel to the conveyor belt and is provided with an opening, the area of ​​the opening is larger than the area of ​​any outer surface of the cigarette pack, a plurality of light strips are provided in the photo box, the photo box is away from the conveyor belt and is parallel to the conveyor belt and is provided with a shooting hole, and the camera is installed in the shooting hole.

[0035] Figure 2 This is a structural diagram of a photographing box provided by an embodiment of the present invention. Figure 3 Schematic diagram of the relative positions of the photographing box and the conveyor belt provided by an embodiment of the present invention, wherein the photographing box is located upstream relative to the rejecting mechanism on the conveyor belt. Figure 4 This is an electrical schematic diagram provided for an embodiment of the present invention.

[0036] Optionally, a programmable logic controller (PLC), an image detection controller, and a camera light source strobe controller can be installed in the controller cabinet of the soft box packaging machine. The soft box packaging machine can be a YB55 model soft box packaging machine. The camera light source strobe controller is powered by a 24 volt (V) power supply.

[0037] The image detection controller first controls the camera to capture the target cigarette pack, obtaining an image of the pack. This image is then inspected using the cigarette pack inspection method for a flexible packaging machine provided by an embodiment of the present invention. If the inspection fails, the CN1 plug sends a displacement signal to the PLC, which then sends the displacement signal to the controller of the reject mechanism, which then rejects the target cigarette pack based on the displacement signal. Alternatively, a signal is sent to the manual reject button. When the target cigarette pack reaches the reject port, the reject indicator lights up, prompting the user to manually reject it using the reject button.

[0038] The camera triggers the detection of the cigarette pack and outputs a signal to the image detection controller CN1 plug and the camera light source strobe brightening controller CN1 plug. The image detection controller controls the camera to take pictures, and the camera light source controller controls the LED light source to light up to cooperate with the camera to take pictures.

[0039] The aforementioned embodiment, by adding a waiting camera box to the existing soft-box packaging machine, increases the brightness of the target cigarette package when photographing it, shields it from ambient light, avoids overexposure of the cigarette package surface, and improves the clarity of the target cigarette package image. Because the camera box is fixed in a fixed position above the conveyor belt, the arrival time of the target cigarette package can be accurately determined as the conveyor belt conveys it. When the target cigarette package is within the coverage area of ​​the camera box, a camera installed in the air captures the image, capturing the cigarette package image and improving the reliability of the cigarette package image.

[0040] Step S102: determining a seal area according to the cigarette package image, and determining a seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area.

[0041] Optionally, determining the seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area includes:

[0042] Obtain a first seal line positioning frame and a second seal line positioning frame, wherein the first seal line positioning frame is determined based on the seal line of a standard cigarette pack away from the trademark; and the second seal line positioning frame is determined based on the seal line of a standard cigarette pack close to the trademark;

[0043] Aligning the first seal line positioning frame with the cigarette pack image so that the width of the first seal line positioning frame is the same as the width of a standard cigarette pack, and determining a first seal line deviation pixel value based on a comparison between the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area, where the first seal line is a seal line away from the trademark area;

[0044] Align the second seal line positioning frame with the cigarette pack image, and determine the second seal line deviation pixel value based on the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area. The second seal line is a seal line that approaches the trademark area.

[0045] The above implementation method can combine the first seal line positioning frame to detect the position of the first seal line in the sealing area, and the first seal line deviation pixel value; combine the second seal line positioning frame to detect the position of the second seal line in the sealing area, and the second seal line deviation pixel value, to achieve accurate determination of the pixel deviation value.

[0046] Figure 5 Schematic diagram of a cigarette package image provided by an embodiment of the present invention. This image includes a first seal line, a second seal line, a seal pattern, a trademark pattern, and trademark text. During inspection, this image also includes a first seal line positioning frame and a second seal line positioning frame. Figure 5 Two examples of seal line anomalies are given in Figure 1. The first example shows a tilted seal line, while the second example shows a displacement seal line.

[0047] Optionally, aligning the first seal line positioning frame with the cigarette pack image may be implemented as follows:

[0048] The first seal line positioning frame is scaled so that the upper border and the left and right borders of the first seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image.

[0049] Optionally, aligning the second seal line positioning frame with the cigarette pack image may be implemented as follows:

[0050] The second seal line positioning frame is scaled so that the upper border and the left and right borders of the second seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image.

[0051] The above embodiment can enlarge or reduce the first seal line positioning frame or the second seal line positioning frame according to the actual captured cigarette package image, so as to adapt quickly when the distance between the camera and different target cigarette packages changes, thereby improving the reliability of cigarette package detection.

[0052] Optionally, determining the first seal line deviation pixel value according to the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area may be implemented as follows:

[0053] The first starting point deviation value is determined based on the starting point of the bottom edge of the first sealing line positioning frame and the starting point of the first sealing line in the sealing area; the first midpoint disk difference is determined based on the midpoint of the bottom edge of the first sealing line positioning frame and the midpoint of the first sealing line in the sealing area; the first end point deviation value is determined based on the end point of the bottom edge of the first sealing line positioning frame and the end point of the first sealing line in the sealing area.

[0054] Optionally, determining the second seal line deviation pixel value according to the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes:

[0055] Determining a second seal line deviation pixel value according to a bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes:

[0056] The second starting point deviation value is determined based on the starting point of the bottom edge of the second sealing line positioning frame and the starting point of the second sealing line in the sealing area; the second midpoint disk difference is determined based on the midpoint of the bottom edge of the second sealing line positioning frame and the midpoint of the second sealing line in the sealing area; the second end point deviation value is determined based on the end point of the bottom edge of the second sealing line positioning frame and the end point of the second sealing line in the sealing area.

[0057] The above embodiment can obtain the trajectory of the first sealing line or the second sealing line through the starting point, midpoint and end point, and then determine whether the trajectory of the first sealing line or the second sealing line is tilted, and the pixel deviation value between the trajectory of the first sealing line or the second sealing line and the standard sealing line caused by the tilt.

[0058] Step S103: determining the seal line deviation size according to the pixel size mapping relationship and the seal line deviation pixel value; and performing seal line detection according to the seal line deviation size and process standards.

[0059] Step S104: Determine the trademark area based on the cigarette package image, and perform position detection based on the trademark area.

[0060] Optionally, determining a trademark area based on the cigarette package image and performing position detection based on the trademark area includes:

[0061] The trademark area is determined based on the minimum circumscribed rectangular frame of the trademark graphic area and the text area; offset detection is performed based on the center point of the trademark area; and rotation detection is performed based on the angle of the border of the trademark area.

[0062] The trademark area includes a graphic area and a text area. The minimum circumscribed matrix of the trademark graphic area and the text area can be calculated separately, or the trademark area composed of the trademark graphic area and the text area can be taken as a whole to determine the minimum circumscribed rectangular frame of the trademark area. The minimum circumscribed rectangular frame is a rectangle, and offset detection is performed based on the distance between the center point of the minimum circumscribed rectangular frame and the center point of the corresponding area of ​​the standard cigarette pack. Determine whether the distance meets the process standard requirements. If not, the position detection fails. If it meets, continue to calculate the inclination angles of the four sides. The inclination angles of the four sides can be determined based on the coordinates of the four sides of the minimum circumscribed rectangular frame. According to the process requirements, determine whether the inclination angle meets the process standard requirements. If not, the position detection fails. If it meets, the position detection is successful.

[0063] The above implementation can accurately detect the position of the trademark area, thereby improving the accuracy of position detection.

[0064] Step S105: If the seal detection or the position detection results in failure, the target cigarette pack is rejected by the rejection mechanism of the soft carton packaging machine.

[0065] Optionally, rejecting the target cigarette pack by a rejection mechanism of the soft box packaging machine includes:

[0066] Determine the number of steps according to the distance between the position of the photographing box and the rejection port;

[0067] sending the step count information to a controller of a reject mechanism;

[0068] When the target cigarette pack reaches the rejection port, the controller of the rejection mechanism controls the actuator of the rejection mechanism to push the target cigarette pack into the rejection port; alternatively, the controller of the rejection mechanism controls the manual rejection indicator light to light up, and in response to the user's operation through the manual valve, the target cigarette pack is pushed into the rejection port through the actuator of the rejection mechanism.

[0069] The above-mentioned implementation method can automatically or manually remove target cigarette packets that fail detection, thereby improving the removal efficiency.

[0070] like Figure 4As shown, when a defective cigarette pack is detected, the CN1 plug outputs a defect signal (NG) to the PLCI0.0 input via the PLC. The PLC's I0.1 input receives the shift signal generated by the fiber-optic trigger sensor B1 installed on the soft-carton packaging machine. Each revolution of the machine outputs a pulse signal to perform a displacement rejection. The PLC internally sets the number of rejection steps based on the rejection signal. When a defective cigarette pack reaches the rejection port, the PLC's Q0.0 output sends a 24V signal to the soft-carton packaging machine's manual reject button input, controlling the reject valve to remove the pack. The PLC's Q0.1 output controls the reject indicator mounted above the controller to illuminate for a specified period of time, alerting the operator.

[0071] When the soft-box packaging machine's small transparent packaging machine is in production, the camera triggers the detection of cigarette packs and sends signals to the image detection controller and the camera light source strobe controller. The image detection controller controls the camera to take photos, and the camera light source controller activates the LED light source to coordinate with the camera's photo capture. If the image controller detects a defective cigarette pack, it outputs a defect (NG) signal to the PLC, which generates a shift signal. The PLC then outputs a pulse signal for each revolution of the machine to remove the pack. The PLC sets the number of rejection steps. When a cigarette pack reaches the rejection port, it sends a signal to the soft-box packaging machine's manual rejection button input, controlling the rejection valve to remove the pack. It also illuminates the rejection indicator on the soft-box packaging machine's controller to alert the operator.

[0072] In the above-mentioned embodiment, the image detection program accurately measures the position of the seal and label paper of soft-pack cigarette packs. The detection benchmark is switched from "pixel difference" in the image to "actual physical size difference," supporting accuracy determination in units of 0.1mm and achieving millimeter-level quantification. Two edge positioning tool boxes are located at the bottom of the seal paper. These tool boxes measure the actual Y-axis millimeter distance of each side of the seal bottom. By comparing the Y-axis values ​​with those of the seal bottom edge of a normal cigarette pack, the correct height of the seal can be determined. The exact number of millimeters of seal skew can then be calculated by alternating the two Y-axis values. A graphic search tool box is located at the main pattern position of the label paper. This tool box detects the actual X- and Y-axis position and rotation angle of the main pattern on the label paper. By comparing the X- and Y-axis positions and rotation angles with those of a normal cigarette pack, the correct label paper position can be determined. Furthermore, the system includes edge positioning tools at the edges of the cigarette pack to dynamically compensate for small box wobbles, improving detection stability and adaptability.

[0073] The cigarette pack detection method for a soft carton packaging machine according to an embodiment of the present invention acquires a target cigarette pack image on a conveyor belt; determines a seal area based on the cigarette pack image, and determines a seal line deviation pixel value based on a preset seal line positioning frame and the seal line within the seal area; determines a seal line deviation dimension based on a pixel size mapping relationship and the seal line deviation pixel value; performs seal line detection based on the seal line deviation dimension and process standards; determines a trademark area based on the cigarette pack image, and performs position detection based on the trademark area; and if the seal detection or position detection fails, the target cigarette pack is rejected by the soft carton packaging machine's rejection mechanism. Compared to the current low efficiency of cigarette pack detection, the cigarette pack detection method for a soft carton packaging machine according to an embodiment of the present invention supplements the cigarette pack image detection on the main and auxiliary machine belts to promptly identify defective cigarette packs that were not completely rejected upstream and issue a rejection alarm. The seal line deviation pixel value is converted from the cigarette pack image into a seal line deviation dimension, and seal line detection is performed based on process standards and the seal line deviation dimension. The trademark position detection is performed based on the trademark area corresponding to the trademark, achieving accurate detection of the seal line and trademark area, improving cigarette package inspection efficiency. This allows for supplementary cigarette package inspection based on existing cigarette package inspection, improving cigarette package product quality.

[0074] The cigarette pack inspection method for a soft-carton packaging machine provided by the present invention can accurately reject defective cigarette packs that were not detected and rejected by upstream inspection. Furthermore, the number of cigarette packs transported from the inlet of the small-box packaging machine to the rejection port is fixed and stable, preventing consecutive packs. Furthermore, the cigarette packs do not shake, and the camera position remains stable. The image controller has a color recognition function, which can distinguish areas of particularly similar colors on the cigarette packs, and a positioning coordinate recognition function, which can accurately identify even slight changes in the pattern position on the cigarette packs.

[0075] Supplementary inspection is carried out on the image detection of cigarette packs on the belts of the main and auxiliary machine channels to promptly detect defective cigarette packs that have not been removed cleanly upstream and issue a rejection alarm.

[0076] Figure 6 This is a schematic diagram of the structure of a cigarette pack inspection device for a soft-carton packaging machine, provided by an embodiment of the present invention. This embodiment is applicable to supplementary cigarette pack inspection on a soft-carton packaging machine. The cigarette pack inspection device for a soft-carton packaging machine can be implemented in hardware and / or software. The cigarette pack inspection device for a soft-carton packaging machine includes a cigarette pack image acquisition module 21, a pixel difference determination module 22, a seal line detection module 23, a trademark detection module 24, and a rejection module 25.

[0077] The cigarette pack image acquisition module 21 is used to acquire the cigarette pack image of the target cigarette pack on the conveyor belt;

[0078] a pixel difference determination module 22 for determining a seal area based on the cigarette package image, and determining a seal line deviation pixel value based on a preset seal line positioning frame and the seal line in the seal area;

[0079] The sealing line detection module 23 is used to determine the sealing line deviation size according to the pixel size mapping relationship and the sealing line deviation pixel value; and perform sealing line detection according to the sealing line deviation size and process standards;

[0080] a trademark detection module 24, configured to determine a trademark area based on the cigarette package image and perform position detection based on the trademark area;

[0081] The rejection module 25 is configured to reject the target cigarette pack through the rejection mechanism of the soft box packaging machine if the seal detection or the position detection has failed.

[0082] Based on the above embodiment, optionally, the cigarette packet image acquisition module 21 is used to:

[0083] When it is detected that the target cigarette pack moves to the position of the photo box, the image of the target cigarette pack on the conveyor belt is conveyed by the camera; the photo box is arranged above the conveyor belt, the photo box is rectangular, the photo box is close to the conveyor belt and is parallel to the conveyor belt and is provided with an opening, the area of ​​the opening is larger than the area of ​​any outer surface of the cigarette pack, a plurality of light strips are provided in the photo box, the photo box is away from the conveyor belt and is parallel to the conveyor belt and is provided with a shooting hole, and the camera is installed in the shooting hole.

[0084] Based on the above embodiment, optionally, the pixel difference determination module 22 is configured to:

[0085] Obtain a first seal line positioning frame and a second seal line positioning frame, wherein the first seal line positioning frame is determined based on the seal line of a standard cigarette pack away from the trademark; and the second seal line positioning frame is determined based on the seal line of a standard cigarette pack close to the trademark;

[0086] Aligning the first seal line positioning frame with the cigarette pack image so that the width of the first seal line positioning frame is the same as the width of a standard cigarette pack, and determining a first seal line deviation pixel value based on a comparison between the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area, where the first seal line is a seal line away from the trademark area;

[0087] Align the second seal line positioning frame with the cigarette pack image, and determine the second seal line deviation pixel value based on the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area. The second seal line is a seal line that approaches the trademark area.

[0088] Based on the above embodiment, optionally, the pixel difference determination module 22 is configured to align the first seal line positioning frame with the cigarette package image, including:

[0089] scaling the first seal line positioning frame so that the upper border and the left and right borders of the first seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image;

[0090] Accordingly, aligning the second seal line positioning frame with the cigarette pack image includes:

[0091] The second seal line positioning frame is scaled so that the upper border and the left and right borders of the second seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image.

[0092] Based on the above embodiment, optionally, the pixel difference determination module 22 is configured to determine a first seal line deviation pixel value based on a bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area, including:

[0093] Determining a first starting point deviation value according to the starting point of the bottom edge of the first sealing line positioning frame and the starting point of the first sealing line in the sealing area;

[0094] Determine a first midpoint disc difference according to the midpoint of the bottom edge of the first sealing line positioning frame and the midpoint of the first sealing line in the sealing area;

[0095] Determining a first end point deviation value according to an end point of a bottom edge of the first sealing line positioning frame and an end point of the first sealing line in the sealing area;

[0096] Accordingly, the pixel difference determination module 22 is configured to determine the second seal line deviation pixel value based on the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area, including:

[0097] Determining a second seal line deviation pixel value according to a bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes:

[0098] Determining a second starting point deviation value according to the starting point of the bottom edge of the second sealing line positioning frame and the starting point of the second sealing line in the sealing area;

[0099] Determine a second midpoint disc difference according to the midpoint of the bottom edge of the second sealing line positioning frame and the midpoint of the second sealing line in the sealing area;

[0100] The second end point deviation value is determined according to the end point of the bottom edge of the second sealing line positioning frame and the end point of the second sealing line in the sealing area.

[0101] Based on the above embodiment, optionally, the trademark detection module 24 is configured to:

[0102] Determine the trademark area based on the minimum bounding rectangle of the trademark graphic area and text area;

[0103] Performing offset detection based on the center point of the trademark area;

[0104] Rotation detection is performed based on the angle of the border of the trademark area.

[0105] Based on the above embodiment, optionally, the rejection module 25 is used to:

[0106] Determine the number of steps according to the distance between the position of the photographing box and the rejection port;

[0107] sending the step count information to a controller of a reject mechanism;

[0108] When the target cigarette pack reaches the rejection port, the controller of the rejection mechanism controls the actuator of the rejection mechanism to push the target cigarette pack into the rejection port; alternatively, the controller of the rejection mechanism controls the manual rejection indicator light to light up, and in response to the user's operation through the manual valve, the target cigarette pack is pushed into the rejection port through the actuator of the rejection mechanism.

[0109] The cigarette pack inspection device for a soft carton packaging machine according to an embodiment of the present invention includes a cigarette pack image acquisition module 21 for acquiring a target cigarette pack image on a conveyor belt; a pixel difference determination module 22 for determining a seal area based on the cigarette pack image and determining a seal line deviation pixel value based on a preset seal line positioning frame and the seal line in the seal area; a seal line detection module 23 for determining a seal line deviation dimension based on a pixel size mapping relationship and the seal line deviation pixel value; and performing seal line detection based on the seal line deviation dimension and process standards; a trademark detection module 24 for determining a trademark area based on the cigarette pack image and performing position detection based on the trademark area; and a rejection module 25 for rejecting the target cigarette pack via the soft carton packaging machine's rejection mechanism if the seal or position detection results in failure. Compared to the current low efficiency of cigarette pack inspection, the cigarette pack inspection device for a soft carton packaging machine according to an embodiment of the present invention performs supplementary inspection of cigarette pack images on the conveyor belts of the main and auxiliary machine channels, promptly identifying defective cigarette packs that have not been completely rejected upstream and issuing a rejection alarm. Based on cigarette package images, the seal line deviation pixel values ​​are converted into seal line deviation dimensions. Seal line detection is then performed based on process standards and seal line deviation dimensions. Trademark position detection is performed based on the corresponding trademark area, enabling precise detection of the seal line and trademark area, improving cigarette package inspection efficiency. This provides supplementary cigarette package inspection capabilities, enhancing product quality.

[0110] The cigarette pack detection device for a soft box packaging machine provided in an embodiment of the present invention can execute the cigarette pack detection method for a soft box packaging machine provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0111] Figure 7 It is a structural schematic diagram of a cigarette pack detection device for a soft box packaging machine provided in an embodiment of the present invention, which is applied to a soft box packaging machine. The soft box packaging machine includes a conveyor belt and a rejection mechanism. The cigarette pack detection device for the soft box packaging machine includes: a photo-taking box, a camera 31 installed on the photo-taking box, at least one processor 32, and a memory 33 communicatively connected to the at least one processor 32, and the processor 32 is also connected to the controller 34 of the rejection mechanism; the memory 33 stores a computer program that can be executed by the at least one processor 32, and the computer program is executed by the at least one processor 32 so that the at least one processor 32 can execute the cigarette pack detection method for the soft box packaging machine shown in the embodiment of the present invention.

[0112] The camera box is positioned above the conveyor belt and is rectangular. It has an opening in a plane close to and parallel to the conveyor belt, with the area of ​​the opening being larger than the area of ​​any outer surface of the cigarette pack. The camera box is provided with multiple light strips. A camera hole is provided in a plane away from and parallel to the conveyor belt, with the camera 31 mounted within the hole. At least one processor 32 can be used in an image detection controller.

[0113] The controller 34 of the rejecting mechanism is connected to the actuator of the rejecting mechanism, and the actuator is used to perform the rejecting action, and the target cigarette pack that fails to detect is rejected through the rejecting port. In addition, the controller 34 of the rejecting mechanism can also be connected to a manual rejection indicator light.

[0114] In some embodiments, the cigarette pack detection method of the soft box packaging machine can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a memory. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by a processor, one or more steps of the modeling method for the seabed mining area described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform the modeling method for the seabed mining area by any other appropriate means (for example, by means of firmware).

[0115] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0116] Computer programs for implementing the seabed mining area modeling method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs implement the functions / operations specified in the flowcharts and / or block diagrams. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0117] An embodiment of the present invention further provides a computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute a method for modeling a seabed mining area, comprising:

[0118] Acquire a cigarette pack image of a target cigarette pack on a conveyor belt;

[0119] Determine a seal area according to the cigarette package image, and determine a seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area;

[0120] Determine the seal line deviation size according to the pixel size mapping relationship and the seal line deviation pixel value; perform seal line detection according to the seal line deviation size and process standards;

[0121] determining a trademark area based on the cigarette package image, and performing position detection based on the trademark area;

[0122] If the seal detection or the position detection results in failure, the target cigarette pack is rejected by the rejection mechanism of the soft box packaging machine.

[0123] Based on the above embodiment, optionally, obtaining a cigarette pack image of a target cigarette pack on the conveyor belt includes:

[0124] When it is detected that the target cigarette pack moves to the position of the photo box, the image of the target cigarette pack on the conveyor belt is conveyed by the camera; the photo box is arranged above the conveyor belt, the photo box is rectangular, the photo box is close to the conveyor belt and is parallel to the conveyor belt and is provided with an opening, the area of ​​the opening is larger than the area of ​​any outer surface of the cigarette pack, a plurality of light strips are provided in the photo box, the photo box is away from the conveyor belt and is parallel to the conveyor belt and is provided with a shooting hole, and the camera is installed in the shooting hole.

[0125] On the basis of the above embodiment, optionally, determining the seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area includes:

[0126] Obtain a first seal line positioning frame and a second seal line positioning frame, wherein the first seal line positioning frame is determined based on the seal line of a standard cigarette pack away from the trademark; and the second seal line positioning frame is determined based on the seal line of a standard cigarette pack close to the trademark;

[0127] Aligning the first seal line positioning frame with the cigarette pack image so that the width of the first seal line positioning frame is the same as the width of a standard cigarette pack, and determining a first seal line deviation pixel value based on a comparison between the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area, where the first seal line is a seal line away from the trademark area;

[0128] Align the second seal line positioning frame with the cigarette pack image, and determine the second seal line deviation pixel value based on the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area. The second seal line is a seal line that approaches the trademark area.

[0129] Based on the above embodiment, optionally, aligning the first seal line positioning frame with the cigarette pack image includes:

[0130] scaling the first seal line positioning frame so that the upper border and the left and right borders of the first seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image;

[0131] Accordingly, aligning the second seal line positioning frame with the cigarette pack image includes:

[0132] The second seal line positioning frame is scaled so that the upper border and the left and right borders of the second seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image.

[0133] Based on the above embodiment, optionally, determining the first seal line deviation pixel value according to the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area includes:

[0134] Determining a first starting point deviation value according to the starting point of the bottom edge of the first sealing line positioning frame and the starting point of the first sealing line in the sealing area;

[0135] Determine a first midpoint disc difference according to the midpoint of the bottom edge of the first sealing line positioning frame and the midpoint of the first sealing line in the sealing area;

[0136] Determining a first end point deviation value according to an end point of a bottom edge of the first sealing line positioning frame and an end point of the first sealing line in the sealing area;

[0137] Correspondingly, determining the second seal line deviation pixel value according to the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes:

[0138] Determining a second seal line deviation pixel value according to a bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes:

[0139] Determining a second starting point deviation value according to the starting point of the bottom edge of the second sealing line positioning frame and the starting point of the second sealing line in the sealing area;

[0140] Determine a second midpoint disc difference according to the midpoint of the bottom edge of the second sealing line positioning frame and the midpoint of the second sealing line in the sealing area;

[0141] The second end point deviation value is determined according to the end point of the bottom edge of the second sealing line positioning frame and the end point of the second sealing line in the sealing area.

[0142] Based on the above embodiment, optionally, determining the trademark area according to the cigarette package image and performing position detection according to the trademark area include:

[0143] Determine the trademark area based on the minimum bounding rectangle of the trademark graphic area and text area;

[0144] Performing offset detection based on the center point of the trademark area;

[0145] Rotation detection is performed based on the angle of the border of the trademark area.

[0146] Based on the above embodiment, optionally, rejecting the target cigarette pack by a rejection mechanism of the soft box packaging machine includes:

[0147] Determine the number of steps according to the distance between the position of the photographing box and the rejection port;

[0148] sending the step count information to a controller of a reject mechanism;

[0149] When the target cigarette pack reaches the rejection port, the controller of the rejection mechanism controls the actuator of the rejection mechanism to push the target cigarette pack into the rejection port; alternatively, the controller of the rejection mechanism controls the manual rejection indicator light to light up, and in response to the user's operation through the manual valve, the target cigarette pack is pushed into the rejection port through the actuator of the rejection mechanism.

[0150] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0151] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A cigarette pack detection method for a soft box packaging machine, characterized in that: Applicable to soft box packaging machines, including: Acquire a cigarette pack image of a target cigarette pack on a conveyor belt; Determine a seal area according to the cigarette package image, and determine a seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area; Determine the seal line deviation size according to the pixel size mapping relationship and the seal line deviation pixel value; and perform seal line detection according to the seal line deviation size and process standards; determining a trademark area based on the cigarette package image, and performing position detection based on the trademark area; If the seal detection or the position detection results in failure, the target cigarette pack is rejected by the rejection mechanism of the soft box packaging machine.

2. The method according to claim 1, characterized in that Obtain an image of a target cigarette pack on a conveyor belt, including: When it is detected that the target cigarette pack moves to the position of the photo box, the image of the target cigarette pack on the conveyor belt is conveyed by the camera; the photo box is arranged above the conveyor belt, the photo box is rectangular, the photo box is close to the conveyor belt and is parallel to the conveyor belt and is provided with an opening, the area of ​​the opening is larger than the area of ​​any outer surface of the cigarette pack, a plurality of light strips are provided in the photo box, the photo box is away from the conveyor belt and is parallel to the conveyor belt and is provided with a shooting hole, and the camera is installed in the shooting hole.

3. The method according to claim 1, characterized in that Determining a seal line deviation pixel value according to a preset seal line positioning frame and the seal line in the seal area includes: Obtain a first seal line positioning frame and a second seal line positioning frame, wherein the first seal line positioning frame is determined based on the seal line of a standard cigarette pack away from the trademark; and the second seal line positioning frame is determined based on the seal line of a standard cigarette pack close to the trademark; Aligning the first seal line positioning frame with the cigarette pack image so that the width of the first seal line positioning frame is the same as the width of a standard cigarette pack, and determining a first seal line deviation pixel value based on a comparison between the bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area, where the first seal line is a seal line away from the trademark area; Align the second seal line positioning frame with the cigarette pack image, and determine the second seal line deviation pixel value based on the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area. The second seal line is a seal line that approaches the trademark area.

4. The method according to claim 3, characterized in that Aligning the first seal line positioning frame with the cigarette pack image includes: scaling the first seal line positioning frame so that the upper border and the left and right borders of the first seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image; Accordingly, aligning the second seal line positioning frame with the cigarette pack image includes: The second seal line positioning frame is scaled so that the upper border and the left and right borders of the second seal line positioning frame coincide with the upper border and the left and right borders of the cigarette pack image.

5. The method according to claim 3, characterized in that Determining a first seal line deviation pixel value according to a bottom edge of the first seal line positioning frame and at least one comparison point on the first seal line in the seal area includes: Determining a first starting point deviation value according to the starting point of the bottom edge of the first sealing line positioning frame and the starting point of the first sealing line in the sealing area; Determine a first midpoint disc difference according to the midpoint of the bottom edge of the first sealing line positioning frame and the midpoint of the first sealing line in the sealing area; Determining a first end point deviation value according to an end point of a bottom edge of the first sealing line positioning frame and an end point of the first sealing line in the sealing area; Correspondingly, determining the second seal line deviation pixel value according to the bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes: Determining a second seal line deviation pixel value according to a bottom edge of the second seal line positioning frame and at least one comparison point on the second seal line in the seal area includes: Determining a second starting point deviation value according to the starting point of the bottom edge of the second sealing line positioning frame and the starting point of the second sealing line in the sealing area; Determine a second midpoint disc difference according to the midpoint of the bottom edge of the second sealing line positioning frame and the midpoint of the second sealing line in the sealing area; The second end point deviation value is determined according to the end point of the bottom edge of the second sealing line positioning frame and the end point of the second sealing line in the sealing area.

6. The method according to claim 1, wherein Determining a trademark area according to the cigarette package image and performing position detection according to the trademark area include: Determine the trademark area based on the minimum bounding rectangle of the trademark graphic area and text area; Performing offset detection based on the center point of the trademark area; Rotation detection is performed based on the angle of the border of the trademark area.

7. The method according to claim 2, characterized in that Rejecting the target cigarette pack by the rejection mechanism of the soft box packaging machine includes: Determine the number of steps according to the distance between the position of the photographing box and the rejection port; sending the step count information to a controller of a reject mechanism; When the target cigarette pack reaches the rejection port, the controller of the rejection mechanism controls the actuator of the rejection mechanism to push the target cigarette pack into the rejection port; alternatively, the controller of the rejection mechanism controls the manual rejection indicator light to light up, and in response to the user's operation through the manual valve, the target cigarette pack is pushed into the rejection port through the actuator of the rejection mechanism.

8. A cigarette pack detection device for a soft box packaging machine, characterized in that: Applicable to soft box packaging machines, including: A cigarette pack image acquisition module is used to acquire a cigarette pack image of a target cigarette pack on a conveyor belt; a pixel difference determination module, configured to determine a seal area based on the cigarette package image, and determine a seal line deviation pixel value based on a preset seal line positioning frame and the seal line in the seal area; A seal line detection module is used to determine the seal line deviation size based on the pixel size mapping relationship and the seal line deviation pixel value; and perform seal line detection based on the seal line deviation size and process standards; a trademark detection module, configured to determine a trademark area based on the cigarette package image and perform position detection based on the trademark area; The rejection module is configured to reject the target cigarette pack through the rejection mechanism of the soft box packaging machine if the seal detection or the position detection has a detection result of failure.

9. A cigarette pack detection device for a soft box packaging machine, characterized in that: Applied to a soft box packaging machine, the soft box packaging machine includes a conveyor belt and a rejection mechanism, and the cigarette pack detection equipment of the soft box packaging machine includes: a photo box, a camera installed on the photo box, at least one processor, and a memory communicatively connected to the at least one processor, the processor is connected to the camera installed on the photo box, and the processor is also connected to the controller of the rejection mechanism; the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cigarette pack detection method of the soft box packaging machine according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cigarette package detection method for a soft box packaging machine according to any one of claims 1 to 7 when executed.