Numerical control cutting method, system and equipment for producing packaging box and medium

By automatically generating and correcting the cutting path, combining the method of automatically identifying the blank position and selecting the best tool, the problems of inefficient and low accuracy of the CNC cutting method in the prior art are solved, and efficient and accurate packaging box production is achieved.

CN119472504AActive Publication Date: 2025-02-18GUANGZHOU QIANCAI PAPER PRINTING CO LTD

Patent Information

Application Number
CN202411617451.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-18
Estimated Expiration
2044-11-13

AI Technical Summary

Technical Problem

The existing CNC cutting methods are inefficient in packaging boxes production, have low accuracy, and are susceptible to human factors, and cannot meet the needs of efficient and accurate production.

Method used

By reading the structure and plate design files of the packaging box, the initial cutting path is automatically generated, and the packaging box blank to be cut is identified, its position information and angle information are obtained, deviation data is calculated, the initial cutting path is corrected, and the most important thing is to be determined. The best cutting tool is finally cut according to the corrected path.

Benefits of technology

It effectively solves the cutting accuracy problems caused by the deviation of the blank placement position and angle, improves the cutting quality and product applicability, and reduces the empiricality and arbitraryness of manual settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119472504A_ABST
    Figure CN119472504A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of numerical control cutting, in particular to a numerical control cutting method, system and equipment for producing packaging boxes and a medium. The method comprises the following steps: firstly, reading a structure and a board design file of a packaging box, generating an initial cutting path, and then identifying position information and angle information of a blank to obtain deviation data; the initial cutting path is automatically corrected according to the deviation data, a corrected cutting path is obtained, meanwhile, the model of a cutting tool is determined according to parameters of the packaging box blank, and finally, the packaging box blank is cut through a target cutting tool according to the corrected cutting path. The problem of cutting precision caused by blank placement position and angle deviation in the prior art is effectively solved by detecting the position and posture of the blank and correcting the cutting path in the early stage; and meanwhile, the optimal cutter is automatically selected according to the blank parameters, so that the manual setting experience and randomness are reduced, and the cutting quality and the product applicability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of CNC cutting, and in particular to a CNC cutting method, system, equipment and medium for producing packaging boxes. Background Art

[0002] At present, in the production process of packaging boxes, the precision and efficiency of the cutting process have an important impact on product quality and production costs. With the development of numerical control technology, CNC cutting machines are increasingly used in packaging box production. Through precise cutting path control and tool selection, they significantly improve the production efficiency and finished product quality of packaging boxes.

[0003] The existing CNC cutting methods in packaging box production usually rely on manual adjustment of cutting paths and tool selection, which is not only inefficient but also easily affected by human factors, resulting in unstable cutting accuracy and unable to meet the needs of efficient and accurate packaging box production. This situation needs to be further improved. Summary of the invention

[0004] In order to solve the problems of low efficiency and low precision of the existing CNC cutting methods, the present application provides a CNC cutting method, system, equipment and medium for producing packaging boxes, which adopts the following technical solutions: In a first aspect, the present application provides a CNC cutting method for producing a packaging box, comprising the following steps: Read the structure and panel design files of the packaging box, and automatically generate an initial cutting path according to the design files; Identify the packaging box blank to be cut, and obtain position information and angle information of the packaging box blank; Calculating deviation data of the packaging box blank according to the position information and the angle information, and correcting the initial cutting path according to the deviation data to obtain a corrected cutting path; Determining a target cutting tool according to material parameters and thickness parameters of the packaging box blank; The packaging box blank is cut using the target cutting tool according to the corrected cutting path.

[0005] By adopting the above-mentioned technical scheme, the present application first reads the structure and panel design files of the packaging box, and automatically generates an initial ideal cutting path according to the parameter information of the design file; then identifies the actual packaging box blank to be cut, and obtains the precise position information and angle information of the blank; compares and calculates the actual posture information of the blank obtained with the ideal cutting path, and obtains the deviation data between the two; automatically corrects the initial ideal cutting path according to the deviation data, and obtains the corrected actual cutting path; at the same time, determines the most suitable cutting tool model according to the material parameters and thickness parameters of the packaging box blank itself, and finally, the CNC cutting system performs high-precision and high-quality cutting processing on the packaging box blank according to the corrected actual cutting path using the pre-determined target cutting tool; through the early detection of the blank posture and correction of the cutting path, the cutting accuracy problem caused by the blank placement position and angle deviation in the prior art is effectively solved; at the same time, the best tool is automatically selected according to the blank parameters, reducing the experience and arbitrariness of manual settings, and improving the cutting quality and product applicability.

