A die-cutting machine control method and system based on image processing

Through the die-cutting machine control method based on image processing, the location of the die-cutting area and the printing area are identified and the limit block is adjusted, the pattern incompleteness caused by the inefficient die-cutting position correction efficiency in the prior art is solved, and the die-cutting efficiency and product quality are improved.

CN118849108BActive Publication Date: 2025-03-25FOSHAN NANTAI PRECISION MASCH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411051873.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2025-03-25
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

In the prior art, the inefficient die-cut position correction efficiency leads to incomplete pattern of die-cut product, affecting product quality.

Method used

By using the die-cutter control method based on image processing, by obtaining preset tool mold diagrams and printing images, the region of interest is constructed, the location of the die-cut area and the printing area is identified, the overlap between the knife mark position and the printing area is judged, and the adjustment parameters are generated to adjust the limit blocks to ensure pattern integrity.

Benefits of technology

Improves die-cutting efficiency and product quality, ensuring the integrity and accuracy of printing patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118849108B_ABST
    Figure CN118849108B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of die-cutting machine control technology, and provides a die-cutting machine control method and system based on image processing, the method comprising: after respectively constructing regions of interest through a die-cutting image and a printing image, traversing the regions of interest in the die-cutting image, identifying the contour area of ​​the die-cutting product and the contour area of ​​the pattern printing according to the grayscale characteristics, and then comparing the positions of pixel points in the two contour areas to determine whether the actual die-cutting knife marks affect the appearance of the pattern on the product, and then adjusting the limit blocks of the base material to improve the die-cutting efficiency and improve the product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of die-cutting machine control technology, and in particular to a die-cutting machine control method and system based on image processing. Background Art

[0002] In die-cutting technology, the positioning needs to be set when die-cutting printed products so that the printed pattern on the die-cut product packaging can be fully presented; the positioning setting will be pre-set in the die-cutting preparation stage, but adjustments are still required during the actual die-cutting process. The existing technology requires manual correction by humans, which is inefficient, and the final adjusted product still has incomplete printed patterns after die-cutting, resulting in poor product quality. Summary of the invention

[0003] The present invention provides a die-cutting machine control method based on image processing, which is used to solve the problem in the prior art that the die-cutting position correction efficiency is low and the pattern of the die-cutting product is incomplete.

[0004] A first aspect of the present invention provides a die-cutting machine control method based on image processing, comprising:

[0005] Obtain a preset die-cutting pattern, set a first region of interest according to the outline of the die-cutting pattern, and generate a relative position relationship of knife marks according to the line coordinates in the die-cutting pattern; obtain a printed image, and set a second region of interest according to the outline of the printed image;

[0006] Obtain a first die-cutting image, perform image grayscale processing on the first die-cutting image, traverse with a first region of interest, identify the region of interest position corresponding to when the difference in grayscale values ​​of edge pixels in the region of interest is the smallest, and obtain the position of the die-cutting region; traverse with a second region of interest on the first die-cutting image, identify the region of interest position corresponding to when the average grayscale value of pixels in the region of interest is closest to a preset value, and obtain the position of the printing region;

[0007] Based on the relative position relationship of the knife marks based on the die-cutting area position, the knife mark position coordinate set is obtained, and it is determined whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, adjustment parameters are generated according to the overlapping area coordinate points and the printing area position, and sent to the limit block adjustment module.

[0008] Optionally, the adjusting parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically:

[0009] Calculate the center point of each coordinate point in the overlapping area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference.

[0010] Optionally, after determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than a threshold ratio of the number of printing area coordinate points, the method further includes:

[0011] If not, it is determined whether the printing area position is within the die-cutting area position, and if not, an alarm message is issued.

[0012] The second aspect of the present application provides a die-cutting machine control system based on image processing, comprising:

[0013] The region of interest construction module is used to obtain a preset die-cutting pattern, set a first region of interest according to the outline of the die-cutting pattern, and generate a relative position relationship of knife marks according to the line coordinates in the die-cutting pattern; obtain a printed image, and set a second region of interest according to the outline of the printed image;

[0014] The region position identification module is used to obtain the first die-cutting image, perform image grayscale processing on the first die-cutting image, traverse the first region of interest, identify the region of interest position corresponding to when the grayscale value difference of edge pixels in the region of interest is the smallest, and obtain the die-cutting region position; traverse the first die-cutting image with the second region of interest, identify the region of interest position corresponding to when the average grayscale value of pixels in the region of interest is closest to a preset value, and obtain the printing region position;

