Computational method, laser processing equipment and computer readable storage medium
By establishing a coordinate system and collecting images, the processing starting point of the laser processing equipment is automatically calculated, which solves the problem of low efficiency in the existing technology and improves the efficiency and user experience of laser processing.
Patent Information
- Application Number
- CN202110950243.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-18
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-18
AI Technical Summary
Existing laser processing equipment is inefficient in obtaining the starting point of processing and relies on manual measurement and debugging, resulting in poor user experience.
Using a calculation method, by establishing a first coordinate system and a second coordinate system, using a camera to collect images of the workpiece to be processed, obtaining the coordinates of the light spot in the first coordinate system and the second coordinate system, and calculating the position of the light spot in the second coordinate system Processing starting point in the process to achieve automated acquisition.
It improves the efficiency of obtaining the starting point of processing, reduces manual measurement and debugging steps, and improves the overall efficiency of laser processing.
Smart Images

Figure CN115890028B
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser processing, and in particular to a method for calculating a processing starting point, laser processing equipment, and a computer-readable storage medium. Background Art
[0002] When current laser processing equipment performs laser processing, the starting point of the laser processing is usually measured and debugged repeatedly by hand, resulting in low processing efficiency and poor user experience. Summary of the invention
[0003] In response to the above problems, an embodiment of the present application provides a method for calculating a processing starting point, which can quickly obtain the coordinates of the processing starting point and improve processing efficiency.
[0004] In addition, an embodiment of the present application also provides a laser processing device.
[0005] In addition, an embodiment of the present application also provides a computer-readable storage medium.
[0006] The present application provides a method for calculating a processing starting point, which is applied to laser processing equipment. The method includes:
[0007] Establish a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis, and a Z axis which are perpendicular to each other, wherein the plane formed by the X axis and the Y axis is parallel to the carrier platform of the laser processing equipment;
[0008] Collecting an image of the workpiece to be processed, and acquiring a first coordinate of a light spot on the CX axis of the first coordinate system according to the image, wherein the light spot is formed by irradiating the workpiece to be processed with light emitted by a light emitter of a laser processing device; and
[0009] The second coordinate of the light spot in the second coordinate system is calculated according to the first coordinate, and the second coordinate is used as the processing starting point.
[0010] Optionally, before acquiring the image of the workpiece to be processed and obtaining the first coordinate of the light spot on the CX axis in the second coordinate system according to the image, the method further includes:
[0011] Obtaining a relationship between a first coordinate of the light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system;
[0012] The calculating the second coordinate of the light spot in the second coordinate system according to the first coordinate includes: calculating the second coordinate of the light spot in the second coordinate system according to the first coordinate and the relationship.
[0013] Optionally, the acquiring a relationship between a first coordinate of the light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system includes:
[0014] Collecting multiple images of multiple workpieces to be processed or a carrier platform and multiple workpieces to be processed, wherein the thicknesses of the multiple workpieces to be processed are different;
[0015] Acquire a plurality of first calibration coordinates of the light spot on each of the images on the CX axis of the first coordinate system according to the plurality of images;
[0016] Measuring a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system, wherein the second calibration coordinates include X-axis coordinates, Y-axis coordinates, and Z-axis coordinates; and
[0017] Linear fitting is performed based on the plurality of first calibrated coordinates and the plurality of second calibrated coordinates to obtain a relationship between the first coordinate and the second coordinate in the second coordinate system.
[0018] In addition, an embodiment of the present application further provides a laser processing device, the laser processing device comprising:
[0019] A coordinate system establishment module, used to establish a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis and a Z axis which are perpendicular to each other, wherein the plane formed by the X axis and the Y axis is parallel to the carrier platform of the laser processing equipment;
[0020] An image acquisition module, used for acquiring an image of the workpiece to be processed;
[0021] A first calculation module is used to obtain a first coordinate of a light spot on a CX axis of the first coordinate system according to the image, wherein the light spot is formed by irradiating the workpiece with light emitted by a light emitter of a laser processing device; and
[0022] The second calculation module is used to calculate the second coordinate of the light spot in the second coordinate system, and take the second coordinate as the processing starting point.
[0023] Optionally, the laser processing equipment further includes:
[0024] The relationship calculation module is used to obtain a relationship between a first coordinate of the light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system.
[0025] Optionally, the image acquisition module is further used to acquire multiple images of multiple workpieces to be processed or a carrier platform and multiple workpieces to be processed, wherein the thicknesses of the multiple workpieces to be processed are different, and the relationship calculation module includes:
[0026] A first calculation unit, configured to obtain a plurality of first calibration coordinates of the light spot on the image on the CX axis of the first coordinate system according to the plurality of images;
[0027] A second calculation unit is used to measure a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system, wherein the second calibration coordinates include an X-axis coordinate, a Y-axis coordinate, and a Z-axis coordinate; and
[0028] The fitting unit is used to perform linear fitting based on the multiple first calibration coordinates and the multiple second calibration coordinates to obtain a relationship between the first coordinate and the second coordinate in the second coordinate system.
[0029] In addition, an embodiment of the present application also provides a laser processing device, which includes a carrier table for carrying a workpiece to be processed; a camera for capturing an image of the workpiece to be processed; and a light emitter for emitting light toward the carrier table to form a light spot on the surface of the workpiece to be processed; the laser processing device also includes: a processor and a memory, the memory storing a program code that can be executed by the processor, and when the program code is called and executed by the processor, the method for calculating the processing starting point described in any one of claims 1 to 3 is executed.
[0030] Optionally, the angle between the center line of the light emitter and the supporting platform is less than or equal to 45°.
[0031] Optionally, the light emitter is used to emit infrared light.
[0032] In addition, an embodiment of the present application further provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores an executable program code, and the computer-executable program code is used to enable the computer to implement the method for calculating the processing starting point described in the embodiment of the present application.
[0033] The method for calculating the processing starting point in the embodiment of the present application is to mark a light spot on the workpiece to be processed, obtain an image of the workpiece to be processed through a camera, and obtain the coordinates of the position of the light spot (i.e., the coordinates of the processing starting point) from the coordinates of the light spot on the image. The acquisition of the processing starting point can be automated without manual measurement and debugging, thereby improving the efficiency of obtaining the processing starting point and further improving the efficiency of laser processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 It is a flowchart of a method for calculating a processing starting point according to an embodiment of the present application.
[0036] Figure 2 It is a flowchart of a method for calculating a processing starting point according to another embodiment of the present application.
[0037] Figure 3 It is a flowchart of a method for obtaining a relationship formula according to an embodiment of the present application.
[0038] Figure 4 It is a structural block diagram of a laser processing device according to an embodiment of the present application.
[0039] Figure 5 This is a structural block diagram of a laser processing device according to another embodiment of the present application.
[0040] Figure 6 It is a schematic diagram of the structure of the laser processing equipment of an embodiment of the present application.
[0041] Figure 7 This application Figure 6 Schematic diagram of the exploded structure of the laser processing equipment of the embodiment.
[0042] Figure 8 It is a schematic diagram of the positional relationship between the camera and the support platform of the laser processing equipment in an embodiment of the present application.
[0043] Fig. 9 Circuit block diagram of the laser processing equipment in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] The terms "first", "second", etc. in the specification and claims of this application 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, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0047] It should be noted that, for the convenience of explanation, in the embodiments of the present application, the same figure marks represent the same components, and for the sake of brevity, detailed descriptions of the same components are omitted in different embodiments.
[0048] When laser processing equipment performs laser processing, it is necessary to first confirm the three-dimensional coordinates of the processing starting point, and then control the laser head of the laser processing equipment to move to the processing starting point according to the three-dimensional coordinates, and start processing from the processing starting point. However, the coordinates of the Z axis (i.e., the direction perpendicular to the surface of the workpiece to be processed) of the processing starting point of the laser processing equipment in the related art can be confirmed by measuring the distance between the workpiece to be processed and the laser head or camera, etc., but the coordinates of the X axis and Y axis (the X axis and the Y axis are perpendicular to each other and parallel to the workpiece to be processed) are usually obtained by manual measurement and repeated debugging, which greatly reduces the processing efficiency of the laser processing equipment and greatly reduces the user experience.
[0049] See also Figure 1 , the embodiment of the present application provides a method for calculating a processing starting point, which is applied to laser processing equipment, and the method includes:
[0050] S101, establishing a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis, and a Z axis which are perpendicular to each other, wherein a plane formed by the X axis and the Y axis is parallel to a carrier table of a laser processing device;
[0051] Optionally, a first coordinate system of the image of the workpiece to be processed is established, the first coordinate system is a two-dimensional coordinate system, the first coordinate system includes a CX axis and a CY axis, and the CX axis is perpendicular to the CY axis. Optionally, the first coordinate system is an image coordinate system, and its unit is pixel. Optionally, the image can be collected by a camera of a laser processing device.
[0052] Optionally, a second coordinate system is established in the space where the workpiece to be processed is located. The second coordinate system is a three-dimensional coordinate system. The second coordinate system includes an X-axis, a Y-axis and a Z-axis. The X-axis is perpendicular to the Y-axis and the Z-axis respectively, and the Y-axis is perpendicular to the Z-axis. The plane formed by the X-axis and the Y-axis is parallel to the support platform of the laser processing equipment or the workpiece to be processed. The unit of the second coordinate system can be mm. In some embodiments, a point on the support platform is used as the origin of the Z axis of the second coordinate system, and two perpendicular lines on the plane of the support platform are used as the X-axis and the Y-axis of the second coordinate system.
[0053] S102, collecting an image of the workpiece to be processed, and acquiring a first coordinate of a light spot on a CX axis of the first coordinate system according to the image, wherein the light spot is formed on the workpiece to be processed by light emitted by a light emitter of a laser processing device; and
[0054] Optionally, the workpiece to be processed is placed on a supporting table of a laser processing device, and an image of the workpiece to be processed is captured by an image acquisition module such as a camera. The first coordinate of the light spot of the image on the CX axis of the first coordinate system is acquired, in other words, the first coordinate of the light spot in the image coordinate is acquired. The light spot is formed by the light emitted by the light emitter of the laser processing device irradiating the workpiece to be processed. It should be noted that after the light emitted by the light emitter irradiates the workpiece to be processed, a light spot will be formed on the workpiece to be processed. Therefore, when the camera is used to acquire the image of the workpiece to be processed, the image also includes the image of the light spot.
[0055] Optionally, the incident angle of the light emitted by the light emitter on the workpiece to be processed or the carrier is greater than 0°, more preferably greater than or equal to 45°. In this way, when the thickness of the workpiece to be processed is different, the position of the light spot irradiated on the surface of the workpiece to be processed changes, thereby changing the coordinates of the light spot in the first coordinate system and the second coordinate system. Therefore, the coordinates of the light spot in the second coordinate system are derived from the position or coordinates of the light spot in the first coordinate system.
[0056] S103, calculating the second coordinates of the light spot in the second coordinate system according to the first coordinates, and taking the second coordinates as the processing starting point.
[0057] Optionally, according to the first coordinate and the relationship between the first coordinate and the second coordinate, the second coordinate of the light spot in the second coordinate system is calculated, and the second coordinate is used as the processing starting point of the laser processing equipment. Optionally, the second coordinate is a three-dimensional coordinate, and the second coordinate includes an X-axis coordinate, a Y-axis coordinate, and a Z-axis coordinate.
[0058] The method for calculating the processing starting point in the embodiment of the present application is to mark a light spot on the workpiece to be processed, obtain an image of the workpiece to be processed through a camera, and obtain the coordinates of the position of the light spot (i.e., the coordinates of the processing starting point) from the coordinates of the light spot on the image. The acquisition of the processing starting point can be automated without manual measurement and debugging, thereby improving the efficiency of obtaining the processing starting point and further improving the efficiency of laser processing.
[0059] See also Figure 2 Another embodiment of the present application provides a method for calculating a processing starting point, which is applied to a laser processing device, and the method includes:
[0060] S201, establishing a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis, and a Z axis which are perpendicular to each other, wherein a plane formed by the X axis and the Y axis is parallel to a carrier table of a laser processing device;
[0061] The detailed description of step S201 can be found in the detailed description of step S101 in the above embodiment, which will not be repeated here.
[0062] S202, obtaining a relationship between a first coordinate of a light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system, wherein the light spot is formed on the workpiece by light emitted by a light emitter of a laser processing device;
[0063] Optionally, the light emitted by the light emitter of the laser processing equipment forms a light spot after irradiating the workpiece to be processed, and the light spot can be an infrared light spot, an ultraviolet light spot, a red light spot, a blue light spot, or a purple light spot, etc. The present application does not specifically limit the color of the light spot.
[0064] Please also see Figure 3 Optionally, the relationship between the first coordinate of the acquired light spot on the CX axis of the first coordinate system and the second coordinate in the second coordinate system includes:
[0065] S2011, collecting multiple images of multiple workpieces to be processed or a carrier platform and multiple workpieces to be processed, wherein the thicknesses of the multiple workpieces to be processed are different;
[0066] Optionally, the light emitter is turned on so that the light emitted by the light emitter is irradiated onto the carrier platform or the workpiece to be processed, and a light spot is formed on the carrier platform or the workpiece to be processed; a plurality of workpieces to be processed with different thicknesses are placed on the carrier platform in sequence, and then an image acquisition module such as a camera is used in sequence to capture images of the carrier platform and each workpiece to be processed, thereby obtaining a plurality of images, including the image of the light spot.
[0067] S2012, acquiring a plurality of first calibration coordinates (CX-axis coordinates) of the light spot on each of the images on the CX-axis of the first coordinate system according to the plurality of images;
[0068] Optionally, according to the multiple images, first calibration coordinates of the light spot of each image on the CX axis of the first coordinate axis are respectively obtained. The first calibration coordinates can be obtained by manual measurement or image recognition.
[0069] S2013, measuring a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system, wherein the second calibration coordinates include X-axis coordinates, Y-axis coordinates and Z-axis coordinates; and
[0070] Optionally, by manual measurement, a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system are measured, such as the X-axis coordinate, Y-axis coordinate and Z-axis coordinate of each light spot. Optionally, when the origin of the second coordinate system is located on the carrier, the thickness of the workpiece to be processed is the coordinate of the light spot on the Z-axis in the second coordinate system.
[0071] S2014: Perform linear fitting based on the multiple first calibrated coordinates and the multiple second calibrated coordinates to obtain a relationship between the first coordinate and the second coordinate in the second coordinate system.
[0072] Optionally, the Z-axis coordinate is fitted with the CX-axis coordinate to obtain the relational equation (1) between Z and CX: Z = a*CX+b, where a and b are both constants of a linear function. The Z-axis coordinate is fitted with the X-axis coordinate to obtain the relational equation (2) between X and Z: X = c*Z+d, where c and d are both constants of a linear function. The Z-axis coordinate is fitted with the Y-axis coordinate to obtain the relational equation (3) between X and Z: Y = e*Z+f, where e and f are both constants of a linear function.
[0073] The relationship between the first coordinate and the second coordinate includes relationship (1), relationship (2) and relationship (3).
[0074] In a specific embodiment, the relationship between the first coordinate and the second coordinate is obtained by the following steps:
[0075] 1) Collect images of the carrier platform and images of the workpiece to be processed with thicknesses of 3 mm, 6 mm, 9 mm, 12 mm, and 15 mm respectively.
[0076] 2) The coordinates of the light spot in each image on the CX-axis of the first coordinate system (first calibration coordinates) are: 861.3, 1117.8, 1372.2, 1620.7, 1877.1, 2132.6 respectively.
[0077] 3) Taking the point of the supporting platform as the Z-axis origin, the X-axis coordinates of the supporting platform and the multiple workpieces to be processed in the second coordinate system (the X-axis coordinates of the second calibration coordinates) are measured to be 194.1, 199.8, 205.4, 211.1, 216.7, and 222.4, respectively; the Y-axis coordinates in the second coordinate system (the Y-axis coordinates of the second calibration coordinates) are 156.8, 155.7, 154.6, 153.5, 152.4, and 151.3, respectively; the Z-axis coordinates in the second coordinate system (the Z-axis coordinates of the second calibration coordinates) are 0.0, 3.0, 6.0, 9.0, 12.0, and 15.0, respectively.
[0078] 4) Fitting the Z-axis coordinate with the CX-axis coordinate, the relationship between Z and CX (1) is obtained: Z = 0.0118CX-10.15, where a = 0.0118, b = -10.15; fitting the Z-axis coordinate with the X-axis coordinate, the relationship between X and Z (2) is obtained: X = 1.8833Z + 194.10, where c = 1.8833, d = 194.10; fitting the Z-axis coordinate with the Y-axis coordinate, the relationship between X and Z (3) is obtained: Y = -0.3667Z + 156.8, where e = -0.3667, f = 156.8.
[0079] S203, collecting an image of the workpiece to be processed, and acquiring a first coordinate of the light spot on the CX axis of the first coordinate system according to the image; and
[0080] S204, calculating the second coordinate of the light spot in the second coordinate system according to the first coordinate and the relationship, and taking the second coordinate as the processing starting point.
[0081] The detailed description of steps S203 and S204 can be found in the detailed description of S102 and S103 in the above embodiment, which will not be repeated here.
[0082] For the description of the parts of this embodiment that are the same as those in the above embodiment, please refer to the above embodiment and will not be repeated here.
[0083] See also Figure 4 The embodiment of the present application further provides a laser processing device 300, and the laser processing device 300 includes:
[0084] The coordinate system establishment module 310 is used to establish a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis, and a Z axis which are perpendicular to each other, wherein the plane formed by the X axis and the Y axis is parallel to the carrier of the laser processing device 300;
[0085] An image acquisition module 330 is used to acquire an image of the workpiece to be processed;
[0086] a first calculation module 350, configured to obtain a first coordinate of a light spot on a CX axis of the first coordinate system according to the image, wherein the light spot is formed by irradiating the workpiece with light emitted by the light emitter of the laser processing device 300; and
[0087] The second calculation module 370 is used to calculate the second coordinate of the light spot in the second coordinate system, and use the second coordinate as the processing starting point.
[0088] For the features of this embodiment that are the same as those of the above embodiment, please refer to the detailed description of the above embodiment and will not be repeated here.
[0089] See also Figure 5 In some embodiments, the laser processing equipment 300 further includes: a relationship calculation module 390, which is used to obtain a relationship between the first coordinate of the light spot on the CX axis of the first coordinate system and the second coordinate in the second coordinate system.
[0090] Please see again Figure 5 In some embodiments, the image acquisition module 330 is further used to acquire multiple images of multiple workpieces to be processed or a carrier and multiple workpieces to be processed, wherein the thicknesses of the multiple workpieces to be processed are different, and the relationship calculation module 390 includes:
[0091] A first calculation unit 391 is used to obtain a plurality of first calibration coordinates of the light spot on the image on the CX axis of the first coordinate system according to the plurality of images;
[0092] A second calculation unit 393 measures a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system, wherein the second calibration coordinates include an X-axis coordinate, a Y-axis coordinate, and a Z-axis coordinate; and
[0093] The fitting unit 395 is used to perform linear fitting according to the multiple first calibration coordinates and the multiple second calibration coordinates to obtain a relationship between the first coordinates and the second coordinates in the second coordinate system.
[0094] For the features of this embodiment that are the same as those of the above embodiment, please refer to the detailed description of the above embodiment and will not be repeated here.
[0095] See also Figures 6 to 9The embodiment of the present application also provides a laser processing device 400, which includes a carrier 410 for carrying a workpiece to be processed; a camera 430 for collecting an image of the workpiece to be processed; and a light emitter 450 for emitting light toward the carrier 410 to form a light spot on the surface of the workpiece to be processed; the laser processing device 400 also includes a processor 470 and a memory 490, the processor 470 is electrically connected to the camera module and the processor 470, respectively, and the memory 490 stores a program code that can be executed by the processor 470. When the program code is called and executed by the processor 470, the calculation method of the processing starting point described in the embodiment of the present application is executed.
[0096] Optionally, the camera 430 may be, but is not limited to, a wide-angle camera, a zoom camera, etc.
[0097] See also Figure 8 In some embodiments, the plane formed by the camera 430 and the first end 411 of the carrier 410 is the first plane 402, the plane formed by the camera 430 and the second end 413 of the carrier 410 is the second plane 404, and the angle α between the optical axis of the camera 430 and the first plane 402 is equal to the angle β between the optical axis of the camera 430 and the second plane 404. In this way, the image of the workpiece to be processed obtained by the camera 430 can have better quality, so that the laser processing equipment 100 can process the workpiece to be processed more accurately. The term "optical axis" in this application refers to the symmetry axis of the camera 430 or the symmetry axis of the optical system of the camera 430.
[0098] Optionally, the light emitter 450 can emit infrared light, ultraviolet light, red light, blue light or purple light, etc. In other words, the light emitter 450 is an infrared light source, an ultraviolet light source, a red light source, a blue light source or a purple light source, etc. The light spot can be an infrared light spot, an ultraviolet light spot, a red light spot, a blue light spot, or a purple light spot, etc. The present application does not specifically limit the color of the light spot.
[0099] In some embodiments, the angle between the center line of the light emitter 450 and the carrier 410 is less than or equal to 45°. In other words, the incident angle of the light emitted by the light emitter 450 on the workpiece or the carrier 410 is greater than or equal to 45°. Specifically, the angle between the center line of the light emitter 450 and the carrier 410 can be 45°, 40°, 35°, 30°, 25°, 20°, 15°, etc.
[0100] Optionally, a processing space for placing workpieces and performing laser processing is provided in the laser processing equipment 400, and the processing space is opened by rotating an upper cover plate.
[0101] The laser processing equipment 100 of the embodiment of the present application includes a frame and a mounting frame installed in the frame, and the processing space is set in the frame. The camera 430 is set on the mounting frame inside the laser processing equipment 100. Compared with the solution in which the camera 430 is installed on the upper cover plate, the solution of the embodiment of the present application not only simplifies the routing of the camera 430, but also better prevents the deformation of the cover plate or the change of the position of the camera 430 caused by repeated switching, thereby avoiding the debugging before laser processing and improving the processing accuracy and processing efficiency. In addition, compared with the solution in which the camera 430 is installed on the cover plate, the camera 430 is installed on the mounting frame. While ensuring that the picture of the entire workpiece to be processed is captured, the height of the entire laser processing equipment 100 can also be reduced, which is more convenient for the user to place the workpiece to be processed (when the user places the workpiece to be processed, the user's hand will go deep into the processing space or the frame, and the height of the laser processing equipment 100 is too high, which is not convenient for the user to operate).
[0102] The camera 430 is arranged at the middle position of the mounting frame. When the camera 430 is installed at the middle position of the mounting frame, the overall image of the workpiece to be processed can be better captured. The term "middle position" in this application refers to the exact center position of the component, or the part close to the exact center position. Optionally, the camera 430 is arranged at the bottom of the receiving groove. This can better prevent the camera 430 from being accidentally damaged when the workpiece to be processed is processed, and also has a better dustproof effect, which increases the service life of the camera 430. At the same time, the equivalent circular diameter of the receiving groove gradually decreases from the mounting surface to the bottom of the receiving groove, which can better avoid the side wall of the receiving groove from affecting the shooting effect of the camera.
[0103] In one embodiment, the camera 430 is arranged in the middle of the mounting frame, the light emitter 450 and the camera 430 can be arranged on the same side of the laser processing equipment 100, and the light emitter 450 is installed on the surface of the mounting frame facing the carrier. In some embodiments, the distance between the light emitter 450 and the camera 430 is greater than or equal to 10 cm, for example, it can be greater than 15 cm, greater than 20 cm, etc. Specifically, it can be but not limited to 10 cm, 12 cm, 15 cm, 18 cm, 20 cm, 22 cm, 25 cm, 28 cm, 30 cm, etc. In this way, the light emitter 450 can effectively illuminate the surface of the carrier or the workpiece to be processed of different thicknesses to produce corresponding changes, so that the image of the workpiece to be processed obtained by the camera 430 has better quality, so that the laser processing equipment 100 can more accurately determine the processing starting point and process the workpiece to be processed.
[0104] Optionally, the memory 490, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for calculating the processing starting point in the embodiment of the present invention. The processor 470 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 490, that is, the method for calculating the processing starting point in the above method embodiment is implemented.
[0105] Optionally, the processor 470 includes one or more general-purpose processors 470, wherein the general-purpose processor 470 can be any type of device capable of processing electronic instructions, including a central processing unit (CPU), a microprocessor, a microcontroller, a main processor, a controller, and an ASIC, etc. The processor 470 is used to execute various types of digital storage instructions, such as software or firmware programs stored in the memory 490, which enables the computing device to provide a wide variety of services.
[0106] Optionally, the memory 490 may include a random access memory (RAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. In addition. Any connection can be appropriately a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are included in the fixation of the medium. As used in the present invention, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blue-ray disc, wherein disk usually reproduces data magnetically, while disc uses laser to reproduce data optically. The above combination should also be included in the scope of protection of computer-readable media.
[0107] See also Figure 7 and Fig. 9 The laser processing equipment of the embodiment of the present application also includes a laser head 480, which is electrically connected to the processor 470 and is used to perform engraving, cutting and other processing on the workpiece starting from the processing starting point under the control of the processor 470.
[0108] For the features of this embodiment that are the same as those of the above embodiment, please refer to the detailed description of the above embodiment and will not be repeated here.
[0109] The embodiment of the present application also provides a computer-readable storage medium, which stores an executable program code, and the computer-executable program code is used to enable a computer to execute the method for calculating the processing starting point of the embodiment of the present application.
[0110] References to "embodiments" and "implementations" herein mean that a particular feature, structure, or characteristic described in conjunction with an embodiment may be included in at least one embodiment of the present application. The appearance of the phrases in various locations in the specification does not necessarily refer to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive of 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.
[0111] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the above preferred implementation modes, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A method for calculating a processing starting point, applied to laser processing equipment, characterized in that: The method comprises: Establish a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis, and a Z axis which are perpendicular to each other, wherein the plane formed by the X axis and the Y axis is parallel to the carrier platform of the laser processing equipment; Obtaining a relationship between a first coordinate of a light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system, comprising: collecting a plurality of images of a plurality of workpieces to be processed or a carrier and a plurality of workpieces to be processed, wherein the thicknesses of the plurality of workpieces to be processed are all different; obtaining a plurality of first calibrated coordinates of the light spot on each of the images on the CX axis of the first coordinate system according to the plurality of images; measuring a plurality of second calibrated coordinates of the light spot on the plurality of workpieces to be processed or the carrier and a plurality of workpieces to be processed in the second coordinate system, wherein the second calibrated coordinates include an X-axis coordinate, a Y-axis coordinate and a Z-axis coordinate; and performing linear fitting according to the plurality of first calibrated coordinates and the plurality of second calibrated coordinates to obtain a relationship between the first coordinate and the second coordinate in the second coordinate system; Collecting an image of the workpiece to be processed, and acquiring a first coordinate of a light spot on the CX axis of the first coordinate system according to the image, wherein the light spot is formed by irradiating the workpiece to be processed with light emitted by a light emitter of a laser processing device; and According to the first coordinates and the relationship, the second coordinates of the light spot in the second coordinate system are calculated, and the second coordinates are used as the processing starting point.
2. The method for calculating the processing starting point according to claim 1, characterized in that: The relationship includes: the relationship between the Z-axis coordinate and the CX-axis coordinate (1): Z = a*CX+b, where a and b are both constants of a linear function; the relationship between the Z-axis coordinate and the X-axis coordinate (2): X = c*Z+d, where c and d are both constants of a linear function; and the relationship between the Z-axis coordinate and the Y-axis coordinate (3): Y = e*Z+f, where e and f are both constants of a linear function.
3. A laser processing device, characterized in that: The laser processing equipment comprises: A coordinate system establishment module, used to establish a first coordinate system and a second coordinate system, wherein the first coordinate system includes a CX axis, and the first coordinate system is a coordinate system of the image of the workpiece to be processed; the second coordinate system includes an X axis, a Y axis and a Z axis which are perpendicular to each other, wherein the plane formed by the X axis and the Y axis is parallel to the carrier platform of the laser processing equipment; An image acquisition module, used for acquiring an image of the workpiece to be processed; A first calculation module is used to obtain a first coordinate of a light spot on a CX axis of the first coordinate system according to the image, wherein the light spot is formed by irradiating the workpiece with light emitted by a light emitter of a laser processing device; and A second calculation module, used for calculating a second coordinate of the light spot in the second coordinate system, and taking the second coordinate as the processing starting point; The laser processing equipment also includes: A relational calculation module is used to obtain a relational expression between a first coordinate of the light spot on the CX axis of the first coordinate system and a second coordinate in the second coordinate system; the image acquisition module is also used to acquire multiple images of multiple workpieces to be processed or a carrier and multiple workpieces to be processed, wherein the thicknesses of the multiple workpieces to be processed are different, and the relational calculation module includes: A first calculation unit, configured to obtain a plurality of first calibration coordinates of the light spot on the image on the CX axis of the first coordinate system according to the plurality of images; A second calculation unit is used to measure a plurality of second calibration coordinates of the light spots on the plurality of workpieces to be processed or the carrier and the plurality of workpieces to be processed in the second coordinate system, wherein the second calibration coordinates include an X-axis coordinate, a Y-axis coordinate, and a Z-axis coordinate; and The fitting unit is used to perform linear fitting based on the multiple first calibration coordinates and the multiple second calibration coordinates to obtain a relationship between the first coordinate and the second coordinate in the second coordinate system.
4. The laser processing equipment according to claim 3, characterized in that: The relationship includes: the relationship between the Z-axis coordinate and the CX-axis coordinate (1): Z = a*CX+b, where a and b are both constants of a linear function; the relationship between the Z-axis coordinate and the X-axis coordinate (2): X = c*Z+d, where c and d are both constants of a linear function; and the relationship between the Z-axis coordinate and the Y-axis coordinate (3): Y = e*Z+f, where e and f are both constants of a linear function.
5. A laser processing device, characterized in that: The laser processing equipment includes a carrying platform for carrying a workpiece to be processed; A camera for collecting an image of the workpiece to be processed; and a light emitter for emitting light toward the carrier platform to form a light spot on the surface of the workpiece to be processed; The laser processing equipment also includes: a processor and a memory, the processor is electrically connected to the camera module and the processor respectively, the memory stores a program code that can be executed by the processor, and when the program code is called and executed by the processor, the calculation method of the processing starting point described in claim 1 or 2 is executed.
6. The laser processing equipment according to claim 5, characterized in that: The angle between the center line of the light emitter and the supporting platform is less than or equal to 45°.
7. The laser processing equipment according to claim 5 or 6, characterized in that: The light emitter is used for emitting infrared light.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable program code, and the computer-executable program code is used to enable a computer to execute the method for calculating the processing starting point according to claim 1 or 2.