[0006] Optionally, reading the structure and panel design file of the packaging box and automatically generating an initial cutting path according to the design file specifically includes the following steps: Reading the structure and panel design files of the packaging box to determine the two-dimensional panel structure graphics of the packaging box; According to the two-dimensional board surface structure graphics and in combination with preset cutting process requirements, the required cutting lines and cutting sequences are generated; Calculate and generate an actual cutting path point array according to the cutting route, cutting sequence and motion constraints of the cutting device; The cutting path point array is output as an initial cutting path.

[0007] By adopting the above technical scheme, since there are various forms of the structure and panel design of the packaging box, it is difficult to generate the cutting path directly from the design file, and reasonable conversion and optimization are required. The application first extracts the two-dimensional panel structure graphics from the design file, and then generates the required cutting line and cutting sequence according to the preset cutting process requirements; then, combined with the motion constraints of the cutting equipment, the cutting line and sequence are converted into an actual cutting path point array as the final executable initial cutting path output, realizing the seamless conversion from the design file to the actual cutting path, improving data fluency, and being able to generate reasonable and efficient cutting lines and sequences; avoiding human intervention, improving the level of automation, and reducing the risk of human error.

[0008] Optionally, identifying the packaging box blank to be cut and obtaining the position information and angle information of the packaging box blank specifically includes the following steps: Acquire target images of the packaging box blank collected from different viewing angles by multiple visual collection devices with calibrated parameters; identifying a target mark pre-deployed on the packaging box blank in the acquired target image; Based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, the position information and angle information of the packaging box blank are determined.

[0009] By adopting the above technical scheme, since there are certain deviations in the placement position and angle of the packaging box blank in the actual production process, the cutting path will not match the actual position of the blank, thus affecting the cutting accuracy; the present application utilizes multiple visual acquisition devices to capture the target image of the blank from different angles, and identifies the pre-deployed special target marks in the image; then based on the pixel position of the mark in the image, combined with the calibration parameters of the visual device, the position information and angle information of the blank in space are calculated, thereby improving production efficiency and improving the robustness and adaptability of the measurement.

[0010] Optionally, identifying a target mark pre-deployed on the packaging box blank in the acquired target image specifically comprises the following steps: Acquiring a background image of the packaging box blank; Based on the background image, performing background removal processing on the target image to extract the target area; Target marker recognition is performed in the extracted target area to obtain the target marker.

[0011] By adopting the above-mentioned technical scheme, the present application first collects the background image of the packaging box blank, then compares the background image with the target image, and removes the background area in the target image through image analysis and processing technology, and extracts the real target area; then, the target mark is accurately identified and located in the extracted target area, which effectively eliminates background interference, improves the clarity and resolution of the target area, and at the same time narrows the target search range, reduces the risk of target omission or misidentification, and is more adaptable.

[0012] Optionally, based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, determining the position information and angle information of the packaging box blank specifically includes the following steps: In the target image, a pixel area of ​​the target mark is obtained, and the pixel area of ​​the target mark is framed with a virtual rectangular frame; Based on the selected virtual rectangular frame, calculate the pixel coordinates, size, angle information and confidence information of the virtual rectangular frame in the target image; Determine whether the confidence information is higher than a preset threshold. If so, determine the position information and angle information of the packaging box blank on the cutting plane based on the pixel coordinates, size, and angle information combined with the parameters of the visual acquisition device.