[0015] The die-cutting machine control module is used to obtain the knife mark position coordinate set based on the relative position relationship of the knife mark according to the die-cutting area position, and determine whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, the adjustment parameters are generated according to the overlapping area coordinate points and the printing area position, and sent to the limit block adjustment module.

[0016] Optionally, in the die-cutting machine control module, adjustment parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically:

[0017] Calculate the center point of each coordinate point in the overlapping area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference.

[0018] Optionally, in the die-cutting machine control module, after determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than a threshold ratio of the number of printing area coordinate points, the die-cutting machine control module further includes:

[0019] If not, it is determined whether the printing area position is within the die-cutting area position, and if not, an alarm message is issued.

[0020] The third aspect of the present application provides a die-cutting machine control method device based on image processing, the device comprising a processor and a memory:

[0021] The memory is used to store program codes and transmit the program codes to the processor;

[0022] The processor is used to execute the die-cutting machine control method based on image processing as described in any one of the first aspects of the present invention according to the instructions in the program code.

[0023] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute a die-cutting machine control method based on image processing as described in any one of the first aspects of the present invention.

[0024] It can be seen from the above technical scheme that the present invention has the following advantages: after constructing the region of interest respectively through the die-cutting image and the printing image, the region of interest is traversed in the die-cutting image, and the contour area of ​​the die-cutting product and the contour area of ​​the pattern printing are identified according to the grayscale characteristics, and then the pixel point positions in the two contour areas are compared to determine whether the actual die-cutting knife marks affect the appearance of the pattern on the product, and then the limit block of the base material is adjusted to improve the die-cutting efficiency and improve the product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0026] Figure 1 is a flow chart of a die-cutting machine control method based on image processing;

[0027] Figure 2 This is a structural diagram of a die-cutting machine control system based on image processing. DETAILED DESCRIPTION

[0028] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] The present invention provides a die-cutting machine control method based on image processing, which is used to solve the problem in the prior art that the die-cutting position correction efficiency is low and the pattern of the die-cutting product is incomplete.

[0030] See also Figure 1 , Figure 1 A first flow chart of a die-cutting machine control method based on image processing provided by an embodiment of the present invention.

[0031] S100, obtaining a preset die-cutting pattern, setting a first region of interest according to the outline of the die-cutting pattern, and generating a relative position relationship of knife marks according to the line coordinates in the die-cutting pattern; obtaining a printed image, and setting a second region of interest according to the outline of the printed image;

[0032] It should be noted that the die-cutting pattern is an image of the arrangement of the cutters in the die-cutting machine, and can also be an unfolded plan view of the packaging design. The edge contour on the die-cutting pattern is the path of the die-cutting on the base material with the cutter. The edge contour extraction calculation can be used to obtain the contour, and the first region of interest is set according to the contour in the die-cutting pattern, so that the shape of the first region of interest is consistent with the edge contour of the die-cutting pattern; the edge of the die-cutting pattern is the cutting path, and the purpose of the edge is to cut the product from the base material, and there will be embossing or internal hollowing settings inside the cutting area of ​​the die-cutting pattern to make the product easy to fold. If the patterns through which these indentations or hollowing pass will affect the appearance and pattern display, a coordinate origin can be set in the die-cutting pattern to construct a coordinate system, and the coordinates of all the lines in the die-cutting pattern can be generated, so that the relative position relationship between the corresponding traces of each tool can be obtained;

[0033] In the production process of flexographic printing products, embossing is generally performed first and then die-cutting. The base material during the die-cutting process has been printed with a pattern. The printed image is generally a pattern or dense text. The edge contour extraction calculation can also be used to obtain the contour of the printed image, and the second area of ​​interest can be set with the same contour shape.

[0034] S200, obtaining a first die-cutting image, performing image grayscale processing on the first die-cutting image, traversing the first region of interest, identifying the region of interest position corresponding to when the grayscale value difference of edge pixels in the region of interest is the smallest, and obtaining the die-cutting region position; traversing the first die-cutting image with a second region of interest, identifying the region of interest position corresponding to when the average grayscale value of pixels in the region of interest is closest to a preset value, and obtaining the printing region position;

