Laser processing cutting method, device and equipment and storage medium thereof

By analyzing and fitting algorithms for target data files in laser cutting technology, and combining straight line and curve interpolation methods, the problem of large accuracy fluctuations in complex parts processing is solved, and a high-precision laser cutting effect is achieved.

CN120502877APending Publication Date: 2025-08-19SHENZHEN HANS INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510638327.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

When existing laser cutting technology deals with complex parts, the interpolation method has large fluctuations in accuracy and cannot meet the actual processing requirements, especially the processing accuracy of non-spline curve trajectories.

Method used

By obtaining the target data file, analyzing the reference coordinate points set of the expected cutting trajectory, using the fitting algorithm to generate the cutting function, and selecting a straight line or curve interpolation method for interpolation points based on the fitting accuracy requirements, and finally generating a cutting point set for laser processing.

Benefits of technology

It improves the cutting quality and accuracy of laser cutting, ensures that the machining accuracy of complex parts meets the requirements, and enhances the versatility of the CNC system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120502877A_ABST
    Figure CN120502877A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of automatic control, is applied to a numerical control machine tool laser cutting control calculation scene, and relates to a laser machining cutting method, device and equipment and a storage medium thereof. Analyzing the target data file to obtain a reference coordinate point set corresponding to the expected cutting track; performing cutting function fitting; judging whether the cutting function meets a preset fitting precision requirement or not; if the preset fitting precision requirement is not met, directly adopting a linear interpolation mode to supplement interpolation points; if the preset fitting precision requirement is met, interpolation points are supplemented in a curve interpolation mode; and obtaining all coordinate points after the interpolation points are supplemented so as to cut out the expected cutting track. The cutting function is obtained by fitting the reference coordinate point set corresponding to the expected cutting track, and the fitting precision requirement is judged, so that the cutting quality and precision during laser cutting process treatment are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated control technology, and is applied to the optimization scenario of cutting combination methods before machine tools cut and process profiles, and relates to a laser processing and cutting method, device, equipment, and storage medium thereof. Background Art

[0002] In the field of laser cutting, the more complex the part, the more small line segments are needed to approximate the original contour, which can easily cause a sharp increase in the data storage, transmission space and calculation amount of the CNC system. At present, if the contour of the part is fitted with a straight line, the interpolation processing can only be performed using linear interpolation for actual cutting; if the contour of the part is fitted with an arc, the interpolation processing can only be performed using circular arc interpolation for actual cutting; similarly, if the contour of the part is fitted with an elliptical arc, the interpolation processing can only be performed using elliptical arc interpolation for actual cutting, which greatly limits the versatility of the CNC system.

[0003] Current CNC systems already feature linear interpolation, circular interpolation, and various spline interpolation functions to enable machining of complex curves and surfaces. However, in actual laser cutting, part contours are often non-spline, such as elliptical arcs. Directly using linear or circular interpolation for these curved trajectories can result in significant accuracy fluctuations, and the machining accuracy may not meet actual production requirements. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to propose a laser processing and cutting method, device, equipment and storage medium thereof to solve the problem that when performing laser cutting processing, the existing interpolation method has large fluctuations in accuracy and the processing accuracy cannot meet the actual generation requirements.

[0005] In a first aspect, the embodiments of the present application provide a laser processing and cutting method, which adopts the following technical solution:

[0006] A laser processing and cutting method comprises the following steps:

[0007] Acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine;

[0008] Parsing the target data file to obtain a set of reference coordinate points corresponding to an expected cutting trajectory, wherein the expected cutting trajectory includes a curved trajectory;

[0009] Using a preset fitting algorithm, a cutting function is fitted to the reference coordinate point set to obtain a fitted cutting function;

[0010] According to a preset judgment condition, determining whether the cutting function meets a preset fitting accuracy requirement;

[0011] If the cutting function does not meet the preset fitting accuracy requirements, the interpolation points are directly added using linear interpolation;

[0012] If the cutting function meets the preset fitting accuracy requirement, the interpolation points are inserted using a curve interpolation method, wherein the step of inserting the interpolation points using the curve interpolation method includes: inserting the interpolation points point by point using a curve interpolation method that approximates an elliptical arc using a third-order Bezier approximation;

[0013] Get all the coordinate points after the interpolation points are filled in and generate a set of cutting points;

[0014] Laser cutting is performed according to the cutting point set to cut out the desired cutting track.

[0015] In a second aspect, the present application also provides a laser processing and cutting device, which adopts the following technical solution:

[0016] A laser processing and cutting device, comprising:

[0017] A target data file acquisition module is used to acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine;

[0018] a target data file parsing module, configured to parse the target data file to obtain a set of reference coordinate points corresponding to an expected cutting trajectory, wherein the expected cutting trajectory includes a curved trajectory;

[0019] A cutting function fitting module is used to fit the cutting function to the reference coordinate point set using a preset fitting algorithm to obtain a fitted cutting function;

[0020] A fitting accuracy judgment module, used to judge whether the cutting function meets the preset fitting accuracy requirement according to the preset judgment condition;

[0021] A first interpolation processing module is used to directly use linear interpolation to fill in interpolation points if the cutting function does not meet the preset fitting accuracy requirements;

[0022] A second interpolation processing module is configured to insert interpolation points using a curve interpolation method if the cutting function meets a preset fitting accuracy requirement, wherein the step of inserting interpolation points using the curve interpolation method includes: inserting interpolation points point by point using a curve interpolation method that approximates an elliptical arc using a third-order Bezier approximation;

[0023] The cutting point set generation module is used to obtain all coordinate points after the interpolation points are added and generate a cutting point set;

[0024] The cutting processing module is used to perform laser processing and cutting according to the cutting point set to cut out the desired cutting track.

[0025] In a third aspect, an embodiment of the present application further provides a computer device that adopts the following technical solution:

[0026] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned laser processing and cutting method when executing the computer-readable instructions.

[0027] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0028] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the laser processing and cutting method described above.