[0013] By adopting the above technical scheme, since the projection of the target mark in the image will be affected by factors such as viewing angle and lighting, there will be certain distortions and errors. Directly using the mark pixel coordinates to calculate the blank pose may result in a decrease in accuracy. The present application first obtains the pixel area of ​​the target mark in the image and selects it with a virtual rectangular frame; then based on the selected rectangular frame information, calculates the pixel coordinates, size, angle, confidence and other parameters of the rectangular frame in the image; then determines whether the confidence meets the threshold, if the confidence is high, uses these parameters to determine the actual position and angle of the blank on the cutting plane, otherwise performs exception processing, effectively suppresses pixel distortion and noise interference, and improves the reliability and robustness of pose calculation.

[0014] Optionally, after cutting the packaging box blank with the target cutting tool, the method further comprises the following steps: Determining whether the packaging box blank is a deformable material; If yes, then obtaining material property parameters of the packaging box blank; predicting material deformation during cutting according to the material property parameters; Based on the predicted material deformation results, the corrected cutting path is dynamically adjusted.

[0015] By adopting the above technical scheme, since some packaging box blanks have a large tendency to deform during the cutting process, if they are cut along a fixed cutting path, the actual cutting position will deviate from the expected one, affecting the cutting quality. The present application first determines whether the blank to be cut is a deformable material, and if so, obtains the specific property parameters of the material. Then, based on these parameters, a material deformation model is established to simulate and predict the material deformation during the cutting process. Finally, according to the predicted deformation results, the corrected cutting path is dynamically adjusted to eliminate the path deviation caused by deformation. This effectively solves the problem of reduced precision in cutting of deformable materials, can track material deformation in real time, and improves production efficiency.

[0016] In a second aspect, the present application provides a CNC cutting system for producing packaging boxes, comprising: An initial cutting path generation module is used to read the structure and panel design files of the packaging box and automatically generate an initial cutting path according to the design files; A blank information acquisition module, used to identify the packaging box blank to be cut, and obtain the position information and angle information of the packaging box blank; A cutting path correction module, used to calculate the deviation data of the packaging box blank according to the position information and the angle information, and to correct the initial cutting path according to the deviation data to obtain a corrected cutting path; A cutting tool determination module, used for determining a target cutting tool according to material parameters and thickness parameters of the packaging box blank; A cutting control module is used to cut the packaging box blank using the target cutting tool according to the corrected cutting path.

[0017] Optionally, the initial cutting path generation module includes: A two-dimensional structure graphic determination unit, used to read the structure and panel design files of the packaging box and determine the two-dimensional panel structure graphic of the packaging box; A cutting information generating unit, used to generate the required cutting lines and cutting sequences according to the two-dimensional board surface structure graphics and the preset cutting process requirements; A cutting path point array generating unit, used for calculating and generating an actual cutting path point array according to the cutting line, cutting sequence and motion constraints of the cutting device; The initial cutting path generating unit outputs the cutting path point array as the initial cutting path.

[0018] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned CNC cutting method for producing packaging boxes when executing the computer program.

[0019] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned CNC cutting method for producing packaging boxes are implemented.

[0020] In summary, the present application includes at least one of the following beneficial technical effects: 1. The present application first reads the structure and panel design files of the packaging box to generate an initial cutting path, then identifies the position information and angle information of the blank to obtain deviation data; automatically corrects the initial cutting path according to the deviation data to obtain a corrected cutting path, and at the same time, determines the cutting tool model according to the parameters of the packaging box blank itself; finally, according to the corrected cutting path, the packaging box blank is cut using the target cutting tool; by detecting the blank posture and correcting the cutting path in the early stage, the problem of cutting accuracy caused by the blank placement position and angle deviation in the prior art is effectively solved; at the same time, the optimal tool is automatically selected according to the blank parameters, reducing the experience and arbitrariness of manual settings, and improving the cutting quality and product applicability; 2. This application first extracts the two-dimensional board structure graphics from the design file, and then generates the required cutting lines and cutting sequences according to the preset cutting process requirements; then, combined with the motion constraints of the cutting equipment, the cutting lines and sequences are converted into actual cutting path point arrays as the final executable initial cutting path output, realizing the seamless conversion from the design file to the actual cutting path, improving the data fluency, and being able to generate reasonable and efficient cutting lines and sequences; avoiding manual intervention, improving the level of automation, and reducing the risk of human error; 3. Since there are certain deviations in the placement position and angle of the packaging box blank in the actual production process, the cutting path will not match the actual position of the blank, thus affecting the cutting accuracy; the present application utilizes multiple visual acquisition devices to capture the target image of the blank from different angles, and identifies the pre-deployed special target marks in the image; then based on the pixel position of the mark in the image, combined with the calibration parameters of the visual device, the position information and angle information of the blank in space are calculated, thereby improving production efficiency and improving the robustness and adaptability of the measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 2 It is a flow chart of step S10 in a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 3 It is a flow chart of step S20 in a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 4 It is a flow chart of step S22 in a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 5 It is a flow chart of step S23 in a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 6 It is a schematic diagram of a process of dynamically adjusting a cutting route in a numerical control cutting method for producing a packaging box according to an embodiment of the present application; Figure 7 It is a module schematic diagram of a CNC cutting system for producing packaging boxes according to an embodiment of the present application; Figure 8 It is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0023] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0024] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0025] In a first aspect, the present application provides a CNC cutting method for producing a packaging box, referring to Figure 1 , including the following steps: S10, reading the structure and panel design files of the packaging box, and automatically generating an initial cutting path according to the design files.

