Machining area adjusting method and device, equipment and storage medium
By optimizing the galvanomic processing area in laser processing technology, the problem of processing area deviation in the prior art is solved, and higher processing accuracy and product quality are achieved.
Patent Information
- Application Number
- CN202411993844.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-27
AI Technical Summary
During the texture processing process, existing laser processing technology, due to the differences in product material characteristics, the processing area deviates from expectations, affecting the processing effect of the texture and reducing the aesthetics and quality standards of the product.
By obtaining the area to be marked and the marking requirements, generating the marking path, selecting the verification points to obtain coordinate information, controlling the laser machine tool for marking processing, obtaining the marking point image set, confirming the marking point coordinate information, and adjusting the galvanometer processing area to match the design requirements.
Ensure that the processing area is fully consistent with the design requirements, improve processing accuracy, enhance the overall quality of the product, and achieve the best processing effect.
Smart Images

Figure CN120038441A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser processing, and particularly to a method, device, equipment and storage medium for adjusting a processing area. Background Art
[0002] Textures play an increasingly important role in product styling and appearance. In addition to spark patterns and sandblasted patterns, chemical etching processes are usually used for texture processing. The wax is transferred to the surface of the mold cavity through film negative exposure, digital printing technology or spraying patterns, and then the mold is placed in a chemical bath for etching processing. In this way, within the area with wax, the mechanical material reacts with the chemical solution and is removed. According to the texture characteristics or depth requirements, the above process is repeated, and finally different texture characteristics are formed on the surface of the mold.
[0003] However, the disadvantage of the chemical etching process is that the process is complex and lengthy. The mold goes through multiple processes, increasing many potential risks. Moreover, when the chemical solution etches downward, it also etches sideways, resulting in a lack of sharpness and a weak three-dimensional sense for the final texture. Therefore, laser processing technology is being gradually introduced into the current production workshop to engrave delicate textures on the product surface.
[0004] However, in the actual operation process, due to the differences in product material properties, the actual processing area of the laser often deviates from the expected ideal processing area. This inconsistency has an adverse effect on the processing effect of the texture, reducing the aesthetic degree and quality standard of the product.
[0005] It can be seen that the existing technology still needs to be improved. Summary of the Invention
[0006] In order to overcome the deficiencies of the existing technology, the purpose of the present invention is to provide a method for adjusting a processing area, which can optimize the galvanometer processing area before texture processing to ensure that the processing area completely matches the design requirements, so as to achieve the best processing effect.
[0007] The first aspect of the present invention provides a method for adjusting a processing area, including: obtaining the surface of the area to be marked and the marking requirements, and generating a marking path on the surface of the area to be marked based on the marking requirements; selecting multiple points from the marking path as calibration points to obtain a calibration point set, and obtaining the coordinate information of each calibration point to obtain a calibration coordinate data set; controlling a laser machine tool to perform marking processing on a calibration plate based on the marking path, and obtaining a marked point image set of the calibration plate after marking based on the calibration coordinate data set; based on the marked point image set, confirming the coordinate information of the marked points corresponding to each calibration point to obtain a marked coordinate data set; adjusting the actual processing area of the galvanometer based on the marked coordinate data set and the marking path.
[0008] Optionally, in the first implementation manner of the first aspect of the present invention, the obtaining of the surface of the area to be marked and the marking requirements, and generating a marking path on the surface of the area to be marked based on the marking requirements includes: obtaining the surface of the area to be marked, analyzing the size and shape of the surface of the area to be marked to obtain the information of the area to be marked; obtaining the marking requirements, and generating an initial path on the surface of the area to be marked by combining the minimum spanning tree algorithm and the Bezier curve algorithm based on the obtained marking requirements; using the backtracking algorithm to perform a closed verification process on the initial path, and taking the initial path that passes the verification process as the marking path.
[0009] Optionally, in the second implementation manner of the first aspect of the present invention, the selecting multiple points from the marking path as verification points to obtain a set of verification points, and obtaining the coordinate information of each verification point to obtain a set of verification coordinate data includes: using a distance-based sampling algorithm to select multiple points from the marking path as verification points to obtain a set of verification points; using a perspective transformation algorithm to calculate the abscissa and ordinate of each verification point based on the camera coordinate system to obtain the coordinate information corresponding to each verification point; integrating the coordinate information of each verification point to obtain a set of verification coordinate data.
[0010] Optionally, in the third implementation manner of the first aspect of the present invention, the controlling the laser machine tool to perform marking processing on the calibration plate based on the marking path, and obtaining a set of marked point images of the calibration plate after marking based on the set of verification coordinate data includes: controlling the laser machine tool to perform marking processing on the calibration plate based on the marking path; when the marking processing is completed, controlling the imaging device to move to the coordinate information corresponding to each verification point and take a picture to obtain multiple marked point images corresponding to the verification points; integrating the multiple marked point images to obtain a set of marked point images.
[0011] Optionally, in the fourth implementation manner of the first aspect of the present invention, the confirming the coordinate information of the marked points corresponding to each verification point based on the set of marked point images to obtain a set of marked coordinate data includes: respectively performing image enhancement processing and image denoising processing on the multiple marked point images to obtain multiple preprocessed images; using the scale-invariant feature transform algorithm to identify the marked points in the multiple preprocessed images respectively, and using the least squares method to calculate the coordinate deviation value between each marked point and its corresponding verification point; based on the coordinate information and the coordinate deviation value of the verification point corresponding to the marked point, calculating the coordinate information of the marked point, where the coordinate information of the marked point includes the abscissa and ordinate of the marked point; integrating the coordinate information of multiple marked points to obtain a set of marked coordinate data.
[0012] Optionally, in the fifth implementation manner of the first aspect of the present invention, adjusting the actual processing area of the galvanometer based on the marked coordinate data set and the marking path includes: confirming the actual processing area of the galvanometer based on the marked coordinate data set, and obtaining the boundary information of the actual processing area by using the Canny edge detection algorithm; adjusting the boundary information by using the morphological operation method based on the marking path to obtain the adjusted processing area; and adjusting the working parameters of the galvanometer based on the adjusted processing area, where the working parameters include the scanning speed and the scanning angle.
[0013] Optionally, in the sixth implementation manner of the first aspect of the present invention, after adjusting the actual processing area of the galvanometer based on the marked coordinate data set and the marking path, it includes: obtaining the texture information to be processed, where the texture information to be processed is three-dimensional texture information; performing digital processing on the texture information to be processed and analyzing the processed texture information to be processed to obtain the key texture information, where the key texture information includes texture features and key dimensions; obtaining the preset processing accuracy requirement, and generating a laser processing path by using a genetic algorithm based on the preset processing accuracy requirement and the texture information to be processed; and controlling the laser machine tool with the adjusted working parameters of the galvanometer to perform texture processing on the product to be processed based on the generated laser processing path.
[0014] The second aspect of the present invention provides a processing area adjustment device, including: a generation module, configured to obtain the surface of the area to be marked and the marking requirements, and generate a marking path on the surface of the area to be marked based on the marking requirements; an acquisition module, configured to select multiple points from the marking path as calibration points to obtain a calibration point set, and obtain the coordinate information of each calibration point to obtain a calibration coordinate data set; a marking module, configured to control the laser machine tool to perform marking processing on the calibration plate based on the marking path, and obtain a marked point image set of the calibration plate after marking based on the calibration coordinate data set; a confirmation module, configured to confirm the coordinate information of the marked points corresponding to each calibration point based on the marked point image set to obtain a marked coordinate data set; and an optimization module, configured to adjust the actual processing area of the galvanometer based on the marked coordinate data set, and generate an optimized path based on the adjusted actual processing area of the galvanometer.
[0015] The third aspect of the present invention provides a processing area adjustment device, where the processing area adjustment device includes: a memory and at least one processor, and instructions are stored in the memory; at least one of the processors invokes the instructions in the memory so that the processing area adjustment device executes each step of the processing area adjustment method described in any one of the above.
[0016] The fourth aspect of the present invention provides a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, each step of the processing area adjustment method described in any one of the above is implemented.
[0017] In the technical solution of the present invention, by obtaining the surface of the area to be marked and the marking requirements, based on the marking requirements, a marking path is generated on the surface of the area to be marked; multiple points are selected from the marking path as calibration points, and the coordinate information of each calibration point is obtained to obtain a calibration coordinate data set; the laser machine tool is controlled based on the marking path to perform marking processing on the calibration plate, and a marked point image set of the calibrated plate after marking is obtained based on the calibration coordinate data set; based on the marked point image set, the coordinate information of the marked points corresponding to each calibration point is confirmed to obtain a marked coordinate data set; the actual processing area of the galvanometer is adjusted based on the marked coordinate data set and the marking path. The method disclosed in this application can optimize the processing area of the galvanometer before the laser machine tool performs texture processing on the product to be processed, ensure that the processing area of the galvanometer completely matches the design requirements, not only improve the processing accuracy, but also enhance the overall quality of the product, that is, ensure the best processing effect can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a logical flow chart of the processing area adjustment method provided by an embodiment of the present invention;
[0019] Figure 2 is a schematic structural diagram of the processing area adjustment device provided by an embodiment of the present invention;
[0020] Figure 3 is a schematic structural diagram of the processing area adjustment equipment provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] The present invention provides a processing area adjustment method, device, equipment and storage medium. In the present invention, the terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments described here can be implemented in an order different from that shown or described here. In addition, the terms "comprising" or "having" and any deformation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or equipment comprising a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.
[0022] For ease of understanding, the specific process of the embodiment of the present invention is described below. Please refer to Figure 1 , an embodiment of the processing area adjustment method in the embodiment of the present invention includes:
[0023] 101. Obtain the surface of the area to be marked and the marking requirements. Based on the marking requirements, generate a marking path on the surface of the area to be marked;
[0024] In this embodiment, the marking requirements may include the number of marking points and the distance between adjacent marking points. Generating a marking path based on the marking requirements not only ensures the quality of the marking but also greatly improves the efficiency of the marking process and avoids marking defects caused by improper path selection.
[0025] 102. Select multiple points from the marking path as verification points to obtain a set of verification points, and obtain the coordinate information of each verification point to obtain a verification coordinate data set;
[0026] In this embodiment, by selecting verification points, it provides important data support for calculating the coordinate information of the marking points in the subsequent process and provides an important reference basis for the verification of the subsequent processing area.
[0027] 103. Control the laser machine tool to perform marking processing on the calibration plate based on the marking path, and obtain a set of marked point images of the calibration plate after marking based on the verification coordinate data set;
[0028] 104. Based on the set of marked point images, confirm the coordinate information of the marked points corresponding to each verification point to obtain a marked coordinate data set;
[0029] In this embodiment, by calculating the coordinate information of the marked points, it provides data support for the subsequent adjustment of the processing area.
[0030] 105. Adjust the actual processing area of the galvanometer based on the marked coordinate data set and the marking path.
[0031] The present application discloses a method for adjusting a processing area. By obtaining the surface of the area to be marked and the marking requirements, generating a marking path on the surface of the area to be marked based on the marking requirements; selecting multiple points from the marking path as verification points and obtaining the coordinate information of each verification point to obtain a verification coordinate data set; controlling the laser machine tool to perform marking processing on the calibration plate based on the marking path and obtaining a set of marked point images of the calibration plate after marking based on the verification coordinate data set; based on the set of marked point images, confirming the coordinate information of the marked points corresponding to each verification point to obtain a marked coordinate data set; adjusting the actual processing area of the galvanometer based on the marked coordinate data set and the marking path; the method disclosed in the present application can optimize the processing area of the galvanometer before the texture processing of the product to be processed by the laser machine tool, ensure that the processing area of the galvanometer completely matches the design requirements, not only improves the processing accuracy but also enhances the overall quality of the product, that is, ensures the best processing effect can be achieved.
[0032] In this embodiment, the obtaining the surface of the area to be marked and the marking requirements, generating a marking path on the surface of the area to be marked based on the marking requirements includes:
[0033] 201. Obtain the surface of the area to be marked, analyze the size and shape of the surface of the area to be marked, and obtain the information of the area to be marked;
[0034] 202. Obtain the marking requirements. Based on the obtained marking requirements, combine the minimum spanning tree algorithm and the Bezier curve algorithm to generate an initial path on the surface of the area to be marked;
[0035] In this embodiment, by combining the minimum spanning tree algorithm and the Bezier curve algorithm, an initial path can be generated on the surface of the area to be marked. This method not only optimizes the layout of the path but also ensures the smoothness and coherence of the marking path, thus significantly improving the marking efficiency and quality.
[0036] 203. Use the backtracking algorithm to perform a closed-loop verification process on the initial path, and use the initial path that passes the verification process as the marking path;
[0037] In this embodiment, using the backtracking algorithm to perform a closed-loop verification process on the initial path ensures the integrity and correctness of the marking path, avoids possible processing errors, and improves the reliability of the entire marking process.
[0038] In this embodiment, selecting multiple points from the marking path as verification points to obtain a set of verification points, and obtaining the coordinate information of each verification point to obtain a verification coordinate data set, including:
[0039] 301. Use the distance-based sampling algorithm to select multiple points from the marking path as verification points to obtain a set of verification points;
[0040] In this embodiment, using the distance-based sampling algorithm to select multiple points from the marking path as verification points ensures that the selected verification points are evenly distributed on the marking path, so as to comprehensively reflect the characteristics of the marking path.
[0041] 302. Use the perspective transformation algorithm to calculate the abscissa and ordinate of each verification point based on the camera coordinate system to obtain the coordinate information corresponding to each verification point;
[0042] In this embodiment, using the perspective transformation algorithm to map the verification points from their original positions to the camera coordinate system, so as to obtain the accurate abscissa and ordinate of each point on the two-dimensional plane, that is, the coordinate information of each verification point. This coordinate information is used for subsequent correction of the processing area of the galvanometer.
[0043] 303. Integrate the coordinate information of each verification point to obtain a verification coordinate data set.
[0044] In this embodiment, the controlling of the laser machine tool to mark the correction plate based on the marking path, and obtaining a mark point image set of the correction plate after marking based on the verification coordinate data set, includes:
[0045] 401. Controlling a laser machine tool to mark a correction plate based on the marking path;
[0046] 402. After the marking process is completed, the camera device is controlled to move to the coordinate information corresponding to each check point and take pictures to obtain multiple mark point images corresponding to the check points;
[0047] In this embodiment, the marker point image is used to confirm the coordinate deviation between the marker point and its corresponding check point.
[0048] 403. Integrate multiple marker point images to obtain a marker point image set.
[0049] In this embodiment, the step of confirming the coordinate information of the marking point corresponding to each verification point based on the marking point image set to obtain the marking coordinate data set includes:
[0050] 501. Perform image enhancement processing and image denoising processing on the multiple marker point images respectively to obtain multiple pre-processed images;
[0051] In this embodiment, image processing software is first used to perform detailed image enhancement on the collected multiple images containing marked points, including adjusting the contrast, brightness and color saturation of the images to ensure that the marked points are more clearly visible in the images; then, a median filter is applied to perform denoising on these enhanced images to effectively remove random noise in the images while retaining the details of the marked points as much as possible; by preprocessing multiple marked point images, the marked point images are visually clearer and the features of the marked points are more obvious, laying a solid foundation for subsequent image analysis and processing.
[0052] 502. Using a scale-invariant feature transformation algorithm to respectively identify the marker points in the plurality of pre-processed images, and using a least square method to calculate a coordinate deviation value between each marker point and its corresponding check point;
[0053] In this embodiment, first, multiple preprocessed images are carefully analyzed, and the Scale-Invariant Feature Transform (SIFT) algorithm is used to identify key marker points in the images; the SIFT algorithm can detect local feature points in the images and describe these feature points to make them invariant under different image scales and rotations; next, for each marker point identified by the SIFT algorithm, the least squares method is used to calculate the coordinate deviation value between it and a preset calibration point, providing accurate data support for subsequent machining area correction; the least squares method is a mathematical optimization technique that finds the best function match for the data by minimizing the sum of the squares of the errors.
[0054] 503. Calculate the coordinate information of the marker point based on the coordinate information of the calibration point corresponding to the marker point and the coordinate deviation value. The coordinate information of the marker point includes the abscissa and ordinate of the marker point.
[0055] In this embodiment, the coordinates of the marker point are the difference or sum value of the coordinates of the calibration point and the coordinate deviation value.
[0056] 504. Integrate the coordinate information of multiple marker points to obtain a marker coordinate dataset.
[0057] In this embodiment, adjusting the actual machining area of the galvanometer based on the marker coordinate dataset and the marking path includes:
[0058] 601. Confirm the actual machining area of the galvanometer based on the marker coordinate dataset, and use the Canny edge detection algorithm to obtain the boundary information of the actual machining area.
[0059] In this embodiment, by using the Canny edge detection algorithm, clear boundary information can be obtained based on the marker coordinate data. This step is crucial for subsequent machining area adjustment because it provides an accurate contour reference for the machining area adjustment of the galvanometer, ensuring that there are no deviations in the boundary of the machining area.
[0060] 602. Adjust the boundary information based on the marking path using morphological operation methods to obtain the adjusted machining area.
[0061] In this embodiment, morphological operation methods are used to adjust the boundary information based on the marking path; morphological operation methods are a powerful image processing technique that can adjust images according to specific shapes and structures to obtain a smoother and more accurate machining area. This adjustment not only improves the aesthetics of the machining area, but more importantly, it provides a solid foundation for the precise control of the galvanometer.
[0062] 603. Adjust the working parameters of the galvanometer based on the adjusted machining area. The working parameters include the scanning speed and the scanning angle.
[0063] In this embodiment, the scanning speed and scanning angle are the key factors affecting the processing quality and efficiency; by optimizing these two working parameters of the galvanometer, it can be ensured that the galvanometer operates in the best state, not only improving the processing speed, but also ensuring the stability and reliability of the processing quality, and at the same time reducing material waste and production costs.
[0064] Adjusting the actual processing area of the galvanometer based on the marked coordinate data set and the marking path, and then includes:
[0065] 701. Obtain the texture information to be processed, and the texture information to be processed is three-dimensional texture information;
[0066] 702. Digitally process the texture information to be processed, and analyze the digitally processed texture information to be processed to obtain texture key information, where the texture key information includes texture features and key dimensions;
[0067] In this embodiment, the SIFT algorithm can be used to extract the texture features in the three-dimensional texture information. Due to its invariance under scale and rotation changes, as well as its robustness to illumination changes and noise, the SIFT algorithm has extremely high stability and uniqueness when extracting feature points, which enables accurate matching of the same texture feature points under different viewing angles and illumination conditions, providing a solid foundation for subsequent image analysis and processing; further, the support vector machine algorithm can be used to analyze the texture features and key dimensions. The SVM algorithm performs well in processing high-dimensional data and small-sample learning. It constructs an optimal hyperplane to maximize the boundary between different categories, thereby improving the accuracy and efficiency of classification; by combining the scale-invariant feature transform (SIFT) algorithm with the support vector machine (SVM) algorithm, the texture features in the image can be effectively extracted and analyzed, thereby improving the accuracy and effectiveness of the extracted texture key information.
[0068] 703. Obtain the preset processing accuracy requirements, and based on the preset processing accuracy requirements and the texture information to be processed, use the genetic algorithm to generate the laser processing path;
[0069] In this embodiment, based on the preset processing accuracy requirements and in-depth analysis of the texture to be processed, the genetic algorithm is used to generate the laser processing path; this method not only improves the processing efficiency, but also ensures the stability of the processing quality; by simulating natural selection and genetic mechanisms, the algorithm can iteratively optimize the path scheme to find the best laser processing trajectory.
[0070] 704. Based on the generated laser processing path, control the laser machine tool with adjusted galvanometer working parameters to perform texture processing on the product to be processed;
[0071] In this embodiment, based on the generated laser processing path, a laser machine tool with an optimized galvanometer processing area is used to perform texture processing on the product to be processed. The optimized laser machine tool can more precisely control the laser beam, so as to process a texture pattern that meets the processing accuracy requirements on the surface of the product to be processed, effectively improving the product quality.
[0072] The method for adjusting the processing area in the embodiment of the present invention has been described above. Next, the device for adjusting the processing area in the embodiment of the present invention will be described. Please refer to Figure 2 , an embodiment of the device for adjusting the processing area in the embodiment of the present invention includes:
[0073] A generation module 801, configured to obtain the surface of the area to be processed and the marking requirements, and generate a marking path on the surface of the area to be processed based on the marking requirements;
[0074] An acquisition module 802, configured to select multiple points from the marking path as verification points to obtain a verification point set, and obtain the coordinate information of each verification point to obtain a verification coordinate data set;
[0075] A marking module 803, configured to control a laser machine tool to perform marking processing on a calibration plate based on the marking path, and obtain a set of marked point images of the calibration plate after marking based on the verification coordinate data set;
[0076] A confirmation module 804, configured to confirm the coordinate information of the marked points corresponding to each verification point based on the set of marked point images to obtain a marked coordinate data set;
[0077] An optimization module 805, configured to adjust the actual processing area of the galvanometer based on the marked coordinate data set, and generate an optimized path based on the adjusted actual processing area of the galvanometer.
[0078] Based on the same idea as the method in the above embodiment, the device provided in this application can implement the method in the above embodiment.
[0079] Above Figure 2 The device for adjusting the processing area in the embodiment of the present invention has been described in detail from the perspective of modular functional entities. Next, the device for adjusting the processing area in the embodiment of the present invention will be described in detail from the perspective of hardware processing.
[0080] Figure 3FIG. 0 is a schematic structural diagram of a processing area adjustment device provided by an embodiment of the present invention. The processing area adjustment device 900 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage media 930 may be transient storage or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the processing area adjustment device 900. Further, the processor 910 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the processing area adjustment device 900 to implement the steps of the processing area adjustment method provided by the above method embodiments.
[0081] The processing area adjustment device 900 may further include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that Figure 3 The shown structural diagram of the processing area adjustment device does not constitute a limitation on the processing area adjustment device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0082] The present invention also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a computer, the computer is enabled to execute the steps of the processing area adjustment method.
[0083] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, or units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0084] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0085] Finally, it should be noted that the above are only preferred examples of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A processing area adjustment method, characterized in that: include: Obtain the surface of the area to be marked and the marking requirements, and generate a marking path on the surface of the area to be marked based on the marking requirements; Selecting multiple points from the marking path as check points to obtain a check point set, and obtaining coordinate information of each check point to obtain a check coordinate data set; Controlling the laser machine tool to mark the correction plate based on the marking path, and acquiring a set of marked point images of the correction plate after marking based on the verification coordinate data set; Based on the marker point image set, coordinate information of the marker point corresponding to each check point is confirmed to obtain a marker coordinate data set; Adjust the actual processing area of the galvanometer based on the marking coordinate data set and marking path.
2. The processing area adjustment method according to claim 1, characterized in that: The step of obtaining the surface of the area to be marked and the marking requirements, and generating a marking path on the surface of the area to be marked based on the marking requirements, includes: Obtain the surface of the area to be marked, analyze the size and shape of the surface of the area to be marked, and obtain information about the area to be marked; Obtain marking requirements, and based on the obtained marking requirements, generate an initial path on the surface of the area to be marked by combining the minimum spanning tree algorithm and the Bezier curve algorithm; The backtracking algorithm is used to perform closure verification on the initial path, and the initial path that passes the verification is used as the marking path.
3. The processing area adjustment method according to claim 1, characterized in that: The step of selecting a plurality of points from the marking path as check points to obtain a check point set, and obtaining coordinate information of each check point to obtain a check coordinate data set includes: A distance-based sampling algorithm is used to select a plurality of points from the marking path as check points to obtain a check point set; The perspective transformation algorithm is used to calculate the horizontal and vertical coordinates of each check point based on the camera coordinate system to obtain the coordinate information corresponding to each check point; The coordinate information of each verification point is integrated to obtain a verification coordinate data set.
4. The processing area adjustment method according to claim 3, characterized in that: The step of controlling the laser machine tool to mark the correction plate based on the marking path, and acquiring a set of mark point images of the correction plate after marking based on the verification coordinate data set, includes: Controlling the laser machine tool to mark the correction plate based on the marking path; After the marking process is completed, the camera device is controlled to move to the coordinate information corresponding to each check point and take pictures to obtain multiple marked point images corresponding to the check points; Integrate multiple marked point images to obtain a marked point image set.
5. The processing area adjustment method according to claim 4, characterized in that: The step of confirming the coordinate information of the marking point corresponding to each check point based on the marking point image set to obtain the marking coordinate data set includes: Performing image enhancement processing and image denoising processing on multiple marker point images respectively to obtain multiple pre-processed images; The scale-invariant feature transformation algorithm is used to identify the marker points in multiple pre-processed images respectively, and the least square method is used to calculate the coordinate deviation value between each marker point and its corresponding check point; Based on the coordinate information of the check point corresponding to the marking point and the coordinate deviation value, the coordinate information of the marking point is calculated, where the coordinate information of the marking point includes the horizontal coordinate and the vertical coordinate of the marking point; Integrate the coordinate information of multiple marker points to obtain a marker coordinate dataset.
6. The processing area adjustment method according to claim 5, characterized in that: The method of adjusting the actual processing area of the galvanometer based on the marking coordinate data set and the marking path includes: The actual processing area of the galvanometer is confirmed based on the marked coordinate data set, and the boundary information of the actual processing area is obtained using the Canny edge detection algorithm; Based on the marking path, the boundary information is adjusted by using the morphological operation method to obtain the adjusted processing area; The working parameters of the galvanometer are adjusted based on the adjusted processing area, and the working parameters include a scanning speed and a scanning angle.
7. The processing area adjustment scheme according to claim 2, characterized in that: Adjust the actual processing area of the galvanometer based on the marking coordinate data set and the marking path, and then include: Acquire texture information to be processed, wherein the texture information to be processed is texture three-dimensional information; Digitally processing the texture information to be processed, and analyzing the digitally processed texture information to be processed to obtain texture key information, wherein the texture key information includes texture features and key dimensions; Obtaining a preset processing accuracy requirement, and using a genetic algorithm to generate a laser processing path based on the preset processing accuracy requirement and the texture information to be processed; Based on the generated laser processing path, the laser machine tool after controlling the galvanometer working parameters to adjust performs texture processing on the product to be processed.
8. A processing area adjustment device, characterized in that: include: A generation module is used to obtain the surface of the area to be marked and the marking requirements, and generate a marking path on the surface of the area to be marked based on the marking requirements; An acquisition module is used to select multiple points from the marking path as check points to obtain a check point set, and obtain coordinate information of each check point to obtain a check coordinate data set; A marking module, used to control a laser machine tool to mark the correction plate based on the marking path, and to obtain a set of marked point images of the correction plate after marking based on the verification coordinate data set; A confirmation module, configured to confirm the coordinate information of the marking point corresponding to each verification point based on the marking point image set, and obtain a marking coordinate data set; The optimization module is used to adjust the actual processing area of the galvanometer based on the marked coordinate data set, and generate an optimized path based on the adjusted actual processing area of the galvanometer.
9. A processing area adjustment device, characterized in that: The processing area adjustment device comprises: a memory and at least one processor, wherein instructions are stored in the memory; At least one of the processors calls the instructions in the memory to enable the processing area adjustment device to perform each step of the processing area adjustment method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the various steps of the processing area adjustment method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Laser marking method and system based on work order SN number skip management
CN121042722A
Laser marking method and system based on ticket SN number jump number management
CN121042722B