[0029] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0030] The laser processing and cutting method described in the embodiment of the present application obtains a target data file; parses the target data file to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; uses a preset fitting algorithm to fit a cutting function to the reference coordinate point set to obtain a fitted cutting function; judges whether the cutting function meets the preset fitting accuracy requirements based on preset judgment conditions; if the cutting function does not meet the preset fitting accuracy requirements, interpolation points are directly inserted using a linear interpolation method; if the cutting function meets the preset fitting accuracy requirements, interpolation points are inserted using a curve interpolation method; obtains all coordinate points after the interpolation points are inserted to generate a cutting point set; performs laser processing and cutting based on the cutting point set to cut the desired cutting trajectory. The cutting function is obtained by fitting the reference coordinate point set corresponding to the desired cutting trajectory, and the fitting accuracy requirements are judged to ensure the cutting quality and accuracy during the laser cutting process. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the solutions in this application, a brief introduction will be given below to the drawings required for use in the description of the embodiments of this application. Obviously, the drawings described below are some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0032] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0033] Figure 2 is a flow chart of an embodiment of a laser processing and cutting method according to the present application;

[0034] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 203 is shown;

[0035] Figure 4 yes Figure 3 A flowchart of a specific embodiment of step 302 is shown;

[0036] Figure 5 yes Figure 3 A flowchart of a specific embodiment of step 303 is shown;

[0037] Figure 6 yes Figure 3 A flowchart of a specific embodiment of judging the fitting accuracy of the curve function corresponding to each curved trajectory segment after step 303 is shown;

[0038] Figure 7 yes Figure 2 A flowchart of a specific embodiment of step 204 is shown;

[0039] Figure 8 This is a schematic structural diagram of an embodiment of a laser processing and cutting device according to the present application;

[0040] Figure 9 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0042] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0044] like Figure 1 As shown, system architecture 100 may include a terminal device 101, a network 102, and a server 103. Terminal device 101 may be a laptop computer 1011, a tablet computer 1012, or a mobile phone 1013. Network 102 is a medium for providing a communication link between terminal device 101 and server 103. Network 102 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0045] The user can use the terminal device 101 to interact with the server 103 via the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0046] The terminal device 101 can be various electronic devices with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer and a desktop computer, etc.

[0047] The server 103 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal device 101 .

[0048] It should be noted that the laser processing and cutting method provided in the embodiment of the present application is generally executed by a server, and accordingly, a laser processing and cutting device is generally set in the server.

[0049] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0050] Continue to refer Figure 2 , shows a flow chart of an embodiment of a laser processing and cutting method according to the present application. The laser processing and cutting method comprises the following steps:

[0051] Step 201: Acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine.

[0052] Specifically, the target data file is acquired by the algorithm processing component that performs cutting trajectory calculation. The acquisition method includes active acquisition and reception acquisition. The difference is that, in the active acquisition, the algorithm processing component sends an active acquisition or reading instruction to the cache component of the target data file, thereby actively reading the target data file; and in the reception acquisition, the cache component of the target data file actively sends the target data file to the algorithm processing component according to the sending instruction, thereby enabling the algorithm processing component to obtain the target data file in a reception manner.

[0053] By obtaining the target data file, that is, the NC file of the CNC machine tool or laser cutting machine, the preliminary control points for laser cutting can be subsequently parsed.

[0054] Step 202: parsing the target data file to obtain a set of reference coordinate points corresponding to an expected cutting trajectory, wherein the expected cutting trajectory includes a curved trajectory.

[0055] In this embodiment, the reference coordinate point set corresponding to the expected cutting trajectory refers to the point value coordinate set composed of the preliminary cutting points contained in the target data file. Generally, it includes at least the cutting starting point coordinates in the cutting trajectory, the inflection point coordinates in the cutting, and the cutting end coordinates.

[0056] Specifically, assuming that the expected cutting trajectory contains four cutting lines in sequence, namely the first straight cutting trajectory, the second straight cutting trajectory, the first curved cutting trajectory and the second curved cutting trajectory, then the reference coordinate point set mentioned above includes the cutting start point coordinate and the cutting end coordinate of the first straight cutting trajectory. At this time, the cutting end coordinate of the first straight cutting trajectory is both an inflection point coordinate in the expected cutting trajectory and the cutting start point coordinate of the second straight cutting trajectory. The reference coordinate point set also includes the cutting end coordinate of the second straight cutting trajectory. At this time, the cutting end coordinate of the second straight cutting trajectory is both an inflection point coordinate in the expected cutting trajectory and the cutting start point coordinate of the first curved cutting trajectory. The reference coordinate point set also includes the cutting end coordinate of the first curved cutting trajectory. At this time, the cutting end coordinate of the first curved cutting trajectory is both an inflection point coordinate in the expected cutting trajectory and the cutting start point coordinate of the second curved cutting trajectory. The reference coordinate point set also includes the cutting end coordinate of the second curved cutting trajectory. At this time, the cutting end coordinate of the second curved cutting trajectory is also the cutting end coordinate of the expected cutting trajectory.

[0057] By parsing the target data file, a set of reference coordinate points corresponding to the desired cutting trajectory is obtained, so that subsequent calculations can be performed on the basis of the preliminary control points of laser cutting, and the control points can be supplemented, converted, and other operations can be performed to generate more precise cutting control parameters that the laser cutting control component relies on, thereby ensuring the cutting accuracy and controllability of laser cutting.

[0058] Step 203: Using a preset fitting algorithm, a cutting function is fitted to the reference coordinate point set to obtain a fitted cutting function.

[0059] In this embodiment, a preset fitting algorithm is used to fit the cutting function to the reference coordinate point set to obtain the fitted cutting function, which is mainly divided into two parts of processing, namely, function fitting for each segment of curved cutting trajectory and function fitting for each segment of non-curved (straight) cutting trajectory. Afterwards, the fitting results corresponding to each segment of cutting trajectory are sorted out to obtain the fitting functions of each segment of the trajectory contained in the entire expected cutting trajectory.