[0026] In this embodiment, the design file can be a common CAD file format, such as DXF, DWG, etc., which contains the two-dimensional or three-dimensional structural information of the packaging box. The system reads these design files and extracts the board structure graphics of the packaging box.

[0027] Specifically, a vector graphics processing algorithm is used to identify different basic graphic elements such as line segments and arcs from the design file, and reconstruct the complete board structure graphics. Then, according to the preset cutting process requirements, such as cutting line smoothness, cutting sequence priority, etc., the required cutting line and cutting sequence are generated. Finally, the cutting line is sampled and curve-fitted according to the motion characteristics of the cutting equipment to generate a series of cutting path points as the initial cutting path output.

[0028] S20, identifying the packaging box blank to be cut, and obtaining position information and angle information of the packaging box blank.

[0029] In this embodiment, multiple visual acquisition devices are used to photograph the packaging box blank from different angles to obtain the target image. It is worth noting that the parameters of the visual device such as focal length, position, etc. need to be calibrated in advance.

[0030] Specifically, some special marks are pre-deployed on the surface of the blank, such as QR codes, geometric shapes, etc. These special marks are identified by image processing algorithms in images taken from different angles. Since the parameters of each visual device are known, the three-dimensional position and angle of the blank in space can be accurately calculated based on the pixel position of the mark in each image using pixel back projection and three-dimensional reconstruction technology.

[0031] S30, calculating deviation data of the packaging box blank according to the position information and the angle information, and correcting the initial cutting path according to the deviation data to obtain a corrected cutting path.

[0032] In this embodiment, the actual position and posture information of the obtained blank is compared with the ideal cutting path, and the displacement and angle deviation between the two are calculated.

[0033] Specifically, the present application pre-constructs a spatial coordinate transformation matrix to map the ideal cutting path from the design coordinate system to the real physical coordinate system. Since the actual position and posture of the blank is known, the ideal cutting path can be adjusted to a state that matches the actual position and angle of the blank by reversely applying the transformation matrix, thereby obtaining a corrected cutting path.

[0034] S40: Determine a target cutting tool according to material parameters and thickness parameters of the packaging box blank.

[0035] In this embodiment, the system pre-establishes a cutting database to store tool selection solutions for different materials and thicknesses.

[0036] Specifically, the specific material of the blank, such as cardboard, plastic, etc., and the thickness value are obtained by detection or manual input, and these parameters are matched and queried with the entries in the cutting database to automatically determine the most suitable tool model, tool radius, rotation speed and other parameters as the setting input of the target cutting tool.

[0037] S50: Cut the packaging box blank using a target cutting tool according to the corrected cutting path.

[0038] Specifically, the path point sequence in the correction path is transmitted to the motion controller of the CNC system, and the cutting tool is controlled to perform cutting action on the blank surface according to the correction path in combination with the set cutting tool parameters, feed speed, etc., and finally the packaging box is cut into shape.

