Seal glue point detection method and device and storage medium

Through the sealing glue point detection method and device based on target detection, real-time adjustment of spraying parameters solves the problem of glue point offset and unreasonable size during the cigarette packaging process, and improves the quality and production efficiency of cigarette packs.

CN118537331APending Publication Date: 2024-08-23LONGYAN CIGARETTE FACTORY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912912.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

During the cigarette packaging process, the electronically sprayed sealing glue points are offset and unreasonably sized, resulting in glue overflow or weak adhesion, causing quality defects in the cigarette packs. In addition, the lack of real-time detection methods makes it easy to miss inspections and waste consumption.

Method used

Adopt a sealing glue point detection method and device based on target detection, collect images through the camera, annotate the information to train the model, detect the sealing status in real time, adjust the spraying parameters, realize dynamic adjustment of the glue point position and size, and alarm for abnormal situations and cull.

Benefits of technology

It realizes real-time detection and dynamic adjustment of sealing glue points, improves the quality of cigarette pack packaging, reduces consumption and quality defects caused by glue point problems, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537331A
    Figure CN118537331A
Patent Text Reader

Abstract

The invention relates to a seal glue point detection method and device and a storage medium. The method comprises the following steps: collecting an effective image of a seal with a glue point which is conveyed to pass through a camera, and labeling the seal and the glue point in the effective image to generate labeling information; training the target detection model by using the effective image and the annotation information to obtain a seal glue point detection model; inputting the real-time image of the product seal which is conveyed to pass through the camera into a seal glue point detection model, and judging whether the state of the product seal meets a preset threshold value or not; and in response to the condition that the state of the product seal does not accord with the preset threshold value, an instruction for adjusting spraying parameters is sent to a glue spraying control device based on the state of the product seal.
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 production, and in particular to a method, a device and a storage medium for detecting seal glue points on cigarette outer packaging. Background Art

[0002] In cigarette production, cigarette packaging includes hard box packaging and soft pack packaging. The latter will paste a rectangular label paper as a seal on the opening end of the soft box cigarette, which is mainly used for sealing the opening end of the soft box cigarette. The gluing of the seal of the cigarette packaging equipment is mainly divided into mechanical roller gluing and electronic gluing. Electronic gluing is to control the glue spraying head to spray glue on the passing seal at the set position. In the actual production process, electronic gluing often has problems such as glue point offset, glue point being too large or too small. Because the seal itself is small in size, when the glue point on the seal is offset too close to the edge of the seal or the glue point is large, it is easy to cause glue overflow, that is, after the seal is affixed, the glue overflows from the seal paper, causing the cigarette package to be dirty. In addition, if the glue spray point is offset to the outside of the seal paper or the glue point is too small, it is easy to cause the seal to be not firmly adhered, resulting in quality defects.

[0003] At present, electronic glue spraying uses fixed set parameters to control the position and size of glue spraying, and can only manually adjust the position or size of glue dots when glue spraying problems occur. In addition, the glue spraying quality cannot be detected in real time, and can only be detected after the appearance of the cigarette package is dirty or not firmly pasted, which is prone to missed inspections and will also cause a lot of waste. Summary of the invention

[0004] The present invention discloses a method, a device and a storage medium for detecting seal glue points based on target detection.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for detecting seal glue spots is provided, comprising: collecting a valid image of a seal with glue spots conveyed through a camera, and marking the seal and glue spots in the valid image to generate marking information; training a target detection model using the valid image and the marking information to obtain a seal glue spot detection model; inputting real-time imaging of a product seal conveyed through the camera into the seal glue spot detection model to determine whether the status of the product seal meets a preset threshold; and in response to the status of the product seal not meeting the preset threshold, sending an instruction to adjust spraying parameters to a glue spraying control device based on the status of the product seal.

[0006] In some embodiments, the marking information includes at least one of the position and size of the seal and the position and size of the glue dot.

[0007] In some embodiments, a seal glue dot detection model is used to detect at least one of the position and size of the seal and the position and size of the glue dot in the input image.

[0008] In some embodiments, determining whether the status of the product seal meets a preset threshold includes: determining whether the seal exists in the real-time imaging of the product seal and whether the number of glue dots on the seal meets the requirements based on a set confidence level.

[0009] In some embodiments, in response to determining that there is no seal in the real-time imaging of the product seal or the number of glue dots on the seal does not meet the requirements, the seal production equipment is controlled to shut down.

[0010] In some embodiments, the seal production equipment sounds an alarm and rejects the cigarette pack corresponding to the current product seal.

[0011] In some embodiments, in response to determining that a seal exists in the real-time imaging of the product seal and the number of glue dots on the seal meets the requirements, a seal glue dot detection model detects the real-time imaging to output position information and size information of the product seal in the real-time imaging.

[0012] In some embodiments, the position information and size information of the product seal in the real-time imaging are described in the form of an image size ratio of the real-time imaging.

[0013] In some embodiments, the position information of the product seal in the real-time imaging includes the position of the center point of the glue dot on the product seal in the real-time imaging.

[0014] In some embodiments, the size information of the product seal in the real-time imaging includes the length and width of the product seal in the real-time imaging.

