Calibration Method, Device, Terminal and Storage Medium of Laser Engraving Machine
By determining the initial height and multiple test heights on the radium engraving machine, conducting the radium engraving QR code and performing level tests, the problem of low calibration accuracy of the radium engraving machine is solved, and the improvement of the radium engraving effect is achieved.
Patent Information
- Application Number
- CN202210246469.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-03-14
AI Technical Summary
The calibration accuracy of existing laser engraving machines is low, resulting in poor laser engraving effect.
By determining the initial height of the laser focus of the laser engraving machine based on multiple laser points, adjusting multiple test heights, triggering the laser to perform laser engraving and obtaining the QR code for level testing, and determining the target height of the laser focus based on the level test results.
It improves the calibration accuracy of the laser engraving machine, reduces the probability of unqualified products, and ensures the best laser engraving effect.
Smart Images

Figure CN114813178B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of laser engraving machines, and in particular, to a calibration method, device, terminal, and storage medium for a laser engraving machine. Background Technique
[0002] A laser engraving machine uses a laser beam to engrave patterns or characters on the surface of a material or inside a transparent material. Before processing a product, the laser engraving machine will be calibrated first to ensure the engraving effect and reduce the probability of unqualified products. Therefore, how to effectively calibrate the laser engraving machine has become an urgent problem to be solved.
[0003] Currently, the calibration of the laser engraving machine is mainly carried out by manual calibration, that is, the laser engraving fixture is set opposite the laser of the laser engraving machine, and the laser engraving fixture is engraved by the laser to obtain the engraved pattern or character, and then it is observed manually whether the engraved pattern or character meets the requirements to determine the optimal position of the laser, and the calibration of the laser engraving machine is completed.
[0004] However, using the above method to calibrate the laser engraving machine results in low calibration accuracy and poor engraving effect. Summary of the Invention
[0005] The main purpose of this application is to provide a calibration method, device, terminal, and storage medium for a laser engraving machine to solve the problem of low calibration accuracy in the related art.
[0006] To achieve the above object, in a first aspect, this application provides a calibration method for a laser engraving machine, including:
[0007] Based on multiple laser points, determine the initial height of the focus of the laser of the laser engraving machine;
[0008] Based on the initial height and a preset adjustment height, determine multiple test heights of the focus of the laser;
[0009] After triggering the laser to engrave the product to be processed based on multiple test heights, obtain multiple groups of two-dimensional codes corresponding to the product to be processed, and perform a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results, where the multiple test heights, the multiple groups of two-dimensional codes, and the multiple groups of grade test results correspond one by one;
[0010] Based on the multiple groups of grade test results, determine the target height of the focus of the laser.
[0011] In a possible implementation manner, the product to be processed includes multiple sub-products arranged within the maximum engraving range of the laser engraving machine;
[0012] After the trigger laser engraves the product to be processed based on multiple test heights, multiple groups of two-dimensional codes corresponding to the product to be processed are obtained, and grade tests are performed on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results, including:
[0013] After the trigger laser engraves multiple sub-products based on each test height among the multiple test heights, multiple two-dimensional codes corresponding to each test height are obtained, where the multiple sub-products and the multiple two-dimensional codes correspond one by one;
[0014] Summarize the multiple two-dimensional codes corresponding to each test height to obtain multiple groups of two-dimensional codes, where the multiple two-dimensional codes form a group of two-dimensional codes;
[0015] Perform grade tests on each group of two-dimensional codes in the multiple groups of two-dimensional codes to obtain multiple grade test results corresponding to each group of two-dimensional codes;
[0016] Summarize the multiple grade test results corresponding to each group of two-dimensional codes to obtain multiple groups of grade test results, where the multiple grade test results form a group of grade test results.
[0017] In a possible implementation manner, based on the multiple groups of grade test results, determining the target height of the laser focus includes:
[0018] Obtain a preset grade standard;
[0019] If any group of grade test results in the multiple groups of grade test results meets the preset grade standard, and use the test height corresponding to any group of grade test results as the target height.
[0020] In a possible implementation manner, based on multiple laser points, determining the initial height of the laser focus of the laser engraving machine includes:
[0021] Scan multiple laser points;
[0022] Perform brightness detection on each laser point among the multiple laser points to obtain the brightness value corresponding to each laser point;
[0023] Summarize the brightness values corresponding to each laser point to obtain multiple brightness values, and select the largest brightness value among the multiple brightness values as the target brightness value;
[0024] Use the height of the laser focus corresponding to the target brightness value as the initial height.
[0025] In a possible implementation manner, based on the initial height and the preset adjustment height, determining the multiple test heights of the laser focus includes:
[0026] Select multiple random numbers, where the random numbers are natural numbers other than zero;
[0027] Multiply each of the multiple random numbers by a preset adjustment height to obtain multiple product values;
[0028] Add each of the multiple product values to the initial height to obtain multiple test heights.
[0029] In a possible implementation manner, after determining the target height of the laser focus based on multiple sets of grading test results, it further includes:
[0030] Determine whether the position of the laser and the product to be processed is relatively horizontal;
[0031] If the position of the laser and the product to be processed is relatively horizontal, obtain the levelness of the laser or the product to be processed, and use the levelness as the target levelness.
[0032] In a possible implementation manner, the method further includes:
[0033] If the position of the laser and the product to be processed is relatively non-horizontal, return to execute the step of triggering the laser to perform laser engraving on the product to be processed based on multiple test heights, and then obtain multiple sets of two-dimensional codes corresponding to the product to be processed.
[0034] In a second aspect, an embodiment of the present invention provides a calibration device for a laser engraving machine, including:
[0035] An initial height determination module, configured to determine the initial height of the laser focus of the laser engraving machine based on multiple laser points;
[0036] A test height determination module, configured to determine multiple test heights of the laser focus based on the initial height and a preset adjustment height;
[0037] A grading test module, configured to trigger the laser to perform laser engraving on the product to be processed based on multiple test heights, obtain multiple sets of two-dimensional codes corresponding to the product to be processed, and perform a grading test on the multiple sets of two-dimensional codes to obtain multiple sets of grading test results, where the multiple test heights, the multiple sets of two-dimensional codes, and the multiple sets of grading test results correspond one by one;
[0038] A target height determination module, configured to determine the target height of the laser focus based on multiple sets of grading test results.
[0039] In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any one of the above laser engraving machine calibration methods are implemented.
[0040] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above laser engraving machine calibration methods are implemented.
[0041] An embodiment of the present invention provides a calibration method, device, terminal and storage medium for a laser engraving machine, including: first, based on multiple laser points, determining the initial height of the laser focus of the laser engraving machine, and then based on the initial height and a preset adjustment height, determining multiple test heights of the laser focus. After triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, obtaining multiple groups of two-dimensional codes corresponding to the product to be processed, and performing a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results. Finally, based on the multiple groups of grade test results, determining the target height of the laser focus. The present invention adjusts the height of the laser focus relative to the product to be processed, performs laser engraving of two-dimensional codes on the product to be processed, then performs a grade test on the two-dimensional codes, and analyzes the obtained grade test results to determine the target height of the laser focus. When the laser focus is at the target height, the calibration of the laser engraving machine is completed. At this time, the laser engraving energy is the strongest, which can improve the laser engraving effect and reduce the probability of unqualified products. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings constituting a part of this application are used to provide a further understanding of this application, making other features, objectives, and advantages of this application more obvious. The schematic embodiments and descriptions thereof of this application are used to explain this application and do not constitute an improper limitation of this application. In the drawings:
[0043] Figure 1 is a flowchart of the implementation of a calibration method for a laser engraving machine provided by an embodiment of the present invention;
[0044] Figure 2 is a schematic structural diagram of a product to be processed provided by an embodiment of the present invention;
[0045] Figure 3 is a display interface of the two-dimensional code grade test results provided by an embodiment of the present invention;
[0046] Figure 4 is a schematic structural diagram of a calibration device for a laser engraving machine provided by an embodiment of the present invention;
[0047] Figure 5 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions 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 a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
[0049] In the description, claims and the above-mentioned drawings of the present invention, the terms "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0050] It should be understood that in various embodiments of the present invention, the magnitude of the serial numbers of the various processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0051] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0052] It should be understood that in the present invention, "a plurality of" means two or more. "And / or" is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "Including A, B, and C" and "including A, B, C" mean that all of A, B, and C are included, "including A, B, or C" means including one of A, B, and C, and "including A, B, and / or C" means including any one or any two or all three of A, B, and C.
[0053] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A relatively", "A corresponding to B relatively", or "B corresponding to A relatively" means that B is associated with A, and B can be determined according to A. Determining B according to A does not mean determining B only according to A, but also B can be determined according to A and / or other information. The matching of A and B means that the similarity between A and B is greater than or equal to a preset threshold.
[0054] Depending on the context, as used herein, "if" can be interpreted as "when", "while", "in response to a determination", or "in response to a detection".
[0055] The technical solutions of the present invention will be described in detail below with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0056] To make the objectives, technical solutions, and advantages of the present invention more clear, the following will be described through specific embodiments in conjunction with the accompanying drawings.
[0057] In one embodiment, as Figure 1 shown, a calibration method for a laser engraving machine is provided, including the following steps:
[0058] Step S101: Based on multiple laser points, determine the initial height of the laser focus of the laser engraving machine.
[0059] Among them, the initial height of the laser focus is determined based on the brightness of multiple laser points. Specifically, the laser engraving machine in this application emits a laser beam to the shielding cover, and multiple laser points will be displayed on the shielding cover. Then, by scanning multiple laser points, the brightness of each laser point among the multiple laser points is detected to obtain the brightness value corresponding to each laser point. Next, the brightness values corresponding to each laser point are summarized to obtain multiple brightness values, and the maximum brightness value among the multiple brightness values is selected as the target brightness value. Finally, the height of the laser focus corresponding to the target brightness value is used as the initial height.
[0060] Step S102: Based on the initial height and the preset adjustment height, determine multiple test heights of the laser focus.
[0061] To improve the calibration accuracy of the laser engraving machine, based on the obtained initial height, the height of the laser focus is adjusted up or down in units of the preset adjustment height to determine multiple test heights. Specifically, first select multiple random numbers, where the random numbers are natural numbers other than zero, such as 1, -1, 2, etc. Then, each random number among the multiple random numbers is multiplied by the preset adjustment height to obtain multiple product values. Next, each product value among the multiple product values is added to the initial height to obtain multiple test heights.
[0062] Further, taking the initial height as 2 cm, the preset adjustment height as 0.5 mm, and the random numbers as 1, -1, and 2 as an example, illustrate the process of determining 3 test heights. First, each random number is multiplied by the preset adjustment height to obtain product values, which are 0.5 mm, -0.5 mm, and 1 mm respectively. Then, the above product values are added to the initial height respectively to obtain 3 test heights, which are 2.5 mm, -2.5 mm, and 3 mm respectively. That is to say, the laser focus is set at the heights of 2.5 mm, -2.5 mm, and 3 mm respectively to perform laser engraving on the product to be processed.
[0063] Step S103: After triggering the laser to perform laser engraving on the product to be processed based on multiple test heights, obtain multiple groups of two-dimensional codes corresponding to the product to be processed, and perform a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results.
[0064] Among them, multiple test heights, multiple groups of two-dimensional codes, and multiple groups of grade test results correspond one by one. The product to be processed includes multiple sub-products arranged within the maximum laser engraving range of the laser engraving machine. Here, the maximum laser engraving range of the laser engraving machine varies depending on the type of the laser engraving machine, and the number of sub-products is set according to specific circumstances and is not limited here.
[0065] Specifically, to determine multiple groups of grade test results, it is necessary to first trigger the laser to engrave multiple sub-products based on each of the multiple test heights, and then obtain multiple two-dimensional codes corresponding to each test height. Among them, the multiple sub-products and the multiple two-dimensional codes correspond one by one. Then, summarize the multiple two-dimensional codes corresponding to each test height to obtain multiple groups of two-dimensional codes. Among them, the multiple two-dimensional codes form a group of two-dimensional codes. Then, perform a grade test on each group of two-dimensional codes in the multiple groups of two-dimensional codes to obtain multiple grade test results corresponding to each group of two-dimensional codes. Finally, summarize the multiple grade test results corresponding to each group of two-dimensional codes to obtain multiple groups of grade test results. Among them, the multiple grade test results form a group of grade test results.
[0066] As Figure 2 shown, this application provides a detection fixture (i.e., the product to be processed). There are nine sub-products arranged on the detection fixture, and the nine sub-products are evenly distributed on the detection fixture in the form of a nine-square grid. Moreover, the area of this detection fixture is the maximum laser engraving range of the laser engraving machine. Suppose the maximum laser engraving range of the laser engraving machine is 200*200, then the area of the detection fixture is 200*200.
[0067] Based on the previous embodiment, combined with Figure 2 an explanation of determining multiple groups of grade test results is given. First, trigger the laser to engrave the nine sub-products when the test heights are 2.5mm, -2.5mm, and 3mm respectively. Then, sequentially obtain the first group of two-dimensional codes, the second group of two-dimensional codes, and the third group of two-dimensional codes corresponding to the nine sub-products when the test heights are 2.5mm, -2.5mm, and 3mm respectively. Among them, each group of two-dimensional codes includes nine two-dimensional codes. That is to say, each sub-product corresponds to one two-dimensional code. Then, perform a grade test on each two-dimensional code in the above three groups of two-dimensional codes to obtain three groups of grade test results. Among them, the test results are shown as Figure 3 shown, and the test results are divided into grades A - F, with A being the highest grade and F being the lowest grade. In this application, to ensure the laser engraving accuracy of the laser engraving machine, the grade of all two-dimensional codes cannot be lower than grade C.
[0068] Step S104: Based on multiple groups of grade test results, determine the target height of the laser focus.
[0069] After obtaining multiple sets of grading test results, it is necessary to obtain the preset grading standard. If any one of the multiple sets of grading test results meets the preset grading standard, the test height corresponding to any one of the grading test results is used as the target height. For example, based on the previous embodiment, 3 sets of grading test results are obtained, that is, the first set of grading test results is AAAABBBBC, the second set of grading test results is AAAABBBBD, and the third set of grading test results is AAAABBBBF. If the preset grading standard is that the QR code grade in the grading test results cannot be lower than C, then the first set of grading test results AAAABBBBC meets the preset grading standard, and the first set of grading test results AAAABBBBC is the optimal set of grading test results. After determining the optimal grading test result, it is necessary to check the height of the laser focus corresponding to the optimal set of grading test results, and then use this height as the target height of the laser focus. That is to say, the laser engraving machine uses this target height to perform laser engraving on the product to be processed. The laser engraving laser intensity is the largest and the laser engraving effect is the best.
[0070] An embodiment of the present invention provides a calibration method for a laser engraving machine, including: first, based on multiple laser points, determining the initial height of the laser focus of the laser engraving machine, and then based on the initial height and the preset adjustment height, determining multiple test heights of the laser focus. After triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, obtaining multiple groups of QR codes corresponding to the product to be processed, and performing a grading test on the multiple groups of QR codes to obtain multiple sets of grading test results. Finally, based on the multiple sets of grading test results, determining the target height of the laser focus. The present invention adjusts the height of the laser focus relative to the product to be processed, performs laser engraving of QR codes on the product to be processed, then performs a grading test on the QR codes, and analyzes the obtained grading test results to determine the target height of the laser focus. When the laser focus is at the target height, the calibration of the laser engraving machine is completed. At this time, the laser engraving laser energy is the strongest, which can improve the laser engraving effect and reduce the probability of unqualified products.
[0071] On the basis of the above embodiment, in order to further improve the calibration accuracy of the laser engraving machine, the relative horizontal position of the laser and the product to be processed is also tested, that is, after step S104, it further includes:
[0072] Step S105: Determine whether the positions of the laser and the product to be processed are relatively horizontal.
[0073] Step S106: If the positions of the laser and the product to be processed are relatively horizontal, obtain the levelness of the laser or the product to be processed, and use the levelness as the target levelness.
[0074] Step S107: If the positions of the laser and the product to be processed are relatively not horizontal, return to execute the step of triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, and then obtaining multiple groups of QR codes corresponding to the product to be processed.
[0075] Specifically, when the positions of the laser and the product to be processed are horizontal relative to each other, that is, the plane where the laser base is located is parallel to the plane where the product to be processed is located. Therefore, the target levelness can be directly determined by obtaining the levelness of the laser or the product to be processed, and all current laser engraving machines are calibrated based on the target height and the target levelness to optimize the engraving accuracy of the laser engraving machine. When the positions of the laser and the product to be processed are not horizontal relative to each other, it indicates that the target height of the laser focus determined in the foregoing steps needs to be further adjusted to optimize the engraving accuracy of the laser engraving machine.
[0076] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0077] The following is an apparatus embodiment of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments above.
[0078] Figure 4 FIG. shows a schematic structural diagram of a calibration device for a laser engraving machine provided by an embodiment of the present invention. For the sake of convenience of description, only the parts related to the embodiment of the present invention are shown. A calibration device for a laser engraving machine includes an initial height determination module 41, a test height determination module 42, a grade test module 43, and a target height determination module 44, specifically as follows:
[0079] The initial height determination module 41 is configured to determine the initial height of the laser focus of the laser engraving machine based on a plurality of laser points;
[0080] The test height determination module 42 is configured to determine a plurality of test heights of the laser focus based on the initial height and a preset adjustment height;
[0081] The grade test module 43 is configured to, after triggering the laser to engrave the product to be processed based on a plurality of test heights, obtain multiple groups of two-dimensional codes corresponding to the product to be processed, and perform a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results, where the multiple test heights, the multiple groups of two-dimensional codes, and the multiple groups of grade test results correspond one by one;
[0082] The target height determination module 44 is configured to determine the target height of the laser focus based on the multiple groups of grade test results.
[0083] In a possible implementation manner, the product to be processed includes a plurality of sub-products disposed within the maximum engraving range of the laser engraving machine;
[0084] The grade test module 43 includes:
[0085] The laser engraving trigger sub-module is used to trigger the laser to engrave multiple sub-products based on each of multiple test heights, and then obtain multiple two-dimensional codes corresponding to each test height. Among them, the multiple sub-products correspond to the multiple two-dimensional codes one by one;
[0086] The first summarization sub-module is used to summarize the multiple two-dimensional codes corresponding to each test height to obtain multiple groups of two-dimensional codes. Among them, the multiple two-dimensional codes form a group of two-dimensional codes;
[0087] The grade testing sub-module is used to perform grade testing on each group of two-dimensional codes in the multiple groups of two-dimensional codes to obtain multiple grade test results corresponding to each group of two-dimensional codes;
[0088] The second summarization sub-module is used to summarize the multiple grade test results corresponding to each group of two-dimensional codes to obtain multiple groups of grade test results. Among them, the multiple grade test results form a group of grade test results.
[0089] In a possible implementation manner, the target height determination module 44 includes:
[0090] The standard acquisition sub-module is used to acquire a preset grade standard;
[0091] The target height determination sub-module is used to, if any group of grade test results in the multiple groups of grade test results meets the preset grade standard, and use the test height corresponding to any group of grade test results as the target height.
[0092] In a possible implementation manner, the initial height determination module 41 includes:
[0093] The scanning sub-module is used to scan multiple laser points;
[0094] The detection sub-module is used to perform brightness detection on each of the multiple laser points to obtain the brightness value corresponding to each laser point;
[0095] The third summarization sub-module is used to summarize the brightness values corresponding to each laser point to obtain multiple brightness values, and select the largest brightness value among the multiple brightness values as the target brightness value;
[0096] The initial height determination sub-module is used to use the height of the laser focus corresponding to the target brightness value as the initial height.
[0097] In a possible implementation manner, the test height determination module 42 includes:
[0098] The data selection sub-module is used to select multiple random numbers. Among them, the random numbers are natural numbers other than zero;
[0099] The first calculation sub-module is used to multiply each of the multiple random numbers by a preset adjustment height to obtain multiple product values;
[0100] A second calculation sub-module, configured to sum each product value among a plurality of product values with an initial height to obtain a plurality of test heights.
[0101] In a possible implementation manner, after the target height determination module 44, it further includes:
[0102] A judgment module, configured to judge whether the position of the laser and the product to be processed is relatively horizontal;
[0103] A target levelness determination module, configured to, if the position of the laser and the product to be processed is relatively horizontal, obtain the levelness of the laser or the product to be processed, and use the levelness as the target levelness.
[0104] In a possible implementation manner, the method further includes:
[0105] A return execution module, configured to, if the position of the laser and the product to be processed is not relatively horizontal, return to execute the step of triggering the laser to perform laser engraving on the product to be processed based on a plurality of test heights, and then obtain multiple groups of two-dimensional codes corresponding to the product to be processed.
[0106] Figure 5 It is a schematic diagram of a terminal provided by an embodiment of the present invention. As Figure 5 shown, the terminal 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, it implements the steps in the above-mentioned embodiments of the calibration method of each laser engraving machine, such as Figure 1 the steps 101 to 104 shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the above-mentioned embodiments of the calibration device of each laser engraving machine, such as Figure 4 the functions of the modules / units 41 to 44 shown.
[0107] The present invention also provides a readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the calibration method of the laser engraving machine provided by the above various implementation manners.
[0108] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium accessible by a general or special-purpose computer. For example, the readable storage medium is coupled to the processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC can be located in the user equipment. Of course, the processor and the readable storage medium can also exist as discrete components in the communication device. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, magnetic tape, a floppy disk, and an optical data storage device, etc.
[0109] The present invention also provides a program product, which includes execution instructions stored in a readable storage medium. At least one processor of the device can read the execution instructions from the readable storage medium, and the execution of the execution instructions by at least one processor enables the device to implement the calibration method of the laser engraving machine provided by the above various embodiments.
[0110] In the above embodiments of the device, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the present invention can be directly embodied as being executed and completed by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0111] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A calibration method for a laser engraving machine, characterized in that, Including: Based on multiple laser points, determine the initial height of the laser focus of the laser engraving machine; Based on the initial height and a preset adjustment height, determine multiple test heights of the laser focus; After triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, obtain multiple groups of two-dimensional codes corresponding to the product to be processed, and perform a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results, where the multiple test heights, the multiple groups of two-dimensional codes, and the multiple groups of grade test results correspond one by one; Based on the multiple groups of grade test results, determine the target height of the laser focus; The determining the initial height of the laser focus of the laser engraving machine based on multiple laser points includes: Scan the multiple laser points; Perform brightness detection on each laser point among the multiple laser points to obtain the brightness value corresponding to each laser point; Summarize the brightness values corresponding to each laser point to obtain multiple brightness values, and select the largest brightness value among the multiple brightness values as the target brightness value; Take the height of the laser focus corresponding to the target brightness value as the initial height.
2. The calibration method of the laser engraving machine according to claim 1, characterized in that The product to be processed includes multiple sub-products arranged within the maximum laser engraving range of the laser engraving machine; After triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, the obtaining multiple groups of two-dimensional codes corresponding to the product to be processed and performing a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results includes: After triggering the laser to perform laser engraving on the multiple sub-products based on each test height among the multiple test heights, obtain multiple two-dimensional codes corresponding to each test height, where the multiple sub-products and the multiple two-dimensional codes correspond one by one; Summarize the multiple two-dimensional codes corresponding to each test height to obtain the multiple groups of two-dimensional codes, where the multiple two-dimensional codes form a group of two-dimensional codes; Perform a grade test on each group of two-dimensional codes among the multiple groups of two-dimensional codes to obtain multiple grade test results corresponding to each group of two-dimensional codes; Summarize the multiple grade test results corresponding to each group of two-dimensional codes to obtain the multiple groups of grade test results, where the multiple grade test results form a group of grade test results.
3. The calibration method of the laser engraving machine according to claim 2, wherein, The determining the target height of the laser focus based on the multiple groups of grade test results includes: Obtain a preset grade standard; If any group of grade test results among the multiple groups of grade test results meets the preset grade standard, and take the test height corresponding to the any group of grade test results as the target height.
4. The calibration method of the laser engraving machine according to claim 1, characterized in that, The determining the multiple test heights of the laser focus based on the initial height and a preset adjustment height includes: Select multiple random numbers, where the random numbers are natural numbers other than zero; Multiply each of the multiple random numbers by the preset adjustment height to obtain multiple product values; Add each product value among the multiple product values to the initial height to obtain the multiple test heights.
5. The calibration method of the laser engraving machine according to claim 4, wherein, After determining the target height of the laser focus based on the multiple groups of grade test results, it further includes: Judge whether the position of the laser and the product to be processed is relatively horizontal; If the positions of the laser and the product to be processed are relatively horizontal, obtain the levelness of the laser or the product to be processed, and use the levelness as the target levelness.
6. The calibration method of the laser engraving machine according to claim 5, wherein, The method further includes: If the positions of the laser and the product to be processed are relatively non-horizontal, return to execute the step of triggering the laser to perform laser engraving on the product to be processed based on the multiple test heights, and then obtain multiple groups of two-dimensional codes corresponding to the product to be processed.
7. A calibration device for a laser engraving machine, characterized in that, It includes: An initial height determination module, configured to determine the initial height of the laser focus of the laser engraving machine based on multiple laser points; A test height determination module, configured to determine multiple test heights of the laser focus based on the initial height and a preset adjustment height; A grade test module, configured to trigger the laser to perform laser engraving on the product to be processed based on the multiple test heights, then obtain multiple groups of two-dimensional codes corresponding to the product to be processed, and perform a grade test on the multiple groups of two-dimensional codes to obtain multiple groups of grade test results, where the multiple test heights, the multiple groups of two-dimensional codes, and the multiple groups of grade test results correspond one by one; A target height determination module, configured to determine the target height of the laser focus based on the multiple groups of grade test results; The determining the initial height of the laser focus of the laser engraving machine based on multiple laser points includes: Scanning the multiple laser points; Performing brightness detection on each of the multiple laser points to obtain the brightness value corresponding to each laser point; Summarizing the brightness values corresponding to each laser point to obtain multiple brightness values, and selecting the largest brightness value among the multiple brightness values as the target brightness value; Using the height of the laser focus corresponding to the target brightness value as the initial height.
8. A terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the calibration method of the laser engraving machine according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the calibration method of the laser engraving machine according to any one of claims 1 to 6.
Citation Information
Patent Citations
Height detection device, coating device, and height detection method
CN105899909A
Linear array camera focusing method and device, equipment and storage medium
CN109286751A
Laser marking machine
CN206824816U