[0039] In one embodiment, referring to Figure 2 In step S10, the structure and panel design files of the packaging box are read, and an initial cutting path is automatically generated according to the design files, which specifically includes the following steps: S11, reading the structure and panel design files of the packaging box, and determining the two-dimensional panel structure graphics of the packaging box.

[0040] Specifically, the format type of the design file is first determined. For vector graphics formats, the corresponding line segments, curves and other graphic elements are directly read; for other formats such as raster images, vectorization is first performed to convert pixel data into vector element representation. Then, according to the hierarchical relationship of objects in the design file, the two-dimensional board structure graphics of the main part of the packaging box are extracted and reconstructed.

[0041] S12. Generate the required cutting lines and cutting sequences according to the two-dimensional board surface structure graphics and the preset cutting process requirements.

[0042] Specifically, in this embodiment, the two-dimensional board structure graphics of the packaging box can be regarded as a vector graphics set composed of basic graphics such as line segments and arcs. By tracking and sorting the basic graphics, the line paths to be cut are extracted, and they are planned and split according to process requirements such as cutting process priority and cutting direction, forming a series of orderly cutting lines. At the same time, for each cutting line, the cutting sequence and cutting process flow are arranged according to the position of its starting and ending points, line shape, etc., and finally the cutting line set and its corresponding cutting sequence are output.

[0043] S13. Calculate and generate an actual cutting path point array according to the cutting route, cutting sequence and motion constraints of the cutting equipment.

[0044] In this embodiment, the ideal cutting path is often a continuous vector curve, but the actual CNC cutting system needs to sample a series of discrete path points.

[0045] Specifically, the original cutting line is interpolated and fitted to meet the smoothness and curvature requirements of the equipment. Then, according to the motion constraints such as the feed speed, acceleration, and jitter characteristics of the equipment, a series of path points are uniformly or non-uniformly sampled on the fitting curve. The coordinates of each path point are arranged in the order of the cutting process and stored in the path point array. At the same time, the tangential cutting direction and curvature information of each point are recorded as motion control parameters.

[0046] S14, outputting the cutting path point array as the initial cutting path.

[0047] In one embodiment, referring to Figure 3 In step S20, the packaging box blank to be cut is identified to obtain the position information and angle information of the packaging box blank, which specifically includes the following steps: S21, obtaining target images of the packaging box blank captured from different viewing angles by multiple visual acquisition devices with calibrated parameters.

[0048] In this embodiment, the visual acquisition device may be an imaging device such as an industrial camera or a video camera, and its internal and external parameters need to be calibrated in advance.

[0049] Specifically, the calibration of internal parameters such as focal length and principal point coordinates can be done by using classic algorithms such as Zhang Zhengyou's calibration method; external parameters such as the position of the camera in the world coordinate system can be calibrated using known three-dimensional calibration objects. These camera parameters need to be stored as calibration parameter files. When acquiring the target image, the calibrated multiple cameras are distributed at different viewing angles of the object to be measured, and the target image is acquired by synchronous shooting.

[0050] S22: Identify a target mark pre-deployed on the packaging box blank in the acquired target image.

[0051] In this embodiment, the target mark can be a geometric shape, a coding pattern or a text symbol, etc., with a certain contrast and uniqueness.

[0052] Specifically, the collected image is preprocessed, such as grayscale, enhancement, etc., to improve the visibility of the mark. Then, based on the features of the mark, the target mark area is located and identified in the image.

[0053] S23. Based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, determine the position information and angle information of the packaging box blank.

[0054] Specifically, the pixel coordinates of the marker are first back-projected into the line of sight direction in three-dimensional space according to the intrinsic parameters of each camera; then, according to the extrinsic parameters of multiple cameras, these lines of sight are intersected to obtain the three-dimensional position coordinates of the marker in space. Since there is a known relative position relationship between the marker and the blank, the actual position of the blank can be further inferred. At the same time, the rotation angle of the blank in three-dimensional space can be calculated using the spatial distribution of multiple marker points.

[0055] In one embodiment, referring to Figure 4 In step S22, the target mark pre-deployed on the packaging box blank is identified in the acquired target image, which specifically includes the following steps: S221, collecting a background image of a packaging box blank.