[0035] It should be noted that after the die-cutting machine completes the die-cutting task, the product is sent away from the die-cutting machine by a conveyor belt or other mechanism. At this time, an industrial camera is used to shoot the die-cut product to obtain a first die-cutting image, and the first die-cutting image is preprocessed and gray-scaled so that each pixel is represented by a grayscale value of 0-255. The die-cutting contour and the shape of the printed image on the first die-cutting image will not change, but due to different shooting parameters or base material sizes, the proportions of the first area of ​​interest and the second area of ​​interest should be adaptively scaled; the first area of ​​interest is translated on the first die-cutting image to traverse the pixel points, and the grayscale values ​​of the pixels in the area of ​​interest are identified during the traversal process. Because the pixel area composed of the actual edge of the product in the first die-cutting image has a certain width, there are certain positions during the traversal of the first area of ​​interest, so that the edge pixels of the area of ​​interest are all pixels corresponding to the edge of the product. The edge pixels in this embodiment refer to the pixels of interest. The pixel points at the boundary of the region, that is, there are no adjacent pixel points in any direction in the row and column direction of the pixel point arrangement, which are edge pixel points. When the grayscale value difference of the edge pixel points is large, it can be understood that the traversal position of the first region of interest at this time only partially overlaps with the actual product edge and the image. Some of the pixel points at the edge of the first region of interest correspond to the product edge, some correspond to the base material without printing, and some correspond to the pixel points of the printed pattern, so the pixel grayscale values ​​have a large difference; and the shape of the first region of interest is consistent with the shape of the die-cut product. Therefore, when the first region of interest and the contour of the die-cut product basically coincide with each other, the edge pixel points correspond to the edge position of the cut product. At this time, the grayscale values ​​of the pixels are similar, and the grayscale value difference of the edge pixel points is the smallest. The position of the first region of interest at this time is regarded as the position of the die-cut area; in order to improve the traversal efficiency, the pixel point arrangement direction can be firstly translated in the row direction or column direction for traversal, and then the translation traversal in the other direction is performed at the position with the smallest difference value;

[0036] The second region of interest is consistent with the appearance of the printed image, and the printed pattern on the product generally uses ink with a significant color difference from the base material to achieve clarity of the printed pattern, and the ink is concentrated on the pattern during printing. Therefore, a grayscale preset value can be set according to the grayscale value of the ink color in the grayscale image. During the traversal of the second region of interest, when the grayscale average value in the region of interest is closest to the grayscale preset value, the second region of interest can be regarded as basically overlapping with the printing area, and the position of the second region of interest at this time is regarded as the printing area position.

[0037] S300, based on the die-cutting area position and the relative position relationship of the knife mark, obtain the knife mark position coordinate set, and judge whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, generate adjustment parameters according to the overlapping area coordinate points and the printing area position, and send them to the limit block adjustment module.

[0038] It should be noted that in the first die-cutting image, the corresponding coordinates will be set according to the arrangement of the pixels, and the relative position relationship of the knife marks should also be scaled proportionally. For example, in the relative position relationship of the knife marks, the edge length of knife mark A is a, and the distance between a certain point of knife mark A and a certain point of another knife mark B is b, and the corresponding pixel length of knife mark A in the first die-cutting image is c, then the relative position relationship of the knife marks should be scaled according to the ratio of c:a, and the distance between a certain point of knife mark A and a certain point of another knife mark B in the first die-cutting image should be cb / a. Some special inflection points can be identified in the die-cutting area as reference points. The relative position of the reference point and each knife mark is determined according to the relative position relationship of the knife marks, so as to determine the knife position on the actual product, and then obtain the pixel coordinates corresponding to all knife positions to form a knife mark position coordinate set;

[0039] The printing area is also composed of multiple pixel coordinates, so it is possible to determine the coordinate points that are consistent between the knife mark position coordinate set and the printing area, calculate the number of overlapping coordinate points, and calculate the number of pixel coordinates in the printing area. When the number of overlapping coordinate points is greater than the threshold ratio of the number of pixel coordinates in the printing area, it means that the die-cutting position of the die-cutting machine on the product has caused the edge and indentation position of the product to seriously affect the integrity of the pattern, that is, the pattern on the product is incomplete at the cutting edge or deformed at the folding position. The threshold ratio can be set according to the experience value;

[0040] When the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points, the current base material loading positioning position needs to be adjusted so that the die-cutting area position can be more compatible with the printing area position; an adjustable positioning block will be set on the die-cutting machine. After the die-cutting base material is fed into the die-cutting machine, it will be restricted by the positioning block to determine the relative position of the base material and the die-cutting tool. In the die-cutting pattern design and the original limit block positioning, the knife mark position will be prevented from affecting the printed image as much as possible. The horizontal and vertical distances required to translate all the overlapping area coordinate points out of the printing area can be calculated, and the horizontal and vertical distances can be converted into the actual distances that the base material needs to change according to the scaling ratio of the relative position relationship of the knife marks. The corresponding adjustment parameters are generated and sent to the corresponding limit block adjustment modules respectively to change the position of the limit block, so that the base material positioning position during subsequent die-cutting can be more accurate