[0060] By adopting a preset fitting algorithm, the preset fitting algorithm here is essentially to use the least squares method to perform function fitting, and fit the cutting function to the reference coordinate point set to obtain the fitted cutting function, so as to facilitate the subsequent addition and generation of cutting control points for each cutting trajectory according to the trajectory fitting functions of each segment contained in the entire expected cutting trajectory, thereby ensuring the control accuracy of the final laser cutting process.

[0061] Step 204: judging whether the cutting function meets the preset fitting accuracy requirement according to the preset judgment condition.

[0062] In this embodiment, the judgment of whether the cutting function meets the preset fitting accuracy requirements based on the preset judgment conditions is essentially to adopt a comprehensive judgment method to judge whether the fitting functions corresponding to each cutting trajectory meet the preset fitting accuracy requirements. If the fitting functions corresponding to each cutting trajectory meet the preset fitting accuracy requirements, then the cutting function meets the preset fitting accuracy requirements.

[0063] Specifically, when judging the fitting accuracy of the fitting function corresponding to each segment of the non-curved cutting trajectory, the judgment method is to calculate the proportion of all coordinate points contained in the segment of the non-curved cutting trajectory that are on the corresponding fitting function, and based on the proportion of the number, determine whether the fitting function corresponding to each segment of the non-curved cutting trajectory meets the preset fitting accuracy requirements; and when judging the fitting accuracy of the fitting function corresponding to each segment of the curved cutting trajectory, the calculation and judgment are specifically combined with the focus and major axis information of the ellipse corresponding to the curve.

[0064] By judging whether the cutting function meets the preset fitting accuracy requirements according to the preset judgment conditions, it is ensured that the trajectory segments that do not meet the preset fitting accuracy requirements are discovered in time, so that timely adjustments can be made to achieve more precise laser cutting control and cutting processing.

[0065] Step 205: If the cutting function does not meet the preset fitting accuracy requirement, the interpolation points are directly added using a linear interpolation method.

[0066] In this embodiment, if the cutting function does not meet the preset fitting accuracy requirement, it means that there is a large gap between the current coordinate point and the cutting control point required for actual cutting. Therefore, the interpolation point is directly added using linear interpolation.

[0067] Specifically, the linear interpolation method can be understood as essentially obtaining the current coordinate point and the coordinate value of the cutting control point required for actual cutting, calculating the middle point between the two, and adding the middle point to the previous coordinate point set. This process is repeated to update the middle point to the current coordinate point, and then the fitting accuracy requirement is judged. Multiple interpolations can be performed until the cutting function meets the preset fitting accuracy requirement, and no linear interpolation is performed, thereby realizing the addition and expansion of the cutting control point to ensure the precision and accuracy of subsequent laser cutting control.

[0068] Step 206: If the cutting function meets the preset fitting accuracy requirement, the interpolation points are added by using a curve interpolation method, wherein the step of adding the interpolation points by using a curve interpolation method includes: adding the interpolation points point by point by using a curve interpolation method of a third-order Bezier approximation elliptical arc.

[0069] In this embodiment, if the cutting function meets the preset fitting accuracy requirements, it means that the current coordinate point is close to the cutting control point required for actual cutting, and the fitting accuracy requirements have been basically met. To achieve more precise cutting, when interpolating and expanding the coordinate points, a curve interpolation method is used to insert interpolation points point by point, making subtle adjustments and supplements to the coordinate points, avoiding the introduction of relatively alienated points during coordinate point interpolation, thereby ensuring the accuracy of the actual laser cutting process.

[0070] Specifically, the curve interpolation method of the third-order Bezier approximation to the elliptical arc, that is, the curve interpolation method of the third-order Bezier approximation to the elliptical arc, assumes that the current coordinate point and the cutting control point required for actual cutting have basically met the fitting accuracy requirements, then it means that the gap between the current coordinate point and the cutting control point required for actual cutting is relatively small. Combined with the curve (spline) interpolation method, it is a point-by-point interpolation from one point to another. That is, during interpolation, between the current coordinate point and the cutting control point required for actual cutting, a point close to the current coordinate point is added as an interpolation point using the curve interpolation method of the third-order Bezier approximation to the elliptical arc. This can not only ensure that the interpolation point meets the fitting accuracy requirements, but also avoid over-interpolation.

[0071] Step 207: Obtain all coordinate points after the interpolation points are inserted, and generate a cutting point set.

[0072] In this embodiment, the interpolation points, namely the trajectory points, correspondingly, all the coordinate points after the interpolation points are obtained are used to generate a cutting point set, namely, a trajectory point set for actual laser cutting.

[0073] Step 208 : performing laser cutting according to the cutting point set to cut out the desired cutting track.

[0074] In this embodiment, a target data file is obtained; the target data file is parsed to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; a preset fitting algorithm is used to fit a cutting function to the reference coordinate point set to obtain a fitted cutting function; based on a preset judgment condition, it is determined whether the cutting function meets the preset fitting accuracy requirement; if the cutting function does not meet the preset fitting accuracy requirement, interpolation points are directly inserted using a linear interpolation method; if the cutting function meets the preset fitting accuracy requirement, interpolation points are inserted using a curve interpolation method; all coordinate points after the interpolation points are inserted are obtained to generate a cutting point set; laser processing and cutting are performed based on the cutting point set to cut the desired cutting trajectory. The cutting function is obtained by fitting the reference coordinate point set corresponding to the desired cutting trajectory, and the fitting accuracy requirement is judged to ensure the cutting quality and accuracy during the laser cutting process.

[0075] In this embodiment, the step of obtaining the target data file specifically includes: reading the NC file from a target CAM (Computer Aided Manufacturing) compiler according to a preset read instruction, wherein the NC file records a set of reference coordinate points corresponding to the desired cutting trajectory, and the reference coordinate point set includes partial data of a two-dimensional coordinate point set corresponding to the curved trajectory and partial data of a two-dimensional coordinate point set corresponding to a non-curved trajectory. The target CAM compiler is, for example, a CAM compiler in a laser cutting NC machine tool or a laser cutting machine.

[0076] Continue to refer Figure 3 , Figure 3 yes Figure 2 The flowchart of a specific embodiment of step 203 shown includes the following steps:

[0077] Step 301, filtering out partial data of a two-dimensional coordinate point set corresponding to a curved trajectory and partial data of a two-dimensional coordinate point set corresponding to a non-curved trajectory in the reference coordinate point set;

[0078] In this embodiment, first, according to the actual cutting requirements of each segment in the desired cutting trajectory, the partial data of the two-dimensional coordinate point set corresponding to the curved trajectory and the partial data of the two-dimensional coordinate point set corresponding to the non-curved trajectory are filtered out from the reference coordinate point set, and then, each segment of the curved cutting trajectory and each segment of the non-curved (straight) cutting trajectory are respectively fitted with a function.

[0079] Step 302: Fitting a linear equation to the partial data of the two-dimensional coordinate point set corresponding to the non-curved trajectory according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each trajectory segment to obtain a linear function corresponding to each non-curved trajectory segment.

[0080] Specifically, for each non-curved (straight line) cutting trajectory, when the cutting starting point and the cutting end point are known, or when a bunch of cutting points are known, the least squares fitting method can be used, combined with a linear equation, that is, y=ax+b, to obtain the slope value a and the constant value b of the straight line. Therefore, when the slope value a and the constant value b are known, the specific non-curved (straight line) cutting trajectory representation function is obtained, that is, the linear function corresponding to each non-curved trajectory is a straight line fitting function.

[0081] Step 303: For the partial data of the two-dimensional coordinate point set corresponding to the curved trajectory, a curve equation is fitted according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each segment of the trajectory, to obtain a curve function corresponding to each segment of the curved trajectory;

[0082] Specifically, for each curved (arc) cutting trajectory, when the cutting start point and the cutting end point are known, or when a bunch of cutting points are known, the least squares fitting method can be used in combination with the ellipse equation, that is, f(x,y)=Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0, and the coefficient values A, B, C, D, E and F of the ellipse in which each curved cutting trajectory is located are obtained. Then, when the coefficient values of the above ellipse are known, the ellipse equation corresponding to each curved cutting trajectory is constructed as the corresponding curve function.

[0083] Step 304 , based on the order of the partial data of the two-dimensional coordinate point set corresponding to each non-curved trajectory segment and each curved trajectory segment in the reference coordinate point set, perform multi-segment function connection processing on all the linear functions and all the curve functions to obtain the cutting function.

[0084] Specifically, based on the order of the partial data of the two-dimensional coordinate point set corresponding to each non-curved trajectory segment and each curved trajectory segment in the reference coordinate point set, all linear functions and all curvilinear functions are subjected to multi-segment function connection processing. That is, the fitting results corresponding to each cutting trajectory segment are sorted to obtain the fitting functions of each trajectory segment included in the entire desired cutting trajectory. The fitting functions of each trajectory segment included in the entire desired cutting trajectory are used as the cutting function.

[0085] Continue to refer Figure 4 , Figure 4 yes Figure 3 The flowchart of a specific embodiment of step 302 shown includes the following steps:

[0086] Step 401, identifying a set of two-dimensional coordinate points corresponding to the current non-curved trajectory;

[0087] Step 402: Using the least squares method to perform linear fitting on the two-dimensional coordinate point set, and obtaining the slope value corresponding to the current non-curved trajectory;

[0088] Step 403: arbitrarily select two points from the two-dimensional coordinate point set as the starting point and the ending point, and calculate the coordinates of the middle point based on the coordinates of the starting point, the coordinates of the ending point, and the slope value;

[0089] Step 404: Add the coordinates of the intermediate point to the two-dimensional coordinate point set to obtain an updated two-dimensional coordinate point set;

[0090] Step 405, iteratively executing steps 403 to 404 until the number of coordinate points in the two-dimensional coordinate point set reaches a preset value or until the number of iterations reaches a preset threshold, thereby obtaining a final supplemented two-dimensional coordinate point set;

[0091] By continuously supplementing and writing the coordinates of the intermediate points into a set, the amplification processing of the cutting coordinate points given for each non-curved trajectory is achieved.

[0092] Step 406 , re-performing linear fitting based on the final supplemented two-dimensional coordinate point set to obtain a linear function corresponding to the current segment of the non-curved trajectory as the linear fitting function corresponding to the current segment of the non-curved trajectory.

[0093] Specifically, the linear fitting is performed again with the final supplemented two-dimensional coordinate point set, which realizes the update and more precise adjustment of the preliminary linear fitting function, ensuring that a more precise coordinate point set or trajectory control function is used for cutting control during subsequent laser cutting processing.

[0094] Continue to refer Figure 5 , Figure 5 yes Figure 3 The flowchart of a specific embodiment of step 303 shown includes the following steps:

[0095] Step 501, identifying a set of two-dimensional coordinate points corresponding to the current curved trajectory;

[0096] Step 502: performing curve fitting on the two-dimensional coordinate point set using the least squares method, and obtaining the elliptical arc coefficient value corresponding to the current segment of the curved trajectory;

[0097] Specifically, the least squares fitting method is used in combination with the ellipse equation, that is, f(x,y)=Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0, and obtain the coefficient values A, B, C, D, E and F of the ellipse where each curved cutting trajectory is located.

[0098] Step 503, calculating the coordinates of two foci of the ellipse where the current curved track segment is located according to the elliptical arc coefficient value and a preset ellipse focus calculation formula;

[0099] Specifically, when any two coordinate points and elliptic coefficient values A, B, C, D, E, and F are known in the curve, the following conversion can be performed according to the conversion law related to the elliptic formula to obtain the following conversion formula:

[0100]

[0101] Among them, A, B, C, D, E and F in the above conversion formula are known elliptic coefficient values, x c and y c Represents the coordinate value of the center point of the ellipse, a represents the major axis of the ellipse, b represents the minor axis of the ellipse, θ r Represents the deflection angle of the major axis, thereby obtaining the major axis value a, minor axis value b, coordinate value of the ellipse center point and the deflection angle of the major axis;

[0102] Subsequently, the two focal coordinates are calculated by combining the relevant conversion laws of the ellipse formula, namely the ellipse focus calculation formula:

[0103]