[0015] In some embodiments, the size information of the product seal in the real-time imaging includes the diameter of the glue dot of the product seal in the real-time imaging.

[0016] In some embodiments, the area information of the product seal and the glue spot on the product seal is calculated based on the position information and size information of the product seal in the real-time imaging.

[0017] In some embodiments, determining whether the status of the product seal meets a preset threshold further includes: based on a preset area threshold, determining whether the status of the product seal is normal, deviated, or abnormal for the glue points on the product seal.

[0018] In some embodiments, in response to determining that a glue point on a product seal is abnormal, the seal production equipment is controlled to shut down.

[0019] In some embodiments, in response to determining a deviation in a glue dot on a product seal, the instructions include adjusting the spraying parameters based on a direction of the deviation.

[0020] In some embodiments, the spraying parameters include at least one of a spraying duration, a number of glue dots, a set phase for starting spraying, and a glue dot phase interval.

[0021] According to a second aspect of an embodiment of the present disclosure, a seal glue point detection device is provided, comprising: an image acquisition and annotation unit, configured to acquire a valid image of a seal with glue points conveyed through a camera, and to annotate the seal and glue points in the valid image to generate annotation information; a model training unit, configured to train a target detection model using the valid image and the annotation information to obtain a seal glue point detection model; a product detection unit, configured to input real-time imaging of a product seal conveyed through the camera into the seal glue point detection model to determine whether the status of the product seal meets a preset threshold; and a parameter adjustment instruction unit, configured to send an instruction to adjust the spraying parameters to a glue spraying control device based on the status of the product seal in response to the status of the product seal not meeting the preset threshold.

[0022] According to the third aspect of the embodiments of the present disclosure, a seal production device is provided, comprising: the seal glue point detection device according to the second aspect of the embodiments of the present disclosure; and a glue spraying control device, comprising: a glue spraying unit, configured to start spraying glue points based on preset spraying parameters in response to detecting the edge of the product seal; a product image acquisition unit, configured to acquire real-time images of the product seal conveyed through a camera and send them to the seal glue point detection device; and a parameter adjustment unit, configured to adjust the spraying parameters in response to receiving the instructions from the seal glue point detection device.

[0023] According to the fourth aspect of an embodiment of the present disclosure, a seal glue point detection device is provided, comprising: a processor; and a memory storing computer executable instructions, wherein when the computer executable instructions are executed by the processor, the processor executes the seal glue point detection method according to the first aspect of an embodiment of the present disclosure.

[0024] According to a fifth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer-executable instructions is provided, which, when executed by a processor, enables the processor to implement the seal glue point detection method described in the first aspect of an embodiment of the present disclosure.

[0025] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer program instructions, which, when executed by a processor, implement the seal glue point detection method according to the first aspect of an embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The foregoing and other features and advantages of the present disclosure will become apparent from the following description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are incorporated herein and form a part of the specification, and are further used to explain the principles of the present disclosure and enable those skilled in the art to make and use the present disclosure. Among them:

[0027] Figure 1 A schematic diagram showing a product seal and its glue point according to an embodiment of the present disclosure is shown;

[0028] Figure 2A and Figure 2B A schematic diagram of the position of the glue points when the seal glue points are offset or missing according to an embodiment of the present disclosure is shown;

[0029] Figure 3 A schematic diagram of a glue spraying production line according to an embodiment of the present disclosure is shown;

[0030] Figure 4 An exemplary block diagram of a seal glue point detection device according to an embodiment of the present disclosure is shown;

[0031] Figure 5 An exemplary block diagram of a seal production device according to an embodiment of the present disclosure is shown;

[0032] Figure 6 A flow chart of a sealing glue point production control process according to an embodiment of the present disclosure is shown;

[0033] Figure 7 A flow chart of a method for detecting seal glue points according to an embodiment of the present disclosure is shown;

[0034] Figure 8 An exemplary configuration of a computing device that can implement an embodiment according to the present disclosure is shown.

[0035] Note that in the embodiments described below, sometimes the same reference numerals are used in common between different drawings to represent the same parts or parts with the same functions, and their repeated descriptions are omitted. In some cases, similar numbers and letters are used to represent similar items, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0036] For ease of understanding, the position, size, range, etc. of each structure shown in the drawings and the like may not represent the actual position, size, range, etc. Therefore, the present disclosure is not limited to the position, size, range, etc. disclosed in the drawings and the like. DETAILED DESCRIPTION

[0037] Various exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0038] The following description of at least one exemplary embodiment is in fact merely illustrative and is in no way intended to limit the present disclosure and its application or use. That is, the structures and methods herein are shown in an exemplary manner to illustrate different embodiments of the structures and methods in the present disclosure. However, those skilled in the art will appreciate that they merely illustrate exemplary ways of the present disclosure that can be implemented, rather than exhaustive ways. In addition, the drawings need not be drawn to scale, and some features may be enlarged to illustrate the details of specific components.