[0041] In this embodiment, after constructing the region of interest respectively through the die-cutting image and the printing image, the region of interest is traversed in the die-cutting image, and the contour area of ​​the die-cut product and the contour area of ​​the pattern printing are identified according to the grayscale characteristics. Then, based on the positions of the pixel points in the two contour areas, a comparison is made to determine whether the actual die-cutting knife marks affect the appearance of the pattern on the product, and then the limit blocks of the base material are adjusted to improve the die-cutting efficiency and improve the product quality.

[0042] The above is a detailed description of the first embodiment of a die-cutting machine control method based on image processing provided by the present application. The following is a detailed description of the second embodiment of a die-cutting machine control method based on image processing provided by the present application.

[0043] In this embodiment, a die-cutting machine control method based on image processing is further provided. In the aforementioned step S300, adjustment parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically:

[0044] Calculate the center point of each coordinate point in the overlapped area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference;

[0045] It should be noted that after adding the horizontal and vertical coordinates of all coordinate points in the overlapping area, the average value is taken to obtain the coordinates of the center point; a number of points can be randomly selected from the edge coordinate points of the printing area, and the distance from the center point is calculated, and then a closer coordinate point is found based on the edge coordinate point with the minimum distance, until the edge coordinate point with the minimum distance is found to obtain the first edge coordinate point. The distance in this embodiment refers to the Euclidean distance, that is, the square root of the sum of the squares of the horizontal and vertical coordinate values. The edge coordinate point refers to the coordinate point at the boundary of the printing area, that is, if there is no adjacent printing area pixel point in any direction in the row and column direction of the coordinate point arrangement, it is an edge coordinate point; calculate the first After calculating the horizontal and vertical coordinate differences between the edge coordinate point and the center point, it is also necessary to convert the horizontal and vertical distances into the actual position distances that need to be changed for the base material according to the scaling ratio of the relative position relationship of the tool mark. Because there must be some areas that still overlap after the center point is translated to the first edge coordinate point, the horizontal and vertical position data in the adjustment parameters can be increased by a preset fixed empirical value to generate the final adjustment parameter signal; the position distance that needs to be changed in the horizontal and vertical directions also needs to refer to the relationship between the camera shooting position and the limit block. Generally speaking, the horizontal and vertical directions of the industrial camera should be consistent with the limit direction of the limit block, or vice versa. At this time, the limit block to which the adjustment parameter signal is finally sent should be adaptively adjusted.

[0046] Furthermore, in the step S300, after determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points, it also includes: if not, determining whether the printing area position is within the die-cutting area position, and if not, issuing an alarm message; it should be noted that the aforementioned step detects whether the printing area and the die-cutting area overlap under the judgment logic, so as to identify the situation where die-cutting affects the appearance of the packaging printing pattern, and when the die-cutting knife mark does not affect the printed pattern, there may also be a defect of no printed pattern in the die-cutting area; the coordinate value of the edge of the die-cutting area is used to determine whether there is any pixel point coordinate of the printing area falling within the die-cutting area, so as to determine whether the printing area position is within the die-cutting area position, if no pixel point coordinate of the printing area falls within the die-cutting area, it reflects that the pattern is not on the product, an alarm needs to be issued, and there is a more serious die-cutting defect.

[0047] The above is a detailed description of a die-cutting machine control method based on image processing provided in the first aspect of the present application. The following is a detailed description of an embodiment of a die-cutting machine control system based on image processing provided in the second aspect of the present application.

[0048] See also Figure 2 , Figure 2 This embodiment provides a die-cutting machine control system based on image processing, including:

[0049] The region of interest construction module 10 is used to obtain a preset die-cutting pattern, set a first region of interest according to the outline of the die-cutting pattern, and generate a relative position relationship of knife marks according to the line coordinates in the die-cutting pattern; obtain a printed image, and set a second region of interest according to the outline of the printed image;

[0050] The region position identification module 20 is used to obtain the first die-cutting image, perform image grayscale processing on the first die-cutting image, traverse the first region of interest, identify the region of interest position corresponding to when the grayscale value difference of edge pixels in the region of interest is the smallest, and obtain the die-cutting region position; traverse the first die-cutting image with the second region of interest, identify the region of interest position corresponding to when the average grayscale value of pixels in the region of interest is closest to a preset value, and obtain the printing region position;

[0051] The die-cutting machine control module 30 is used to obtain a knife mark position coordinate set based on the relative position relationship of the knife mark according to the die-cutting area position, and determine whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, adjustment parameters are generated according to the overlapping area coordinate points and the printing area position, and sent to the limit block adjustment module.

