Laser marking method and device and storage medium
By determining the laser output power according to the gray value of the path coordinates in the laser marking machine and generating laser marking parameters, the problem of low slope marking efficiency of the laser marking machine is solved and a more efficient marking process is achieved.
Patent Information
- Application Number
- CN202411093889.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-01
AI Technical Summary
The laser marking machine has low processing efficiency when performing slope marking, and it takes a long time to complete the material marking.
Obtain the bitmap to be processed in the bitmap editing interface, determine the processing path, determine the laser output power according to the grayscale value of the path coordinates, generate laser marking parameters, and perform marking actions to mark different depths on different path coordinates. traces to improve processing efficiency.
By using different laser output powers instead of extending the marking time, the depth per unit time or single laser marking is increased, the marking time or number of markings required on the path coordinates is reduced, and the slope marking of the laser marking machine is improved. Engraving processing efficiency.
Smart Images

Figure CN118720433A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser processing technology, and in particular to a laser marking method, equipment and storage medium. Background Art
[0002] The laser marking machine can control the scanning motor through the computer to drive the galvanometer to move along the X and Y axes, focusing the laser beam on the surface of the workpiece to be processed, thereby engraving the required pattern, trademark or text.
[0003] To create a sloped mark on a surface, laser marking machines typically vary the depth of the mark by changing the laser output time or increasing the marking frequency to repeat marking at the same coordinate. For example, a galvanometer relief engraving machine, modified from a 2D laser marking machine, creates a sloped relief by repeatedly marking along the Z axis. In this case, the laser marking machine requires a long processing time to complete the marking, resulting in low efficiency for sloped marking.
[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a laser marking method, equipment and storage medium, aiming to solve the technical problem of low processing efficiency of slope marking by laser marking machines.
[0006] To achieve the above objectives, the present application provides a laser marking method, which comprises the following steps:
[0007] Obtaining a bitmap to be processed in a bitmap editing interface, and determining a processing path corresponding to the bitmap to be processed;
[0008] determining the laser output power of the path coordinates according to the grayscale values of the path coordinates in the processing path;
[0009] Laser marking parameters are generated according to the processing path and the laser output power, and a marking action is performed based on the laser marking parameters.
[0010] In one embodiment, the step of determining the laser output power of the path coordinate according to the grayscale value of the path coordinate in the processing path includes:
[0011] Determining the material to be processed of the to-be-processed bitmap, and obtaining a mapping relationship between the grayscale value of the material to be processed and the laser output power in a database;
[0012] Obtaining a pixel point of the path coordinates in the processing path, and calculating a grayscale value of the pixel point;
[0013] The laser output power is determined according to the mapping relationship.
[0014] In one embodiment, before the step of determining the material to be processed of the to-be-processed bitmap and obtaining the mapping relationship between the grayscale value of the material to be processed and the laser output power in a database, the step further includes:
[0015] Obtaining historical processing parameters of the material to be processed;
[0016] Fitting the historical processing parameters using a preset curve fitting model to generate a fitting curve of the historical processing parameters;
[0017] Based on the fitting curve, a mapping relationship between the grayscale value of the material to be processed and the laser output power is generated.
[0018] In one embodiment, after the step of determining the laser output power according to the grayscale value and the mapping relationship, the method further includes:
[0019] When the material to be processed is a sensitive material, obtaining an output power threshold of the sensitive material;
[0020] When the laser output power is greater than the output power threshold, determining the output time of the path coordinates according to the laser output power and the output power threshold;
[0021] Based on the output power threshold, the laser output power is modified.
[0022] In one embodiment, after obtaining the bitmap to be processed in the bitmap editing interface, before extracting the marking coordinates of the bitmap to be processed, the method further includes:
[0023] After receiving the bitmap editing instruction, outputting the bitmap editing interface and displaying the bitmap data imported by the user in the bitmap editing interface;
[0024] In response to a bitmap editing action received by the bitmap editing interface, performing a corresponding modification action on the bitmap data;
[0025] The bitmap to be processed is generated according to the modified bitmap data.
[0026] In one embodiment, after receiving the bitmap editing instruction, before the step of outputting the bitmap editing interface and displaying the bitmap data imported by the user in the bitmap editing interface, the method further includes:
[0027] receiving the imported bitmap data, and determining the resolution of the bitmap data according to the number of pixels of the bitmap data;
[0028] When the resolution is greater than a preset resolution, the resolution of the bitmap data is reduced by sampling.
[0029] In one embodiment, the step of obtaining a to-be-processed bitmap in a bitmap editing interface and determining a processing path corresponding to the to-be-processed bitmap includes:
[0030] After obtaining the to-be-processed bitmap through the bitmap editing interface, determining the path coordinates according to the pixel points of the to-be-processed bitmap;
[0031] The coordinates to be processed are input into a path planning model to generate the processing path.
[0032] In one embodiment, the step of generating laser marking parameters according to the processing path and the laser output power, and performing the marking action based on the laser marking parameters includes:
[0033] Associating the laser output power with the corresponding path coordinates in the processing path to generate the laser marking parameters;
[0034] The galvanometer is controlled to move based on the processing path, and a laser output action is performed according to the laser output power associated with the current path coordinates in the laser marking parameters.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a laser marking device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the laser marking method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by the processor, the steps of the laser marking method described above are implemented.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] The present application determines the processing path corresponding to the bitmap to be processed after receiving the bitmap to be processed obtained based on the bitmap editing interface, and determines the laser output power of the path coordinate according to the grayscale value of the path coordinate in the processing path, and generates laser marking parameters according to the processing path and the laser output power, and performs the corresponding laser marking action based on the laser marking parameters, thereby determining the laser output power according to the grayscale value of the pixel point in the bitmap to be processed, and using different laser output powers instead of extending the marking time to mark different depths on different path coordinates to form slope marking, thereby achieving the effect of improving the processing efficiency of the laser marking machine for slope marking. Among them, by increasing the laser output power, the depth of laser marking per unit time or in a single time can be increased, thereby reducing the marking time or the number of markings required on the path coordinates, thereby improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 This is a schematic flow chart of the first embodiment of the laser marking method of the present application;
[0042] Figure 2 This is a flow chart of the second embodiment of the laser marking method of the present application;
[0043] Figure 3 This is a schematic flow chart of a third embodiment of the laser marking method of the present application;
[0044] Figure 4 It is a structural diagram of the laser marking equipment in the hardware operating environment involved in the embodiment of the present application.
[0045] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0047] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.
[0048] The main solution of the embodiment of the present application is: obtaining the bitmap to be processed in the bitmap editing interface, and determining the processing path corresponding to the bitmap to be processed; determining the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path; generating laser marking parameters according to the processing path and the laser output power, and performing the marking action based on the laser marking parameters.
[0049] Laser marking machines use a computer-controlled scanning motor to drive a galvanometer mirror along the X and Y axes, focusing the laser beam on the surface of the workpiece to be processed, thereby engraving the desired pattern, trademark, or text. In existing technologies, to create a sloped mark on the surface of a material, laser marking machines typically vary the depth of the mark by changing the laser output time or increasing the marking frequency to repeat the marking at the same coordinate. In these cases, the laser marking machine requires a long processing time to complete the marking of the material. This results in low processing efficiency for slope marking by laser marking machines.
[0050] The present application determines the processing path corresponding to the bitmap to be processed after receiving the bitmap to be processed obtained based on the bitmap editing interface, and determines the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path, and generates laser marking parameters according to the processing path and the laser output power, and executes the corresponding laser marking action based on the laser marking parameters, so as to determine the laser output power according to the grayscale value of the pixel point in the bitmap to be processed, and replaces the extension of the marking time with different laser output powers, and marks different depths on different path coordinates to form slope marking, thereby achieving the effect of improving the processing efficiency of the laser marking machine for slope marking.
[0051] To better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0052] It should be noted that the execution subject of this embodiment can be a laser marking machine, or a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device or laser marking device capable of performing the above functions, and this embodiment does not specifically limit this. The following uses a laser marking machine as an example to illustrate this embodiment and the following embodiments.
[0053] Based on this, the embodiment of the present application provides a laser marking method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the laser marking method of the present application.
[0054] In this embodiment, the laser marking method includes steps S10 to S30:
[0055] Step S10: obtaining a bitmap to be processed in a bitmap editing interface, and determining a processing path corresponding to the bitmap to be processed;
[0056] In this embodiment, the bitmap editing interface can be located on a terminal device connected to the laser marking machine, or can be output by the laser marking machine on a display interface. A user can edit imported bitmap data on the bitmap editing interface, and upon completion of the bitmap editing, the bitmap editing interface generates a bitmap to be processed. The laser marking machine obtains the bitmap to be processed through the bitmap editing interface and determines a processing path corresponding to the bitmap to be processed according to a preset processing path planning method.
[0057] In one feasible implementation of processing path planning, a laser marking machine can plan the processing path according to an S-shaped path. After receiving the bitmap to be processed, the laser marking machine can first determine the starting point of the processing path in the bitmap to be processed, and then traverse the pixels in a row horizontally. Then, starting from the pixel point in the same column as the last pixel, it continues to traverse the pixels in the next row until all pixels are traversed. The traversal path of the pixels is used as the processing path. Based on the processing path, the laser marking machine can perform marking operations by scanning row by row.
[0058] In another possible implementation of machining path planning, the laser marking machine can determine the coordinates of non-zero pixels in the bitmap to be processed, i.e., the coordinates where marking is required, and use them as path coordinates. The laser marking machine can input these path coordinates into a preset path planning model and select the shortest path among all possible paths that pass through the path coordinates as the machining path.
[0059] Step S20: determining the laser output power of the path coordinate according to the grayscale value of the path coordinate in the processing path;
[0060] In this embodiment, after the bitmap to be processed is processed based on the bitmap editing interface, it is transmitted to the laser marking machine in the form of a grayscale image. The laser marking machine can calculate the laser output power required for the path coordinate based on the grayscale value of each path coordinate of the processing path in the bitmap to be processed. Among them, the laser marking machine acts on the surface of the material after focusing the laser beam, causing the surface material to melt or even vaporize instantly, thereby completing the marking. By increasing the laser power, the material can be removed or melted more quickly when the laser interacts with the material, thereby forming a deeper mark on the surface of the material. The laser marking machine can obtain the laser output power corresponding to the grayscale value of the path coordinate in a preset mapping relationship, and can also calculate the marking depth of the path coordinate based on the grayscale value to determine the laser output power of the path coordinate.
[0061] As an optional implementation for determining laser output power, the laser marking machine can determine the laser output power for each coordinate path in the processing path based on a mapping relationship between grayscale value and laser output power. The laser marking machine's database pre-stores a mapping relationship between the grayscale value and laser output power for each material being processed. After determining the material to be processed corresponding to the bitmap to be processed, the mapping relationship between the grayscale value and laser output power of the material to be processed can be retrieved from the database. After obtaining the pixel points of the radial coordinates in the processing path and calculating the grayscale value of each pixel point, the laser marking machine can determine the laser output power based on this mapping relationship.
[0062] It should be noted that due to the varying hardness, heat capacity, and other properties of different materials, marking the same depth in different materials typically requires different laser output powers. For example, the harder the wood, the higher the laser output power required. Metals have a high laser absorption rate and good thermal conductivity, but also a high heat capacity. Therefore, high power and appropriate speed are required to ensure the marking effect.
[0063] Furthermore, the mapping relationship between the grayscale value of the processed material and the laser output power can be optionally generated by fitting a preset curve fitting model based on historical processing parameters to generate a corresponding fitting curve. Based on this fitting curve, the laser marking machine can generate a mapping relationship between the grayscale value of the processed material and the laser output power. The processed material includes the material to be processed.
[0064] For example, the mapping relationship between the gray value of the processed material and the laser output power can be fitted based on a quadratic polynomial using the least squares method. The formula of the quadratic polynomial is f(x)=ax 2+bx+c. Among them, x is used to represent the grayscale value, f(x) is the corresponding laser output power, and a, b, and c are fitting coefficients. When fitting based on the fitting curve model, the grayscale value and the laser output power are subjected to multiple curve fittings, and each time the fitting curve is generated, the residual sum of squares of the fitting curve is calculated, and the fitting curve with the smallest residual sum of squares is selected as the mapping relationship between the grayscale value of the processed material and the laser output power. Among them, the residual is the difference between the actual observation value and the model prediction value, which is expressed by the mathematical formula ε=y-Xβ, where y is the actual observation value, X is the independent variable matrix of the grayscale value, and β is the model parameter vector. By obtaining the fitting curve with the smallest residual sum of squares, the fitting curve that is closest to the required laser output power can be determined. Optionally, in the process of curve fitting of grayscale value and laser output power, curve fitting can also be performed based on other polynomials or Gaussian distribution.
[0065] Optionally, the mapping relationship between the grayscale value of the processed material and the laser output power can be set by the management personnel based on empirical data. The laser marking machine can save this mapping relationship in a database in the form of a table or two-dimensional array based on the preset grayscale values. When determining the grayscale value of a pixel point in the path coordinate, the laser marking machine can directly obtain the laser output power corresponding to the preset grayscale value closest to the grayscale value based on the grayscale value of the laser path from the database.
[0066] As another alternative method for determining laser output power, the laser marking machine can also use a trained image recognition model to determine the marking depth of each path coordinate based on the grayscale value of each pixel in the bitmap data, and then determine the corresponding laser output power based on the marking depth. The marking depth can be determined based on the linear formula d(x) = α*(255-x) + β.
[0067] Step S30: generating laser marking parameters according to the processing path and the laser output power, and performing a marking operation based on the laser marking parameters.
[0068] In this embodiment, laser marking parameters are used to guide the laser marking machine in performing marking operations. These parameters include the processing path and the laser output power at each path coordinate within the processing path. The laser marking machine is equipped with a laser and a galvanometer. During the marking process, the galvanometer control parameters are determined based on information such as the processing path. Based on the laser output power, the laser output is controlled to output the laser beam, which is then focused on the surface of the material being processed by the galvanometer.
[0069] In one embodiment, a laser marking machine may associate laser output power with corresponding path coordinates within a processing path to generate laser marking parameters. When controlling the movement of a galvanometer mirror based on the processing path, the laser marking machine may obtain the associated laser output power from the laser marking parameters based on the current path coordinates and control the laser to output a laser beam based on the laser output power, thereby marking the material to be processed.
[0070] Optionally, the laser marking machine can use a continuous laser beam to perform laser marking during the laser marking process. The laser marking machine controls the continuous movement of the galvanometer and changes the laser output power in real time according to the laser marking parameters during the movement of the galvanometer. Alternatively, the laser marking machine can also use a pulsed method to keep the laser off during the movement of the galvanometer. When the galvanometer reaches the next path coordinate, the laser output is controlled according to the laser output power associated with the path coordinate in the laser marking parameters.
[0071] For example, the galvanometer control parameters determined by the laser marking machine based on the processing path include X+, X-, Y+, Y-, Z+, Z-, A+, A-, and return to zero. X, Y, and Z represent the three-dimensional directions of the galvanometer, while the A-axis represents the galvanometer's rotation angle. After determining the processing path, the user can also actively set the coordinates and parameters of the galvanometer movement. The laser marking machine will control the movement of the laser galvanometer and perform marking based on the order of parameter settings.
[0072] The embodiment of the present application determines the processing path corresponding to the bitmap to be processed after receiving the bitmap to be processed obtained based on the bitmap editing interface, and determines the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path, and generates laser marking parameters according to the processing path and the laser output power, and performs the corresponding laser marking action based on the laser marking parameters, so as to determine the laser output power according to the grayscale value of the pixel point in the bitmap to be processed, and replaces the extension of the marking time with different laser output powers to mark different depths on different path coordinates to form slope marking, thereby achieving the effect of improving the processing efficiency of the laser marking machine for slope marking.
[0073] Based on the same inventive concept, this application also provides a second embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the laser marking method of the present application.
[0074] In this embodiment, before obtaining the bitmap to be processed in the bitmap editing interface and determining the processing path corresponding to the bitmap to be processed as described in step S10, steps S11 to S13 are also included:
[0075] Step S11: after receiving the bitmap editing instruction, outputting the bitmap editing interface and displaying the bitmap data imported by the user in the bitmap editing interface;
[0076] Step S12: in response to the bitmap editing action received by the bitmap editing interface, performing a corresponding modification action on the bitmap data;
[0077] Step S13: generating the bitmap to be processed according to the modified bitmap data.
[0078] In this embodiment, the bitmap editing interface is stored in the laser marking machine. When the laser marking machine detects that the terminal device is connected through a serial port or Bluetooth, it can obtain the rendering information of the bitmap editing interface and output it to the connected terminal device. Alternatively, the laser marking machine can also output the bitmap editing interface on the display interface of the display screen based on the call action of the bitmap editing interface on the display screen. The user can interact with the laser marking machine through the bitmap editing interface. The laser marking machine can receive the bitmap data imported by the user on the bitmap editing interface, and perform automatic preprocessing and image modification actions based on image editing actions. Among them, the bitmap data imported by the user can be in BMP, JPG, GIF, PNG, WMF, EMF and other formats.
[0079] Specifically, when a laser marking machine receives bitmap data based on a bitmap editing interface, it determines the outline information of the image to be marked in the bitmap data, and removes the border based on the outline data, retaining only the bitmap data of the rectangle containing the image to be marked. At the same time, because the excessively high resolution of some bitmap data will affect the marking effect, if the resolution of the bitmap to be processed exceeds the resolution that the material to be processed can reflect, undesirable situations such as points connecting to each other will occur unexpectedly during processing. The laser marking machine identifies the number of pixels in the bitmap data to determine the resolution of the bitmap data. When the resolution is greater than the preset resolution, the laser marking machine can traverse the bitmap data and reduce the resolution of the bitmap data by sampling.
[0080] In an embodiment of the present application, the laser marking machine can interact with the user through a bitmap editing interface, and in response to a bitmap editing action received by the bitmap editing interface, modify the bitmap data to generate a bitmap to be processed.
[0081] Since the system described in Example 2 of this application is the system used to implement the method of Example 1 of this application, those skilled in the art will be able to understand the specific structure and variations of the system based on the method described in Example 1 of this application, and therefore, no further description is given here. All systems used in the method of Example 1 of this application fall within the scope of protection to be provided by this application.
[0082] Based on the same inventive concept, this application also provides a third embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the third embodiment of the laser marking method of the present application.
[0083] In this embodiment, after determining the laser output power of the path coordinate according to the grayscale value of the path coordinate in the processing path as described in step S20, steps S21 to S23 are further included:
[0084] Step S21: when the material to be processed is a sensitive material, obtaining an output power threshold of the sensitive material;
[0085] Step S22: when the laser output power is greater than the output power threshold, determining the output time of the path coordinate according to the laser output power and the output power threshold;
[0086] Step S23: Based on the output power threshold, modify the laser output power.
[0087] In this embodiment, some materials to be processed are sensitive materials that are easily affected by high heat. During laser processing, the materials to be processed may be adversely affected due to excessive laser output power.
[0088] For example, sensitive materials may be plastic products, integrated circuit boards, etc. These materials are easily deformed by high temperatures due to excessive laser output power, thereby affecting the appearance, precision, etc.
[0089] Specifically, after determining the material to be processed, the laser marking machine can compare it with a preset list of sensitive materials to determine whether it is sensitive. If the material to be processed is sensitive, the machine determines the output power threshold of the sensitive material. When the laser output power at a path coordinate exceeds the output power threshold, the machine determines the laser output time at that path coordinate based on the laser output power and the output power threshold. The laser marking machine then modifies the laser output power based on the output power threshold.
[0090] Optionally, the laser marking machine can further calculate the output time of the path coordinates based on the marking depth rate corresponding to the laser output power, the marking depth rate at the output power threshold, and the material being processed. Furthermore, the laser marking machine can dynamically adjust the movement rate of the galvanometer mirror based on the changes in the grayscale value of the path coordinates along the processing path to match the changes in laser output power, thereby forming a sloped mark on the surface of the material being processed.
[0091] The embodiment of the present application identifies whether the material to be processed is a sensitive material that is easily affected by high heat, and adjusts the laser output time of the path coordinates according to a preset output power threshold of the sensitive material, thereby avoiding affecting the sensitive material during the slope marking process and improving the stability of the marking.
[0092] Since the system described in Example 3 of this application is the system used to implement the method of Example 1 of this application, those skilled in the art will be able to understand the specific structure and variations of the system based on the method described in Example 1 of this application, and therefore will not be described in detail here. All systems used in the method of Example 1 of this application fall within the scope of protection to be provided by this application.
[0093] The present application provides a laser marking device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the laser marking method in the above-mentioned embodiment one.
[0094] Reference below Figure 4 , which shows a schematic diagram of the structure of a laser marking device suitable for implementing the embodiments of the present application. The laser marking device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The laser marking device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0095] like Figure 4As shown, the laser marking device may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for the operation of the laser marking device are also stored in RAM 1004. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the laser marking device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a laser marking device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0096] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0097] The laser marking device provided in this application, utilizing the laser marking method described in the aforementioned embodiment, can address the technical issue of low slope marking efficiency experienced by laser marking machines. Compared to the prior art, the laser marking device provided in this application achieves the same beneficial effects as the laser marking method described in the aforementioned embodiment. Other technical features of this laser marking device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.
[0098] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0099] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0100] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the laser marking method in the above embodiment.
[0101] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0102] The computer-readable storage medium may be included in the laser marking device, or may exist independently without being assembled into the laser marking device.
[0103] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the laser marking device, the laser marking device: obtains the bitmap to be processed in the bitmap editing interface, and determines the processing path corresponding to the bitmap to be processed; determines the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path; generates laser marking parameters according to the processing path and the laser output power, and performs the marking action based on the laser marking parameters.
[0104] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0105] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0106] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0107] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned laser marking method. This computer-readable storage medium can address the technical issue of low slope marking efficiency experienced by laser marking machines. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are similar to those of the laser marking method provided in the aforementioned embodiments and are not further elaborated here.
[0108] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A laser marking method, characterized in that: The method comprises the following steps: Obtaining a bitmap to be processed in a bitmap editing interface, and determining a processing path corresponding to the bitmap to be processed; Determining the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path; According to the processing path and the laser output power, laser marking parameters are generated, and a marking action is performed based on the laser marking parameters.
2. The method according to claim 1, characterized in that The step of determining the laser output power of the path coordinates according to the grayscale value of the path coordinates in the processing path comprises: Determine the material to be processed of the to-be-processed bitmap, and obtain a mapping relationship between the grayscale value of the material to be processed and the laser output power in a database; Obtaining a pixel point of the path coordinates in the processing path, and calculating a grayscale value of the pixel point; The laser output power is determined according to the mapping relationship.
3. The method according to claim 2, characterized in that Before the step of determining the material to be processed of the to-be-processed bitmap and acquiring the mapping relationship between the grayscale value of the material to be processed and the laser output power in a database, the step further includes: Acquiring historical processing parameters of the material to be processed; Fitting the historical processing parameters through a preset curve fitting model to generate a fitting curve of the historical processing parameters; Based on the fitting curve, a mapping relationship between the grayscale value of the material to be processed and the laser output power is generated.
4. The method according to claim 2, characterized in that After the step of determining the laser output power according to the gray value and the mapping relationship, the method further includes: When the material to be processed is a sensitive material, obtaining an output power threshold of the sensitive material; When the laser output power is greater than the output power threshold, determining the output time of the path coordinate according to the laser output power and the output power threshold; Based on the output power threshold, the laser output power is modified.
5. The method according to claim 1, characterized in that After obtaining the bitmap to be processed in the bitmap editing interface, before extracting the marking coordinates of the bitmap to be processed, the step further includes: After receiving the bitmap editing instruction, outputting the bitmap editing interface and displaying the bitmap data imported by the user in the bitmap editing interface; In response to the bitmap editing action received by the bitmap editing interface, performing a corresponding modification action on the bitmap data; The bitmap to be processed is generated according to the modified bitmap data.
6. The method according to claim 5, characterized in that Before the step of outputting the bitmap editing interface after receiving the bitmap editing instruction and displaying the bitmap data imported by the user in the bitmap editing interface, the method further includes: Receive the imported bitmap data, and determine the resolution of the bitmap data according to the number of pixels of the bitmap data; When the resolution is greater than a preset resolution, the resolution of the bitmap data is reduced by sampling.
7. The method according to claim 1, characterized in that The step of obtaining the bitmap to be processed in the bitmap editing interface and determining the processing path corresponding to the bitmap to be processed includes: After acquiring the to-be-processed bitmap through the bitmap editing interface, determining the path coordinates according to the pixel points of the to-be-processed bitmap; The coordinates to be processed are input into a path planning model to generate the processing path.
8. The method according to claim 1, characterized in that The step of generating laser marking parameters according to the processing path and the laser output power, and performing a marking action based on the laser marking parameters comprises: Associating the laser output power with the path coordinates corresponding to the processing path to generate the laser marking parameters; The galvanometer is controlled to move based on the processing path, and the laser output action is performed according to the laser output power associated with the current path coordinates in the laser marking parameters.
9. A laser marking device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the laser marking method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the laser marking method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Laser galvanometer bitmap processing method
CN103170727A
Relief realizing device and method
CN103625189A
Laser marking method, laser marking machine and laser marking system
CN104827781A
Pulse laser three-dimensional engraving method
CN105057892A
Laser marking method for random three-dimensional code
CN110348553A
Cited By
Bitmap laser marking method and system, electronic equipment and readable storage medium
CN119115232A
Laser marking method, device, equipment, storage medium and product
CN119187898A
Power self-adaptive control method and system for laser metal engraving
CN119910316A