[0056] In this embodiment, the background image refers to a scene image that does not include the target blank. Specifically, before the target blank is in place, the visual device is allowed to capture the scene in advance to obtain the background image.

[0057] S222: Based on the background image, perform background removal processing on the target image to extract the target area.

[0058] Specifically, background removal refers to removing the part of the target image that overlaps with the background image, and only retaining the foreground target area that is different from the background. The background image and the target image are subtracted at the pixel level to obtain a residual image. The residual image is then binarized and other processing is performed to obtain a binary target area mask.

[0059] S223: Perform target marker recognition in the extracted target area to obtain the target marker.

[0060] In this embodiment, it is assumed that the target mark is pre-deployed on the surface of the packaging box blank and has a known relative position relationship with the blank.

[0061] Specifically, the features and contours of the target mark are identified for the extracted target area. Combined with the known positional relationship between the mark and the blank, the specific pixel area of ​​the mark on the blank is further determined, and the final recognition result of the mark is output.

[0062] In one embodiment, referring to Figure 5 In step S23, based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, the position information and angle information of the packaging box blank are determined, which specifically includes the following steps: S231 . In the target image, obtain a pixel region of the target mark, and select the pixel region of the target mark with a virtual rectangular frame.

[0063] In this embodiment, the pixel area of ​​the target mark refers to a set of all pixel points belonging to the marked object in the target image.

[0064] Specifically, the target image is first segmented and connected domain analysis is performed, and the pixels belonging to the same connected region are gathered together to obtain the candidate target region. Then, the most likely marked target region is screened out from the candidate region based on the known features of the mark, such as area, aspect ratio, grayscale distribution, etc. The smallest rectangular frame is enclosed in the region, which is the required virtual rectangular frame.

[0065] S232. Based on the selected virtual rectangular frame, calculate the pixel coordinates, size, angle information and confidence information of the virtual rectangular frame in the target image.

[0066] Specifically, the pixel positions of the four vertices of the rectangle are extracted in the image, and the center coordinates, length, width, and rotation angle of the rectangle are calculated based on these points. The confidence level is determined by comprehensively evaluating the actual overlap between the marked area and the virtual rectangle and the local pixel distribution characteristics.

[0067] S233. Determine whether the confidence information is higher than a preset threshold. If so, determine the position information and angle information of the packaging box blank on the cutting plane based on the pixel coordinates, size, and angle information combined with the parameters of the visual acquisition device.

[0068] Specifically, if the confidence level is higher than the threshold, it means that the quality of mark recognition is high. At this time, the pixel coordinates, size, and angle information of the virtual rectangular frame can be combined with the internal and external parameters of the visual acquisition device, and the actual position and posture of the target mark in the real three-dimensional space can be calculated using pixel back projection and three-dimensional reconstruction technology. Since there is a known relative position relationship between the mark and the blank, the specific position information and angle information of the blank on the cutting plane can be further inferred.

[0069] In one embodiment, referring to Figure 6 In step S50, after cutting the packaging box blank with the target cutting tool, the method further comprises the following steps: S60: Determine whether the packaging box blank is a deformable material.

[0070] In this embodiment, the easily deformable material refers to a material that is easily deformed during the cutting process, such as plastic, foam, etc.

[0071] Specifically, according to the known material information of the blank, a material manual or a database is consulted to determine whether the material belongs to the easily deformable category.

[0072] S70: If yes, obtain material property parameters of the packaging box blank.

[0073] Specifically, for a blank of known material, these parameter values ​​can be directly retrieved from a material data manual or an online database.

[0074] If not, continue to perform the cutting action.

[0075] S80. Predicting material deformation during the cutting process according to material property parameters.

[0076] In this embodiment, the present application pre-establishes a finite element model of the blank, assigns the obtained material property parameters to the model, applies the same processing conditions as the actual cutting to the model, obtains the deformation field of the blank during the cutting process through numerical solution, and predicts the deformation result.

[0077] S90. Based on the predicted material deformation result, dynamically adjust the corrected cutting route.

[0078] Specifically, the predicted deformation field is projected into a displacement field on the cutting plane, that is, the actual position offset of each cutting path point after the material is deformed. Then, these displacements are used as correction values ​​to compensate the original corrected path point coordinates, generate a new dynamically adjusted cutting path, and guide the actual motion trajectory of the tool.