[0039] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0040] In summary, the technical solution disclosed in the present invention is mainly used to solve the problem of cigarette pack defects, and is particularly aimed at the seals on cigarette packs, and is used to solve the appearance of dirty cigarette packs and quality defects and / or packaging defects caused by the offset or unreasonable size of the seal glue points. To this end, the present invention proposes a seal glue point detection method and a glue spraying production device based on target detection, which can realize the real-time detection of the seal conveying state, the position and size of the seal glue points through target detection, and adjust the position and size of the seal glue points by dynamically adjusting the glue spraying time and the spraying duration, and alarm and remove the glue points that are too large, too small, missing, or the seal conveying failure.

[0041] First, please refer to Figure 1 , Figure 1 A schematic diagram of a product seal and its glue dots according to an embodiment of the present disclosure is shown. Generally, for a seal that can be used for cigarette packaging, its shape is rectangular, and a plurality of rows of glue dots are evenly distributed thereon. Figure 1 FIG. 1 shows an example of a valid image of a seal 100, on which four groups of two columns of eight glue dots 200 are distributed according to a preset configuration. In actual production, the seal 100 is produced on a production line in a Figure 1 The movement direction from left to right reaches the corresponding position of the glue spraying control device. The glue spraying control device will start spraying after detecting the right edge 101 of the seal 100 after a set phase to obtain the first group of glue dots with a set distance of 110 from the edge 101; thereafter, the next group of glue dots will be sprayed at a phase interval of 120, and so on until the spraying is completed.

[0042] However, compared to Figure 1The examples shown are normal glue points. In actual production, due to the influence of various factors, the seal glue points may be abnormal. Figure 2A and Figure 2B The schematic diagram of the glue point position of the seal according to the embodiment of the present disclosure is shown in the case of glue point offset and missing. Specifically, Figure 2A FIG. 2 shows the glue point position in the case of glue point offset, wherein the glue point 200′ distributed on the seal 100 is offset relative to the center of the seal 100. Figure 2A The leftward deviation is reflected in the spraying phase as the distance 110 ′ from the first group of glue dots to the edge 101 is larger than the set distance 110 . Figure 2B The position of glue dots in the case of glue dot missing is shown, wherein the seal 100 produced thereby does not meet the requirements, and there are only three groups of six glue dots 200'' distributed on the seal 100 (perhaps because one group is missed from spraying, or one group falls outside the seal 100 due to excessive deviation), which is reflected in the spraying phase as the distance 110'' from the first group of glue dots to the edge 101 may be close to or exceed the sum of the set distance 110 and the phase interval 120. Furthermore, the case of glue dot missing also includes the case of only one point missing, or the case of multiple columns or groups of glue dots missing, etc. Therefore, Figure 2A and Figure 2B The sealing glue points do not meet the production requirements and need to be removed from the sealing production line.

[0043] Please refer to Figure 3 , Figure 3 Schematic diagram of a glue spraying production line according to an embodiment of the present disclosure is shown. In some embodiments, the product seal 100 on the production line moves along direction 500, passing through the glue spraying device 320 and the camera 330 in sequence. It should be understood that Figure 3 The glue spraying device 320 shown in the figure includes a first glue spraying head 320-1 and a second glue spraying head 320-2, which are used to spray two rows of glue dots on the product seal 100; in actual production, the specific number of glue spraying heads can be increased or decreased according to demand. First, the photoelectric detector 310 detects the starting position of the seal 100, that is, Figure 3The position of the clean seal 100 on the left side of the middle that has not yet been sprayed with glue dots is detected, and then the precise seal edge is determined. In response to detecting the edge, the glue spraying device 320 starts to spray glue according to the spraying parameters of the glue spraying device 320. Among them, the spraying parameters include spraying duration, the number of glue dots, the set phase for starting spraying, and the glue dot phase interval. Specifically, the set phase for starting spraying determines the position of the glue dot 200, that is, the glue spraying device 320 starts spraying the first group of glue dots after the seal 100 passes the set phase; the spraying duration determines the size of the glue dot 200 (such as the radius), that is, the spraying duration of each glue dot by the glue spraying device 320 determines the amount of glue at the dot, which in turn affects the size of the formed glue dot; and further combined with the number of glue dots and the glue dot phase interval, the pattern formed by the glue dot 200 on the seal 100 can be determined.

[0044] Next, as the seal 100 continues to move along the direction 150, the glue spraying device 320 sprays subsequent glue dots in sequence according to the glue dot interval until the last group of glue dots 200 is completed. It can be understood that the first glue spraying head 320-1 and the second glue spraying head 320-2 can be synchronously controlled by the same instruction, or they can be controlled separately. In a non-limiting embodiment, when the first glue spraying head 320-1 and the second glue spraying head 320-2 are controlled separately, the first set phase for starting spraying, the second set phase, the first phase interval, the second phase interval of the two columns of glue dots, etc. can be set respectively, and the conditions of the two columns of glue dots 200 need to be detected separately later. Then the seal 100 moves away from the vicinity of the spraying device 320 and continues to move along the direction 150 to the bottom of the camera 330. In a non-limiting embodiment, the camera 330 performs real-time imaging when the seal 100 moves to the position directly below the camera 330 to obtain a product image of the seal 100 with the glue dots 200 sprayed in the middle position, so as to prepare for the inspection of the product seal 100.