[0104] Among them, in the above ellipse focus calculation formula, x c and y c Represents the coordinate value of the center point of the ellipse, a represents the major axis of the ellipse, b represents the minor axis of the ellipse, θ r Indicates the deflection angle of the major axis, F1(x F1 ,y F1 ) and F2(x F2 ,y F2 ) represent the two foci of the ellipse.

[0105] Step 504: fitting a curve fitting function corresponding to the current segment of the curved trajectory based on the elliptical arc coefficient value;

[0106] Specifically, when the starting point (x1, y1) and the ending point (x2, y2) of each curved cutting trajectory are known, as well as the ellipse coefficients A, B, C, D, E and F of the ellipse in which each curved cutting trajectory is located, according to the general expression of the ellipse: f(x, y) = Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0, perform functional relationship fitting between x and y, and limit the value of x to be between x1 and x2, and the value of y to be between y1 and y2.

[0107] Step 505 : Determine the trajectory generation direction corresponding to the motion trajectory generation using the curve fitting function according to the preset angle calculation formula and angle comparison rule, wherein the trajectory generation direction includes two situations: a clockwise generation direction and a counterclockwise generation direction.

[0108] Specifically, the preset angle calculation formula is:

[0109]

[0110] Among them, in the preset angle calculation formula, P c represents the center point of the ellipse, P s and Pe Indicates two points on the elliptical arc (current segment of the curved cutting trajectory). In extreme cases, P s As the first cutting endpoint (leftmost cutting point) of the current segment of the curved cutting trajectory, set P e As the second cutting endpoint (rightmost cutting point) of the current segment of the curved cutting trajectory, P c P s Indicates the first cutting endpoint P s and the ellipse center point P c The connecting line segment, P c P e Indicates the second cutting endpoint P e and the ellipse center point P c The connecting line segment, P c F1 represents the center point P of the ellipse c The line segment connecting the ellipse focus F1, P c P s ·P c F1 represents line segment P c P s and line segment P c The dot product of F1, P c P e ·P c F1 represents line segment P c P e and line segment P c The dot product of F1, ||P c P s ||、||P c P e || and ||P c F1|| respectively represent the modulus length of the corresponding line segment, θ s Represents line segment P c P s and line segment P c The angle value of F1, θ e Represents line segment P c P e and line segment P c The angle value of F1.

[0111] In combination with the angle comparison rule, if θ s <θ e , the cutting trajectory is along the second cutting end point P e Towards the first cutting end point P s Change, that is, counterclockwise change; if θ s >θ e , the cutting trajectory is along the first cutting end point P s Towards the second cutting end point P e Change, that is, change clockwise.

[0112] By performing curve function fitting on each curved (arc-shaped) cutting trajectory and trajectory change prediction in step 505 , not only the curve function corresponding to each curved trajectory is obtained, but also the trajectory change direction between the cutting points is obtained.

[0113] Continue to refer Figure 6 , in some embodiments of the present application, Figure 6 yes Figure 3 The flowchart of a specific embodiment of judging the fitting accuracy of the curve function corresponding to each curved trajectory segment after step 303 includes the following steps:

[0114] Step 601: Obtain all coordinate points in a two-dimensional coordinate point set corresponding to the current segment of the curved trajectory;

[0115] Step 602, judging the conditions based on the preset accuracy:

[0116] ε p =||p i F1+p i F2-2a||≤ε t ,

[0117] Identify whether the current coordinate point meets the preset curve function fitting accuracy value, where ε p represents the fitting error value, ε t represents the allowable fitting error threshold, ||p i F1+p i F2-2a|| represents the calculation method of fitting error value, specifically, p i represents the coordinate position information of the current coordinate point, i represents the number information of the current coordinate point in the two-dimensional coordinate point set, F1 and F2 represent the two focal coordinates of the ellipse where the current segment of the curved trajectory is located, and p i F1 and p i F2 represents the distance between the current coordinate point and the two focal coordinates, and a represents the major axis value of the ellipse where the current segment of the curved trajectory is located;

[0118] Specifically, combining the two focal coordinates F1 and F2 of the ellipse where the current segment of the curved trajectory is located, and the major axis value a of the ellipse, calculate whether all the coordinate points in the two-dimensional coordinate point set corresponding to the current segment of the curved trajectory fall on the fitted curve function segment. In an ideal state, if

[0119] ||p i F1+p iIf the value of F2-2a|| is 0, the current coordinate point just falls on the fitted curve function segment. Otherwise, there is a certain error value, that is, the current coordinate point does not just fall on the fitted curve function segment. Obviously, ||p i F1+p i The value of F2-2a||ε p The closer it is to 0, the smaller the error value is.

[0120] Step 603: Count the number of coordinate points that do not meet the curve function fitting accuracy value, and calculate the proportion of the number of coordinate points in the total number of coordinate points;

[0121] Step 604: If the number ratio does not exceed the preset number ratio threshold, the curve function meets the preset fitting accuracy requirement;

[0122] Step 605: If the quantity ratio exceeds a preset quantity ratio threshold, the curve function does not meet a preset fitting accuracy requirement.

[0123] By using the two focal coordinates F1 and F2 of the ellipse where the current segment of the curved trajectory is located, as well as the major axis value a of the ellipse, it is determined whether the fitting curve function generated for the current segment of the curved trajectory meets the preset fitting accuracy requirements, so as to ensure that refitting is performed in time when it does not meet the fitting accuracy requirements, and also ensure that the curve functions fitted for all curved trajectories meet the corresponding fitting accuracy requirements, so as to achieve more precise laser cutting.

[0124] Continue to refer Figure 7 , Figure 7 yes Figure 2 The flowchart of a specific embodiment of step 204 shown includes the following steps:

[0125] Step 701, identifying whether the linear functions corresponding to each non-curved trajectory segment meet the preset fitting accuracy requirements; and

[0126] Step 702: Identify whether the curve functions corresponding to each curved trajectory segment meet the preset fitting accuracy requirements;

[0127] Step 703: If the linear functions corresponding to all non-curved trajectories meet the preset fitting accuracy requirements, and the curve functions corresponding to all curved trajectories meet the preset fitting accuracy requirements, then the cutting function meets the preset fitting accuracy requirements;