[0079] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0080] In a second aspect, the present application provides a CNC cutting system for producing packaging boxes. The CNC cutting system for producing packaging boxes of the present application is described below in combination with the above-mentioned CNC cutting method for producing packaging boxes.

[0081] Reference Figure 7 , a CNC cutting system for producing packaging boxes, comprising: The initial cutting path generation module is used to read the structure and panel design files of the packaging box and automatically generate the initial cutting path according to the design files; A blank information acquisition module is used to identify the packaging box blank to be cut and obtain the position information and angle information of the packaging box blank; A cutting path correction module is used to calculate the deviation data of the packaging box blank according to the position information and the angle information, and to correct the initial cutting path according to the deviation data to obtain a corrected cutting path; A cutting tool determination module is used to determine a target cutting tool according to material parameters and thickness parameters of the packaging box blank; The cutting control module is used to cut the packaging box blank using a target cutting tool according to the corrected cutting path.

[0082] Optionally, the initial cutting path generation module includes: A two-dimensional structural graphic determination unit is used to read the structure and panel design files of the packaging box and determine the two-dimensional panel structural graphic of the packaging box; A cutting information generating unit, used to generate the required cutting lines and cutting sequences according to the two-dimensional board surface structure graphics and the preset cutting process requirements; A cutting path point array generation unit is used to calculate and generate an actual cutting path point array according to the cutting route, cutting sequence and motion constraints of the cutting equipment; The initial cutting path generating unit outputs the cutting path point array as the initial cutting path.

[0083] Optionally, the blank information acquisition module includes: A target image acquisition unit, used to acquire target images of the packaging box blank acquired from different viewing angles by a plurality of visual acquisition devices with calibrated parameters; A target mark recognition unit, used to recognize a target mark pre-deployed on the packaging box blank in the acquired target image; The blank information acquisition unit is used to determine the position information and angle information of the packaging box blank based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device.

[0084] Optionally, the target marker recognition unit includes: A background image acquisition subunit, used for acquiring a background image of a packaging box blank; The target region extraction subunit is used to perform background removal processing on the target image based on the background image to extract the target region; The target mark recognition subunit is used to recognize the target mark in the extracted target area and obtain the target mark.

[0085] Optionally, the blank information acquisition unit includes: The pixel region selection subunit is used to obtain the pixel region of the target mark in the target image, and select the pixel region of the target mark with a virtual rectangular frame; An information calculation subunit, used for calculating pixel coordinates, size, angle information and confidence information of the virtual rectangular box in the target image based on the selected virtual rectangular box; The blank information acquisition subunit is used to determine whether the confidence information is higher than a preset threshold. If it is higher, the position information and angle information of the packaging box blank on the cutting plane are determined based on the pixel coordinates, size, and angle information combined with the parameters of the visual acquisition device.

[0086] Optionally, the system further includes: A blank judging module is used to judge whether the blank of the packaging box is a deformable material; A material attribute parameter acquisition module, used for acquiring the material attribute parameters of the packaging box blank; A material deformation prediction module is used to predict the material deformation during the cutting process based on material property parameters; The route dynamic adjustment module is used to dynamically adjust the corrected cutting route based on the predicted material deformation results.

[0087] In one embodiment, the present application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a CNC cutting method for producing a packaging box is implemented.

[0088] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0089] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0090] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0091] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A CNC cutting method for producing packaging boxes, characterized in that: The steps include: Read the structure and panel design files of the packaging box, and automatically generate an initial cutting path according to the design files; Identify the packaging box blank to be cut, and obtain position information and angle information of the packaging box blank; Calculating deviation data of the packaging box blank according to the position information and the angle information, and correcting the initial cutting path according to the deviation data to obtain a corrected cutting path; Determining a target cutting tool according to material parameters and thickness parameters of the packaging box blank; The packaging box blank is cut using the target cutting tool according to the corrected cutting path.