[0045] The present invention provides a seal glue point detection device for cigarette packaging. Figure 4 An exemplary block diagram of a seal glue point detection device 4000 according to an embodiment of the present disclosure is shown.

[0046] In some embodiments, the seal glue point detection method according to the embodiment of the present disclosure can be implemented by a seal glue point detection device 4000, which may include a processor 4100. The processor may refer to various implementations of a digital circuit system, an analog circuit system, or a mixed signal (a combination of analog and digital) circuit system that performs functions in a computing system. The processing circuit may include, for example, circuits such as an integrated circuit (IC), an application specific integrated circuit (ASIC), a portion or circuit of a separate processor core, an entire processor core, a separate processor, a programmable hardware device such as a field programmable gate array (FPGA), and / or a system including multiple processors.

[0047] In some embodiments, the seal glue point detection device 4000 may further include a memory (not shown in the figure). The memory of the device 4000 may store information generated by the processor 2100 and programs and data for processor operation. The memory may be a volatile memory and / or a non-volatile memory. For example, the memory may include, but is not limited to, a random access memory (RAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a read-only memory (ROM), and a flash memory. Generally, the processor may be configured to execute instructions stored on the memory to implement the seal glue point detection method as described above.

[0048] Specifically, Figure 4 As shown, in some embodiments, the seal glue point detection device 4000 according to the embodiment of the present disclosure may include an image acquisition and annotation unit 4010, a model training unit 4020, a product detection unit 4030, and a parameter adjustment instruction unit 4040. It should be understood that Figure 4 The various functional units of the seal glue point detection device 4000 shown are only logical modules divided according to the specific functions they implement, and are not used to limit the specific implementation method. In actual implementation, the above modules can be implemented as independent physical entities, or can also be implemented by a single entity (for example, a processor (CPU or DSP, etc.), an integrated circuit, etc.).

[0049] In some embodiments, the image acquisition and annotation unit 4010 is configured to acquire a valid image of a seal with glue dots passing through a camera, and annotate the seal and glue dots in the valid image to generate annotation information. Figure 1The normal glue spray seal image in the image includes the seal 100 delivered to the position facing the camera and the glue dots 200 on it whose positions and sizes meet the requirements. The image acquisition and annotation unit 4010 acquires such a valid image as an image sample, and annotates the positions of the seal 100 and each glue dot 200 in the image sample using an annotation tool to obtain annotation information. The annotation information can be divided into two categories according to the seal and the glue dot, which at least includes the position and size of the seal, the position and size of the glue dot, etc.

[0050] In some embodiments, the model training unit 4020 is configured to train the target detection model using valid images and annotation information to obtain a seal glue point detection model, which is deployed to the detection server corresponding to the seal production line to detect the state of the seal in the real-time image of the production line. Corresponding to the data structure of the training sample, the seal glue point detection model can be used to detect the position and size of the seal in the input image, the position and size of the glue point, etc.

[0051] In some embodiments, the product detection unit 4030 is configured to input the real-time image of the product seal conveyed through the camera into the seal glue point detection model to determine whether the status of the product seal meets the preset threshold. Generally, the preset threshold of the product seal may include the value range that the position and size of the seal and / or the position and size of the glue point should meet. In a non-limiting embodiment, Figure 3 The real-time image of the product seal 100 sprayed with glue dots 200 captured by the camera 330 is input into the trained seal glue dot detection model to detect the status of the product seal 100 .

[0052] Furthermore, the product detection unit 4030 determines whether the status of the product seal meets the preset threshold, including determining whether there is a seal in the real-time imaging of the product seal and whether the number of glue dots on the seal meets the requirements based on the set confidence level. As previously mentioned, the moment when the camera 330 performs imaging can be set after the photoelectric detector 310 determines the starting position of the product seal 100. For the real-time image captured at a specified time, first determine whether there is a seal 100 in the image. If the seal 100 does not exist in the real-time imaging, the parameter adjustment instruction unit 4040 can issue an instruction to control the seal production equipment to stop, and the equipment alarms and removes the cigarette pack corresponding to the current product seal; secondly, if the seal 100 exists in the real-time imaging, determine whether the number of glue dots 200 on the seal 100 meets the requirements. If the number of glue dots on the seal in the real-time imaging does not meet the requirements, such as Figure 2B In the case of glue point missing as shown in the figure, the machine will be shut down and the current cigarette pack will be rejected.

[0053] Furthermore, in response to determining that there is a seal in the real-time imaging of the product seal and the number of glue dots on the seal meets the requirements, the seal glue dot detection model detects the real-time imaging to output the position information and size information of the product seal in the real-time imaging. The position information and size information of the product seal in the real-time imaging include the position and size of the seal and the glue dots, etc., respectively, and are described in the form of image size ratio coefficients of the real-time imaging. Specifically, the position information of the product seal in the real-time imaging includes the position of the center point of the glue dots on the product seal in the real-time imaging; the size information of the product seal in the real-time imaging may include the length and width of the product seal in the real-time imaging, the diameter of the glue dots of the product seal in the real-time imaging, etc.

[0054] Furthermore, the product detection unit 4030 determines whether the status of the product seal meets the preset threshold value, and further includes determining the status of the product seal as normal, deviation or abnormal glue points on the product seal based on the preset regional area threshold value. Based on the position information and size information of the aforementioned product seal in real-time imaging, the regional information of the product seal and the glue points on the product seal can be calculated; and then the regional area corresponding to the product seal and its glue points can be calculated. The sealing production line can preset a suitable regional area threshold value according to the severity of the cigarette package defect, such as distinguishing the glue point area on the product seal as normal, larger, smaller, extremely large or extremely small. Compared with the "normal" situation where the glue point area is equal to the regional area threshold value or the error is acceptable, the state where the difference between the glue point area and the regional area threshold value is smaller (i.e., the area is "large" or "small") is determined as the glue point deviation on the product seal, and the state where the difference between the glue point area and the regional area threshold value is larger (i.e., the area is "extremely large" or "extremely small") is determined as the glue point abnormality on the product seal. It should be understood that the normal, deviation or abnormality of the glue spots on the product seal can also be used to describe its position status or the status of other parameters, such as judging whether the distance from the glue spot to the edge meets the requirements based on a preset phase threshold.

[0055] In some embodiments, the parameter adjustment instruction unit 4040 is configured to respond to the state of the product seal not meeting the preset threshold, and send an instruction to adjust the spraying parameters to the glue spraying control device based on the state of the product seal. That is, based on the status of the product seal 100 collected in real time, if it is determined that the glue dots on the product seal are abnormal, the seal production equipment is controlled to shut down in analogy with the aforementioned seal missing or glue dot missing situation; and if it is determined that the glue dot deviation on the product seal is determined, the parameter adjustment instruction unit 4040 sends an instruction to the glue spraying control device including adjusting the spraying parameters based on the direction of the deviation. Specifically, the spraying parameters include but are not limited to the spraying duration, the number of glue dots, the set phase for starting spraying, and the glue dot phase interval.

[0056] In a non-limiting embodiment, Figure 1As shown, the spraying duration can affect the size of the glue dots 200, that is, the longer the spraying duration, the larger the diameter of the glue dots 200; the set phase of the start of spraying affects the set distance 110 from the first group of glue dots to the edge 101 of the seal 100, that is, the larger the set phase, the larger the set distance 110; and the number of glue dots and the phase interval of the glue dots further define the overall distribution pattern of all the glue dots 200 on the seal 100. Figure 2A For example, in the case where the glue dot offset causes the distance 110' to be greater than the set distance 110, the parameter adjustment instruction unit 4040 can send a command to the glue spraying control device to reduce the set phase for starting spraying, otherwise send a command to increase the set phase. Similarly, if the area of ​​the glue dot 200 does not meet the area threshold, if it is too large, the parameter adjustment instruction unit 4040 can send a command to the glue spraying control device to reduce the spraying duration; if it is too small, send a command to increase the spraying duration. Figure 3 Taking the glue spraying production line in as an example, when the first glue spraying head 320-1 and the second glue spraying head 320-2 are synchronously controlled by the same instruction, the normal, deviation or abnormality of the two columns of glue dots 200 on the product seal 100 also occurs synchronously, so the instruction to adjust the parameters is also sent to the two glue spraying heads synchronously; when the first glue spraying head 320-1 and the second glue spraying head 320-2 are controlled separately, the spraying parameters of the two glue spraying heads can be adjusted separately based on the status of the single column of glue dots 200.

[0057] The present disclosure provides a glue spraying control device for cigarette packaging, especially for the seal on the packaging, please refer to Figure 5 , which shows an exemplary block diagram of a seal production device 5000 according to an embodiment of the present disclosure. Figure 4 The seal glue point detection device 4000 in the seal production device 5000 may include a processor 5100 and a memory (not shown in the figure). Figure 5 As shown, in some embodiments, the seal production device 5000 according to the embodiment of the present disclosure includes the seal glue point detection device 4000 as mentioned above and a glue spraying control device composed of a glue spraying unit 5010, a product image acquisition unit 5020 and a parameter adjustment unit 5030.

[0058] In some embodiments, the glue spraying unit 5010 is configured to start spraying glue dots based on preset spraying parameters in response to detecting the edge of the product seal. Figure 3, the glue spraying unit 5010 is such as a glue spraying device 320 on a glue spraying production line, which may include two glue spraying heads 320-1 and 320-2, for spraying two columns of glue dots 200 on the product seal 100. The glue spraying unit 5010 is configured to spray glue dots 200 on the product seal 100 based on preset spraying duration, a set phase for starting spraying, and other spraying parameters, including starting to spray the first group of glue dots 200 after the product seal 100 passes through a set phase in response to detecting the edge of the seal 100, wherein the set phase is detected by an encoder in the glue spraying control device. Subsequently, the glue spraying unit 5010 further completes other glue dots 200 according to the number of glue dots and the phase interval of the glue dots.

[0059] In some embodiments, the product image acquisition unit 5020 is configured to acquire real-time images of product seals conveyed through the camera and send the images to the seal glue point detection device 4000. Figure 3 , the product image acquisition unit 5020 is such as a camera 330 on the glue spraying production line, wherein the camera 330 may include a monocular camera, a binocular camera and / or other imaging devices that can be used for production line detection. Further, the product image acquisition unit 5020 is also configured to image the product seal 100 at the shooting phase after the glue spraying control device completes the glue point spraying. In a non-limiting embodiment, when the product seal 100 moves along the direction 150 from the position where the glue spraying device 320 is spraying to below the camera 330, the camera 330 images the product seal 100 after the product seal 100 moves through a specified phase or a specified time after the glue spraying device 320 performs the spraying operation.

[0060] In some embodiments, the parameter adjustment unit 5030 is configured to adjust the spraying parameters in response to receiving the instruction of the sealing glue point detection device 4000. Specifically, the instruction of the sealing glue point detection device 4000 is an instruction for adjusting the parameters issued by the parameter adjustment instruction unit 4040. As mentioned above, the parameter adjustment instruction unit 4040 sends an instruction to adjust the spraying parameters to the glue spraying control device based on the state of the product seal, such as issuing an instruction to adjust the spraying duration according to the size deviation of the glue point 200, issuing an instruction to adjust the set phase according to the position deviation of the glue point 200, etc. The parameter adjustment unit 5030 adjusts the spraying parameters of the glue spraying control device accordingly based on these instructions, so that the glue points 200 obtained in the subsequent spraying operation return to normal.

[0061] The present disclosure also provides a seal glue point detection method, please refer to Figure 6, which shows a flow chart of the seal glue point production control process according to an embodiment of the present disclosure. The seal glue point production control process starts at step S601. In step S602, an image of the seal 100 on the glue spraying production line is captured, and the state of the seal 100 and the glue point 200 thereon in the image is detected. Then, a judgment is performed in step S603 to determine whether there is a seal in the seal image and whether the position and size of the glue point on the seal are within a preset threshold range. If the judgment in S603 is "no", then step S604 is entered, that is, there is no seal in the seal image, or the position and size of the glue point are not within the preset range, then the seal production equipment alarms and stops, and the cigarette pack corresponding to the current seal is rejected, and then step S609 is entered to end. If "yes" in S603, that is, there is a seal in the seal image, and the position and size of the glue point are within the range, then the subsequent state judgment operation is entered, including judging whether the position of the glue point is offset in step S605 and judging whether the size of the glue point is offset in step S607. If both are not offset (both steps S605 and S607 are “No”), that is, the position and size of the glue dots meet the threshold range, the seal glue dot detection method ends in step S609. If one of steps S605 or S607 is judged as “Yes”, that is, the position or size of the glue dots needs to be adjusted, then the glue spraying phase or glue spraying duration is adjusted in step S606 or S608 accordingly. After the parameters are adjusted, the processing flow enters step S609 and ends.

[0062] Please refer to the following Figure 7 , Figure 7 A flow chart of a seal glue point detection method according to an embodiment of the present disclosure is shown. In step S701, a valid image of a seal with glue points conveyed through a camera is collected, and the seal and glue points in the valid image are annotated to generate annotation information. In step S702, a target detection model is trained using the valid image and annotation information to obtain a seal glue point detection model. In step S703, real-time imaging of the product seal conveyed through the camera is input into the seal glue point detection model to determine whether the status of the product seal meets a preset threshold. In step S704, in response to the status of the product seal not meeting the preset threshold, an instruction to adjust the spraying parameters is sent to the glue spraying control device based on the status of the product seal.

[0063] It should be understood that Figure 7 The division of each step in the figure is only for illustration and not for limitation of the embodiments of the present application. These steps can be completed by each of the illustrated subjects individually, by two or more of them together, or by an external system not shown in cooperation with the illustrated subject, and are not limited to the illustrated distribution method, and can be completed in sequence according to the illustrated order or in parallel in accordance with the data flow direction and system operation rules, and can be completed in steps or in combination.

[0064] The present disclosure also provides a seal glue point detection device, which may include a processor and a memory storing computer executable instructions, which, when executed by the processor, causes the processor to execute the seal glue point detection method according to any of the aforementioned embodiments of the present disclosure. The processor may be a central processing unit (CPU) of the seal glue point detection device, which may be any type of general-purpose processor, or may be a processor specially designed for glue point detection of cigarette pack seals, such as an application-specific integrated circuit ("ASIC"). The memory may include various computer-readable media accessible by the processor.

[0065] The present disclosure also provides a non-transitory computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, enables the processor to implement the seal glue point detection method described in any of the aforementioned embodiments of the present disclosure.

[0066] The present disclosure also provides a computer program product, comprising computer executable instructions, which, when executed by a processor, enable the processor to implement the seal glue point detection method according to any of the aforementioned embodiments of the present disclosure.

[0067] Figure 8 An exemplary configuration of a computing device that can implement an embodiment of the present disclosure is shown. The computing device includes one or more processors 801, an input / output interface 805 connected to the processor 801 via a bus 804, and memories 802 and 803 connected to the bus 804. In some embodiments, the memory 802 may be a read-only memory (ROM), and the memory 803 may be a random access memory (RAM).

[0068] Processor 801 may be any kind of processor, and may include, but is not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips). Memories 802 and 803 may be any non-transitory storage device that can implement data storage, and may include, but is not limited to, disk drives, optical storage devices, solid-state memories, floppy disks, flexible disks, hard disks, magnetic tapes or any other magnetic media, compressed disks or any other optical media, cache memories and / or any other storage chips or modules, and / or any other media from which a computer can read data, instructions and / or codes.

