A CNC cutting method, system, equipment and medium for producing packaging boxes
By generating and correcting the cutting path, selecting the appropriate tool, and combining visual recognition and material deformation prediction, the problems of inefficiency and instability in CNC cutting are solved, and efficient and high-precision packaging box production is achieved.
Patent Information
- Application Number
- CN202411617451.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2044-11-13
AI Technical Summary
The existing CNC cutting methods are inefficient and unstable in the production of packaging boxes, and are greatly affected by human factors and cannot meet the needs of efficient and accurate production.
By reading the structure and plate design files of the packaging box, generating the initial cutting path, identifying the position and angle information of the blank, calculating the deviation data for path correction, selecting the appropriate cutting tool, using the target tool for cutting, and dynamic adjustments are made in combination with the visual acquisition device and material deformation prediction.
Improves cutting accuracy and quality, reduces manual intervention, achieves seamless transformation from design files to actual cutting paths, and improves automation level and production efficiency.
Smart Images

Figure CN119472504B_ABST
Abstract
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] Currently, the precision and efficiency of the cutting process in the production of packaging boxes have a significant 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 production efficiency and finished product quality.
[0003] Existing CNC cutting methods for packaging box production typically rely on manual adjustment of cutting paths and tool selection. This is not only inefficient but also susceptible to human factors, resulting in unstable cutting accuracy and failing to meet the requirements of efficient and precise packaging box production. This situation needs further improvement. Summary of the Invention
[0004] In order to solve the problems of low efficiency and low precision of 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:
[0005] In a first aspect, the present application provides a CNC cutting method for producing a packaging box, comprising the following steps:
[0006] Read the structure and panel design files of the packaging box and automatically generate the initial cutting path according to the design files;
[0007] Identifying the packaging box blank to be cut and obtaining position information and angle information of the packaging box blank;
[0008] 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;
[0009] Determining a target cutting tool according to the material parameters and thickness parameters of the packaging box blank;
[0010] The packaging box blank is cut using the target cutting tool according to the corrected cutting path.
[0011] By adopting the above-mentioned technical solution, 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 to obtain the deviation data between the two; automatically corrects the initial ideal cutting path according to the deviation data to obtain 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.
[0012] Optionally, 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, specifically including the following steps:
[0013] Reading the structure and panel design files of the packaging box to determine the two-dimensional panel structure graphics of the packaging box;
[0014] According to the two-dimensional board surface structure graphic and in combination with the preset cutting process requirements, the required cutting lines and cutting sequences are generated;
[0015] Calculating and generating an actual cutting path point array based on the cutting route, cutting sequence, and motion constraints of the cutting device;
[0016] The cutting path point array is output as an initial cutting path.
[0017] By adopting the above technical solution, since there are various forms of packaging box structure and panel design, it is difficult to generate cutting paths directly from design files, and reasonable conversion and optimization are required. This application first extracts the two-dimensional panel 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, which are output as the final executable initial cutting path, realizing seamless conversion from design files to actual cutting paths, improving 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.
[0018] Optionally, identifying the packaging box blank to be cut and obtaining position information and angle information of the packaging box blank specifically includes the following steps:
[0019] Acquire target images of the packaging box blank captured from different viewing angles by multiple visual acquisition devices with calibrated parameters;
[0020] identifying a target mark pre-deployed on the packaging box blank in the acquired target image;
[0021] 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.
[0022] By adopting the above technical solution, 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, thereby affecting the cutting accuracy; this application uses multiple visual acquisition devices to capture the target image of the blank from different angles, and identify 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, which improves production efficiency and improves the robustness and adaptability of measurement.
[0023] Optionally, identifying a target mark pre-deployed on the packaging box blank in the acquired target image specifically includes the following steps:
[0024] Acquiring a background image of the packaging box blank;
[0025] Based on the background image, performing background removal processing on the target image to extract the target area;
[0026] Target marker recognition is performed in the extracted target area to obtain the target marker.
[0027] By adopting the above-mentioned technical solution, 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 to extract the real target area; then accurately identifies and locates the target mark in the extracted target area, effectively eliminating background interference, improving the clarity and resolution of the target area, and at the same time narrowing the target search range, reducing the risk of target omission or misidentification, and being more adaptable.
[0028] Optionally, determining the position information and angle information of the packaging box blank based on the pixel position of the target mark in the target image in combination with the parameters of the visual acquisition device specifically includes the following steps:
[0029] In the target image, obtaining a pixel area of the target mark, and selecting the pixel area of the target mark with a virtual rectangular frame;
[0030] Based on the selected virtual rectangular box, calculating pixel coordinates, size, angle information and confidence information of the virtual rectangular box in the target image;
[0031] 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.
[0032] By adopting the above technical solution, 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. This 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, the pixel coordinates, size, angle and confidence parameters of the rectangular frame in the image are calculated; and then it is determined whether the confidence meets the threshold. If the confidence is high, these parameters are used to determine the actual position and angle of the blank on the cutting plane, otherwise exception processing is performed, which effectively suppresses pixel distortion and noise interference, and improves the reliability and robustness of the pose calculation.
[0033] Optionally, after cutting the packaging box blank with the target cutting tool, the method further comprises the following steps:
[0034] Determining whether the packaging box blank is a deformable material;
[0035] If yes, then obtaining the material property parameters of the packaging box blank;
[0036] predicting material deformation during the cutting process based on the material property parameters;
[0037] Based on the predicted material deformation result, the corrected cutting path is dynamically adjusted.
[0038] By adopting the above technical solution, 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; this 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 offset caused by deformation; it effectively solves the problem of reduced accuracy in cutting of deformable materials, can track material deformation in real time, and improves production efficiency.
[0039] In a second aspect, the present application provides a CNC cutting system for producing packaging boxes, comprising:
[0040] 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;
[0041] A blank information acquisition module is used to identify the packaging box blank to be cut and obtain position information and angle information of the packaging box blank;
[0042] a cutting path correction module, configured to calculate deviation data of the packaging box blank according to the position information and the angle information, and correct the initial cutting path according to the deviation data to obtain a corrected cutting path;
[0043] A cutting tool determination module, configured to determine a target cutting tool according to material parameters and thickness parameters of the packaging box blank;
[0044] A cutting control module is configured to cut the packaging box blank using the target cutting tool according to the corrected cutting path.
[0045] Optionally, the initial cutting path generation module includes:
[0046] A two-dimensional structural graphic determining unit, configured to read the structure and panel design files of the packaging box and determine the two-dimensional panel structural graphic of the packaging box;
[0047] A cutting information generating unit, configured to generate a required cutting route and cutting sequence according to the two-dimensional board surface structure graphic and in combination with preset cutting process requirements;
[0048] A cutting path point array generating unit, configured to calculate and generate an actual cutting path point array according to the cutting route, cutting sequence and motion constraints of the cutting device;
[0049] The initial cutting path generating unit outputs the cutting path point array as the initial cutting path.
[0050] 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 when the processor executes the computer program, the steps of the above-mentioned CNC cutting method for producing packaging boxes are implemented.
[0051] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned CNC cutting method for producing packaging boxes.
[0052] In summary, this application includes at least one of the following beneficial technical effects:
[0053] 1. This 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 based on the deviation data to obtain a corrected cutting path; at the same time, determines the cutting tool model based on 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; 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 existing technology 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, thereby improving the cutting quality and product applicability;
[0054] 2. This application first extracts the two-dimensional panel structure graphics from the design file, then generates the required cutting paths and cutting sequences based on the preset cutting process requirements. Furthermore, based on the motion constraints of the cutting equipment, the cutting paths and sequences are converted into an actual cutting path point array, which is output as the final executable initial cutting path. This achieves a seamless conversion from the design file to the actual cutting path, improves data fluency, and can generate reasonable and efficient cutting paths and sequences. It avoids manual intervention, improves the level of automation, and reduces the risk of human error.
[0055] 3. Since there are certain deviations in the placement position and angle of the packaging box blank during the actual production process, the cutting path will not match the actual position of the blank, thereby affecting the cutting accuracy; this application uses multiple visual acquisition devices to capture the target image of the blank from different angles, and identify 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, which improves production efficiency and improves the robustness and adaptability of measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1This is a flow chart of a CNC cutting method for producing packaging boxes according to an embodiment of the present application;
[0057] Figure 2 This is a flow chart of step S10 in a CNC cutting method for producing a packaging box according to an embodiment of the present application;
[0058] Figure 3 This is a flow chart of step S20 in a CNC cutting method for producing a packaging box according to an embodiment of the present application;
[0059] Figure 4 This is a flow chart of step S22 in a CNC cutting method for producing a packaging box according to an embodiment of the present application;
[0060] Figure 5 This is a flow chart of step S23 in a CNC cutting method for producing a packaging box according to an embodiment of the present application;
[0061] Figure 6 This is a schematic diagram of a process for dynamically adjusting a cutting route in a numerical control cutting method for producing packaging boxes according to an embodiment of the present application;
[0062] Figure 7 This is a module schematic diagram of a CNC cutting system for producing packaging boxes according to an embodiment of the present application;
[0063] Figure 8 This is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0064] The terms used in the following examples of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations comprising one or more of the listed items.
[0065] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0066] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.
[0067] In the first aspect, the present application provides a CNC cutting method for producing a packaging box, referring to Figure 1 , including the following steps:
[0068] S10, reading the structure and panel design files of the packaging box, and automatically generating an initial cutting path according to the design files.
[0069] 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.
[0070] Specifically, a vector graphics processing algorithm is used to identify basic graphic elements such as line segments and arcs from the design file and reconstruct the complete panel structure. The required cutting paths and sequences are then generated based on pre-set cutting process requirements, such as cutting path smoothness and cutting sequence priority. Finally, the cutting paths are sampled and curve-fitted based on the kinematic characteristics of the cutting equipment to generate a series of cutting path points, which are then output as the initial cutting path.
[0071] S20: Identify the packaging box blank to be cut, and obtain position information and angle information of the packaging box blank.
[0072] In this embodiment, multiple visual acquisition devices are used to capture the packaging box blank from different angles to obtain the target image. It is worth noting that the parameters of the visual devices, such as focal length and position, need to be calibrated in advance.
[0073] Specifically, special markings, such as QR codes and geometric shapes, are pre-placed on the surface of the blank. These markings are then identified using image processing algorithms in images captured from different angles. Since the parameters of each visual device are known, the blank's 3D position and angle can be accurately calculated based on the pixel positions of the markings in each image using pixel back-projection and 3D reconstruction techniques.
[0074] 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.
[0075] In this embodiment, the actual position information of the blank is compared with the ideal cutting path, and the displacement and angle deviation between the two are calculated.
[0076] Specifically, this 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 of the blank is known, the ideal cutting path can be adjusted to match the actual position and angle of the blank by reversely applying the transformation matrix, thereby obtaining a corrected cutting path.
[0077] S40: Determine a target cutting tool according to the material parameters and thickness parameters of the packaging box blank.
[0078] In this embodiment, the system pre-establishes a cutting database to store tool selection solutions for different materials and thicknesses.
[0079] Specifically, the specific material of the blank, such as cardboard, plastic, etc., and the thickness value are obtained through detection or manual input, and these parameters are matched with the entries in the cutting database to automatically determine the most suitable tool model, tool radius, speed and other parameters as the setting input of the target cutting tool.
[0080] S50 : Cutting the packaging box blank using a target cutting tool according to the corrected cutting path.
[0081] Specifically, the path point sequence in the corrected path is transmitted to the motion controller of the CNC system. Combined with the set cutting tool parameters, feed speed, etc., the cutting tool is controlled to perform cutting actions on the blank surface according to the corrected path, and finally the packaging box is cut into shape.
[0082] In one embodiment, referring to Figure 2 In step S10, the structure and panel design files of the packaging box are read, and the initial cutting path is automatically generated according to the design files, which specifically includes the following steps:
[0083] S11. Read the structure and panel design files of the packaging box to determine the two-dimensional panel structure graphics of the packaging box.
[0084] Specifically, the design file format is determined. For vector graphics, the corresponding line segments, curves, and other primitives are directly read. For other formats, such as raster images, vectorization is performed to convert the pixel data into vector primitives. Then, based on the hierarchical relationships of the objects in the design file, the 2D surface structure of the main body of the packaging box is extracted and reconstructed.
[0085] S12. Generate the required cutting lines and cutting sequences based on the two-dimensional board surface structure graphics and the preset cutting process requirements.
[0086] Specifically, in this embodiment, the two-dimensional panel structure of the packaging box can be viewed as a collection of vector graphics composed of basic primitives such as line segments and arcs. By tracking and sorting these basic graphics, the line paths to be cut are extracted. These paths are then planned and split according to process requirements such as cutting process priority and cutting direction, forming a series of ordered cutting routes. Simultaneously, for each cutting route, the cutting sequence and cutting process flow are arranged based on the location of its start and end points, route shape, and other factors. Ultimately, a collection of cutting routes and their corresponding cutting sequences are output.
[0087] S13. Calculate and generate an actual cutting path point array based on the cutting route, cutting sequence, and motion constraints of the cutting equipment.
[0088] In this embodiment, the ideal cutting path is often a continuous vector curve, but an actual CNC cutting system needs to sample and obtain a series of discrete path points.
[0089] Specifically, the original cutting path is first interpolated and fitted to meet the smoothness and curvature requirements of the device. Then, based on motion constraints such as the device's feed rate, acceleration, and jitter characteristics, a series of path points are sampled uniformly or non-uniformly on the fitted curve. The coordinates of each path point are arranged in the order of the cutting process and stored in a path point array. The tangential cutting direction and curvature information of each point are also recorded as motion control parameters.
[0090] S14. Output the cutting path point array as the initial cutting path.
[0091] 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:
[0092] S21. Obtain target images of the packaging box blank captured from different viewing angles by multiple visual acquisition devices with calibrated parameters.
[0093] 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.
[0094] Specifically, to calibrate intrinsic parameters such as focal length and principal point coordinates, classic algorithms such as the Zhang Zhengyou calibration method can be used. Extrinsic parameters, such as the camera's position in the world coordinate system, can be calibrated using known 3D calibration objects. These camera parameters must be stored in a calibration parameter file. To capture the target image, multiple calibrated cameras are positioned at different viewing angles of the object to be measured and captured simultaneously.
[0095] S22: Identify a target mark pre-deployed on the packaging box blank in the acquired target image.
[0096] 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.
[0097] Specifically, the collected image is preprocessed, such as grayscale conversion and enhancement, to improve the visibility of the marker. Then, based on the features of the marker, the target marker area is located and identified in the image.
[0098] S23. 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.
[0099] Specifically, the pixel coordinates of the markers are back-projected into line-of-sight directions in three-dimensional space based on the intrinsic parameters of each camera. These lines of sight are then intersected based on the extrinsic parameters of multiple cameras to obtain the marker's three-dimensional position coordinates. Because the relative positional relationship between the markers and the workpiece is known, the actual workpiece position can be further inferred. Furthermore, the spatial distribution of the multiple markers can be used to calculate the workpiece's rotation angle in three-dimensional space.
[0100] 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:
[0101] S221. Collect a background image of the packaging box blank.
[0102] 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 used to capture the scene in advance to obtain the background image.
[0103] S222: Based on the background image, perform background removal processing on the target image to extract the target area.
[0104] Specifically, background subtraction removes the overlapped portions of the target image, retaining only the foreground target area that differs from the background. Pixel-level subtraction is performed on the background and target images to produce a residual image. This residual image is then binarized and processed to obtain a binary target region mask.
[0105] S223: Perform target marker recognition in the extracted target area to obtain the target marker.
[0106] 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.
[0107] Specifically, the features and outline of the target mark are identified in 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.
[0108] 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:
[0109] S231 . In the target image, obtain a pixel area of the target mark, and select the pixel area of the target mark with a virtual rectangular frame.
[0110] 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.
[0111] Specifically, the target image is first segmented and connected domain analysis is performed. Pixels belonging to the same connected region are grouped together to obtain candidate target regions. Then, based on known marker features such as area, aspect ratio, and grayscale distribution, the most likely marker region is selected from the candidate regions. A minimal rectangular box is drawn around this region, which becomes the desired virtual rectangular box.
[0112] 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.
[0113] Specifically, the pixel locations of the four vertices of the rectangle are extracted in the image. Based on these points, the coordinates of the rectangle's center, dimensions, and rotation angle are calculated. 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.
[0114] 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 in combination with the parameters of the visual acquisition device.
[0115] Specifically, if the confidence level is above a threshold, indicating high-quality marker recognition, the virtual rectangle's pixel coordinates, dimensions, and angles can be combined with the internal and external parameters of the visual acquisition device, using pixel backprojection and 3D reconstruction techniques to calculate the target marker's actual position and orientation in real 3D space. Because the relative positional relationship between the marker and the workpiece is known, the workpiece's specific position and angle on the cutting plane can be further inferred.
[0116] In one embodiment, referring to Figure 6 In step S50, after cutting the packaging box blank with the target cutting tool, the method further includes the following steps:
[0117] S60: Determine whether the packaging box blank is a deformable material.
[0118] In this embodiment, the easily deformable material refers to a material that is easily deformed during the cutting process, such as plastic, foam, etc.
[0119] Specifically, based on the known material information of the blank, a material manual or database is consulted to determine whether the material belongs to the easily deformable category.
[0120] S70: If yes, obtain material attribute parameters of the packaging box blank.
[0121] Specifically, for a blank of known material, these parameter values can be directly retrieved from a material data manual or an online database.
[0122] If not, continue to perform the cutting action.
[0123] S80. Predicting material deformation during the cutting process based on material property parameters.
[0124] In this embodiment, the present application pre-establishes a finite element model of the blank, assigns the obtained material property parameters to the model, and applies the same processing conditions as the actual cutting in the model. The deformation field of the blank during the cutting process is obtained through numerical solution to predict the deformation result.
[0125] S90. Based on the predicted material deformation result, dynamically adjust the corrected cutting path.
[0126] Specifically, the predicted deformation field is projected onto the cutting plane as a displacement field, representing the actual positional offset of each cutting path point after the material has deformed. These displacements are then used as correction values to compensate for the original corrected path point coordinates, generating a new, dynamically adjusted cutting path that guides the tool's actual motion trajectory.
[0127] 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 this application.
[0128] 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 will be described below in combination with the above-mentioned CNC cutting method for producing packaging boxes.
[0129] Reference Figure 7 , a CNC cutting system for producing packaging boxes, comprising:
[0130] The initial cutting path generation module is used to read the structure and board design files of the packaging box and automatically generate the initial cutting path according to the design files;
[0131] 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;
[0132] A cutting path correction module is used to calculate the deviation data of the packaging box blank based on the position information and angle information, and to correct the initial cutting path based on the deviation data to obtain a corrected cutting path;
[0133] A cutting tool determination module is used to determine a target cutting tool according to the material parameters and thickness parameters of the packaging box blank;
[0134] The cutting control module is used to cut the packaging box blank using a target cutting tool according to the corrected cutting path.
[0135] Optionally, the initial cutting path generation module includes:
[0136] 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;
[0137] A cutting information generation unit is used to generate the required cutting lines and cutting sequences based on the two-dimensional board structure graphics and the preset cutting process requirements;
[0138] 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;
[0139] The initial cutting path generating unit outputs the cutting path point array as the initial cutting path.
[0140] Optionally, the blank information acquisition module includes:
[0141] A target image acquisition unit, configured to acquire target images of the packaging box blank captured from different viewing angles by a plurality of visual acquisition devices with calibrated parameters;
[0142] a target mark recognition unit, configured to recognize a target mark pre-deployed on the packaging box blank in the acquired target image;
[0143] 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 the parameters of the visual acquisition device.
[0144] Optionally, the target marker recognition unit includes:
[0145] A background image acquisition subunit, used to acquire a background image of the packaging box blank;
[0146] The target region extraction subunit is used to perform background removal processing on the target image based on the background image and extract the target region;
[0147] The target marker recognition subunit is used to perform target marker recognition in the extracted target area and obtain the target marker.
[0148] Optionally, the blank information acquisition unit includes:
[0149] 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;
[0150] An information calculation subunit, configured to calculate pixel coordinates, size, angle information, and confidence information of the virtual rectangular box in the target image based on the selected virtual rectangular box;
[0151] The blank information acquisition subunit is used to determine whether the confidence information is higher than a preset threshold. If it is, 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.
[0152] Optionally, the system further includes:
[0153] A blank judgment module is used to judge whether the packaging box blank is a deformable material;
[0154] A material attribute parameter acquisition module is used to obtain the material attribute parameters of the packaging box blank if yes;
[0155] Material deformation prediction module, used to predict material deformation during cutting based on material property parameters;
[0156] The route dynamic adjustment module is used to dynamically adjust the corrected cutting route based on the predicted material deformation results.
[0157] 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 8 As shown. The electronic device includes a processor, a memory, and a network interface connected via a system bus. 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 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 via a network connection. When the computer program is executed by the processor, a CNC cutting method for producing packaging boxes is implemented.
[0158] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution 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 component arrangement.
[0159] In one embodiment, an electronic device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0160] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The above-described computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0161] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection 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 the initial cutting path according to the design files; Identifying the packaging box blank to be cut and obtaining 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 the 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 based on the design files. The specific steps include the following: 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 graphic and in combination with the preset cutting process requirements, the required cutting lines and cutting sequences are generated; Calculating and generating an actual cutting path point array based on 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 captured from different viewing angles by multiple visual acquisition 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: Determining 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 specifically includes the following steps: In the target image, obtaining a pixel area of the target mark, and selecting the pixel area of the target mark with a virtual rectangular frame; Based on the selected virtual rectangular box, calculating pixel coordinates, size, angle information and confidence information of the virtual rectangular box 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 cutting the packaging box blank with the target cutting tool, the method further includes the following steps: Determining whether the packaging box blank is a deformable material; If yes, then obtaining the material property parameters of the packaging box blank; predicting material deformation during the cutting process based on the material property parameters; The corrected cutting path is dynamically adjusted based on the predicted material deformation result.
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 is used to identify the packaging box blank to be cut and obtain position information and angle information of the packaging box blank; a cutting path correction module, configured to calculate deviation data of the packaging box blank according to the position information and the angle information, and correct the initial cutting path according to the deviation data to obtain a corrected cutting path; A cutting tool determination module, configured to determine a target cutting tool according to material parameters and thickness parameters of the packaging box blank; A cutting control module is configured 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 structural graphic determining unit, configured 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, configured to generate a required cutting route and cutting sequence according to the two-dimensional board surface structure graphic and in combination with preset cutting process requirements; A cutting path point array generating unit, configured to calculate and generate an actual cutting path point array according to the cutting route, 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 invention 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 according to 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 according to 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