A method, apparatus and electronic device for adjusting the tipping paper cutting position.
By collecting and analyzing cigarette rolling images in a cigarette slitting machine, the matching degree between the tipping paper area and the printed pattern is automatically identified, and the pixel distance is calculated to adjust the slitting coordinates. This solves the problem of low efficiency and accuracy in adjusting the tipping paper slitting position and reduces waste products with incomplete cigarette patterns.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2026-03-10
AI Technical Summary
In cigarette production, the efficiency and accuracy of adjusting the tipping paper cutting position are low, resulting in incomplete cigarette patterns and rendering the cigarettes unusable.
By continuously acquiring images of the rolling cigarette within the detection range, the target image with the highest matching area between the splicing paper area and the printed image is identified, and the pixel distance is calculated to adjust the slicing coordinates, thereby achieving automated adjustment.
It improves the efficiency and accuracy of adjusting the cutting position and reduces the production of incomplete cigarettes.
Smart Images

Figure CN117314999B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to image detection technology in one or more embodiments, and more particularly to a method, apparatus and electronic device for adjusting the splicing paper cutting position. Background Technology
[0002] In the cigarette manufacturing process, after the tipping paper completes the cigarette rolling, it needs to be cut at the tipping paper area to obtain two complete cigarette sticks. Different brands and styles of cigarettes will have different patterns, text, or logos printed on the tipping paper area. If the cutting position is inaccurate, the pattern on the cigarette stick will be incomplete, resulting in a defective product. Currently, the cutting position of the tipping paper is adjusted manually, which has low efficiency and accuracy. Summary of the Invention
[0003] To address the aforementioned problems, this specification describes one or more embodiments of a method, apparatus, and electronic device for adjusting the splicing paper cutting position.
[0004] According to a first aspect, a method for adjusting the tipping paper cutting position is provided, the method comprising:
[0005] At least two cigarette rolling images of the target cigarette are continuously acquired in the detection interval, and each splicing paper area is determined in each of the cigarette rolling images.
[0006] Obtain the tipping paper printing image corresponding to the target cigarette, and determine the target image with the highest matching area between the tipping paper area and the tipping paper printing image;
[0007] Determine a first distance between the first pixel and the cutting edge, determine a second distance between the first pixel and the second pixel, adjust the cutting coordinates based on the first and second distances, where the first pixel is the pixel closest to the cutting edge in the target printed image corresponding to the target image, and the second pixel is the pixel furthest from the cutting direction in the splicing paper printed image.
[0008] Preferably, the step of continuously acquiring at least two scrolling images of the target cigarette within the detection interval includes:
[0009] After the cutting completion command is detected, at least two rolling images of the target cigarette are continuously acquired in the detection interval based on a preset time interval.
[0010] Preferably, determining the target image with the highest matching area between the splicing paper area and the printed image on the splicing paper includes:
[0011] Each of the splicing paper regions is matched with the splicing paper printing image to obtain the matching area corresponding to each splicing paper region, and the target image with the highest matching area is determined.
[0012] Preferably, adjusting the slicing coordinates based on the first distance and the second distance includes:
[0013] When the first distance is not greater than the second distance, calculate the distance difference between the second distance and the first distance, and use the sum of the distance difference and the preset distance parameter as the first adjustment distance, and move the cutting coordinates in the cutting direction by the first adjustment distance;
[0014] When the first distance is greater than the second distance, a symmetrical image of the target image is determined, and the cutting coordinates are adjusted based on the difference of a third distance between the target image and the symmetrical image, where the third distance is the distance between the second pixel and the cutting edge.
[0015] Preferably, adjusting the slicing coordinates based on the difference in the third distance between the target image and the symmetrical image includes:
[0016] The image with the smaller third distance is selected from the target image and the symmetrical image, and the difference between the third distances of the target image and the symmetrical image is calculated to obtain the second adjustment distance;
[0017] The slicing coordinates are moved by the second adjustment distance in the slicing direction corresponding to the selected image.
[0018] Preferably, after moving the slicing coordinates by the first adjustment distance in the slicing direction, the method further includes:
[0019] The slit cigarettes marked within the first preset time period before the current time are transported to the waste rejection device.
[0020] Preferably, after moving the slicing coordinates by the first adjustment distance in the slicing direction, the method further includes:
[0021] Adjust the operating speed of the cigarette slitting machine to the preset speed;
[0022] If the cutting coordinates are not adjusted within a second preset time period, the running speed is adjusted to the initial speed, which is greater than the preset speed.
[0023] According to a second aspect, a tipping paper slitting position adjustment device is provided, the device comprising:
[0024] The acquisition module is used to continuously acquire at least two cigarette rolling images of the target cigarette in the detection interval, and to determine each splicing paper area in each of the cigarette rolling images.
[0025] The acquisition module is used to acquire the tipping paper printing image corresponding to the target cigarette and determine the target image with the highest matching area between the tipping paper area and the tipping paper printing image.
[0026] The adjustment module is used to determine a first distance between a first pixel and the cutting edge, determine a second distance between the first pixel and a second pixel, and adjust the cutting coordinates based on the first and second distances. The first pixel is the pixel in the target printed image corresponding to the target image that is closest to the cutting edge, and the second pixel is the pixel in the splicing paper printed image that is farthest from the cutting edge in the cutting direction.
[0027] According to a third aspect, an electronic device is provided, including a processor and a memory;
[0028] The processor is connected to the memory;
[0029] The memory is used to store executable program code;
[0030] The processor runs a program corresponding to the executable program code stored in the memory to perform the steps of the method provided as in the first aspect or any possible implementation thereof.
[0031] According to a fourth aspect, a computer-readable storage medium is provided having a computer program stored thereon, the computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the method provided as in the first aspect or any possible implementation thereof.
[0032] The method and apparatus provided in the embodiments of this specification can automatically identify and adjust the slitting coordinates when the splicing paper image of the cigarettes obtained by the cigarette slitting machine is incomplete. Compared with manual adjustment, the adjustment efficiency is higher and the adjustment accuracy is more accurate. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a flowchart of a method for adjusting the splicing paper cutting position in one embodiment of this specification.
[0035] Figure 2 This is a schematic diagram of a paper splicing position adjustment device in one embodiment of this specification.
[0036] Figure 3 This is a schematic diagram of the structure of an electronic device in one embodiment of this specification. Detailed Implementation
[0037] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0038] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.
[0039] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
[0040] See Figure 1 , Figure 1 This is a flowchart illustrating a method for adjusting the splicing paper cutting position according to an embodiment of this application. In this embodiment, the method includes:
[0041] S101. At least two cigarette rolling images of the target cigarette are continuously acquired in the detection interval, and each splicing paper area is determined in each of the cigarette rolling images.
[0042] The entity executing this application may be a cloud server.
[0043] In the embodiments of this specification, during the cigarette manufacturing process, after the tipping paper completes the rolling of the two smoking sections, a cigarette slitting machine performs a slitting action in the middle of the tipping paper, dividing the rolled tipping paper into two segments, resulting in two cigarettes. The slit cigarettes roll down to the subsequent process location for collection and packaging. This application designates the area where the slit cigarettes roll down as the detection area, and a camera is installed in the detection area to capture images of the detection area. Specifically, the cloud server acquires the rolling images of the cigarettes captured by the camera and determines the cigarettes and the tipping paper area in each cigarette in the rolling images through feature recognition. Since the tipping paper has been rolled into a cylindrical shape, the tipping paper area determined in the rolling images may not necessarily display the complete pattern printed on the tipping paper. To determine whether the pattern after slitting is complete, as many images as possible should be displayed in the tipping paper area. Therefore, the cloud server can control the camera to continuously capture multiple images during the rolling process of the target cigarette, so that the most suitable image can be selected from the multiple images as the basis for judgment.
[0044] The specific process of feature recognition may include:
[0045] Feature extraction: First, features are extracted from the image to be matched and the target object image. Commonly used feature extraction algorithms include SIFT (Scale Invariant Feature Transform), SURF (Speed-Up Robust Feature Transform), and ORB (Oriented Fast and Rotated BRIEF).
[0046] Feature Description: For each extracted feature point, its descriptor is calculated. A descriptor is a vector used to describe the feature information of the region surrounding the feature point. Commonly used descriptor algorithms include SIFT, SURF, and BRIEF (Binary Robust Independent Elementary Features) descriptors.
[0047] Feature matching involves comparing and matching the descriptors of feature points in the image to be matched with the descriptors of feature points in the image of the target object. Commonly used feature matching algorithms include brute-force matching and matching algorithms based on approximate nearest neighbors, such as FLANN (FastLibrary for Approximate Nearest Neighbors).
[0048] Matching and filtering: Since feature matching may result in false matches, it is necessary to filter and remove erroneous matches. Common filtering methods include distance-based threshold filtering and ratio-based filtering.
[0049] Matching result output: Based on the matching result, you can obtain the matched feature point pairs or the coordinates of the matched feature points.
[0050] In one possible implementation, the step of continuously acquiring at least two scrolling images of the target cigarette within the detection interval includes:
[0051] After the cutting completion command is detected, at least two rolling images of the target cigarette are continuously acquired in the detection interval based on a preset time interval.
[0052] In the embodiments described in this specification, the cigarette slitting machine sends a slitting completion command to the cloud server after each slitting operation. After detecting the slitting completion command, the cloud server continuously acquires multiple cigarette rolling images in the detection range at preset time intervals (e.g., 0.2s) so that the splicing paper area can be determined based on the cigarette rolling images in subsequent steps.
[0053] S102. Obtain the tipping paper printing image corresponding to the target cigarette, and determine the target image with the highest matching area between the tipping paper area and the tipping paper printing image.
[0054] In the embodiments of this specification, the cloud server acquires the tipping paper printing image of the target cigarette. The tipping paper printing image is the complete image printed on the tipping paper before it is rolled into a cylinder. By extracting features from the tipping paper area and the tipping paper printing image respectively, and determining the number of identical feature points, the matching area between each tipping paper area and the tipping paper printing image can be determined. That is, the area of the tipping paper printing image occupied by the image portion displayed in the tipping paper area. The larger the matching area, the more printed image is displayed in that tipping paper area, and the more suitable it is as an image for judging whether the segmentation is complete. Therefore, the cloud server uses the image of the tipping paper area with the highest matching area as the target image to determine whether the segmentation of the target cigarette is complete.
[0055] In one possible implementation, determining the target image with the highest matching area between the splicing paper area and the printed image on the splicing paper includes:
[0056] Each of the splicing paper regions is matched with the splicing paper printing image to obtain the matching area corresponding to each splicing paper region, and the target image with the highest matching area is determined.
[0057] In the embodiments of this specification, after extracting the feature points of each splice paper area and the splice paper printing image, the cloud server matches the feature points of each splice paper area with the feature points of the splice paper printing image to determine the matching area corresponding to each splice paper area based on the number of successfully matched feature points. Then, the cloud server determines the target image with the highest matching area.
[0058] S103. Determine the first distance between the first pixel and the cutting edge, determine the second distance between the first pixel and the second pixel, and adjust the cutting coordinates based on the first distance and the second distance. The first pixel is the pixel closest to the cutting edge in the target printed image corresponding to the target image, and the second pixel is the pixel farthest from the cutting direction in the splicing paper printed image.
[0059] In the embodiments of this specification, since the cigarette slitting machine cuts the rolled tipping paper, the edge of the tipping paper area furthest from the smoking section is the cutting position of the cigarette slitting machine, i.e., the cutting edge. The tipping paper printed image portion in the target image is the target printed image. The cloud server will determine a first pixel in the target printed image, which is the pixel closest to the cutting position, i.e., the cutting edge, in the target printed image. In addition, the cloud server will also determine a second pixel in the tipping paper printed image, which is the point in the complete pattern closest to the cutting position. Since the tipping paper printed image is generally a design image stored in a database, the cutting position cannot be directly determined on the tipping paper printed image. Therefore, the cutting direction will be determined by the target printed image and the cutting edge, i.e., determining which direction of the complete pattern the tipping paper will be cut from. The pixel furthest in that direction is the second pixel. Then, the cloud server will calculate a first distance and a second distance. If the pattern is complete after cutting, the first distance should not be less than the second distance. Ultimately, the cloud server will assess the slitting situation based on the magnitude of the first and second distances. If incomplete slitting is detected (i.e., the first distance is less than the second distance), the slitting coordinates of the cigarette slitting machine will be adjusted in the opposite direction to the slitting point of the cigarette with the incomplete pattern. This adjustment corrects the slitting position and prevents the continuous production of incomplete, defective cigarettes during subsequent slitting processes. This method allows for immediate identification and adjustment of slitting problems, resulting in high efficiency. Furthermore, the specific adjustment distance is calculated based on the first and second distances, offering higher precision compared to manual, intuitive adjustments.
[0060] For example, suppose the cigarette slitting machine cuts vertically, splitting the cigarette into one on the left and one on the right. Then, for the cigarette on the left, the cutting direction is to the right, and similarly, for the cigarette on the right, the cutting direction is to the left.
[0061] In one possible implementation, adjusting the slicing coordinates based on the first distance and the second distance includes:
[0062] When the first distance is not greater than the second distance, calculate the distance difference between the second distance and the first distance, and use the sum of the distance difference and the preset distance parameter as the first adjustment distance, and move the cutting coordinates in the cutting direction by the first adjustment distance;
[0063] When the first distance is greater than the second distance, a symmetrical image of the target image is determined, and the cutting coordinates are adjusted based on the difference of a third distance between the target image and the symmetrical image, where the third distance is the distance between the second pixel and the cutting edge.
[0064] In the embodiments described in this specification, if the first distance is not greater than the second distance, the cloud server considers the cigarette slicing pattern to be incomplete. In this case, the cloud server first calculates the distance difference between the first and second distances. This distance difference indicates the minimum distance the slicing coordinates need to be moved to retain a complete image after slicing. In practice, for aesthetic reasons and to ensure image integrity, slicing is generally not performed close to the image edge. Therefore, operators usually pre-set a certain distance parameter. The sum of the distance difference and the distance parameter represents the distance the slicing coordinates should be moved and adjusted. Finally, the cloud server moves the slicing coordinates of the cigarette slicing machine along the slicing direction by the first adjustment distance. The moved coordinates are the adjusted slicing coordinates.
[0065] When the first distance is greater than the second distance, the resulting image is complete. However, ideally, the lengths of the splice paper areas of the two cigarettes obtained from the segmentation should be the same. Therefore, the cloud server determines the symmetrical image of the target image, calculates the third distance between the target image and the symmetrical image, and adjusts the segmentation coordinates based on the difference between the third distances. The image corresponding to the splice paper area that is on a different side of the detection range from the target image and is closest to the target image is the symmetrical image.
[0066] In one possible implementation, adjusting the slicing coordinates based on the difference in a third distance between the target image and the symmetrical image includes:
[0067] The image with the smaller third distance is selected from the target image and the symmetrical image, and the difference between the third distances of the target image and the symmetrical image is calculated to obtain the second adjustment distance;
[0068] The slicing coordinates are moved by the second adjustment distance in the slicing direction corresponding to the selected image.
[0069] In the embodiments described in this specification, ideally, the third distance of the two sliced images should be the same. If the third distance of one image is smaller, it indicates that the slicing coordinates have shifted towards the direction of that image. Therefore, the cloud server calculates the second adjustment distance and moves the slicing direction by the second adjustment distance according to the slicing direction corresponding to the selected image, thereby obtaining the accurate slicing coordinates.
[0070] In one possible implementation, after moving the slicing coordinates by the first adjustment distance in the slicing direction, the method further includes:
[0071] The slit cigarettes marked within the first preset time period before the current time are transported to the waste rejection device.
[0072] In this embodiment, since the integrity detection of the tipping paper pattern takes a certain amount of time, when an abnormal cigarette is detected, the cigarette slitting machine has already slit a certain number of cigarettes, which should be treated as waste. Therefore, the cloud server marks the cigarettes that have been slitted within a certain time period before the current time. Since the detection time is not too long and the cigarettes have not yet been conveyed and packaged, the cloud server can transport the marked slit cigarettes to the waste rejection device by changing the conveyor belt's conveyor orientation. The cigarette marking method can be image recognition; that is, after identifying an abnormal cigarette in the image, the cigarette is marked, and the position of the marked cigarette is continuously monitored by an adjacent camera.
[0073] In one possible implementation, after moving the slicing coordinates by the first adjustment distance in the slicing direction, the method further includes:
[0074] Adjust the operating speed of the cigarette slitting machine to the preset speed;
[0075] If the cutting coordinates are not adjusted within a second preset time period, the running speed is adjusted to the initial speed, which is greater than the preset speed.
[0076] In this embodiment, besides recycling the already slit waste cigarettes, the cloud server also reduces the operating speed of the cigarette slitting machine to slow down the slitting process, thereby observing whether the adjusted cigarettes still have issues with pattern integrity. This way, if problems still arise and the slitting position needs adjustment, too many waste cigarettes will be generated. If the slitting coordinates are not adjusted within the second preset time period, it indicates that the adjusted slitting coordinates are accurate and no new abnormal cigarettes have been generated. At this point, the cloud server will restore the operating speed of the cigarette slitting machine to its initial speed to ensure production efficiency.
[0077] The following will be combined with the appendix Figure 2 This application provides a detailed description of the paper splicing position adjustment device provided in its embodiments. It should be noted that... Figure 2 The paper splicing position adjustment device shown is used to perform the functions described in this application. Figure 1 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figure 1 The example shown.
[0078] Please see Figure 2 , Figure 2 This is a schematic diagram of a paper splicing position adjustment device provided in an embodiment of this application. Figure 2 As shown, the device includes:
[0079] The acquisition module 201 is used to continuously acquire at least two cigarette rolling images of the target cigarette in the detection interval, and to determine each splicing paper area in each of the cigarette rolling images.
[0080] The acquisition module 202 is used to acquire the tipping paper printing image corresponding to the target cigarette and determine the target image with the highest matching area between the tipping paper area and the tipping paper printing image.
[0081] The adjustment module 203 is used to determine a first distance between a first pixel and a cutting edge, determine a second distance between the first pixel and a second pixel, and adjust the cutting coordinates based on the first and second distances. The first pixel is the pixel closest to the cutting edge in the target printed image corresponding to the target image, and the second pixel is the pixel furthest from the cutting direction in the splicing paper printed image.
[0082] In one possible implementation, the acquisition module 201 is specifically used for:
[0083] After the cutting completion command is detected, at least two rolling images of the target cigarette are continuously acquired in the detection interval based on a preset time interval.
[0084] In one possible implementation, the acquisition module 202 is specifically used for:
[0085] Each of the splicing paper regions is matched with the splicing paper printing image to obtain the matching area corresponding to each splicing paper region, and the target image with the highest matching area is determined.
[0086] In one possible implementation, the adjustment module 203 is specifically used for:
[0087] When the first distance is not greater than the second distance, calculate the distance difference between the second distance and the first distance, and use the sum of the distance difference and the preset distance parameter as the first adjustment distance, and move the cutting coordinates in the cutting direction by the first adjustment distance;
[0088] When the first distance is greater than the second distance, a symmetrical image of the target image is determined, and the cutting coordinates are adjusted based on the difference of a third distance between the target image and the symmetrical image, where the third distance is the distance between the second pixel and the cutting edge.
[0089] In one possible implementation, the adjustment module 203 is further specifically used for:
[0090] The image with the smaller third distance is selected from the target image and the symmetrical image, and the difference between the third distances of the target image and the symmetrical image is calculated to obtain the second adjustment distance;
[0091] The slicing coordinates are moved by the second adjustment distance in the slicing direction corresponding to the selected image.
[0092] In one possible implementation, the adjustment module 203 is further specifically used for:
[0093] The slit cigarettes marked within the first preset time period before the current time are transported to the waste rejection device.
[0094] In one possible implementation, the adjustment module 203 is further specifically used for:
[0095] Adjust the operating speed of the cigarette slitting machine to the preset speed;
[0096] If the cutting coordinates are not adjusted within a second preset time period, the running speed is adjusted to the initial speed, which is greater than the preset speed.
[0097] Those skilled in the art will clearly understand that the technical solutions of the embodiments of this application can be implemented by means of software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware that can independently complete or cooperate with other components to complete a specific function, wherein the hardware may be, for example, a field-programmable gate array (FPGA), an integrated circuit (IC), etc.
[0098] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.
[0099] See Figure 3It shows a schematic diagram of the structure of an electronic device according to an embodiment of this application, which can be used to implement... Figure 1 The method in the illustrated embodiment. (As shown) Figure 3 As shown, the electronic device 300 may include: at least one central processing unit 301, at least one network interface 304, user interface 303, memory 305, and at least one communication bus 302.
[0100] The communication bus 302 is used to enable communication between these components.
[0101] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0102] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0103] The central processing unit 301 may include one or more processing cores. The central processing unit 301 connects to various parts within the electronic device 300 using various interfaces and lines. It executes various functions of the terminal 300 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling data stored in the memory 305. Optionally, the central processing unit 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The central processing unit 301 may integrate one or more of the following: a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the central processing unit 301.
[0104] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned central processing unit 301. Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
[0105] exist Figure 3 In the illustrated electronic device 300, the user interface 303 is mainly used to provide an input interface for the user and to acquire user input data; while the central processing unit 301 can be used to call the splicing paper slitting position adjustment application stored in the memory 305 and specifically perform the following operations:
[0106] At least two cigarette rolling images of the target cigarette are continuously acquired in the detection interval, and each splicing paper area is determined in each of the cigarette rolling images.
[0107] Obtain the tipping paper printing image corresponding to the target cigarette, and determine the target image with the highest matching area between the tipping paper area and the tipping paper printing image;
[0108] Determine a first distance between the first pixel and the cutting edge, determine a second distance between the first pixel and the second pixel, adjust the cutting coordinates based on the first and second distances, where the first pixel is the pixel closest to the cutting edge in the target printed image corresponding to the target image, and the second pixel is the pixel furthest from the cutting direction in the splicing paper printed image.
[0109] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0110] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0116] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0117] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A tipping paper slitting position adjustment method characterized by, The method comprises: Consecutive collection of at least two cigarette rolling images of the target cigarette in a detection interval, determination of each tipping paper region in each of the cigarette rolling images; Obtaining a tipping paper printing image corresponding to the target cigarette, determining a target image with the highest matching area between the tipping paper region and the tipping paper printing image, the tipping paper printing image being a complete image printed on the tipping paper before it is rolled into a cylindrical shape, and the target printing image being a tipping paper printing image part in the target image; Determination of a first distance between a first pixel point and a slitting edge, determination of a second distance between the first pixel point and a second pixel point, adjustment of the slitting coordinates based on the first distance and the second distance, the first pixel point being a pixel point closest to the slitting edge in the target printing image corresponding to the target image, and the second pixel point being a pixel point farthest in the slitting direction in the tipping paper printing image; Wherein, the adjustment of the slitting coordinates based on the first distance and the second distance comprises: When the first distance is not greater than the second distance, calculating a distance difference value between the second distance and the first distance, taking the distance difference value and a sum of preset distance parameters as a first adjustment distance, and moving the slitting coordinates in the slitting direction by the first adjustment distance; When the first distance is greater than the second distance, determining a symmetrical image of the target image, and adjusting the slitting coordinates based on a difference between third distances of the target image and the symmetrical image, the third distance being a distance between the second pixel point and the slitting edge.
2. The method of claim 1, wherein, The consecutive collection of at least two cigarette rolling images of the target cigarette in a detection interval comprises: After detecting a slitting completion instruction, consecutive collection of at least two cigarette rolling images of the target cigarette in a detection interval based on a preset time interval.
3. The method of claim 1, wherein, The determination of the target image with the highest matching area between the tipping paper region and the tipping paper printing image comprises: Matching each of the tipping paper regions with the tipping paper printing image to obtain a matching area corresponding to each of the tipping paper regions, and determining the target image with the highest matching area.
4. The method of claim 1, wherein, The adjustment of the slitting coordinates based on the difference between the third distances of the target image and the symmetrical image comprises: Selecting an image with a smaller third distance from the target image and the symmetrical image, and calculating a difference between the third distances of the target image and the symmetrical image to obtain a second adjustment distance; Moving the slitting coordinates in the slitting direction corresponding to the selected image by the second adjustment distance.
5. The method of claim 1, wherein, After moving the slitting coordinates in the slitting direction by the first adjustment distance, the method further comprises: Marking the slitted cigarettes in a first preset time period before the current time, and conveying the marked slitted cigarettes to a rejection device.
6. The method of claim 1, wherein, After moving the slitting coordinates in the slitting direction by the first adjustment distance, the method further comprises: Adjusting the running speed of the cigarette slitting machine to a preset speed; When the slitting coordinates are not adjusted within a second preset time period, adjusting the running speed to an initial speed, the initial speed being greater than the preset speed.
7. A paper splicing position adjustment device, characterized in that, The device comprises: A collection module configured to consecutively collect at least two cigarette rolling images of a target cigarette in a detection interval, and determine each tipping paper region in each of the cigarette rolling images; An acquisition module is configured to acquire a tipping paper printed image corresponding to the target cigarette, and determine a target image with a highest matching area between the tipping paper region and the tipping paper printed image. The tipping paper printed image is a complete image printed on the tipping paper before it is rolled into a cylindrical shape. The target printed image is a tipping paper printed image part in the target image. An adjustment module is configured to determine a first distance between a first pixel point and a slitting edge, determine a second distance between the first pixel point and a second pixel point, and adjust the slitting coordinate based on the first distance and the second distance. The first pixel point is a pixel point closest to the slitting edge in a target printed image corresponding to the target image. The second pixel point is a pixel point farthest in a slitting direction in the tipping paper printed image. The adjustment module is specifically configured to: when the first distance is not greater than the second distance, calculate a distance difference value between the second distance and the first distance, take a sum of the distance difference value and a preset distance parameter as a first adjustment distance, and move the slitting coordinate in the slitting direction by the first adjustment distance; when the first distance is greater than the second distance, determine a symmetric image of the target image, and adjust the slitting coordinate based on a difference between third distances of the target image and the symmetric image. The third distance is a distance between the second pixel point and the slitting edge.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-6. 9.A computer readable storage medium having stored thereon a computer program, the computer readable storage medium having stored therein instructions which, when executed on a computer or processor, cause the computer or processor to perform the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Image detection system for tipping paper of cigarette making and plug assembling machine
CN110953985A
Method for automatically adjusting position of continuous forming notch of pre-printed paper tube
CN115777984A