[0069] The bus 804 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0070] In some embodiments, the input / output interface 805 is connected to an input unit 806 configured by an input device such as a keyboard and a mouse for a user to input an operation command, an output unit 807 that outputs a processing operation screen and an image of a processing result to a display device, a storage unit 808 including a hard disk drive and the like for storing programs and various data, and a communication unit 809 including a local area network (LAN) adapter and the like and performing communication processing via a network represented by the Internet. In addition, a drive 810 that reads and writes data from and on a removable storage medium 811 is connected.

[0071] Various aspects, embodiments, implementations or features of the foregoing embodiments may be used alone or in any combination. Various aspects of the foregoing embodiments may be implemented by software, hardware or a combination of hardware and software.

[0072] For example, the foregoing embodiments may be embodied as computer readable code on a computer readable medium. A computer readable medium is any data storage device that can store data that can thereafter be read by a computer system. Examples of computer readable media include read-only memory, random access memory, CD-ROM, DVD, magnetic tape, hard drive, solid state drive, and optical data storage device. The computer readable medium may also be distributed in a network coupled computer system so that the computer readable code is stored and executed in a distributed manner.

[0073] For example, the aforementioned embodiments may be in the form of hardware circuits. The hardware circuits may include any combination of combinational logic circuits, clock storage devices (such as floppy disks, flip-flops, latches, etc.), finite state machines, memories such as static random access memories or embedded dynamic random access memories, custom designed circuits, programmable logic arrays, etc.