[0128] Step 704: If the linear function corresponding to at least any non-curved trajectory does not meet the preset fitting accuracy requirement, or if the curve function corresponding to at least any curved trajectory does not meet the preset fitting accuracy requirement, then the cutting function does not meet the preset fitting accuracy requirement.

[0129] Specifically, step 204 is to perform a fitting accuracy requirement satisfaction screening on the fitting function corresponding to each cutting segment in the cutting function. If the fitting functions corresponding to all cutting segments meet the fitting accuracy requirements, the overall cutting function meets the preset fitting accuracy requirements, ensuring that in the actual laser cutting operation, for the complex and changeable cutting trajectory, each cutting process maintains the corresponding accuracy requirements, thereby improving the process quality.

[0130] In this embodiment, a target data file is obtained; the target data file is parsed to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; a preset fitting algorithm is used to fit a cutting function to the reference coordinate point set to obtain a fitted cutting function; based on a preset judgment condition, it is determined whether the cutting function meets the preset fitting accuracy requirement; if the cutting function does not meet the preset fitting accuracy requirement, interpolation points are directly inserted using a linear interpolation method; if the cutting function meets the preset fitting accuracy requirement, interpolation points are inserted using a curve interpolation method; all coordinate points after the interpolation points are inserted are obtained to generate a cutting point set; laser processing and cutting are performed based on the cutting point set to cut the desired cutting trajectory. The cutting function is obtained by fitting the reference coordinate point set corresponding to the desired cutting trajectory, and the fitting accuracy requirement is judged to ensure the cutting quality and accuracy during the laser cutting process.

[0131] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to achieve optimal results.

[0132] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, automated control, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0133] Further references Figure 8 , as a response to the above Figure 2In order to realize the method shown in the figure, the present application provides an embodiment of a laser processing and cutting device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0134] like Figure 8 As shown, the laser processing and cutting device 800 described in this embodiment includes: a target data file acquisition module 801, a target data file parsing module 802, a cutting function fitting module 803, a fitting accuracy judgment module 804, a first interpolation processing module 805, a second interpolation processing module 806, a cutting point set generation module 807 and a cutting processing module 808. Among them:

[0135] A target data file acquisition module 801 is used to acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine;

[0136] A target data file parsing module 802 is configured to parse the target data file to obtain a set of reference coordinate points corresponding to a desired cutting trajectory, wherein the desired cutting trajectory includes a curved trajectory;

[0137] A cutting function fitting module 803 is configured to fit a cutting function to the reference coordinate point set using a preset fitting algorithm to obtain a fitted cutting function;

[0138] The fitting accuracy judgment module 804 is used to judge whether the cutting function meets the preset fitting accuracy requirement according to the preset judgment condition;

[0139] The first interpolation processing module 805 is used to directly use linear interpolation to fill in interpolation points if the cutting function does not meet the preset fitting accuracy requirement;

[0140] A second interpolation processing module 806 is configured to insert interpolation points using a curve interpolation method if the cutting function meets a preset fitting accuracy requirement, wherein the step of inserting interpolation points using a curve interpolation method comprising: inserting interpolation points point by point using a curve interpolation method that approximates an elliptical arc using a third-order Bezier approximation;

[0141] The cutting point set generation module 807 is used to obtain all coordinate points after the interpolation points are added and generate a cutting point set;

[0142] The cutting processing module 808 is used to perform laser processing and cutting according to the cutting point set to cut out the desired cutting trajectory.

[0143] The present application obtains a target data file; parses the target data file to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; uses a preset fitting algorithm to fit a cutting function to the reference coordinate point set to obtain a fitted cutting function; judges whether the cutting function meets the preset fitting accuracy requirements based on preset judgment conditions; if the cutting function does not meet the preset fitting accuracy requirements, interpolation points are directly inserted using a linear interpolation method; if the cutting function meets the preset fitting accuracy requirements, interpolation points are inserted using a curve interpolation method; obtains all coordinate points after the interpolation points are inserted to generate a cutting point set; performs laser processing and cutting based on the cutting point set to cut the desired cutting trajectory. By fitting the reference coordinate point set corresponding to the desired cutting trajectory to obtain a cutting function and judging the fitting accuracy requirements, the cutting quality and accuracy during the laser cutting process are guaranteed.

[0144] In this embodiment, the cutting function fitting module 803 includes a two-dimensional coordinate point data screening unit, a non-curve trajectory fitting unit, a curve trajectory fitting unit and a multi-segment fitting function connection unit.

[0145] a two-dimensional coordinate point data screening unit, configured to screen out a portion of the two-dimensional coordinate point set data corresponding to a curved trajectory and a portion of the two-dimensional coordinate point set data corresponding to a non-curved trajectory in the reference coordinate point set;

[0146] a non-curved trajectory fitting unit, configured to fit a linear equation of one variable to a portion of the two-dimensional coordinate point set corresponding to the non-curved trajectory according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each segment of the trajectory, thereby obtaining a linear function of one variable corresponding to each segment of the non-curved trajectory;

[0147] a curve trajectory fitting unit, configured to fit a curve equation to a portion of the two-dimensional coordinate point set corresponding to the curve trajectory according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each segment of the trajectory, to obtain a curve function corresponding to each segment of the curve trajectory;

[0148] The multi-segment fitting function connection unit is used to perform multi-segment function connection processing on all linear functions and all curvilinear functions according to the order of the partial data of the two-dimensional coordinate point set corresponding to each segment of the non-curved trajectory and each segment of the curved trajectory in the reference coordinate point set, so as to obtain the cutting function.

[0149] 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 related hardware via computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above-described method embodiments. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0150] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0151] To solve the above technical problems, the present application also provides a computer device. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.

[0152] The computer device 9 includes a memory 9a, a processor 9b, and a network interface 9c that are interconnected via a system bus. Figure 9 Only a computer device 9 having components such as a memory 9a, a processor 9b, and a network interface 9c is shown. However, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead. It should be understood by those skilled in the art that a computer device herein is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, and the like.