2. The CNC cutting method for producing packaging boxes according to claim 1, characterized in that: Read the structure and panel design files of the packaging box, and automatically generate the initial cutting path according to the design files, specifically including the following steps: Reading the structure and panel design files of the packaging box to determine the two-dimensional panel structure graphics of the packaging box; According to the two-dimensional board surface structure graphics and in combination with preset cutting process requirements, the required cutting lines and cutting sequences are generated; Calculate and generate an actual cutting path point array according to the cutting route, cutting sequence and motion constraints of the cutting device; The cutting path point array is output as an initial cutting path.

3. The CNC cutting method for producing packaging boxes according to claim 1, characterized in that: Identifying the packaging box blank to be cut and obtaining the position information and angle information of the packaging box blank specifically includes the following steps: Acquire target images of the packaging box blank collected from different viewing angles by multiple visual collection devices with calibrated parameters; identifying a target mark pre-deployed on the packaging box blank in the acquired target image; Based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, the position information and angle information of the packaging box blank are determined.

4. The CNC cutting method for producing packaging boxes according to claim 3, characterized in that: Identifying a target mark pre-deployed on the packaging box blank in the acquired target image specifically comprises the following steps: Acquiring a background image of the packaging box blank; Based on the background image, performing background removal processing on the target image to extract the target area; Target marker recognition is performed in the extracted target area to obtain the target marker.

5. The CNC cutting method for producing packaging boxes according to claim 3, characterized in that: Based on the pixel position of the target mark in the target image and in combination with the parameters of the visual acquisition device, the position information and angle information of the packaging box blank are determined, specifically including the following steps: In the target image, a pixel area of ​​the target mark is obtained, and the pixel area of ​​the target mark is framed with a virtual rectangular frame; Based on the selected virtual rectangular frame, calculate the pixel coordinates, size, angle information and confidence information of the virtual rectangular frame in the target image; Determine whether the confidence information is higher than a preset threshold. If so, determine the position information and angle information of the packaging box blank on the cutting plane based on the pixel coordinates, size, and angle information combined with the parameters of the visual acquisition device.

6. The CNC cutting method for producing packaging boxes according to claim 1, characterized in that: After the packaging box blank is cut by the target cutting tool, the method further comprises the following steps: Determining whether the packaging box blank is a deformable material; If yes, then obtaining material property parameters of the packaging box blank; predicting material deformation during cutting according to the material property parameters; Based on the predicted material deformation results, the corrected cutting path is dynamically adjusted.

7. A CNC cutting system for producing packaging boxes, characterized in that: include: An initial cutting path generation module is used to read the structure and panel design files of the packaging box and automatically generate an initial cutting path according to the design files; A blank information acquisition module, used to identify the packaging box blank to be cut, and obtain the position information and angle information of the packaging box blank; A cutting path correction module, used to calculate the deviation data of the packaging box blank according to the position information and the angle information, and to correct the initial cutting path according to the deviation data to obtain a corrected cutting path; A cutting tool determination module, used for determining a target cutting tool according to material parameters and thickness parameters of the packaging box blank; A cutting control module is used to cut the packaging box blank using the target cutting tool according to the corrected cutting path.

8. The CNC cutting system for producing packaging boxes according to claim 7, characterized in that: The initial cutting path generation module includes: A two-dimensional structure graphic determination unit, used to read the structure and panel design files of the packaging box and determine the two-dimensional panel structure graphic of the packaging box; A cutting information generating unit, used to generate the required cutting lines and cutting sequences according to the two-dimensional board surface structure graphics and the preset cutting process requirements; A cutting path point array generating unit, used for calculating and generating an actual cutting path point array according to the cutting line, cutting sequence and motion constraints of the cutting device; The initial cutting path generating unit outputs the cutting path point array as the initial cutting path.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the numerical control cutting method for producing a packaging box described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the numerical control cutting method for producing a packaging box described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Marble processing detection method and system and storage medium

    CN113681731A

  • Furniture processing control system based on artificial intelligence

    CN117369351A

  • Systems and methods for shearing adjustment of a dental aligner cutting tool

    US10466676B1

Cited By

  • Visual intelligent identification cutting method, computer equipment and readable storage medium

    CN120451600A

  • Package service method and system based on Internet of Things

    CN120672832A