[0074] In one embodiment, hardware circuits according to the present disclosure may be implemented by coding and designing one or more integrated circuits using a hardware description language (HDL) such as Verilog or VHDL, or in combination using discrete circuits.

[0075] In summary, the advantages of the embodiments disclosed herein are that the seal glue spraying production line can be dynamically controlled, and the seal glue spraying quality can be accurately detected by adjusting the seal glue spraying position and glue spraying amount. On the other hand, the packaging quality of the cigarette pack can be improved by detecting the state of the seal glue point, and the consumption caused by the seal glue quality can be reduced.

[0076] It should be appreciated that the above advantages do not need to be all realized in one or some specific embodiments, but may be partially dispersed in different embodiments according to the present disclosure. The embodiments according to the present disclosure may have one or some of the above advantages, or may have other advantages alternatively or additionally.

[0077] The terms used herein are only for describing specific exemplary embodiments and are not intended to limit the present disclosure. Unless the context clearly indicates otherwise, the singular forms of "one" and "the" used herein are intended to include plural forms as well. It should also be understood that when the word "including" is used in this article, it indicates the existence of the indicated features, wholes, steps, operations, units and / or components, but does not exclude the existence or increase of one or more other features, wholes, steps, operations, units and / or components and / or their combinations. In addition, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or order. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more.