[0153] The computer device may be a desktop computer, notebook computer, PDA, cloud server, etc. The computer device may interact with the user via a keyboard, mouse, remote control, touchpad, or voice control device.

[0154] The memory 9a includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, a magnetic disk, an optical disk, etc. In some embodiments, the memory 9a may be an internal storage unit of the computer device 9, such as the hard disk or internal memory of the computer device 9. In other embodiments, the memory 9a may also be an external storage device of the computer device 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. Of course, the memory 9a may also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 9a is generally used to store the operating system and various application software installed on the computer device 9, such as computer-readable instructions for a laser processing and cutting method. In addition, the memory 9a can also be used to temporarily store various types of data that have been output or are to be output.

[0155] In some embodiments, the processor 9b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 9b is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 9b is used to execute computer-readable instructions or process data stored in the memory 9a, such as computer-readable instructions for executing the laser cutting method.

[0156] The network interface 9c may include a wireless network interface or a wired network interface. The network interface 9c is generally used to establish a communication connection between the computer device 9 and other electronic devices.

[0157] The computer device proposed in this embodiment belongs to the field of automatic control technology and is applied to the optimization scenario of cutting combination methods before machine tools cut and process profiles. This application obtains a target data file; parses the target data file to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; uses a preset fitting algorithm to fit the cutting function to the reference coordinate point set to obtain the fitted cutting function; judges whether the cutting function meets the preset fitting accuracy requirements based on preset judgment conditions; if the cutting function does not meet the preset fitting accuracy requirements, then directly uses linear interpolation to fill in the interpolation points; if the cutting function meets the preset fitting accuracy requirements, then uses curve interpolation to fill in the interpolation points; obtains all coordinate points after the interpolation points are filled in to generate a cutting point set; performs laser processing and cutting according to the cutting point set to cut out the desired cutting trajectory. The cutting function is obtained by fitting the reference coordinate point set corresponding to the desired cutting trajectory, and the fitting accuracy requirements are judged to ensure the cutting quality and accuracy during the laser cutting process.

[0158] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of a laser processing and cutting method as described above.

[0159] The computer-readable storage medium proposed in this embodiment belongs to the field of automated control technology and is applied to the optimization scenario of cutting combination methods before machine tools cut and process profiles. This application obtains a target data file; parses the target data file to obtain a set of reference coordinate points corresponding to the desired cutting trajectory; uses a preset fitting algorithm to fit the cutting function to the reference coordinate point set to obtain the fitted cutting function; judges whether the cutting function meets the preset fitting accuracy requirements based on preset judgment conditions; if the cutting function does not meet the preset fitting accuracy requirements, then directly uses linear interpolation to fill in the interpolation points; if the cutting function meets the preset fitting accuracy requirements, then uses curve interpolation to fill in the interpolation points; obtains all coordinate points after the interpolation points are filled in to generate a cutting point set; performs laser processing and cutting according to the cutting point set to cut out the desired cutting trajectory. The cutting function is obtained by fitting the reference coordinate point set corresponding to the desired cutting trajectory, and the fitting accuracy requirements are judged to ensure the cutting quality and accuracy during the laser cutting process.

[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0161] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is also within the scope of patent protection of this application. The non-company software tools or components that appear in the embodiments of this application are merely examples and do not represent actual use.

Claims

1. A laser processing and cutting method, characterized in that: The steps include: Acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine; Parsing the target data file to obtain a set of reference coordinate points corresponding to an expected cutting trajectory, wherein the expected cutting trajectory includes a curved trajectory; Using a preset fitting algorithm, a cutting function is fitted to the reference coordinate point set to obtain a fitted cutting function; According to a preset judgment condition, determining whether the cutting function meets a preset fitting accuracy requirement; If the cutting function does not meet the preset fitting accuracy requirements, the interpolation points are directly added using linear interpolation; If the cutting function meets the preset fitting accuracy requirement, the interpolation points are inserted using a curve interpolation method, wherein the step of inserting the interpolation points using the curve interpolation method includes: inserting the interpolation points point by point using a curve interpolation method that approximates an elliptical arc using a third-order Bezier approximation; Get all the coordinate points after the interpolation points are filled in and generate a set of cutting points; Laser cutting is performed according to the cutting point set to cut out the desired cutting track.

2. The laser processing and cutting method according to claim 1, characterized in that: The step of obtaining the target data file specifically includes: According to the preset reading instructions, the NC file is read from the target CNC CAM compiler, wherein the NC file records the reference coordinate point set corresponding to the expected cutting trajectory, and the reference coordinate point set includes partial data of the two-dimensional coordinate point set corresponding to the curved trajectory and partial data of the two-dimensional coordinate point set corresponding to the non-curved trajectory.

3. The laser processing and cutting method according to claim 2, characterized in that: The step of fitting the cutting function to the reference coordinate point set using a preset fitting algorithm to obtain the fitted cutting function specifically includes: Filtering out the partial data of the two-dimensional coordinate point set corresponding to the curved trajectory and the partial data of the two-dimensional coordinate point set corresponding to the non-curved trajectory in the reference coordinate point set respectively; Fitting a linear equation of one variable to the partial data of the set of two-dimensional coordinate points corresponding to the non-curved trajectory according to the number of trajectory segments and the set of two-dimensional coordinate points corresponding to each trajectory segment, to obtain a linear function of one variable corresponding to each non-curved trajectory segment; For the partial data of the two-dimensional coordinate point set corresponding to the curved trajectory, a curve equation is fitted according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each segment of the trajectory, to obtain a curve function corresponding to each segment of the curved trajectory; According to the order of the partial data of the two-dimensional coordinate point set corresponding to each non-curved trajectory and each curved trajectory in the reference coordinate point set, all linear functions and all curve functions are connected into multiple segments to obtain the cutting function.