[0052] Furthermore, in the die-cutting machine control module 30, adjustment parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically:

[0053] Calculate the center point of each coordinate point in the overlapping area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference.

[0054] Furthermore, after determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than a threshold ratio of the number of printing area coordinate points in the die-cutting machine control module 30, the die-cutting machine control module 30 further includes:

[0055] If not, it is determined whether the printing area position is within the die-cutting area position, and if not, an alarm message is issued.

[0056] The third aspect of the present application also provides a die-cutting machine control method device based on image processing, including a processor and a memory: the memory is used to store program code and transfer the program code to the processor; the processor is used to execute the above-mentioned die-cutting machine control method based on image processing according to the instructions in the program code.

[0057] A fourth aspect of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store program codes, and the program codes are used to execute the above-mentioned die-cutting machine control method based on image processing.

[0058] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0059] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0060] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0061] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0062] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0063] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A die-cutting machine control method based on image processing, characterized in that include: Obtain a preset die-cutting pattern, set a first region of interest according to the outline of the die-cutting pattern, and generate a relative position relationship of knife marks according to line coordinates in the die-cutting pattern; Acquire a printed image, and set a second region of interest according to a contour of the printed image; Obtain a first die-cutting image, perform image grayscale processing on the first die-cutting image, traverse the first region of interest, identify the region of interest position corresponding to the minimum difference in grayscale values ​​of edge pixels within the region of interest, and obtain the die-cutting region position; Traversing the first die-cutting image with the second region of interest, identifying the position of the region of interest corresponding to when the average gray value of the pixels in the region of interest is closest to the preset value, and obtaining the position of the printing area; Based on the relative position relationship of the knife marks based on the die-cutting area position, the knife mark position coordinate set is obtained, and it is determined whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, adjustment parameters are generated according to the overlapping area coordinate points and the printing area position, and sent to the limit block adjustment module.

2. The die-cutting machine control method based on image processing according to claim 1, characterized in that: The adjustment parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically: Calculate the center point of each coordinate point in the overlapping area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference.

3. The die-cutting machine control method based on image processing according to claim 1, characterized in that: After determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points, the method further includes: If not, it is determined whether the printing area position is within the die-cutting area position, and if not, an alarm message is issued.

4. A die-cutting machine control system based on image processing, characterized in that: include: An area of ​​interest construction module is used to obtain a preset die-cutting pattern, set a first area of ​​interest according to the outline of the die-cutting pattern, and generate a relative position relationship of knife marks according to the line coordinates in the die-cutting pattern; Acquire a printed image, and set a second region of interest according to a contour of the printed image; A region position identification module is used to obtain a first die-cutting image, perform image grayscale processing on the first die-cutting image, traverse the first region of interest, identify the region of interest position corresponding to the minimum difference in grayscale values ​​of edge pixels in the region of interest, and obtain the die-cutting region position; Traversing the first die-cutting image with the second region of interest, identifying the position of the region of interest corresponding to when the average gray value of the pixels in the region of interest is closest to the preset value, and obtaining the position of the printing area; The die-cutting machine control module is used to obtain the knife mark position coordinate set based on the relative position relationship of the knife mark according to the die-cutting area position, and determine whether the number of overlapping coordinate points between the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points. If so, the adjustment parameters are generated according to the overlapping area coordinate points and the printing area position, and sent to the limit block adjustment module.

5. The die-cutting machine control system based on image processing according to claim 4, characterized in that: In the die-cutting machine control module, adjustment parameters are generated according to the coordinate points of the overlapped area and the position of the printing area, specifically: Calculate the center point of each coordinate point in the overlapping area, identify the edge coordinate point of the printing area with the smallest distance from the center point, and obtain the first edge coordinate point; calculate the horizontal coordinate difference and the vertical coordinate difference between the first edge coordinate point and the center point, and generate a corresponding adjustment parameter signal according to the horizontal coordinate difference and the vertical coordinate difference.

6. The die-cutting machine control system based on image processing according to claim 4, characterized in that: In the die-cutting machine control module, after determining whether the number of overlapping coordinate points of the printing area position and the knife mark position coordinate set is greater than the threshold ratio of the number of printing area coordinate points, the following further comprises: If not, it is determined whether the printing area position is within the die-cutting area position, and if not, an alarm message is issued.

7. A die-cutting machine control device based on image processing, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the die-cutting machine control method based on image processing as described in any one of claims 1 to 3 according to the instructions in the program code.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the die-cutting machine control method based on image processing as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Die-cutting machine audio region-of-interest positioning method, device and equipment and medium

    CN116758938A

  • Novel die cutting registration detection method

    CN116934716A