[0078] References to "embodiments" or similar expressions in this specification refer to specific features, structures, or characteristics described in conjunction with the embodiment as being included in at least one specific embodiment of the present disclosure. Therefore, the appearance of "in an embodiment of the present disclosure" and similar expressions in this specification does not necessarily refer to the same embodiment.

[0079] Those skilled in the art will appreciate that the present disclosure may be implemented in various forms, such as a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microprogram code, etc.), or a combination of software and hardware, which will be referred to below as a "circuit," "module," "unit," or "system." In addition, the present disclosure may also be implemented in any tangible media form as a computer program product having a computer-usable program code stored thereon.

[0080] The relevant description of the present disclosure is described with reference to the flowcharts and / or block diagrams of the systems, devices, methods and computer program products according to the specific embodiments of the present disclosure. It can be understood that each block in each flowchart and / or block diagram, and any combination of blocks in the flowchart and / or block diagram, can be implemented using computer program instructions. These computer program instructions can be executed by a machine composed of a processor of a general-purpose computer or a special computer or other programmable data processing device, and the instructions are processed by a computer or other programmable data processing device to implement the functions or operations described in the flowchart and / or block diagram.

[0081] The accompanying drawings show the flowcharts and block diagrams of the architecture, functions and operations that can be implemented by the systems, devices, methods and computer program products according to various embodiments of the present disclosure. Therefore, each block in the flowchart or block diagram may represent a module, segment, or part of the program code, which includes one or more executable instructions to implement the specified logical function. It should also be noted that in some other embodiments, the functions described in the blocks may not be performed in the order shown in the figure. For example, two blocks connected to each other in the figure may in fact be executed simultaneously, or in some cases according to the functions involved, they may be executed in the opposite order of the icons. It should also be noted that each block diagram and / or flowchart block, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a system based on dedicated hardware, or by a combination of dedicated hardware and computer instructions to perform specific functions or operations.