4. The laser processing and cutting method according to claim 3, characterized in that: The step of fitting a linear equation of one variable according to the number of trajectory segments and the set of two-dimensional coordinate points corresponding to each trajectory segment on the partial data of the set of two-dimensional coordinate points corresponding to the non-curved trajectory to obtain a linear function of one variable corresponding to each non-curved trajectory segment specifically includes: Step 401, identifying a set of two-dimensional coordinate points corresponding to the current non-curved trajectory; Step 402: Using the least squares method to perform linear fitting on the two-dimensional coordinate point set, and obtaining the slope value corresponding to the current non-curved trajectory; Step 403: arbitrarily select two points from the two-dimensional coordinate point set as the starting point and the ending point, and calculate the coordinates of the middle point based on the coordinates of the starting point, the coordinates of the ending point, and the slope value; Step 404: Add the coordinates of the intermediate point to the two-dimensional coordinate point set to obtain an updated two-dimensional coordinate point set; Step 405, iteratively executing steps 403 to 404 until the number of coordinate points in the two-dimensional coordinate point set reaches a preset value or until the number of iterations reaches a preset threshold, thereby obtaining a final supplemented two-dimensional coordinate point set; Step 406 , re-performing linear fitting based on the final supplemented two-dimensional coordinate point set to obtain a linear function corresponding to the current segment of the non-curved trajectory as the linear fitting function corresponding to the current segment of the non-curved trajectory.

5. The laser processing and cutting method according to claim 3, characterized in that: The step of fitting a curve equation for the partial data of the two-dimensional coordinate point set corresponding to the curved trajectory according to the number of trajectory segments and the two-dimensional coordinate point set corresponding to each segment of the trajectory to obtain a curve function corresponding to each segment of the curved trajectory specifically includes: Identify the set of two-dimensional coordinate points corresponding to the current segment of the curved trajectory; The least squares method is used to perform curve fitting on the two-dimensional coordinate point set, and the elliptical arc coefficient value corresponding to the current segment of the curved trajectory is obtained; Calculate the coordinates of two foci of the ellipse where the current segment of the curved trajectory is located according to the elliptical arc coefficient value and a preset ellipse focus calculation formula; Based on the elliptical arc coefficient value, a curve fitting function corresponding to the current segment of the curved trajectory is obtained by fitting; According to a preset angle calculation formula and angle comparison rule, a trajectory generation direction corresponding to the motion trajectory generation using the curve fitting function is determined, wherein the trajectory generation direction includes two situations: a clockwise generation direction and a counterclockwise generation direction.

6. The laser processing and cutting method according to any one of claims 3 or 5, characterized in that: After executing the step of fitting a curve equation on the partial data of the set of two-dimensional coordinate points corresponding to the curved trajectory according to the number of trajectory segments and the set of two-dimensional coordinate points corresponding to each segment of the trajectory to obtain a curve function corresponding to each segment of the curved trajectory, the method further includes: Get all the coordinate points in the two-dimensional coordinate point set corresponding to the current segment of the curved trajectory; According to the preset accuracy judgment conditions: ε p =||p i F1+p i F2-2a||≤ε t , Identify whether the current coordinate point meets the preset curve function fitting accuracy value, where ε p represents the fitting error value, ε t represents the allowable fitting error threshold, ||p i F1+p i F2-2a|| represents the calculation method of fitting error value, specifically, p i represents the coordinate position information of the current coordinate point, i represents the number information of the current coordinate point in the two-dimensional coordinate point set, F1 and F2 represent the two focal coordinates of the ellipse where the current segment of the curved trajectory is located, and p i F1 and p i F2 represents the distance between the current coordinate point and the two focal coordinates, and a represents the major axis value of the ellipse where the current segment of the curved trajectory is located; Counting the number of coordinate points that do not meet the curve function fitting accuracy value, and calculating the proportion of the number of coordinate points in all the coordinate points; If the number ratio does not exceed the preset number ratio threshold, the curve function meets the preset fitting accuracy requirement; If the number ratio exceeds a preset number ratio threshold, the curve function does not meet the preset fitting accuracy requirement.

7. The laser processing and cutting method according to claim 6, characterized in that: The step of judging whether the cutting function meets the preset fitting accuracy requirement according to the preset judgment condition specifically includes: Identify whether the linear functions corresponding to each non-curved trajectory segment meet the preset fitting accuracy requirements; and Identify whether the curve functions corresponding to each curved trajectory segment meet the preset fitting accuracy requirements; If the linear functions corresponding to all non-curved trajectories meet the preset fitting accuracy requirements, and the curve functions corresponding to all curved trajectories meet the preset fitting accuracy requirements, then the cutting function meets the preset fitting accuracy requirements; If there is at least one linear function corresponding to any non-curved trajectory that does not meet the preset fitting accuracy requirement, or there is at least one curve function corresponding to any curved trajectory that does not meet the preset fitting accuracy requirement, then the cutting function does not meet the preset fitting accuracy requirement.

8. A laser processing and cutting device, characterized in that: include: A target data file acquisition module is used to acquire a target data file, wherein the target data file includes an NC file of a numerically controlled machine tool or a laser cutting machine; a target data file parsing module, configured to parse the target data file to obtain a set of reference coordinate points corresponding to an expected cutting trajectory, wherein the expected cutting trajectory includes a curved trajectory; A cutting function fitting module is used to fit the cutting function to the reference coordinate point set using a preset fitting algorithm to obtain a fitted cutting function; A fitting accuracy judgment module, used to judge whether the cutting function meets the preset fitting accuracy requirement according to the preset judgment condition; A first interpolation processing module is used to directly use linear interpolation to fill in interpolation points if the cutting function does not meet the preset fitting accuracy requirements; A second interpolation processing module is configured to insert interpolation points using a curve interpolation method if the cutting function meets a preset fitting accuracy requirement, wherein the step of inserting interpolation points using the curve interpolation method includes: inserting interpolation points point by point using a curve interpolation method that approximates an elliptical arc using a third-order Bezier approximation; The cutting point set generation module is used to obtain all coordinate points after the interpolation points are completed and generate a cutting point set; The cutting processing module is used to perform laser processing and cutting according to the cutting point set to cut out the desired cutting track.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the laser processing and cutting method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the laser processing and cutting method according to any one of claims 1 to 7.