Laser trimming method, laser cutting device, electronic device, and storage medium
By combining full-domain coarse scanning and fine scanning to generate an automated processing path, the problem of low efficiency and uncontrollable precision caused by manual operation in beveling is solved, realizing efficient and high-precision beveling and meeting the needs of mass production.
Patent Information
- Application Number
- CN202611352783.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-20
AI Technical Summary
The current beveling process relies on manual labor, resulting in numerous process steps, low overall production efficiency, and poor controllability of processing accuracy, making it difficult to meet the demand for high-precision, mass production of beveled parts.
By importing the standard drawing of the workpiece to be processed, the first scanner is used to perform a full-area coarse scan to obtain the machine tool position coordinates and initial contour, generating a coarse scan reconstruction drawing, and using an axis-aligned bounding box algorithm to determine the bounding box. Then, the second scanner is used to perform a fine scan to obtain a high-precision fine scan point cloud, correct the initial cutting program to generate a standard cutting program, and realize the generation of automated processing path.
It improves the efficiency and precision of beveling, ensures the consistency of processing quality of workpieces in the same batch, meets the needs of high-precision mass production, and reduces manual intervention and redundant operations.
Smart Images

Figure CN123128740A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of laser cutting technology, and in particular to a laser cutting method, a laser cutting device, an electronic device, and a storage medium. Background Technology
[0002] Beveling is a necessary process to ensure the weld penetration and structural connection strength of thick plate components, and it is used in the production of workpieces with bevel features. Currently, a sequential processing approach is commonly used. This involves first machining the main outline of the workpiece without bevels using cutting equipment, and then completing the bevel structure through a separate secondary process. However, the secondary beveling process currently relies heavily on manual operation. Workers pre-mark the bevel location on the workpiece surface, manually adjust the angle of the cutting torch, and then complete the beveling along the straight guide trajectory of the fixed fixture. This method not only involves many process steps and low overall production efficiency, but also, due to the limitations of manual operation and fixed fixtures, the positional and angular accuracy of the bevel is highly dependent on the operator's experience and manual positioning accuracy. It is difficult to consistently guarantee the beveling quality of workpieces in the same batch, and it cannot meet the needs of high-precision, mass production of beveled parts. Summary of the Invention
[0003] This application provides a laser cutting method, laser cutting device, electronic device and storage medium, which solves the technical problems of existing beveling processes that rely on manual operation, resulting in many process turnover links, low overall production efficiency and poor controllability of processing accuracy.
[0004] Firstly, the laser refining method proposed in this application includes:
[0005] Import the standard drawing of the workpiece to be processed; The first scanner is controlled to perform a coarse scan on all the workpieces to obtain the machine tool position coordinates and the coarse scan point cloud of the initial contour of each workpiece, generate a coarse scan reconstruction drawing, and use the axis-aligned bounding box algorithm to generate the bounding box of the workpiece. The initial cutting program for the workpiece is generated based on the rough scan reconstruction drawing; Based on the bounding box, the corresponding fine scanning area is determined, and the second scanner is controlled to perform fine scanning on the fine scanning area to obtain fine scanning point cloud and generate fine scanning reconstruction drawing; The initial cutting program is corrected according to the fine-scanned reconstruction drawing, and then a standard cutting program is generated after deviation compensation calculation.
[0006] This technical solution uses imported standard drawings of the workpieces to be processed as the processing benchmark. First, a first scanner is controlled to perform a full-area coarse scan of all workpieces, simultaneously acquiring the machine tool position coordinates and initial contour coarse point cloud of each workpiece. Based on the point cloud data, a coarse scan reconstruction drawing is generated. Simultaneously, an axis-aligned bounding box algorithm is used to generate the corresponding bounding box for each workpiece, quickly defining the actual spatial range of the workpiece and the approximate boundary of the processing area. Based on this, an initial cutting program for the workpiece is generated according to the coarse scan reconstruction drawing, completing the preliminary planning of the processing path and replacing the manual process of marking and positioning. Subsequently, the fine scan area is precisely delineated based on the bounding box obtained in the coarse scan stage. A second scanner is controlled to perform a higher-precision fine scan on the fine scan area, acquiring a higher-resolution fine scan point cloud and generating a more accurate fine scan reconstruction drawing, accurately restoring the actual shape and positional deviation of the workpiece's bevel processing area. Finally, the corresponding initial cutting program is corrected based on the actual shape data of the fine scan reconstruction drawing, and the dimensional deviation caused by kerf loss is corrected through deviation compensation calculation. A standard cutting program that can be directly used for laser finishing is output, forming a complete automated processing path generation logic from automatic workpiece positioning and preliminary path planning to precise error correction.
[0007] In a preferred embodiment, controlling the first scanner to perform a coarse scan of the workpiece and generate the coarse scan reconstruction drawing includes the following steps: The rough-scanned reconstructed drawing is compared with the corresponding standard drawing to obtain the drawing matching degree; When the drawing matching degree is not lower than the coarse matching threshold, extract the machine tool position coordinates, initial contour, placement posture and thickness information point cloud corresponding to the workpiece; When the drawing matching degree is lower than the coarse matching threshold, the machine tool position coordinates, the initial contour and the placement posture corresponding to the workpiece are extracted.
[0008] In a preferred embodiment, the step of comparing the coarse-scanned reconstructed drawing with the corresponding standard drawing includes: The matching degree of the drawing is calculated by comparing the number of outline lines in the rough-scanned reconstructed drawing with the number of outline lines in the standard drawing.
[0009] In a preferred embodiment, the step of controlling the second scanner to perform a fine scan on the fine scan area includes: When the drawing matching degree is not lower than the coarse matching threshold, the height calibration value of the fine-scanned area is determined based on the thickness information point cloud. The scanning height of the second scanner is adjusted according to the height calibration value, and a fine scan is performed on the fine scan area.
[0010] In a preferred embodiment, the steps of performing a fine scan on the fine-scanned area and generating the fine-scanned reconstruction drawing include: When the drawing matching degree is not lower than the coarse matching threshold, the contour feature point coordinates are calibrated by the second scanner through fine scanning based on the contour feature point coordinates obtained by the first scanner coarse scanning, and the fine scan reconstructed drawing is obtained based on the calibrated contour feature point coordinates. When the drawing matching degree is lower than the coarse matching threshold, the complete contour data of the workpiece in the fine scanning area is collected by the full-domain stitching scanning method, and the fine scanning reconstruction drawing is generated based on the complete contour data.
[0011] In a preferred embodiment, the step of comparing the coarse-scanned reconstructed drawing with the standard drawing further includes: Rigid body transformation matching verification and mirror transformation matching verification are performed sequentially on the standard drawings; If the rigid body transformation matching check determines that there is no match, or if the standard drawing achieves a match through mirror transformation, a mirror recognition prompt is generated and output.
[0012] In a preferred embodiment, the deviation compensation calculation steps include: Obtain the kerf width and use half of the kerf width as the compensation amount; The cutting trajectory is subjected to deviation compensation processing, either shrinking inward or expanding outward, based on the compensation direction.
[0013] Secondly, this application also proposes a laser cutting apparatus, which includes a laser cutting head, a first scanner, a second scanner, and a control processing unit capable of performing the laser cutting method as described in any of the above embodiments. The second scanner and the first scanner are both disposed on the periphery of the laser cutting head. The control processing unit is electrically connected to the laser cutting head, the first scanner, and the second scanner to control the laser cutting head to drive the first scanner and the second scanner to move along the machine tool coordinate system.
[0014] Thirdly, this application also proposes an electronic device, which includes a computer program processor for storing a computer program processor and a memory electrically connected to the processor, wherein the memory is used to execute the program stored in the memory to implement the steps of the laser trimming method as described in any of the above embodiments.
[0015] Fourthly, the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the laser cutting method.
[0016] Fifthly, this application also proposes a computer program product comprising a computer program that, when executed by a processor, implements the method described in any of the above embodiments. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0018] Figure 1 This is a schematic flowchart of the laser trimming method according to an embodiment of this application; Figure 2 This is a schematic diagram of the bounding box generated in the laser cutting method of this application; Figure 3 This is a schematic diagram of the rigid body transformation in the laser cutting method of this application.
[0019] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0021] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly.
[0022] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0023] This application provides a laser trimming method; please refer to... Figure 1 The laser finishing method includes the following detailed steps: Step 1: Import the standard drawing of the workpiece to be processed. Specifically, the standard drawing, which contains complete geometric feature information such as the main outline of the workpiece, the location of the bevel, the bevel angle, the bevel depth, and the bevel form, is input into the program library module of the CNC system. The program library module performs digital analysis and feature extraction on the standard drawing, converting the geometric features in the standard drawing into quantitative processing parameters that the CNC system can recognize. At the same time, based on the extracted workpiece specification parameters and bevel feature parameters, the program library module matches and retrieves the appropriate laser processing process parameters from the process database built into it, and pre-generates the initial motion trajectory for bevel finishing, providing standardized data benchmarks and process basis for subsequent workpiece positioning verification, processing trajectory calibration, and finishing process execution.
[0024] Step 2: Control the first scanner to perform a full-area coarse scan on all workpieces within the machine tool processing area, collect coarse scan point cloud data of all workpieces within the machine tool processing area, and then extract the initial contour information and corresponding machine tool position coordinates of all workpieces within the processing area through point cloud segmentation, planar projection and other processing methods. In this way, a coarse scan reconstruction drawing containing the initial contour and position information of each workpiece is generated. At the same time, the axis-aligned bounding box algorithm is used to generate the corresponding bounding box for each workpiece.
[0025] Among them, the axis-aligned bounding box algorithm is a geometric calculation method that uses the smallest cuboid parallel to each coordinate axis of the machine tool coordinate system to cover the workpiece point cloud contour. The generated bounding box is the smallest axial cuboid region that covers the corresponding workpiece outer contour, which can quickly define the spatial distribution range of each workpiece as the target delineation basis for subsequent fine scanning.
[0026] For example, refer to Figure 2Three workpieces—triangular workpiece A, trapezoidal workpiece B, and irregularly shaped workpiece C—are simultaneously arranged within the machine tool processing area. During the rough scan, the first scanner acquires global rough scan point cloud data covering the processing area of these three workpieces. The point cloud data is then segmented by workpiece, and further processed by planar projection to extract the initial contour information and corresponding machine tool position coordinates for each of workpieces A, B, and C. This generates a rough scan reconstruction drawing containing the initial contour and position information of workpieces A, B, and C. Subsequently, an axis-aligned bounding box algorithm is called to generate corresponding bounding boxes for each workpiece: a minimum axial cuboid bounding box is generated for workpiece A with A(100,100) as the reference and bounded by A1 and A2; a minimum axial cuboid bounding box is generated for workpiece B with B(170,120) as the reference and bounded by B1 and B2; and a minimum axial cuboid bounding box is generated for workpiece C with C(150,50) as the reference and bounded by C1 and C2. Each of the above bounding boxes covers the overall outline of the corresponding workpiece, quickly determining the spatial distribution range of workpieces A, B, and C within the machine tool processing area, which serves as the basis for subsequent target delineation for fine scanning of each workpiece.
[0027] Step 3: Generate the corresponding initial cutting program based on the rough scan reconstruction drawing. Specifically, the initial contours of each workpiece, machine tool position coordinates, and bounding box information contained in the rough scan reconstruction drawing are synchronously transmitted to the program library module. The program library module performs feature matching and pose calculation on the initial contours of each workpiece and the reference contours of the standard drawing to obtain the actual pose deviation of each workpiece in the machine tool coordinate system. Then, based on the pose deviation, the coordinate transformation and spatial mapping of the pre-generated bevel cutting reference motion trajectory in the program library module are performed to generate an initial cutting program that corresponds one-to-one with the actual distribution state of each workpiece in the machine tool processing area.
[0028] Understandably, the initial cutting program includes a preliminary motion path for beveling to fit the placement of each workpiece, preliminarily matched laser processing parameters, obstacle avoidance path planning for the laser cutting head, and fine scanning and positioning trigger points corresponding to the bounding box range of each workpiece. It can pre-plan the overall motion logic of the laser cutting head and preliminarily anchor the beveling trajectory to the actual processing coordinate system, providing a preliminary trajectory reference and data framework for subsequent fine-tuning of the program. Step 4: Determine the fine scanning area based on the bounding box corresponding to each workpiece, and control the second scanner to perform high-precision fine scanning on the defined fine scanning area, acquiring the high-precision fine scanning point cloud of the corresponding workpiece and generating a fine scanning reconstruction drawing with higher detail accuracy. It should be noted that controlling the second scanner to perform fine scanning on each fine scanning area one by one, acquiring the fine scanning point cloud of the corresponding workpiece surface, can more completely restore the outer contour shape and edge geometric features of the workpiece. After processing by algorithms such as point cloud denoising filtering, feature edge fitting, and contour 3D reconstruction, a fine scanning reconstruction drawing with significantly better shape detail and positioning accuracy than the coarse scanning reconstruction drawing is generated.
[0029] For example, taking the above-mentioned workpieces A, B, and C as examples, the minimum axial cuboid bounding box of workpiece A, the minimum axial cuboid bounding box of workpiece B, and the minimum axial cuboid bounding box of workpiece C are respectively used as independent fine scanning areas; the second scanner performs fine scanning on the three fine scanning areas in sequence, and respectively collects high-precision fine scanning point clouds of the three workpieces. In particular, the concave arc contour features of workpiece C can be completely and accurately restored through the high-precision fine scanning point cloud.
[0030] Step 5: Correct the initial cutting program based on the fine-scanned reconstruction drawing, and generate a standard cutting program after deviation compensation calculation. It should be noted that the deviation compensation in this step focuses on the processing loss and thermal effect deviation of the laser cutting process itself. Calculate the compensation amount for process parameters such as kerf width, bevel width, and theoretical allowance correction value of the cutting edge. Then, through the above cutting compensation calculation, modify and adapt parameters such as bevel repair trajectory, cutting feed speed, and cutting head tilt angle fine adjustment in the initial cutting program segment by segment to eliminate the influence of laser kerf loss on the bevel processing size and shape accuracy, and finally generate a standard cutting program that can be directly executed for high-precision bevel repair operations.
[0031] Optionally, in Step 5, the deviation compensation calculation includes the following steps: Obtain the kerf width and use half of the kerf width as the compensation amount; The cutting trajectory is compensated for either inward or outward movement based on the compensation direction. Inward movement refers to shifting the cutting trajectory inward along the normal direction of the workpiece contour towards the inside of the workpiece entity by a corresponding compensation amount. This is suitable for internal contour recutting scenarios such as internal holes and internal bevels. By shifting the trajectory inward, the positive deviation of the internal contour dimensions caused by the kerf width can be offset. Outward movement refers to shifting the cutting trajectory outward along the normal direction of the workpiece contour towards the outside of the workpiece entity by a corresponding compensation amount. This is suitable for external contour and external bevel recutting scenarios. By shifting the trajectory outward, the negative deviation of the external contour dimensions caused by the kerf width can be offset.
[0032] In this way, by using half the kerf width as the compensation amount and distinguishing the compensation direction according to the type of the repaired profile, the influence of the kerf formed by the melting and removal of material during laser cutting on the processing dimensions can be accurately offset. This ensures that the workpiece profile and bevel shape after repairing are highly consistent with the theoretical parameters of the standard drawings, effectively improving the dimensional accuracy of the repaired processing and the processing consistency of the same batch of workpieces.
[0033] In the above method, the scanning approach of first performing a full-area coarse scan for positioning and then a local fine scan for calibration replaces the traditional manual scribing and positioning process, which involves manually adjusting cutting parameters. This eliminates redundant steps such as manual scribing and repeated workpiece clamping and adjustment, effectively improving the processing efficiency of bevel recutting. At the same time, the axis alignment bounding box algorithm is used to quickly delineate the fine scan area, avoiding the waste of computing power and time caused by full-area fine scan, while accurately locking the processing range of the workpiece and ensuring the high efficiency of subsequent fine scans. Furthermore, the workpiece position and contour are automatically identified through the segmentation and projection processing of the coarse scan point cloud data. Combined with the fine scan reconstruction drawing matching and correction, the calibration of workpiece position deviation and contour deviation can be automatically completed without manual positioning and angle adjustment. This completely eliminates the dependence of processing accuracy on worker experience, ensuring the positional and angular accuracy of bevel processing for workpieces in the same batch, improving the quality consistency of batch processing, and fully meeting the needs of high-precision, batch bevel part recutting.
[0034] It is worth mentioning that, compared to the implementation method where coarse scanning assists in coarse positioning for subsequent fine scanning, and a standard cutting program is generated all at once after the fine scanning is completed, this method simultaneously completes workpiece contour extraction, preliminary pose calculation, and initial cutting program pre-generation during the coarse scanning stage. The overall computational workload of supplementary cutting trajectory planning and process parameter matching is decomposed into overall pose space mapping during the coarse scanning stage and correction and compensation during the fine scanning stage. This fully utilizes the machine tool position coordinates and initial contours acquired during coarse scanning, avoiding the waste of data value and computing power caused by using coarse scanning point cloud information only for coarse positioning. It also distributes the computational load across the intervals of coarse scanning execution, shortening the time required to generate the standard cutting program after the fine scanning is completed, eliminating the computing power peak and waiting delay caused by centralized full-volume calculation, and realizing the parallel advancement of scanning action and program calculation, effectively shortening the overall cycle time from scanning to processing of a single batch of workpieces.
[0035] It should be noted that the laser repair cutting method provided in this embodiment is not limited to the repair cutting of workpiece bevels, but is also applicable to the repair processing of various features to be repaired on workpieces, including but not limited to the repair cutting of various hole shapes, the repair processing of workpiece edge gaps, and the processing of local contour defects. Only when importing the standard drawing in Step 1 of this method, the geometric dimensions, shape requirements, and processing accuracy parameters of the target repair feature need to be entered, and the corresponding laser processing process parameters of the feature need to be retrieved from the process database. The repair cutting operation of the corresponding feature can then be completed using the aforementioned combined rough and fine scanning process steps, without any adjustment to the overall steps of this method.
[0036] Furthermore, it should be noted that the first scanner is used for rough scanning of the machine tool processing area. Therefore, this first scanner is preferably configured as a medium-precision 3D scanning device with a large field of view and a high scanning frame rate. It can complete the point cloud data acquisition of the entire machine tool processing area in a short time, meeting the accuracy requirements for initial contour recognition of the workpiece and coarse positioning of the machine tool coordinates, while also ensuring the cycle efficiency of the rough scanning process. The second scanner is used for fine scanning of the locally defined area. Therefore, this second scanner is preferably configured as a high-precision 3D scanning device with a small field of view and high resolution. It can acquire fine-scan point clouds for the feature areas to be repaired, accurately restoring the microscopic geometric morphology of the workpiece edges, bevels, and various features to be repaired, providing high-precision data support for subsequent repair trajectory correction and process compensation. This differentiated configuration can reasonably control equipment investment costs while ensuring the accuracy of the repair processing, and at the same time improve the overall operating efficiency of the scanning process.
[0037] In this embodiment of the application, in step 2 above, controlling the first scanner to perform a coarse scan of the workpiece and generate a coarse scan reconstruction drawing includes the following steps: The rough-scanned reconstructed drawing is compared with the corresponding standard drawing to obtain the drawing matching degree; When the drawing matching degree is not lower than the coarse matching threshold, extract the machine tool position coordinates, initial contour, placement posture and thickness information point cloud of the corresponding workpiece; When the drawing matching degree is lower than the coarse matching threshold, extract the machine tool position coordinates, initial contour and placement posture of the corresponding workpiece.
[0038] The coarse matching threshold is a preset critical value for determining the matching degree of contour features in the program library module. It is used to quantify the degree of conformity between the initial contour of the coarse scan reconstructed drawing and the reference contour of the standard drawing. Its specific value can be adaptively set and adjusted according to the complexity of the workpiece structure, the processing accuracy requirements and the scanner acquisition accuracy. The thickness information point cloud refers to the set of point cloud data collected during the coarse scan process that can reflect the geometric shape and size parameters of the workpiece in the thickness direction.
[0039] When the drawing matching degree is not lower than the coarse matching threshold, the initial contour obtained in the coarse scanning reconstruction drawing has a high degree of agreement with the reference contour of the standard drawing, and the thickness information point cloud has sufficient reference value. Simultaneously extracting this part of the data can provide data reference for the subsequent scanning height setting of the second scanner. It can quickly adjust the scanning height of the corresponding fine scanning area according to the actual thickness of different workpieces, ensuring that the scanning focal length is always in the optimal working range during the fine scanning process, and improving the accuracy and efficiency of fine scanning data acquisition. When the drawing matching degree is lower than the coarse matching threshold, the actual placement posture deviation of the workpiece is large or the initial contour restoration degree is insufficient. At this time, the reference accuracy of the thickness information point cloud is limited. Only basic parameters such as machine tool position coordinates and initial contour are extracted to avoid invalid data with insufficient accuracy from participating in subsequent calculations and causing interference. It can also shorten the data processing time in the coarse scanning stage.
[0040] For example, taking workpieces A, B, and C as examples, the coarse matching threshold is pre-set to 85% based on the machining accuracy requirements of beveling. After completing the full-domain coarse scan and generating coarse scan reconstruction drawings containing information about the three workpieces, the program library module performs feature point matching and similarity calculations on the initial contours of the coarse scan reconstruction drawings corresponding to the three workpieces and the corresponding reference contours in the standard drawings. The calculations show that the drawing matching degree of workpiece A is 92%, that of workpiece B is 88%, and that of workpiece C is 79%. The drawing matching degrees of workpieces A and B both exceed the coarse matching threshold, so the CNC system simultaneously extracts the two workpieces. The machine tool position coordinates, initial contour, placement posture, and thickness information point cloud of the workpiece are extracted. The extracted thickness information point cloud can be used to set the scanning height of the corresponding workpiece for the second scanner, so that the second scanner can quickly complete the adaptation adjustment of the scanning focal length before performing fine scanning on workpieces A and B. Due to the complex contour structure of workpiece C, the contour restoration degree is limited in the rough scanning stage, resulting in the drawing matching degree being lower than the coarse matching threshold. The CNC system only extracts its machine tool position coordinates, initial contour, and placement posture for posture calculation. In the fine scanning stage, the adaptation is completed through the automatic focus detection of the second scanner, thereby avoiding the low-precision thickness information point cloud from misleading the scanning height setting.
[0041] In this embodiment, the step of comparing the rough-scanned reconstructed drawing with the corresponding standard drawing includes: The number of outlines in the rough-scanned reconstructed drawing is compared with the number of outlines in the standard drawing to calculate the drawing matching degree.
[0042] The aforementioned number of contour lines refers to the total number of closed contour line segments of the workpiece obtained from the coarse sweep point cloud data. It covers all independent geometric boundaries such as the outer contour of the workpiece, the internal hole contour, the edge notch contour, and the contour of the irregular structure. It corresponds one-to-one with the number of geometric feature boundaries of the workpiece recorded in the standard drawings. It is a basic feature parameter used in the coarse sweep stage to quickly determine the integrity of the contour and the matching degree of the workpiece.
[0043] For example, each workpiece has a corresponding standard drawing that records the number of reference contour lines of its own structure. After the full-domain coarse scanning and coarse scanning reconstruction drawing are completed, the CNC system counts the number of contour lines in the coarse scanning reconstruction drawing of each workpiece and compares them one by one with the number of reference contour lines in the corresponding standard drawing. When the two numbers are consistent, the workpiece is determined to have passed the pre-matching verification and can enter the subsequent fine calculation of contour shape similarity. If there is a discrepancy between the two numbers, the initial contour of the workpiece is determined to have extraction missing or identification mismatch.
[0044] In the above method, the drawing matching degree is calculated by comparing the number of contour lines. Since the number of contour lines is a geometric feature with low computational load and high discriminative power, it can be quickly statistically analyzed and compared after the initial contour extraction. This allows for rapid filtering out invalid data with missing contours or mismatched identification, and the comparison result of the number of contour lines is used as the basic criterion for determining the drawing matching degree. This effectively reduces the computational scale of subsequent pose calculations and can also detect abnormalities such as incomplete acquisition of coarse sweep point cloud data and failure of contour extraction in advance. It avoids invalid data from entering subsequent processes, causing computational deviations and time losses, and ensures the operational efficiency and reliability of the workpiece recognition and preliminary pose calculation in the coarse sweep stage.
[0045] It should be noted that the process of importing the standard drawing of the workpiece to be processed in Step 1 includes a step of defining contour attributes, as follows: The target contour in the standard drawing that needs to be processed by the re-cutting process is labeled with attributes, the corresponding contour line is set as the processing contour line, and the re-cutting process type, dimensional tolerance requirements, re-cutting feature parameters and surface quality indicators corresponding to the processing contour line are linked at the same time. When the program library module performs digital analysis and feature extraction on standard drawings, it automatically identifies the attribute markers of the machining contour lines, extracts the geometric information and associated process parameters of the machining contour lines separately, and uses them as the core target basis for subsequent supplementary cutting reference motion trajectory generation, process parameter matching, and cutting program compilation.
[0046] In the above method steps, setting the processing contour line can clearly distinguish the cutting target from the inherent structural contour of the workpiece, avoiding the mistaken inclusion of the inherent structural contour of the workpiece in the cutting range during the cutting trajectory planning stage. At the same time, it can achieve precise setting of differentiated process parameters for different positions and types of cutting contours, reducing the amount of trajectory correction and parameter correction in the subsequent fine cleaning stage.
[0047] Optionally, during the process of importing the standard drawing of the workpiece to be processed in Step 1, structural contour lines on the workpiece that do not require cutting and have stable geometric shape and clear positional characteristics can be set as identification contours; when comparing the number of contour lines between the aforementioned rough scan reconstruction drawing and the standard drawing, the contour objects involved in the statistics and comparison are all the identification contours in the standard drawing except for the processing contour lines, and the processing contour lines are not included in the statistical comparison of the number of contours.
[0048] In this way, the processing contour line is the target contour to be cut and shaped. It does not actually exist in the initial state of the blank or semi-finished product of the workpiece to be processed. The coarse scan cannot collect the point cloud information of the corresponding contour, so it is excluded from the scope of contour line quantity comparison, ensuring the validity and reference value of the contour line quantity comparison results. On the other hand, the workpiece's clear and inherent structural contour line is selected as the identification contour. The inherent geometric features that can be completely collected by the coarse scan can be used to complete the workpiece identification and preliminary matching of the placement posture, ensuring the accuracy and reliability of contour matching calculation and posture solution in the coarse scan stage.
[0049] In the above embodiments, in step 4, the step of controlling the second scanner to perform a fine scan on the fine scan area includes: When the drawing matching degree is not lower than the coarse matching threshold, the height calibration value of the fine-scanned area is determined based on the thickness information point cloud. Adjust the scanning height of the second scanner according to the height calibration value, and perform a fine scan on the fine scan area.
[0050] Among them, the height calibration value is a quantitative parameter characterizing the reference height of the workpiece in the fine scanning area. It is calculated by statistical filtering of the three-dimensional coordinate data of the corresponding workpiece in the thickness information point cloud, and directly reflects the actual height position of the workpiece in the machine tool coordinate system. When the drawing matching degree is not lower than the coarse matching threshold requirement, the thickness information point cloud collected by the coarse scanning has sufficient accuracy and reliability. This determines the height calibration value of the fine scanning area and completes the scanning height adjustment in advance. This allows the second scanner to be directly in the optimal focal length working range when it arrives at the corresponding fine scanning area, eliminating the need for the piece-by-piece focusing detection process before fine scanning, effectively reducing the preparation time for fine scanning of a single workpiece, and avoiding problems such as scanning defocus or edge shape distortion caused by differences in workpiece thickness and placement height deviation, thus ensuring the acquisition accuracy and feature restoration degree of the fine scanning point cloud.
[0051] For example, taking multiple workpieces with different structures arranged simultaneously in the machine tool processing area as an example, after completing the whole-area coarse scanning, coarse scanning reconstruction drawing generation and contour matching degree calculation, the drawing matching degree of each workpiece is not lower than the preset coarse matching threshold. The CNC system obtains the thickness information point cloud of each workpiece and obtains the height calibration value of the corresponding fine scanning area after filtering. Then, based on the height calibration value, the axial height and lens focal length parameters of the second scanner are adjusted so that the optimal imaging focal plane of the second scanner coincides with the upper surface of the corresponding workpiece. Subsequently, high-precision point cloud acquisition is performed on each fine scanning area in sequence.
[0052] When the drawing matching degree is lower than the coarse matching threshold, the CNC system does not call the coarse scanning thickness data for height pre-calibration. As one of the optional methods in this embodiment, in the above Step 4, the step of controlling the second scanner to perform fine scanning on the fine scanning area includes: Control the second scanner to move to the corresponding fine scanning area; The focusing module on the second scanner is triggered to perform real-time height detection of the workpiece within the fine-scanning area; Based on the workpiece height data obtained from real-time detection, the axial height and lens focal length parameters of the second scanner are automatically adjusted. After the focal plane is properly aligned with the upper surface of the workpiece, the fine scanning acquisition program is started to obtain the fine scanning point cloud of the workpiece.
[0053] This step utilizes the focusing module built into the second scanner to complete automatic height adaptation on-site. Typically, the focusing module uses laser ranging or image sharpness feedback to achieve closed-loop focus adjustment, ensuring that the scanning process is always within the optimal focus range. This guarantees the acquisition accuracy and shape reproduction of the finely scanned point cloud, thus ensuring scanning accuracy under all working conditions without adding additional hardware.
[0054] For example, taking a fine-scanning irregularly shaped workpiece as an example, if the matching degree of the drawing after the coarse scanning of the workpiece is lower than the preset coarse matching threshold, the CNC system does not call the thickness information point cloud collected in the coarse scanning stage for height pre-calibration. After the second scanner moves to the fine-scanning area corresponding to the irregularly shaped workpiece, it pre-detects the height of multiple points on the upper surface of the workpiece through its built-in focusing module. Based on the detection results, the height and focal length of the second scanner are adjusted in real time. The fine-scanning process is started only after the focal plane covers the upper surface of the workpiece.
[0055] As another optional implementation of this embodiment, when the drawing matching degree is lower than the coarse matching threshold, the method steps for controlling the second scanner to perform fine scanning on the fine scanning area in Step 4 above include: The reference plane height parameter of the machine tool worktable is retrieved as the initial calibration reference. The second scanner is controlled to move to multiple edge feature points in the fine scanning area, and the scanning height is adjusted successively with a preset height step size, and the point cloud sharpness feedback value of the corresponding edge feature points is collected. Select the height parameter corresponding to the highest sharpness feedback value at each point, and use fitting calculation to obtain the final scanning calibration height of the entire fine scanning area; After the focal length of the second scanner is adapted according to the scanning calibration height, a uniform speed fine scan is performed on the entire fine scan area.
[0056] This step relies on the machine tool coordinate system and step-by-step clarity feedback to complete height calibration, eliminating the need for a second scanner with a built-in autofocus module. The optimal height is determined through step-by-step trial scans of the edge points of the precision scanning area. This approach controls equipment hardware costs and computational load while ensuring scanning accuracy.
[0057] For example, taking a fine-scanning irregularly shaped workpiece as an example, if the matching degree of the drawing after coarse scanning is lower than the preset coarse matching threshold, the CNC system does not use the coarse scanning thickness data for pre-calibration. Instead, it uses the reference plane of the machine tool table as the initial reference and controls the second scanner to perform step-by-step height trial scanning at multiple edge feature points in the fine-scanning area. The optimal scanning height is determined by fitting the point cloud clarity feedback data of each edge feature point. After uniformly adjusting the axial height and focal length parameters of the second scanner, the fine-scanning point cloud acquisition of the entire fine-scanning area is completed.
[0058] As another optional implementation of this embodiment, when the drawing matching degree is lower than the coarse matching threshold, in the above step Step 4, controlling the second scanner to perform fine scanning on the fine scanning area can also adopt a partitioned follow-up focusing implementation method, the corresponding method steps include: The target fine-scan area is divided into multiple sub-scan partitions; The second scanner is controlled to perform scanning sequentially according to the arrangement order of the sub-scanning partitions. Before entering each sub-scanning partition, the center point of the sub-scanning partition is first detected for height. Based on the detection results, the scanning height and focal length parameters corresponding to the current sub-scanning partition are adjusted in real time. After the fine scanning point cloud acquisition of the current sub-scanning partition is completed, the next sub-scanning partition is entered. Repeat the focusing, detection, and scanning acquisition process until the fine scanning point cloud acquisition of the entire fine scanning area is completed.
[0059] This step uses a zoned focusing method to adapt to the height difference of the workpiece's upper surface, making it suitable for workpieces with uneven thickness, surface undulations, or warping deformation. By dividing the workpiece into sub-scanning zones, focusing accuracy and scanning efficiency are balanced, and the size of the sub-scanning zones can be flexibly adjusted according to the degree of workpiece surface deformation.
[0060] For example, taking an irregularly shaped workpiece with local warping deformation as an example, the workpiece's profile deformation causes the drawing matching degree to be lower than the coarse matching threshold. The CNC system divides the corresponding fine scanning area into several sub-scanning partitions, controls the second scanner to perform focus detection and fine scanning on each sub-scanning partition in the order of the sub-scanning partitions, dynamically adjusts the focal length parameter according to the actual surface height of each sub-scanning partition, and finally stitches together to obtain complete high-precision fine scanning point cloud data.
[0061] In the above embodiments, the steps of performing fine scanning on the fine-scanned area and generating fine-scan reconstructed drawings include: When the drawing matching degree is not lower than the coarse matching threshold, the contour feature point coordinates are obtained by coarse scanning of the first scanner, and the contour feature point coordinates are calibrated by fine scanning of the second scanner. The fine scan reconstructed drawing is obtained based on the calibrated contour feature point coordinates. When the drawing matching degree is lower than the coarse matching threshold, the complete contour data of the workpiece in the fine scanning area is collected by the full-domain stitching scanning method, and the fine scanning reconstruction drawing is generated based on the complete contour data.
[0062] Among them, feature points refer to coordinate points with significant geometric characteristics extracted from the workpiece contour. These typically include points with significant geometric features that are easy to identify and match, such as contour inflection points, corner vertices, and hole centers. They are key reference markers for achieving the mapping and alignment of the coordinate systems of coarse and fine scanning. The full-area stitching scanning method refers to the second scanner performing multiple continuous scans of the entire fine scanning area along the planned path using a preset scanning area as the unit. Then, the local point cloud data obtained from the multiple scans are stitched and fused together using a point cloud registration algorithm to finally obtain a complete fine scanning point cloud data covering the entire fine scanning area.
[0063] In the above method steps, when the drawing matching degree is not lower than the coarse matching threshold, the coordinates of the feature points extracted by the coarse scan have sufficient positioning reference accuracy. Based on this, the fine scan procedure is performed only on the local area corresponding to each feature point. After obtaining the precise coordinates of each feature point, for simple polygonal workpiece contours composed of straight edges, the overall contour can be directly reconstructed by connecting the calibrated feature points in topological order. For complex contour workpieces with curved edges and curved surface structures, the calibrated feature points are used as the positioning reference, and the inherent geometric parameters such as the curvature and radius of the arc recorded in the standard drawing are used for fitting and reconstruction. Therefore, the above reconstruction method based on feature point calibration can significantly reduce the full-area acquisition range of fine scanning, shorten the point cloud data processing volume and scanning time, and at the same time, rely on the reference anchoring effect of feature points to ensure the coordinate consistency of contour reconstruction, avoiding the computational and time redundancy brought about by full-area fine scanning.
[0064] When the drawing matching degree is lower than the coarse matching threshold, the coordinate deviation of the contour feature points obtained by coarse scanning is large and cannot be used as a reliable benchmark for fine scanning reconstruction. At this time, the full-area stitching scanning method can completely collect all contour data of the entire fine scanning area, ensuring the integrity and accuracy reliability of the fine scanning reconstruction drawing.
[0065] For example, taking the above-mentioned workpieces A, B, and C as examples, after coarse scanning and matching degree calculation, the matching degree of workpieces A and B is not lower than the coarse matching threshold, while the matching degree of workpiece C is lower than the coarse matching threshold. For workpieces A and B, which are simple polygons composed of straight edges, the corner vertices of workpieces A and B extracted in the coarse scanning stage are first retrieved as feature points. The second scanner is controlled to perform fine scanning only on the local area where each feature point is located. The precise coordinates of each feature point are calibrated by the fine scanning point cloud. Then, the calibrated feature points are connected and fitted in the topological order to obtain the fine scanning reconstruction drawing of the corresponding workpiece. For workpiece C whose drawing matching accuracy is not up to standard, the CNC system controls the second scanner to perform continuous scanning along the fine-scanning area corresponding to workpiece C, using a preset single-frame scanning area as the unit. The scanning is performed frame by frame, and the point cloud registration algorithm is used to stitch and fuse the local fine-scanning point cloud data of multiple frames. The point cloud data of the outer contour, concave arc structure and other outer edge features of workpiece C are completely collected. Finally, based on the stitched complete fine-scanning point cloud data, the fine-scanning reconstruction drawing of workpiece C is generated.
[0066] Furthermore, the steps described above for reconstructing a fine-scan reconstructed drawing based on the coordinates of the calibrated contour feature points specifically include: Extract the coordinates of each feature point after fine scanning and calibration by the second scanner, and at the same time retrieve the preset mark outline in the standard drawing and the geometric parameters of the reference feature points corresponding to each feature point. Establish a matching correspondence between the calibrated actual feature points and the reference feature points in the standard drawing, and obtain the translational offset and rotational angle deviation of the standard drawing relative to the actual placement posture of the workpiece through planar rigid body pose calculation. Based on the calculated translation offset and rotation angle deviation, perform overall coordinate translation and rotation transformation on all the marking contours in the standard drawing so that the transformed marking contours match the actual position of the workpiece. By combining the aligned and aligned marker contour with the associated machining contour geometric parameters in the standard drawing, the complete contour of the workpiece is fitted and reconstructed, generating a fine-scanned reconstruction drawing.
[0067] For example, taking a triangular workpiece as an example, such as Figure 3As shown, the left diagram represents the initial state of the standard drawing, containing the outline and the axis-aligned bounding box that encloses it. The three vertices of the triangle are pre-calibrated reference feature points. The middle diagram shows the initial state after the axis-aligned bounding box is removed. The right diagram shows the transformation result after pose calculation. First, the CNC system calculates the translational offset and rotational angle deviation of the standard drawing relative to the actual workpiece placement pose based on the coordinates of the actual feature points obtained from the fine scanning calibration. Then, it performs overall coordinate translation and rotation transformation on the triangular outline and its corresponding coordinate reference system in the standard drawing, ensuring that the transformed outline completely coincides with the actual placement pose of the workpiece in the machine tool coordinate system. The coordinate reference system rotates synchronously with the outline to match the actual pose direction. Finally, using the pose-aligned outline as the basic framework, and combining predefined machining outline parameters, the overall outline is fitted to generate a fine-scan reconstructed drawing corresponding to the actual state of the workpiece.
[0068] The above-described method fully utilizes the precise geometric data of standard drawings, and only requires fine scanning calibration of a small number of feature points to achieve pose adaptation of the overall contour. This not only preserves the precise topographic parameters of each structure in the standard drawings and avoids topographic deviations caused by geometric fitting during pure point cloud reconstruction, but also significantly reduces the coverage area of fine scanning and the scale of point cloud data processing, thereby improving the operational efficiency of the fine scanning process while ensuring reconstruction accuracy.
[0069] In the above embodiments, the step of comparing the rough-scanned reconstructed drawing with the corresponding standard drawing further includes: Perform rigid body transformation matching verification and mirror transformation matching verification on the standard drawings in sequence; If the rigid body transformation matching check determines that there is no match, or if the standard drawing achieves a match through mirror transformation, a mirror recognition prompt will be generated and output.
[0070] Rigid body transformation specifically refers to a transformation method that achieves contour pose alignment in a plane using only two geometric operations: translation and rotation. During the transformation, the shape, size, side lengths, and included angles of the contour itself remain constant; only the position and orientation of the contour in the coordinate system change. This corresponds to the normal placement state of the workpiece on the machine tool table, which involves only in-plane translation and angular rotation, without any changes in the workpiece's shape such as flipping or mirroring. Mirror transformation, on the other hand, refers to a geometric operation that flips the contour along a specified axis of symmetry. After the transformation, the shape and size of the contour remain unchanged, but its topological orientation is mirror-symmetrical to the original contour. This corresponds to an abnormal placement state of the workpiece on the machine tool table, where it is upside down or mirrored. It is important to note that if the reference machining trajectory is directly used for supplementary cutting in this abnormal placement state, the bevel orientation and supplementary cutting position will deviate from the design requirements.
[0071] In the above method steps, performing rigid body transformation matching verification first can quickly cover most compliant placement scenarios, complete the pose matching judgment of most workpieces, and effectively improve the overall comparison efficiency. Only when rigid body transformation cannot achieve contour matching is mirror transformation matching verification initiated to check whether there are abnormal mirror placement situations of the workpiece. At the same time, the judgment logic for achieving matching through mirror transformation is set. When rigid body transformation cannot achieve matching at all, but mirror transformation can reach the coarse matching threshold, it can be determined that there is a mirror placement deviation of the workpiece, and a mirror recognition prompt is output. This prompt information includes the identification number of the abnormal workpiece, the machine tool coordinate system position coordinates, the mirror transformation type, and the matching degree value. It is output in the form of interactive interface pop-up, audible and visual alarm, or process log mark, so as to promptly indicate the abnormal state of mirror placement of the workpiece and trigger the CNC system to suspend the subsequent cutting program generation process of the abnormal workpiece.
[0072] For example, such as Figure 2 As shown, taking the aforementioned workpiece A with an unequal side triangle, workpiece B with a non-isosceles trapezoid, and workpiece C with an inward concave arc as examples, the number of contour lines for each workpiece is first compared. The number of contour lines in the rough-scan reconstructed drawings of workpieces A, B, and C are consistent with the number of marked contour lines in the corresponding standard drawings. Then, the transformation matching verification stage is entered. The CNC system will sequentially perform rigid body transformation matching verification on the standard drawings corresponding to each workpiece. After translating and rotating the marked contours in the standard drawings along the machine tool coordinate system, each of them is compared with the feature point fitting of the rough-scan reconstructed contours of workpiece A and workpiece B. If the matching degree of the drawings is not lower than the coarse matching threshold, the rigid body transformation matching verification is judged as a match, and the pose calculation results are directly output for the generation of the initial cutting program.
[0073] For workpiece C, a rigid body transformation matching check is first performed. This involves sequentially adjusting the translation coordinates and rotation angles of the standard drawing, and calculating the matching degree of the drawing after traversing all pose combinations. If the matching degree is lower than the coarse matching threshold, the rigid body transformation matching check is determined to be a mismatch. Immediately afterward, a mirror transformation matching check is initiated. The outline of the marking in the standard drawing is mirrored along the axis of symmetry and then matched again. If the matching degree of the drawing reaches the coarse matching threshold, it is determined that the standard drawing has achieved matching through mirror transformation. The CNC system then generates and outputs a mirror recognition prompt and records the mirror placement pose parameters of workpiece C. The subsequent process is only carried out after the operator confirms the settings.
[0074] It should be noted that for abnormal workpieces that are determined to have mirror placement deviations, the deviations can be corrected using the following methods.
[0075] As one feasible approach, after the CNC system generates and outputs the mirror recognition prompt, the following steps are also included: Locate the target workpiece based on the position information prompted by the mirror recognition, and rotate and reposition the target workpiece along the mirror symmetry axis. The first scanner is controlled to perform a coarse scan on the area where the target workpiece is located after the flipping and repositioning, and a coarse scan reconstruction drawing is regenerated. Rigid body transformation matching verification is then performed again. After the rigid body transformation matching verification passes, the initial cutting program for the target workpiece is restored.
[0076] As another feasible approach, after the CNC system generates and outputs the mirror recognition prompt, the following steps are also included: Based on the original standard drawings, a geometric reflection transformation is performed along the mirror symmetry axis determined by the matching verification to generate a mirror standard drawing that is consistent with the target workpiece corresponding to the mirror recognition prompt. The original standard drawing is replaced with a mirrored standard drawing as the machining reference. The initial contour matching and pose calculation are re-executed to generate an initial cutting program adapted to the current mirrored workpiece.
[0077] It should be noted that in this laser cutting method, the subsequent rigid body transformation matching and verification process is only initiated after the number of the marked contour lines in the coarse scan reconstructed drawing is consistent with the number of the reference contour lines in the standard drawing, and the initial contour extracted from the coarse scan point cloud is confirmed to have topological integrity. If there is an error in the comparison of the number of contour lines, it is directly determined that the coarse scan point cloud of the workpiece has abnormalities such as missing contour features, mismatched point cloud recognition, or mismatched workpiece identity. The subsequent high-computation pose calculation and cutting trajectory planning operations are no longer performed, which not only reduces the overall calculation time, but also avoids incomplete data from entering subsequent processes and causing calculation deviations.
[0078] Based on this, the human-machine interface of the CNC system can use a differentiated color-coding mechanism to visualize the matching and verification results of each workpiece. For example, workpieces that fail the contour line count comparison are highlighted in red in the machining area layout interface, making it easy for operators to quickly locate workpieces with abnormal data; abnormal workpieces that trigger mirror recognition prompts are marked with blue contour lines and exclusive identifiers, and are simultaneously associated with detailed parameters such as mirror symmetry axis type and matching degree value; workpieces with accurate contour line count comparisons and passed rigid body transformation matching verification are displayed with green contour lines with real-time dimension annotations. The intuitive differentiation through color dimensions greatly improves the efficiency of process anomaly detection and the visualization monitoring effect of the machining process.
[0079] Furthermore, the calculation of drawing matching degree in this laser cutting method is not limited to the comparison results of the number of contour lines, but also includes feature point deviation and contour deviation during the rigid body transformation matching process. Feature point deviation refers to the coordinate offset between the contour feature points extracted by coarse scanning after rigid body transformation pose alignment and the corresponding reference feature points of the standard drawing. Specifically, it covers the absolute deviation and relative position error of the planar coordinates of geometric feature points such as corner vertices, center of the circle, and contour inflection points. For example, when calculating the drawing matching degree of a triangular workpiece, the average offset between the actual coordinates of the three corner vertices after pose alignment and the reference coordinates is used as the evaluation parameter of feature point deviation. The larger the offset, the higher the weight of the drawing matching degree deduction. Contour deviation refers to the form and position error between the initial contour of the coarse scanning reconstructed drawing and the reference contour of the standard drawing, including the length deviation and included angle deviation of each contour edge, as well as the curvature and arc length deviation of the curve segment. For example, for the above-mentioned irregular workpiece, in addition to the length and included angle deviation of the straight edge, the average normal distance between the actual reconstructed arc line of the concave arc segment after pose alignment and the reference arc line is also included in the scope of contour deviation calculation. The final drawing matching degree can be calculated by weighting three dimensions—consistency of outline quantity, feature point deviation, and outline deviation—according to preset weights. This achieves rapid initial screening and quantifies the degree of outline matching through multi-dimensional geometric parameters, balancing the operational efficiency and judgment accuracy of matching verification. It provides accurate data judgment basis for subsequent fine scanning strategy selection and initial cutting program generation.
[0080] This application also proposes a laser cutting device, which includes a laser cutting head, a first scanner, a second scanner, and a control processing unit capable of executing the above-described laser recutting method. The second scanner and the first scanner are both disposed around the laser cutting head, maintaining a fixed mounting position relative to the laser cutting head. Their scanning and acquisition directions are both directed towards the machine tool table surface and consistent with the light emission direction of the laser cutting head. The control processing unit is electrically connected to the laser cutting head, the first scanner, and the second scanner to control the laser cutting head to move the first and second scanners along the machine tool coordinate system. The specific structure of this laser recutting method is described in the above embodiments. Since this vision-based laser cutting device employs all the technical solutions of all the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be elaborated upon here.
[0081] In the full-area rough scanning process, the control processing unit controls the laser cutting head to move along the entire range of the machine tool processing area, and simultaneously triggers the first scanner to continuously acquire point cloud data of the processing table in a large field of view and high frame rate mode. Accompanying the movement trajectory of the laser cutting head, the acquisition of the full-area rough scanning point cloud is completed, and the coarse positioning information of all workpieces in the machine tool processing area is obtained. In the local fine scanning process, based on the bounding box coordinates of each workpiece obtained from the rough scanning, the control processing unit controls the laser cutting head to move the second scanner one by one to the area directly above the corresponding workpiece, and triggers the second scanner to acquire the fine scanning point cloud of the corresponding fine scanning area in a small field of view and high resolution mode, so as to restore the detailed contour and bevel features of the workpiece.
[0082] Since both the first and second scanners maintain a fixed relative spatial pose with the laser cutting head, the point cloud data obtained from the scanning can be directly mapped and transformed between the scanner coordinate system and the laser cutting head coordinate system based on the pre-calibrated relative pose parameters. This allows for a unified conversion to the machine tool coordinate system, ensuring that the scanning positioning data and the laser cutting motion trajectory are in the same coordinate reference system. This provides a unified calculation basis for workpiece pose calculation, cutting trajectory correction, and process deviation compensation.
[0083] The coordinate conversion between the first scanner, the second scanner, and the laser cutting head is a well-known prior art in this field. In technologies integrating laser processing and visual inspection, conventional techniques such as hand-eye calibration and homogeneous coordinate transformation are commonly used to establish a transformation matrix between the scanner coordinate system and the laser cutting head coordinate system, enabling the mutual conversion between scan data coordinates and processing trajectory coordinates. This is a common technical solution adopted by those skilled in the art. Those skilled in the art can establish the coordinate mapping relationship among the three components using conventional calibration methods in this field, such as standard gauge block calibration, based on the actual installation position and equipment parameters of the scanner. The specific calibration process and coordinate conversion calculations are conventional techniques in this field and do not need to be described in detail in this application.
[0084] This application also proposes an electronic device that can be integrated into the CNC system or host computer of a laser cutting device, including one or more processors and a memory electrically connected to the processors. The memory is used to store computer program instructions that can be called and executed by the processor. When the processor calls and runs the computer program stored in the memory, it can implement all the steps of the laser cutting method described in the above embodiments, and complete the entire process of standard drawing parsing, rough and fine scanning point cloud processing, workpiece pose calculation, cutting program generation and correction, and process deviation compensation.
[0085] The processor can be a central processing unit (CPU), a digital signal processor, or other processing units with data processing and instruction execution capabilities. In addition to executing program instructions related to laser cutting, it can also generate corresponding motion control instructions based on the calculation results, and regulate the other functional components in the electronic device to operate in coordination according to preset logic.
[0086] The memory may include one or more forms of computer-readable storage media, specifically covering two categories: volatile memory and non-volatile memory. Volatile memory may include random access memory (RAM), cache, etc., used to temporarily store point cloud acquisition data, intermediate calculation results, and real-time running instructions to improve data retrieval and processing efficiency. Non-volatile memory may include read-only memory (ROM), solid-state storage units, hard disks, etc., used to persistently store the program code, calibration parameter files, standard drawing database, process parameter database, and equipment configuration parameters of the laser cutting method.
[0087] In one embodiment, the electronic device may further include an input device and an output device. These components are interconnected and interact with each other via a bus system or other suitable connection architecture. The input device may include an external interactive terminal (keyboard, mouse, etc.), a data acquisition interface, and an instruction input peripheral. The input device is used for the raw point cloud data, standard drawing files, manually entered processing parameters, and recutting control instructions transmitted by the first scanner and the second scanner. The output device may include a display terminal (such as a monitor, printer, etc.), a data interaction interface, and a communication transmission module. The output device is used to output the generated standard cutting program file, scanning operation status information, and recutting processing parameters. It can also synchronize the scanning results, program data, and processing status to a remote nesting system or production management platform through a communication network to achieve automated data connection of the recutting processing steps.
[0088] In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of this application described in the "Exemplary Methods" section above.
[0089] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0090] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of this application described in the "Exemplary Methods" section above.
[0091] The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. Readable storage media may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, and portable compact disk read-only memory (CD). ROM, optical storage device, magnetic storage device, or any suitable combination thereof.
[0092] The above description is merely an optional embodiment of this application and does not limit the patent scope of this application. Any equivalent structural transformations made based on the inventive concept of this application and the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included within the patent protection scope of this application.
Claims
1. A laser-assisted cutting method, characterized in that, include: Import the standard drawing of the workpiece to be processed; The first scanner is controlled to perform a coarse scan on all the workpieces to obtain the machine tool position coordinates and the coarse scan point cloud of the initial contour of each workpiece, generate a coarse scan reconstruction drawing, and use the axis-aligned bounding box algorithm to generate the bounding box of the workpiece. The initial cutting program for the workpiece is generated based on the rough scan reconstruction drawing; Based on the bounding box, the corresponding fine scanning area is determined, and the second scanner is controlled to perform fine scanning on the fine scanning area to obtain fine scanning point cloud and generate fine scanning reconstruction drawing; The initial cutting program is corrected according to the fine-scanned reconstruction drawing, and then a standard cutting program is generated after deviation compensation calculation.
2. The laser cutting method as described in claim 1, characterized in that, Controlling the first scanner to perform a coarse scan of the workpiece and generate the coarse scan reconstruction drawing includes the following steps: The rough-scanned reconstructed drawing is compared with the corresponding standard drawing to obtain the drawing matching degree; When the drawing matching degree is not lower than the coarse matching threshold, extract the machine tool position coordinates, initial contour, placement posture and thickness information point cloud corresponding to the workpiece; When the drawing matching degree is lower than the coarse matching threshold, the machine tool position coordinates, the initial contour and the placement posture corresponding to the workpiece are extracted.
3. The laser cutting method as described in claim 2, characterized in that, The steps of comparing the rough-scanned reconstructed drawing with the corresponding standard drawing include: The matching degree of the drawing is calculated by comparing the number of outline lines in the rough-scanned reconstructed drawing with the number of outline lines in the standard drawing.
4. The laser cutting method as described in claim 2 or 3, characterized in that, The steps of controlling the second scanner to perform a fine scan on the fine scan area include: When the drawing matching degree is not lower than the coarse matching threshold, the height calibration value of the fine-scanned area is determined based on the thickness information point cloud. The scanning height of the second scanner is adjusted according to the height calibration value, and a fine scan is performed on the fine scan area.
5. The laser cutting method as described in claim 4, characterized in that, The steps of performing a fine scan on the fine scan area and generating the fine scan reconstruction drawing include: When the drawing matching degree is not lower than the coarse matching threshold, the contour feature point coordinates are calibrated by the second scanner through fine scanning based on the contour feature point coordinates obtained by the first scanner coarse scanning, and the fine scan reconstructed drawing is obtained based on the calibrated contour feature point coordinates. When the drawing matching degree is lower than the coarse matching threshold, the complete contour data of the workpiece in the fine scanning area is collected by the full-domain stitching scanning method, and the fine scanning reconstruction drawing is generated based on the complete contour data.
6. The laser cutting method as described in claim 2 or 3, characterized in that, The step of comparing the coarse-scanned reconstructed drawing with the standard drawing further includes: Rigid body transformation matching verification and mirror transformation matching verification are performed sequentially on the standard drawings; If the rigid body transformation matching check determines that there is no match, or if the standard drawing achieves a match through mirror transformation, a mirror recognition prompt is generated and output.
7. The laser cutting method as described in claim 1, characterized in that, The steps of the deviation compensation calculation include: Obtain the kerf width and use half of the kerf width as the compensation amount; The cutting trajectory is subjected to deviation compensation processing, either shrinking inward or expanding outward, based on the compensation direction.
8. A laser cutting device, characterized in that, include: Laser cutting head; First Scanner; The second scanner, like the first scanner, is located around the laser cutting head; as well as A control processing unit capable of performing the laser cutting method as described in any one of claims 1 to 7, wherein the control processing unit is electrically connected to the laser cutting head, the first scanner, and the second scanner, so as to control the laser cutting head to drive the first scanner and the second scanner to move along the machine tool coordinate system.
9. An electronic device, characterized in that, include: A processor is used to store computer programs; as well as The memory, electrically connected to the processor, is used to execute the program stored in the memory to implement the steps of the laser cutting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the laser cutting method according to any one of claims 1 to 7.