[0082] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to market technologies, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for detecting seal glue points, comprising: Collecting a valid image of a seal with glue dots conveyed through a camera, and marking the seal and glue dots in the valid image to generate marking information; Using the valid image and the annotation information to train the target detection model to obtain a seal glue point detection model; Inputting the real-time image of the product seal conveyed through the camera into the seal glue point detection model to determine whether the status of the product seal meets the preset threshold; and In response to the state of the product seal not meeting a preset threshold, an instruction to adjust the spraying parameters is sent to the glue spraying control device based on the state of the product seal.

2. The seal glue spot detection method according to claim 1, wherein the marking information includes at least one of the position and size of the seal and the position and size of the glue spot.

3. The seal glue spot detection method according to claim 1, wherein the seal glue spot detection model is used to detect at least one of the position and size of the seal and the position and size of the glue spot in the input image.

4. The seal glue point detection method according to claim 1, wherein the step of determining whether the seal status of the product meets a preset threshold comprises: Based on the set confidence level, it is determined whether the seal exists in the real-time imaging of the product seal and whether the number of glue dots on the seal meets the requirements.

5. The seal glue spot detection method according to claim 4, wherein in response to determining that there is no seal in the real-time imaging of the product seal or the number of glue spots on the seal does not meet the requirements, the seal production equipment is controlled to shut down.

6. The seal glue point detection method according to claim 5, wherein the seal production equipment alarms and removes the cigarette pack corresponding to the current product seal.

7. The seal glue point detection method according to claim 4, wherein in response to determining that there is a seal in the real-time imaging of the product seal and the number of glue points on the seal meets the requirements, the seal glue point detection model detects the real-time imaging to output the position information and size information of the product seal in the real-time imaging.

8. The seal glue point detection method according to claim 7, wherein the position information and size information of the product seal in real-time imaging are described in the form of an image size ratio coefficient of the real-time imaging.

9. The seal glue point detection method according to claim 7, wherein the position information of the product seal in the real-time imaging includes the position of the center point of the glue point on the product seal in the real-time imaging.

10. The seal glue point detection method according to claim 7, wherein the size information of the product seal in real-time imaging includes the length and width of the product seal in real-time imaging.

11. The method for detecting glue spots on seals according to claim 7 or 10, wherein the size information of the product seal in real-time imaging includes the diameter of the glue spot on the product seal in real-time imaging.

12. The seal glue spot detection method according to claim 7, wherein the area information of the product seal and the glue spot on the product seal is calculated based on the position information and size information of the product seal in real-time imaging.

13. The seal glue point detection method according to claim 12, wherein the step of determining whether the seal status of the product meets a preset threshold value further comprises: Based on a preset area threshold, the status of the product seal is determined as whether the glue point on the product seal is normal, deviated, or abnormal.

14. The seal glue spot detection method according to claim 13, wherein in response to determining that the glue spots on the product seal are abnormal, the seal production equipment is controlled to shut down.

15. The seal glue dot detection method of claim 13, wherein in response to determining a glue dot deviation on a product seal, the instructions include adjusting the spraying parameters based on a direction of the deviation.

16. The seal glue dot detection method according to claim 1, wherein the spraying parameters include at least one of the spraying duration, the number of glue dots, the set phase for starting spraying, and the glue dot phase interval.

17. A seal glue point detection device, comprising: An image acquisition and annotation unit is configured to acquire a valid image of a seal with glue dots conveyed through a camera, and to annotate the seal and glue dots in the valid image to generate annotation information; A model training unit is configured to train a target detection model using the valid image and the annotation information to obtain a seal glue point detection model; A product detection unit is configured to input the real-time image of the product seal conveyed through the camera into the seal glue point detection model to determine whether the status of the product seal meets a preset threshold; as well as The parameter adjustment instruction unit is configured to send an instruction to adjust the spraying parameters to the glue spraying control device based on the status of the product seal in response to the status of the product seal not meeting a preset threshold.

18. A seal production device, comprising: The seal glue point detection device as claimed in claim 17; as well as Glue spraying control device, including: a glue spraying unit configured to start spraying glue dots based on preset spraying parameters in response to detecting an edge of a product seal; A product image acquisition unit configured to acquire real-time images of product seals conveyed through the camera and send the images to the seal glue point detection device; and The parameter adjustment unit is configured to adjust the spraying parameters in response to receiving the instruction from the sealing glue point detection device.

19. The seal production device according to claim 18, wherein the glue spraying unit is further configured to start spraying after the product seal passes a set phase in response to detecting an edge of the product seal.

20. The seal producing device according to claim 19, wherein the setting phase is detected by an encoder.

21. The seal production device according to claim 18, wherein the product image acquisition unit is further configured to perform imaging at a point where the product seal passes through a shooting phase after the glue spraying control device completes glue dot spraying.

22. A seal glue point detection device, comprising: processor; as well as A memory storing computer executable instructions, wherein when the computer executable instructions are executed by the processor, the processor executes the seal glue point detection method according to any one of claims 1 to 16.

23. A non-transitory computer-readable storage medium storing computer-executable instructions, wherein when the computer-executable instructions are executed by a processor, the processor implements the seal glue point detection method according to any one of claims 1 to 16.

24. A computer program product, comprising computer executable instructions, which, when executed by a processor, enable the processor to implement the seal glue point detection method according to any one of claims 1 to 16.