Laser engraving control method and device based on laser scanning
Through the laser engraving control method based on laser scanning, the problem of uneven energy distribution of laser on the surface of the workpiece is solved, and higher engraving accuracy and uniformity are achieved, and the appearance quality of the workpiece is improved.
Patent Information
- Application Number
- CN202411834223.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-21
AI Technical Summary
During laser engraving, due to the different absorption and reflectivity of lasers of different materials, the energy distribution of lasers on the surface of the workpiece is uneven, and there are different ablations, which affects the clarity of the engraving pattern and edge flatness.
Through a laser engraving control method based on laser scanning, the target parameters and imaging data of the workpiece are determined, and the laser engraving parameters are adjusted to achieve uniform energy distribution. The method includes target imaging, laser scanning, shooting feature point parameters, and judging the successful engraving based on preset expected workpiece imaging data.
It ensures that the energy distribution of laser light on the surface of the workpiece is uniform, improves the accuracy and uniformity of the engraving pattern, and improves the appearance quality of the workpiece.
Smart Images

Figure CN119658147A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser engraving, and in particular to a laser engraving control method and device based on laser scanning. Background Art
[0002] Laser engraving technology is a high-precision and high-efficiency processing method, which is widely used in many fields such as industrial manufacturing and jewelry processing. During the laser engraving process, the laser beam concentrates the energy on the surface of the workpiece through a focusing lens, generating high temperature to melt, vaporize or reach the ignition point of the material instantly, thereby achieving the engraving effect.
[0003] However, in practical applications, laser engraving technology also faces some challenges: due to the diversity of workpiece materials, such as metal, plastic, wood, glass and other materials, the absorption rate and reflectivity of the laser are different, resulting in uneven distribution of laser energy on the surface of the workpiece, and often different depths of ablation will occur during engraving, which not only affects the clarity and edge flatness of the engraved pattern, but also may have an adverse effect on the overall quality and service life of the workpiece. It can be seen that it is particularly important to propose a method that can improve the accuracy of laser engraving of workpieces, thereby improving the uniformity of workpiece engraving. Summary of the invention
[0004] The present invention provides a laser engraving control method and device based on laser scanning, which ensures uniform energy distribution of the laser on the surface of a workpiece, improves the engraving accuracy and uniformity of the workpiece, and further improves the clarity and edge smoothness of the engraved pattern, thereby improving the engraved appearance effect of the workpiece.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a laser engraving control method based on laser scanning, the method comprising:
[0006] Determine target parameters of a workpiece to be engraved, and perform a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece; the target parameters include at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter, a density parameter, and a size parameter;
[0007] Determine the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, and perform a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined;
[0008] According to the expected workpiece imaging data, it is determined whether the workpiece to be determined meets a preset engraving success condition. If so, the workpiece to be determined is determined as a target engraving workpiece.
[0009] As an optional implementation, in the first aspect of the present invention, performing a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece includes:
[0010] Predicting a scanning influence condition of the workpiece according to a target parameter of the workpiece; the scanning influence condition comprises at least one of a first energy absorption condition, a first light incident condition, and a first light reflection condition;
[0011] Determine a first laser scanning parameter of a preset laser device according to the scanning influence of the workpiece; the first laser scanning parameter includes at least one of a first laser frequency parameter, a first laser intensity parameter, a first laser scanning speed parameter and a first laser scanning position parameter;
[0012] According to the first laser scanning parameter of the laser device, the workpiece is subjected to a laser scanning operation, and the workpiece is photographed during the laser scanning process by a preset target camera to obtain feature point parameters of the workpiece as imaging data of the workpiece.
[0013] As an optional implementation, in the first aspect of the present invention, photographing the workpiece during the laser scanning process by a preset target camera to obtain feature point parameters of the workpiece includes:
[0014] The workpiece in the laser scanning process is photographed by a preset target camera in combination with the shooting parameters of the target camera determined based on the first laser scanning parameters to obtain a laser scanning image of the workpiece; the shooting parameters include at least one of internal and external parameters, shooting exposure parameters, and shooting aperture parameters;
[0015] When the target camera includes a first camera and a second camera, a scanning path of the laser device and an epipolar direction parameter between the first camera and the second camera during laser scanning are obtained, and scanning and shooting relationship parameters between the laser device and the target camera are determined according to the scanning path of the laser device and the epipolar direction parameters;
[0016] Correcting the laser scanning image according to the scanning and shooting relationship parameters to obtain a corrected image, and determining the plane position parameters of the feature points of the workpiece according to the corrected image;
[0017] The height position parameters of the feature point are determined, and the feature point parameters of the workpiece are determined according to the plane position parameters of the feature point and the height position parameters.
[0018] As an optional implementation, in the first aspect of the present invention, the plane position parameter of the feature point includes a first coordinate parameter of the feature point on the imaging plane of the first camera, and a second coordinate parameter of the feature point on the imaging plane of the second camera;
[0019] Wherein, determining the height position parameter of the feature point includes:
[0020] Determine a focal length parameter of the target camera and a lens baseline distance parameter between the first camera and the second camera;
[0021] According to the first coordinate parameter and the corresponding second coordinate parameter corresponding to the feature point, obtain a first target coordinate parameter in the first coordinate parameter and a second target coordinate parameter in the second coordinate parameter;
[0022] The height position parameter of the feature point is calculated according to the focal length parameter, the lens baseline distance parameter, the first target coordinate parameter and the second target coordinate parameter.
[0023] As an optional implementation, in the first aspect of the present invention, determining the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and preset expected workpiece imaging data includes:
[0024] Determine the engraving area of the workpiece according to the imaging data of the workpiece and the preset expected workpiece imaging data, and determine the engraving requirement parameters of the engraving area; the engraving requirement parameters include at least one of an engraving depth parameter, an engraving angle parameter, an engraving number parameter, and an engraving position parameter;
[0025] Acquire the first galvanometer position parameter corresponding to the feature point during the laser scanning process, and determine the laser engraving parameter of the laser device according to the first galvanometer position parameter, the engraving requirement parameter of the engraving area and the target parameter as the laser engraving parameter corresponding to the workpiece; the first galvanometer position parameter includes the first galvanometer relative position parameter and / or the first galvanometer rotation angle parameter.
[0026] As an optional implementation, in the first aspect of the present invention, judging whether the workpiece to be determined meets a preset engraving success condition according to the expected workpiece imaging data includes:
[0027] Determining target change parameters of the workpiece to be determined; the target change parameters include position change parameters and / or size change parameters;
[0028] Determining a second laser scanning parameter of the laser device according to the target change parameter; the second laser scanning parameter includes at least one of a second laser frequency parameter, a second laser intensity parameter, a second laser scanning speed parameter, and a second laser scanning position parameter;
[0029] According to the second laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece to be determined, and the workpiece to be determined is photographed by the target camera during the laser scanning process to obtain feature point parameters of the workpiece to be determined as imaging data of the workpiece to be determined;
[0030] Determine the engraved parameters of the engraving area according to the expected workpiece imaging data and the imaging data of the workpiece to be determined; the engraved parameters include engraved depth parameters and / or engraved angle parameters;
[0031] According to the engraved parameters of the engraving area, it is determined whether the engraving area meets the preset target engraving conditions. If so, it is determined that the workpiece to be determined meets the preset engraving success conditions; the target engraving conditions include engraving depth conditions and / or engraving angle conditions.
[0032] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0033] When it is determined that the workpiece to be determined does not meet the engraving success condition, obtaining a second galvanometer position parameter corresponding to a feature point of the workpiece to be determined during laser scanning; the second galvanometer position parameter includes a second galvanometer relative position parameter and / or a second galvanometer rotation angle parameter;
[0034] Based on the second galvanometer position parameter, the imaging data of the workpiece to be determined, the target parameter of the workpiece to be determined and the expected workpiece imaging data, the laser engraving parameters corresponding to the workpiece are updated, and the operation of performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined is triggered, and the operation of judging whether the workpiece to be determined meets a preset engraving success condition according to the expected workpiece imaging data is triggered.
[0035] The second aspect of the present invention discloses a laser engraving control device based on laser scanning, the device comprising:
[0036] A first determination module, used to determine target parameters of a workpiece to be engraved;
[0037] An imaging module, used to perform a target imaging operation on the workpiece according to a target parameter of the workpiece to obtain imaging data of the workpiece; the target parameter includes at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter, a density parameter and a size parameter;
[0038] A second determination module is used to determine the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and preset expected workpiece imaging data;
[0039] A laser engraving module, used for performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece, to obtain a workpiece to be determined;
[0040] A judgment module, used for performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain a workpiece to be judged;
[0041] The first determination module is further configured to determine the workpiece to be determined as a target engraving workpiece when the determination result of the determination module is yes.
[0042] As an optional implementation, in the second aspect of the present invention, the imaging module performs a target imaging operation on the workpiece according to the target parameters of the workpiece, and the manner in which the imaging data of the workpiece is obtained specifically includes:
[0043] Predicting a scanning influence condition of the workpiece according to a target parameter of the workpiece; the scanning influence condition comprises at least one of a first energy absorption condition, a first light incident condition, and a first light reflection condition;
[0044] Determine a first laser scanning parameter of a preset laser device according to the scanning influence of the workpiece; the first laser scanning parameter includes at least one of a first laser frequency parameter, a first laser intensity parameter, a first laser scanning speed parameter and a first laser scanning position parameter;
[0045] According to the first laser scanning parameter of the laser device, the workpiece is subjected to a laser scanning operation, and the workpiece is photographed during the laser scanning process by a preset target camera to obtain feature point parameters of the workpiece as imaging data of the workpiece.
[0046] As an optional implementation, in the second aspect of the present invention, the imaging module photographs the workpiece during the laser scanning process through a preset target camera to obtain the characteristic point parameters of the workpiece, specifically including:
[0047] The workpiece in the laser scanning process is photographed by a preset target camera in combination with the shooting parameters of the target camera determined based on the first laser scanning parameters to obtain a laser scanning image of the workpiece; the shooting parameters include at least one of internal and external parameters, shooting exposure parameters, and shooting aperture parameters;
[0048] When the target camera includes a first camera and a second camera, a scanning path of the laser device and an epipolar direction parameter between the first camera and the second camera during laser scanning are obtained, and scanning and shooting relationship parameters between the laser device and the target camera are determined according to the scanning path of the laser device and the epipolar direction parameters;
[0049] Correcting the laser scanning image according to the scanning and shooting relationship parameters to obtain a corrected image, and determining the plane position parameters of the feature points of the workpiece according to the corrected image;
[0050] The height position parameters of the feature point are determined, and the feature point parameters of the workpiece are determined according to the plane position parameters of the feature point and the height position parameters.
[0051] As an optional implementation, in the second aspect of the present invention, the plane position parameter of the feature point includes a first coordinate parameter of the feature point on the imaging plane of the first camera, and a second coordinate parameter of the feature point on the imaging plane of the second camera;
[0052] The imaging module determines the height position parameters of the feature points in the following manner:
[0053] Determine a focal length parameter of the target camera and a lens baseline distance parameter between the first camera and the second camera;
[0054] According to the first coordinate parameter and the corresponding second coordinate parameter corresponding to the feature point, obtain a first target coordinate parameter in the first coordinate parameter and a second target coordinate parameter in the second coordinate parameter;
[0055] The height position parameter of the feature point is calculated according to the focal length parameter, the lens baseline distance parameter, the first target coordinate parameter and the second target coordinate parameter.
[0056] As an optional implementation, in the second aspect of the present invention, the second determination module determines the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, specifically including:
[0057] Determine the engraving area of the workpiece according to the imaging data of the workpiece and the preset expected workpiece imaging data, and determine the engraving requirement parameters of the engraving area; the engraving requirement parameters include at least one of an engraving depth parameter, an engraving angle parameter, an engraving number parameter, and an engraving position parameter;
[0058] Acquire the first galvanometer position parameter corresponding to the feature point during the laser scanning process, and determine the laser engraving parameter of the laser device according to the first galvanometer position parameter, the engraving requirement parameter of the engraving area and the target parameter as the laser engraving parameter corresponding to the workpiece; the first galvanometer position parameter includes the first galvanometer relative position parameter and / or the first galvanometer rotation angle parameter.
[0059] As an optional implementation, in the second aspect of the present invention, the judgment module judges whether the workpiece to be judged meets the preset engraving success condition according to the expected workpiece imaging data, specifically including:
[0060] Determining target change parameters of the workpiece to be determined; the target change parameters include position change parameters and / or size change parameters;
[0061] Determining a second laser scanning parameter of the laser device according to the target change parameter; the second laser scanning parameter includes at least one of a second laser frequency parameter, a second laser intensity parameter, a second laser scanning speed parameter, and a second laser scanning position parameter;
[0062] According to the second laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece to be determined, and the workpiece to be determined is photographed by the target camera during the laser scanning process to obtain feature point parameters of the workpiece to be determined as imaging data of the workpiece to be determined;
[0063] Determine the engraved parameters of the engraving area according to the expected workpiece imaging data and the imaging data of the workpiece to be determined; the engraved parameters include engraved depth parameters and / or engraved angle parameters;
[0064] According to the engraved parameters of the engraving area, it is determined whether the engraving area meets the preset target engraving conditions. If so, it is determined that the workpiece to be determined meets the preset engraving success conditions; the target engraving conditions include engraving depth conditions and / or engraving angle conditions.
[0065] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0066] an acquisition module, when the judgment module determines that the workpiece to be judged does not meet the engraving success condition, acquiring a second galvanometer position parameter corresponding to a feature point of the workpiece to be judged during the laser scanning process; the second galvanometer position parameter includes a second galvanometer relative position parameter and / or a second galvanometer rotation angle parameter;
[0067] An updating module is used to update the laser engraving parameters corresponding to the workpiece based on the second galvanometer position parameters, the imaging data of the workpiece to be determined, the target parameters of the workpiece to be determined and the expected workpiece imaging data, and trigger the laser engraving module to perform the laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined, and trigger the judgment module to perform the operation of judging whether the workpiece to be determined meets the preset engraving success condition according to the expected workpiece imaging data.
[0068] The third aspect of the present invention discloses another laser engraving control device based on laser scanning, the device comprising:
[0069] A memory storing executable program code;
[0070] a processor coupled to the memory;
[0071] The processor calls the executable program code stored in the memory to execute the laser engraving control method based on laser scanning disclosed in the first aspect of the present invention.
[0072] The fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the laser engraving control method based on laser scanning disclosed in the first aspect of the present invention.
[0073] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0074] In an embodiment of the present invention, according to the determined target parameters of the workpiece to be engraved, a target imaging operation is performed on the workpiece to obtain imaging data of the workpiece, and the target parameters include material, transparency, current position, etc.; according to the imaging data of the workpiece, the target parameters and the expected workpiece imaging data, the laser engraving parameters corresponding to the workpiece are determined, and according to the laser engraving parameters corresponding to the workpiece, a laser engraving operation is performed on the workpiece to obtain a workpiece to be determined; according to the expected workpiece imaging data, it is determined whether the workpiece to be determined meets the engraving success condition, and if so, the workpiece to be determined is determined as the target engraving workpiece, thus ensuring uniform energy distribution of the laser on the workpiece surface, improving the engraving accuracy and uniformity of the workpiece, thereby improving the clarity and edge smoothness of the engraved pattern, and thus improving the engraving appearance effect of the workpiece. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0076] Figure 1 It is a flow chart of a laser engraving control method based on laser scanning disclosed in an embodiment of the present invention;
[0077] Figure 2 It is a flow chart of another laser engraving control method based on laser scanning disclosed in an embodiment of the present invention;
[0078] Figure 3 It is a structural schematic diagram of a laser engraving control device based on laser scanning disclosed in an embodiment of the present invention;
[0079] Figure 4 is a schematic structural diagram of another laser engraving control device based on laser scanning disclosed in an embodiment of the present invention;
[0080] Figure 5 It is a structural schematic diagram of another laser engraving control device based on laser scanning disclosed in an embodiment of the present invention;
[0081] Figure 6 The present invention discloses a laser engraving process based on laser scanning. DETAILED DESCRIPTION
[0082] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0083] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0084] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0085] The invention discloses a laser engraving control method and device based on laser scanning, which ensures uniform energy distribution of laser on the surface of a workpiece, improves the engraving accuracy and uniformity of the workpiece, and further improves the clarity and edge smoothness of the engraved pattern, thereby improving the engraved appearance effect of the workpiece.
[0086] Embodiment 1
[0087] See also Figure 1 , Figure 1 : is a flow chart of a laser engraving control method based on laser scanning disclosed in an embodiment of the present invention. Figure 1 The laser engraving control method based on laser scanning described above can be applied to laser engraving workpieces made of different materials such as metal, plastic, wood, and glass, and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a laser engraving control device, which can be integrated in the laser engraving equipment, or a local server or cloud server for processing the laser engraving control process based on laser scanning, and the embodiments of the present invention do not limit this. Figure 1 As shown, the laser engraving control method based on laser scanning may include the following operations:
[0088] 101. Determine target parameters of a workpiece to be engraved, and perform a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece.
[0089] In an embodiment of the present invention, optionally, the target parameter includes at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter (such as the position of the workpiece on the work surface), a density parameter, and a size parameter. Further, the imaging data of the workpiece is used to indicate the (x, y, z) coordinate data corresponding to the feature points of the workpiece, and the number of the feature points can be one or more. Further, the workpiece can be photographed using a target camera to obtain a 2D image of the workpiece, and then the (x, y, z) coordinate data corresponding to the feature points are superimposed on the 2D image to update the imaging data of the workpiece; in addition, the 2D image can also be used to engrave a mask to ensure that the area outside the mask of the workpiece will not be ablated by the laser.
[0090] 102. Determine laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, and perform laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined.
[0091] In the embodiment of the present invention, further, the expected workpiece imaging data is used to indicate the (x, y, z) coordinate data corresponding to the characteristic points of the target engraved workpiece required to be obtained after the workpiece is laser engraved.
[0092] 103. According to the expected workpiece imaging data, it is determined whether the workpiece to be determined meets a preset engraving success condition. If so, the workpiece to be determined is determined as a target engraving workpiece.
[0093] In the embodiment of the present invention, it can be understood that based on the (x, y, z) coordinate data corresponding to the feature points of the target engraved workpiece to be obtained, combined with the (x, y, z) coordinate data corresponding to the feature points of the workpiece to be determined after laser scanning, it is determined whether the workpiece to be determined needs further laser engraving operation.
[0094] It can be seen that the implementation of the embodiment of the present invention can intelligently perform target imaging and laser engraving operations on the workpiece based on the target parameters of the workpiece to be engraved, and determine the engraving effect of the obtained workpiece to be determined to obtain a target engraved workpiece. In this way, it is ensured that the energy distribution of the laser on the surface of the workpiece is uniform, the engraving accuracy and uniformity of the workpiece are improved, and then the clarity and edge flatness of the engraved pattern are improved, thereby improving the engraved appearance effect of the workpiece.
[0095] Embodiment 2
[0096] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another laser engraving control method based on laser scanning disclosed in an embodiment of the present invention. Figure 2 The laser engraving control method based on laser scanning described above can be applied to laser engraving workpieces made of different materials such as metal, plastic, wood, and glass, and the embodiments of the present invention do not limit this. Optionally, the method can be implemented by a laser engraving control device, which can be integrated in the laser engraving equipment, or a local server or cloud server for processing the laser engraving control process based on laser scanning, and the embodiments of the present invention do not limit this. Figure 2 As shown, the laser engraving control method based on laser scanning may include the following operations:
[0097] 201. Determine target parameters of the workpiece to be engraved.
[0098] 202. Predict the scanning impact of the workpiece based on the target parameters of the workpiece.
[0099] In an embodiment of the present invention, in the process of laser scanning a workpiece to obtain imaging data of the workpiece, if a normal laser scanning speed is used, it may cause ablation on the surface of the workpiece, and then affect the subsequent laser engraving effect on the workpiece. Therefore, it is necessary to first predict the scanning impact of the workpiece based on the target parameters of the workpiece, so as to determine the first laser scanning parameters of the laser equipment, such as performing a laser scanning operation on the workpiece at a slower scanning speed.
[0100] Optionally, the scanning influencing condition includes at least one of a first energy absorption condition, a first light incident condition, and a first light reflection condition (such as laser light reflected from the workpiece surface to camera imaging).
[0101] 203. Determine a first laser scanning parameter of a preset laser device according to the scanning influence of the workpiece.
[0102] In the embodiment of the present invention, optionally, the first laser scanning parameter includes at least one of a first laser frequency parameter, a first laser intensity parameter, a first laser scanning speed parameter, and a first laser scanning position parameter. It should be noted that, due to the large laser energy, long-term use may cause damage to the sensor of the target camera. Therefore, when a filter that is close to the laser frequency is used, the light energy incident on the sensor of the target camera can be greatly reduced, thereby increasing the service life of the target camera.
[0103] 204. Perform a laser scanning operation on the workpiece according to the first laser scanning parameter of the laser device, and photograph the workpiece during the laser scanning process through a preset target camera to obtain feature point parameters of the workpiece as imaging data of the workpiece.
[0104] In the embodiment of the present invention, Figure 6 As shown, the workpiece is placed on a work surface and scanned by a laser generated by a galvanometer. At the same time, a target camera (such as the main camera and the auxiliary camera in the figure) is used to shoot a series of scan lines obtained during the laser scanning process, thereby obtaining imaging data of the workpiece, such as the feature point parameters (x, y, z) of the workpiece.
[0105] 205. Determine laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, and perform laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined.
[0106] 206. Determine whether the workpiece to be determined meets a preset engraving success condition based on the expected workpiece imaging data. If so, determine the workpiece to be determined as a target engraving workpiece.
[0107] In the embodiment of the present invention, for other descriptions of step 201, step 205 and step 206, please refer to the detailed description of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0108] It can be seen that the implementation of the embodiment of the present invention can predict the scanning influence of the workpiece according to the target parameters of the workpiece, and then determine the first laser scanning parameter of the laser device according to the scanning influence, so as to perform laser scanning and shooting operations on the workpiece to obtain imaging data of the workpiece. In this way, it can be ensured that the workpiece is not subjected to laser ablation when the workpiece is laser scanned, thereby improving the imaging reliability and accuracy of the workpiece, thereby improving the subsequent engraving accuracy of the workpiece and the engraving yield of the workpiece.
[0109] In an optional embodiment, the above step 204 uses a preset target camera to photograph the workpiece during the laser scanning process to obtain feature point parameters of the workpiece, including:
[0110] The workpiece in the laser scanning process is photographed by a preset target camera in combination with the shooting parameters of the target camera determined based on the first laser scanning parameters to obtain a laser scanning image of the workpiece;
[0111] When the target camera includes a first camera and a second camera, a scanning path of the laser device and an epipolar direction parameter between the first camera and the second camera during the laser scanning process are obtained, and scanning and shooting relationship parameters between the laser device and the target camera are determined according to the scanning path and the epipolar direction parameter of the laser device;
[0112] Correcting the laser scanning image according to the scanning and shooting relationship parameters to obtain a corrected image, and determining the plane position parameters of the feature points of the workpiece according to the corrected image;
[0113] Determine the height position parameters of the feature points, and determine the feature point parameters of the workpiece based on the plane position parameters and the height position parameters of the feature points.
[0114] In this optional embodiment, when the shooting accuracy requirement is low, only one camera can be used for shooting, and when the shooting accuracy requirement is high, two or more cameras can be used for shooting. Optionally, the shooting parameters include at least one of the internal and external parameters, the shooting exposure parameters, and the shooting aperture parameters. Furthermore, the plane position parameters of the feature point include the first coordinate parameters of the feature point on the imaging plane of the first camera, and the second coordinate parameters on the imaging plane of the second camera.
[0115] For example, if Figure 6As shown, in the process of scanning the workpiece with a laser device, the workpiece can be photographed by setting a shorter exposure time or a smaller aperture for the main camera and the sub-camera (i.e., the first camera and the second camera) to obtain a low-exposure image of the workpiece (since the first camera and the second camera are arranged on the left and right, the photographing process can be: 1. The camera starts photographing; 2. The laser scans a column from top to bottom, and repeats the column scanning from left to right; 3. End photographing; 4. The corresponding coordinate parameters obtained by each camera are fused). Since the target camera is fixed and the scanning plane obtained by scanning each laser device needs to be calibrated, the calibration result is independent of the error of the galvanometer. At this time, the scanning path of the laser each time must be perpendicular to the polar direction of the two cameras. Then, the scanning and shooting relationship parameters of this laser device and the target camera (that is, the relationship between the scanning path and the polar direction) can be used to correct the low-exposure image. In this way, only points with higher brightness remain on the same horizontal line. This point can be called the feature point of the workpiece, so that the plane position parameters (x, y) of the workpiece can be obtained according to the corrected image, and the height position parameters of the feature point can be understood as the distance z between the workpiece and the target camera, and finally the feature point parameters (x, y, z) of the workpiece are obtained.
[0116] It can be seen that this optional embodiment can photograph the workpiece during the laser scanning process through a preset target camera and in combination with the first laser scanning parameter, and then obtain a laser scanning image of the workpiece. In this way, it can ensure that a clear and accurate workpiece image can be captured under different scanning conditions, and by accurately calibrating the polar direction parameters and laser scanning path between cameras, the accuracy of image correction is further improved, making the positioning of feature points more accurate and reliable, thereby reducing problems such as image distortion and feature point misalignment, which is beneficial to improving the reliability and stability of the entire subsequent laser engraving process.
[0117] In another optional embodiment, determining the height position parameters of the feature points in the above steps includes:
[0118] Determine the focal length parameter of the target camera and the lens baseline distance parameter between the first camera and the second camera;
[0119] According to the first coordinate parameter corresponding to the feature point and the corresponding second coordinate parameter, obtaining the first target coordinate parameter in the first coordinate parameter and the second target coordinate parameter in the second coordinate parameter;
[0120] The height position parameter of the feature point is calculated according to the focal length parameter, the lens baseline distance parameter, the first target coordinate parameter and the second target coordinate parameter.
[0121] In this optional embodiment, the distance between all cameras and the laser light source is called the base distance, which can be adjusted. The larger the base distance, the higher the accuracy, but the smaller the overlapping area of the two cameras. When the first camera and the second camera are used to obtain the imaging data of the workpiece, the height position parameter of the feature point of the workpiece is: z = fT / (x1-x2), where f is the focal length parameter of the target camera, T is the lens baseline distance parameter between the first camera and the second camera, x1 is the first target coordinate parameter in the first coordinate parameter (x1, y1) corresponding to the feature point, and x2 is the second target coordinate parameter in the second coordinate parameter (x2, y2) corresponding to the feature point.
[0122] It can be seen that this optional embodiment can calculate the height position parameters of the feature points through the focal length parameters of the target camera, the lens baseline distance parameters between the first camera and the second camera, and the corresponding imaging coordinate parameters of the feature points in the first camera / second camera. In this way, the internal parameters and relative position parameters of the target camera are used to improve the reliability and accuracy of determining the height position parameters of the feature points, thereby improving the reliability and accuracy of determining the imaging data of the workpiece, which is beneficial to provide strong technical support for three-dimensional measurement of the workpiece, subsequent laser engraving and other operations.
[0123] In yet another optional embodiment, the step 205 above, according to the imaging data of the workpiece, the target parameters and the preset expected imaging data of the workpiece, determines the laser engraving parameters corresponding to the workpiece, including:
[0124] Determine the engraving area of the workpiece according to the imaging data of the workpiece and the preset expected imaging data of the workpiece, and determine the engraving requirement parameters of the engraving area;
[0125] The first galvanometer position parameters corresponding to the feature points during the laser scanning process are obtained, and the laser engraving parameters of the laser device are determined according to the first galvanometer position parameters, the engraving requirement parameters of the engraving area, and the target parameters as the laser engraving parameters corresponding to the workpiece.
[0126] In this optional embodiment, the engraving requirement parameter may include at least one of an engraving depth parameter, an engraving angle parameter, an engraving times parameter, and an engraving position parameter, wherein the engraving times may be: N = C / (Z n -Z n-1 ), C is the weighted coefficient corresponding to the material parameters of the workpiece, Z n Indicates the z value (height position parameter) of the workpiece after the nth engraving. Further optionally, the first galvanometer position parameter includes a first galvanometer relative position parameter and / or a first galvanometer rotation angle parameter.
[0127] It should be noted that, because it is impossible to predict the influence of the material, shape, color, etc. of the workpiece on the laser engraving depth during the laser engraving process, it is necessary to perform a target imaging operation on the workpiece before and after engraving to obtain the feature point data of the workpiece and the first galvanometer position parameters corresponding to the feature points during laser scanning, and then perform multiple engravings on the image area that has not reached the engraving depth based on the expected workpiece imaging data. In addition, since the same galvanometer position is used for scanning and engraving, the error caused by inconsistent measurement and ablation of the workpiece during engraving can be solved.
[0128] It can be seen that this optional embodiment can determine the engraving requirement parameters of the engraving area of the workpiece based on the imaging data of the workpiece and the expected workpiece imaging data, and then combine the first galvanometer position parameters corresponding to the feature points in the laser scanning process and the target parameters of the workpiece to determine the laser engraving parameters of the laser equipment. In this way, the reliability and accuracy of determining the engraving area and laser engraving parameters can be improved, and the engraving differences between different workpieces can be flexibly responded to, ensuring the consistency of engraving quality, which is conducive to reducing the problem of insufficient engraving depth caused by differences in material, color, etc., so as to reduce the scrap rate of workpieces and improve overall production efficiency.
[0129] In yet another optional embodiment, judging whether the workpiece to be determined meets a preset engraving success condition according to the expected workpiece imaging data in step 206 includes:
[0130] Determine target variation parameters of the workpiece to be determined;
[0131] Determining a second laser scanning parameter of the laser device according to the target change parameter;
[0132] According to the second laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece to be determined, and the workpiece to be determined is photographed by a target camera during the laser scanning process to obtain characteristic point parameters of the workpiece to be determined as imaging data of the workpiece to be determined;
[0133] Determine the engraved parameters of the engraving area according to the expected workpiece imaging data and the imaging data of the workpiece to be determined;
[0134] According to the engraved parameters of the engraving area, it is determined whether the engraving area meets the preset target engraving conditions. If so, it is determined that the workpiece to be determined meets the preset engraving success conditions.
[0135] In this optional embodiment, optionally, the target change parameter includes a position change parameter and / or a size change parameter. Further optionally, the second laser scanning parameter includes at least one of a second laser frequency parameter, a second laser intensity parameter, a second laser scanning speed parameter, and a second laser scanning position parameter. Still further optionally, the engraved parameter includes an engraved depth parameter and / or an engraved angle parameter; and the target engraving condition includes an engraving depth condition and / or an engraving angle condition.
[0136] For example, before engraving, if the 3D coordinates of the two feature points corresponding to the workpiece are (10,10,20) and (100,100,20), and then the two points are laser ablated for 1 second, and if the material of the point (10,10) is darker and the 3D coordinates of the image (10,10) become (10,10,18), then the feature point may be ablated by 2mm. If the material of the point (100,100) is brighter and the 3D coordinates of the image (100,100) become (100,100,19), then the feature point may only be ablated by 1mm. Therefore, in the next engraving, in order to make the two feature points reach the same engraving height, the ablation times (or ablation time) of the point (10,10) should be less than that of the point (100,100), that is, it is determined that the workpiece to be determined does not meet the preset engraving success conditions.
[0137] It can be seen that this optional embodiment can determine the engraved parameters of the engraving area of the workpiece based on the feature point parameters of the workpiece to be determined and the expected workpiece imaging data, and then determine whether the workpiece to be determined meets the preset engraving success conditions. This is conducive to ensuring that different workpieces can meet the preset engraving standards, and then is conducive to improving the consistency and stability of the engraving quality of the workpiece, thereby helping to reduce manual intervention and reduce the risk of human error, and improving the intelligence level of the production line.
[0138] In yet another optional embodiment, the method further comprises:
[0139] When it is determined that the workpiece to be determined does not meet the engraving success condition, a second galvanometer position parameter corresponding to a feature point of the workpiece to be determined during the laser scanning process is obtained;
[0140] Based on the second galvanometer position parameter, the imaging data of the workpiece to be determined, the target parameter of the workpiece to be determined and the expected workpiece imaging data, the laser engraving parameters corresponding to the workpiece are updated, and the operation of performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined is triggered, and the operation of determining whether the workpiece to be determined meets the preset engraving success conditions according to the expected workpiece imaging data is triggered.
[0141] In this optional embodiment, optionally, the second galvanometer position parameter includes a second galvanometer relative position parameter and / or a second galvanometer rotation angle parameter.
[0142] It should be noted that during the laser engraving process, due to the limited laser energy, it is usually necessary to ablate the workpiece surface multiple times. Even for workpieces of the same material, the density of different areas of the workpiece and the different laser angles will cause different ablation depths. Therefore, it is necessary to use the 3D data of the workpiece before laser ablation and the 3D data of the workpiece after ablation to calculate the ablation depth of each area to be engraved, and then ablate the engraving area that has not reached the depth more times; it can also be understood as recording the position of the galvanometer during laser engraving, and using these galvanometer positions for 3D scanning, and comparing the generated 3D data with the preset model to determine which position needs to continue engraving.
[0143] It can be seen that this optional embodiment can update the laser engraving parameters corresponding to the workpiece based on the second galvanometer position parameters, the imaging data of the workpiece to be determined, the target parameters of the workpiece to be determined, and the expected workpiece imaging data when the workpiece to be determined does not meet the conditions for successful engraving, so as to perform multiple laser engraving operations on the workpiece. In this way, the laser engraving accuracy and engraving adaptability of the workpiece can be improved, thereby reducing the material waste and laser energy loss caused by excessive or insufficient engraving, thereby achieving efficient utilization of resources.
[0144] Embodiment 3
[0145] See also Figure 3 , Figure 3 Schematic diagram of the structure of a laser engraving control device based on laser scanning disclosed in an embodiment of the present invention. Figure 3 As shown, the laser engraving control device based on laser scanning may include:
[0146] A first determination module 301 is used to determine target parameters of a workpiece to be engraved;
[0147] An imaging module 302 is used to perform a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece;
[0148] The second determination module 303 is used to determine the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data;
[0149] The laser engraving module 304 is used to perform a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined;
[0150] The judgment module 305 is used to judge whether the workpiece to be judged meets the preset engraving success condition according to the expected workpiece imaging data;
[0151] The first determination module 301 is further configured to determine the workpiece to be determined as a target engraving workpiece when the determination result of the determination module 305 is yes.
[0152] In the embodiment of the present invention, the target parameter includes at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter, a density parameter, and a size parameter.
[0153] It can be seen that implementation Figure 3 The laser engraving control device based on laser scanning described can intelligently perform target imaging and laser engraving operations on the workpiece based on the target parameters of the workpiece to be engraved, and judge the engraving effect of the workpiece to be determined to obtain the target engraved workpiece. In this way, it ensures that the energy distribution of the laser on the surface of the workpiece is uniform, improves the engraving accuracy and uniformity of the workpiece, and then improves the clarity and edge flatness of the engraved pattern, thereby improving the engraving appearance effect of the workpiece.
[0154] In an optional embodiment, the imaging module 302 performs a target imaging operation on the workpiece according to the target parameters of the workpiece, and the manner of obtaining the imaging data of the workpiece specifically includes:
[0155] Predict the scanning impact of the workpiece based on the target parameters of the workpiece;
[0156] Determining a first laser scanning parameter of a preset laser device according to the scanning influence of the workpiece;
[0157] According to the first laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece, and the workpiece during the laser scanning process is photographed by a preset target camera to obtain feature point parameters of the workpiece as imaging data of the workpiece.
[0158] In this optional embodiment, the scanning influence condition includes at least one of a first energy absorption condition, a first light incident condition, and a first light reflection condition; the first laser scanning parameter includes at least one of a first laser frequency parameter, a first laser intensity parameter, a first laser scanning speed parameter, and a first laser scanning position parameter.
[0159] It can be seen that implementation Figure 4 The described laser engraving control device based on laser scanning can predict the scanning influence of the workpiece according to the target parameters of the workpiece, and then determine the first laser scanning parameter of the laser device according to the scanning influence, so as to perform laser scanning and shooting operations on the workpiece to obtain imaging data of the workpiece. In this way, it can be ensured that the workpiece is not subjected to laser ablation when the workpiece is laser scanned, thereby improving the imaging reliability and accuracy of the workpiece, thereby improving the subsequent engraving accuracy of the workpiece and the engraving yield rate of the workpiece.
[0160] In another optional embodiment, the imaging module 302 uses a preset target camera to photograph the workpiece during the laser scanning process to obtain the feature point parameters of the workpiece, specifically including:
[0161] The workpiece in the laser scanning process is photographed by a preset target camera in combination with the shooting parameters of the target camera determined based on the first laser scanning parameters to obtain a laser scanning image of the workpiece;
[0162] When the target camera includes a first camera and a second camera, a scanning path of the laser device and an epipolar direction parameter between the first camera and the second camera during the laser scanning process are obtained, and scanning and shooting relationship parameters between the laser device and the target camera are determined according to the scanning path and the epipolar direction parameter of the laser device;
[0163] Correcting the laser scanning image according to the scanning and shooting relationship parameters to obtain a corrected image, and determining the plane position parameters of the feature points of the workpiece according to the corrected image;
[0164] Determine the height position parameters of the feature points, and determine the feature point parameters of the workpiece based on the plane position parameters and the height position parameters of the feature points.
[0165] In this optional embodiment, the shooting parameters include at least one of internal and external parameters, shooting exposure parameters, and shooting aperture parameters.
[0166] It can be seen that the implementation Figure 4 The laser engraving control device based on laser scanning described herein can photograph the workpiece in the laser scanning process through a preset target camera and in combination with a first laser scanning parameter, and then obtain a laser scanning image of the workpiece. In this way, it can ensure that a clear and accurate workpiece image can be captured under different scanning conditions, and by accurately calibrating the polar direction parameters and the laser scanning path between the cameras, the accuracy of image correction is further improved, so that the positioning of feature points is more accurate and reliable, thereby reducing problems such as image distortion and feature point misalignment, which is beneficial to improving the reliability and stability of the subsequent entire laser engraving process.
[0167] In yet another optional embodiment, the plane position parameter of the feature point includes a first coordinate parameter of the feature point on the imaging plane of the first camera, and a second coordinate parameter of the feature point on the imaging plane of the second camera;
[0168] The imaging module 302 determines the height position parameters of the feature points in the following manner:
[0169] Determine the focal length parameter of the target camera and the lens baseline distance parameter between the first camera and the second camera;
[0170] According to the first coordinate parameter corresponding to the feature point and the corresponding second coordinate parameter, obtaining the first target coordinate parameter in the first coordinate parameter and the second target coordinate parameter in the second coordinate parameter;
[0171] The height position parameter of the feature point is calculated according to the focal length parameter, the lens baseline distance parameter, the first target coordinate parameter and the second target coordinate parameter.
[0172] It can be seen that implementation Figure 4 The described laser engraving control device based on laser scanning can calculate the height position parameters of the feature points through the focal length parameters of the target camera, the lens baseline distance parameters between the first camera and the second camera, and the corresponding imaging coordinate parameters of the feature points in the first camera / the second camera. In this way, the internal parameters and relative position parameters of the target camera are used to improve the reliability and accuracy of determining the height position parameters of the feature points, thereby improving the reliability and accuracy of determining the imaging data of the workpiece, which is conducive to providing strong technical support for three-dimensional measurement of the workpiece, subsequent laser engraving and other operations.
[0173] In another optional embodiment, the second determination module 303 determines the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, specifically including:
[0174] Determine the engraving area of the workpiece according to the imaging data of the workpiece and the preset expected imaging data of the workpiece, and determine the engraving requirement parameters of the engraving area;
[0175] The first galvanometer position parameters corresponding to the feature points during the laser scanning process are obtained, and the laser engraving parameters of the laser device are determined according to the first galvanometer position parameters, the engraving requirement parameters of the engraving area, and the target parameters as the laser engraving parameters corresponding to the workpiece.
[0176] In this optional embodiment, the engraving requirement parameters include at least one of an engraving depth parameter, an engraving angle parameter, an engraving number parameter, and an engraving position parameter; the first galvanometer position parameter includes a first galvanometer relative position parameter and / or a first galvanometer rotation angle parameter.
[0177] It can be seen that implementation Figure 4The described laser engraving control device based on laser scanning can determine the engraving requirement parameters of the engraving area of the workpiece according to the imaging data of the workpiece and the expected workpiece imaging data, and then determine the laser engraving parameters of the laser equipment in combination with the first galvanometer position parameters corresponding to the feature points in the laser scanning process and the target parameters of the workpiece. In this way, the reliability and accuracy of determining the engraving area and laser engraving parameters can be improved, and the engraving differences between different workpieces can be flexibly responded to, ensuring the consistency of engraving quality, which is conducive to reducing the problem of insufficient engraving depth caused by differences in material, color, etc., so as to reduce the scrap rate of workpieces and improve overall production efficiency.
[0178] In another optional embodiment, the judgment module 305 judges whether the workpiece to be judged meets the preset engraving success condition according to the expected workpiece imaging data in a manner specifically including:
[0179] Determine target variation parameters of the workpiece to be determined;
[0180] Determining a second laser scanning parameter of the laser device according to the target change parameter;
[0181] According to the second laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece to be determined, and the workpiece to be determined is photographed by a target camera during the laser scanning process to obtain characteristic point parameters of the workpiece to be determined as imaging data of the workpiece to be determined;
[0182] Determine the engraved parameters of the engraving area according to the expected workpiece imaging data and the imaging data of the workpiece to be determined;
[0183] According to the engraved parameters of the engraving area, it is determined whether the engraving area meets the preset target engraving conditions. If so, it is determined that the workpiece to be determined meets the preset engraving success conditions.
[0184] In this optional embodiment, the target change parameter includes a position change parameter and / or a size change parameter; the second laser scanning parameter includes at least one of a second laser frequency parameter, a second laser intensity parameter, a second laser scanning speed parameter and a second laser scanning position parameter; the engraved parameter includes an engraved depth parameter and / or an engraved angle parameter; the target engraving condition includes an engraving depth condition and / or an engraving angle condition.
[0185] It can be seen that the implementation Figure 4The laser engraving control device based on laser scanning described above can determine the engraved parameters of the engraving area of the workpiece according to the characteristic point parameters of the workpiece to be determined and the expected workpiece imaging data, and then judge whether the workpiece to be determined meets the preset engraving success conditions. This is conducive to ensuring that different workpieces can meet the preset engraving standards, and then is conducive to improving the consistency and stability of the engraving quality of the workpiece, thereby helping to reduce manual intervention and reduce the risk of human error, and improve the intelligence level of the production line.
[0186] In yet another optional embodiment, the device further comprises:
[0187] The acquisition module 306 acquires the second galvanometer position parameters corresponding to the feature points of the workpiece to be determined during the laser scanning process when the judgment module 305 judges that the workpiece to be determined does not meet the engraving success condition;
[0188] The updating module 307 is used to update the laser engraving parameters corresponding to the workpiece based on the second galvanometer position parameters, the imaging data of the workpiece to be determined, the target parameters of the workpiece to be determined and the expected workpiece imaging data, and trigger the laser engraving module 304 to perform a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined, and trigger the judging module 305 to judge whether the workpiece to be determined meets the preset engraving success conditions according to the expected workpiece imaging data.
[0189] In this optional embodiment, the second galvanometer position parameter includes a second galvanometer relative position parameter and / or a second galvanometer rotation angle parameter.
[0190] It can be seen that the implementation Figure 4 The described laser engraving control device based on laser scanning can update the laser engraving parameters corresponding to the workpiece based on the second galvanometer position parameters, the imaging data of the workpiece to be determined, the target parameters of the workpiece to be determined and the expected workpiece imaging data when the workpiece to be determined does not meet the conditions for successful engraving, so as to perform multiple laser engraving operations on the workpiece. In this way, the laser engraving accuracy and engraving adaptability of the workpiece can be improved, and the material waste and laser energy loss caused by excessive or insufficient engraving can be reduced, thereby achieving efficient utilization of resources.
[0191] Embodiment 4
[0192] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the structure of another laser engraving control device based on laser scanning disclosed in an embodiment of the present invention. Figure 5 As shown, the laser engraving control device based on laser scanning may include:
[0193] A memory 401 storing executable program codes;
[0194] a processor 402 coupled to the memory 401;
[0195] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the laser engraving control method based on laser scanning described in the first embodiment of the present invention or the second embodiment of the present invention.
[0196] Embodiment 5
[0197] The embodiment of the present invention discloses a computer storage medium storing computer instructions. When the computer instructions are called, they are used to execute the steps of the laser engraving control method based on laser scanning described in the first embodiment of the present invention or the second embodiment of the present invention.
[0198] Embodiment 6
[0199] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the laser engraving control method based on laser scanning described in the first or second embodiment.
[0200] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0201] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0202] Finally, it should be noted that the laser engraving control method and device based on laser scanning disclosed in the embodiment of the present invention disclose only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A laser engraving control method based on laser scanning, characterized in that: The method comprises: Determine target parameters of a workpiece to be engraved, and perform a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece; the target parameters include at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter, a density parameter, and a size parameter; Determine the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and the preset expected workpiece imaging data, and perform a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined; According to the expected workpiece imaging data, it is determined whether the workpiece to be determined meets a preset engraving success condition. If so, the workpiece to be determined is determined as a target engraving workpiece.
2. The laser engraving control method based on laser scanning according to claim 1, characterized in that: The step of performing a target imaging operation on the workpiece according to the target parameters of the workpiece to obtain imaging data of the workpiece includes: Predicting a scanning influence condition of the workpiece according to a target parameter of the workpiece; the scanning influence condition comprises at least one of a first energy absorption condition, a first light incident condition, and a first light reflection condition; Determine a first laser scanning parameter of a preset laser device according to the scanning influence of the workpiece; the first laser scanning parameter includes at least one of a first laser frequency parameter, a first laser intensity parameter, a first laser scanning speed parameter and a first laser scanning position parameter; According to the first laser scanning parameter of the laser device, the workpiece is subjected to a laser scanning operation, and the workpiece is photographed during the laser scanning process by a preset target camera to obtain feature point parameters of the workpiece as imaging data of the workpiece.
3. The laser engraving control method based on laser scanning according to claim 2, characterized in that: The process of photographing the workpiece during the laser scanning process by a preset target camera to obtain characteristic point parameters of the workpiece includes: The workpiece in the laser scanning process is photographed by a preset target camera in combination with the shooting parameters of the target camera determined based on the first laser scanning parameters to obtain a laser scanning image of the workpiece; the shooting parameters include at least one of internal and external parameters, shooting exposure parameters, and shooting aperture parameters; When the target camera includes a first camera and a second camera, a scanning path of the laser device and an epipolar direction parameter between the first camera and the second camera during laser scanning are obtained, and scanning and shooting relationship parameters between the laser device and the target camera are determined according to the scanning path of the laser device and the epipolar direction parameters; Correcting the laser scanning image according to the scanning and shooting relationship parameters to obtain a corrected image, and determining the plane position parameters of the feature points of the workpiece according to the corrected image; The height position parameters of the feature point are determined, and the feature point parameters of the workpiece are determined according to the plane position parameters of the feature point and the height position parameters.
4. The laser engraving control method based on laser scanning according to claim 3 is characterized in that: The plane position parameters of the feature point include a first coordinate parameter of the feature point on the imaging plane of the first camera and a second coordinate parameter of the feature point on the imaging plane of the second camera; Wherein, determining the height position parameter of the feature point includes: Determine a focal length parameter of the target camera and a lens baseline distance parameter between the first camera and the second camera; According to the first coordinate parameter and the corresponding second coordinate parameter corresponding to the feature point, obtain a first target coordinate parameter in the first coordinate parameter and a second target coordinate parameter in the second coordinate parameter; The height position parameter of the feature point is calculated according to the focal length parameter, the lens baseline distance parameter, the first target coordinate parameter and the second target coordinate parameter.
5. The laser engraving control method based on laser scanning according to claim 4, characterized in that: Determining the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and preset expected workpiece imaging data includes: Determine the engraving area of the workpiece according to the imaging data of the workpiece and the preset expected workpiece imaging data, and determine the engraving requirement parameters of the engraving area; the engraving requirement parameters include at least one of an engraving depth parameter, an engraving angle parameter, an engraving number parameter, and an engraving position parameter; Acquire the first galvanometer position parameter corresponding to the feature point during the laser scanning process, and determine the laser engraving parameter of the laser device according to the first galvanometer position parameter, the engraving requirement parameter of the engraving area and the target parameter as the laser engraving parameter corresponding to the workpiece; the first galvanometer position parameter includes the first galvanometer relative position parameter and / or the first galvanometer rotation angle parameter.
6. The laser engraving control method based on laser scanning according to claim 5, characterized in that: The step of judging whether the workpiece to be judged satisfies a preset engraving success condition according to the expected workpiece imaging data includes: Determining target change parameters of the workpiece to be determined; the target change parameters include position change parameters and / or size change parameters; Determining a second laser scanning parameter of the laser device according to the target change parameter; the second laser scanning parameter includes at least one of a second laser frequency parameter, a second laser intensity parameter, a second laser scanning speed parameter, and a second laser scanning position parameter; According to the second laser scanning parameter of the laser device, a laser scanning operation is performed on the workpiece to be determined, and the workpiece to be determined is photographed by the target camera during the laser scanning process to obtain feature point parameters of the workpiece to be determined as imaging data of the workpiece to be determined; Determine the engraved parameters of the engraving area according to the expected workpiece imaging data and the imaging data of the workpiece to be determined; the engraved parameters include engraved depth parameters and / or engraved angle parameters; According to the engraved parameters of the engraving area, it is determined whether the engraving area meets the preset target engraving conditions. If so, it is determined that the workpiece to be determined meets the preset engraving success conditions; the target engraving conditions include engraving depth conditions and / or engraving angle conditions.
7. The laser engraving control method based on laser scanning according to claim 6, characterized in that: The method further comprises: When it is determined that the workpiece to be determined does not meet the engraving success condition, obtaining a second galvanometer position parameter corresponding to a feature point of the workpiece to be determined during laser scanning; the second galvanometer position parameter includes a second galvanometer relative position parameter and / or a second galvanometer rotation angle parameter; Based on the second galvanometer position parameter, the imaging data of the workpiece to be determined, the target parameter of the workpiece to be determined and the expected workpiece imaging data, the laser engraving parameters corresponding to the workpiece are updated, and the operation of performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain the workpiece to be determined is triggered, and the operation of judging whether the workpiece to be determined meets a preset engraving success condition according to the expected workpiece imaging data is triggered.
8. A laser engraving control device based on laser scanning, characterized in that: The device comprises: A first determination module, used to determine target parameters of a workpiece to be engraved; An imaging module, used to perform a target imaging operation on the workpiece according to a target parameter of the workpiece to obtain imaging data of the workpiece; the target parameter includes at least one of a material parameter, a color parameter, a transparency parameter, a current position parameter, a density parameter and a size parameter; A second determination module is used to determine the laser engraving parameters corresponding to the workpiece according to the imaging data of the workpiece, the target parameters and preset expected workpiece imaging data; A laser engraving module, used for performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece, to obtain a workpiece to be determined; A judgment module, used for performing a laser engraving operation on the workpiece according to the laser engraving parameters corresponding to the workpiece to obtain a workpiece to be judged; The first determination module is further configured to determine the workpiece to be determined as a target engraving workpiece when the determination result of the determination module is yes.
9. A laser engraving control device based on laser scanning, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the laser engraving control method based on laser scanning according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the laser engraving control method based on laser scanning according to any one of claims 1 to 7.
Citation Information
Cited By
High-integration-level variable-focus laser engraving control method and system
CN120606172A
A high-integration variable focus laser engraving control method and system
CN120606172B