Laser marking method, apparatus, device, and storage medium

By shuffling the pixel arrangement order according to preset import rules in the laser marking device, the problem of unsatisfactory marking effect in vibration environment is solved, and a clearer marking effect is achieved.

CN115609158BActive Publication Date: 2026-01-02TED LASER HUIZHOU CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211186490.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-01-02
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

Existing laser marking equipment is prone to producing concentrated bright and dark stripes in vibrating environments, resulting in unsatisfactory marking effects.

Method used

By importing the pattern to be processed into the canvas of the marking application according to the preset import rules, the arrangement order of the pixels is shuffled, changing the conventional sequential marking method, ensuring that continuous point or line offsets are not caused by vibration during laser marking.

Benefits of technology

It improves the effect of laser marking, avoids abnormal stripes caused by vibration, and enhances the clarity and consistency of the marking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115609158B_ABST
    Figure CN115609158B_ABST
Patent Text Reader

Abstract

The application discloses a laser marking method, device, equipment and storage medium. The laser marking method comprises the following steps: according to a preset import rule, importing a to-be-processed pattern into a canvas of a marking application, and obtaining an import order of each pixel point in the to-be-processed pattern; and performing laser marking on a workpiece based on the import order, so as to mark the to-be-processed pattern on the workpiece. That is, according to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the arrangement order of the pixel points is disturbed. The import order of the pixel points in the to-be-processed pattern is taken as a marking order, the conventional sequential marking mode is changed, and therefore, when the laser equipment marks light, continuous point deviation or line segment deviation caused by vibration is avoided, the problem of abnormal stripes in a marked pattern is solved, and the laser marking effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of laser processing, in particular to a laser marking method, device, equipment and storage medium. BACKGROUND

[0002] Laser marking, also known as laser marking, is a marking method that uses high-energy-density laser beams to act on workpieces, causing physical or chemical changes on the surface of the workpieces, thereby obtaining visible patterns. Due to the fast response speed of the galvanometer scanner, which is much higher than other traditional scanning systems, it has been increasingly widely used in the laser industry. Laser marking equipment is particularly sensitive to the vibration of the production workshop environment and the equipment during the processing of high-precision point filling patterns. The frequency of environmental vibration contains high-frequency and low-frequency components, which can easily cause small regional line segment deviation in the marking effect, and visible abnormal stripes such as bright and dark stripes.

[0003] In view of the above situation, the conventional processing method is to reduce the marking impact caused by vibration by strengthening the rigidity and shock resistance of the equipment. However, due to the vibration of the production workshop, it is difficult to achieve very good results, even if the rigidity of the laser marking equipment itself is strengthened, it is still affected by the environmental vibration, causing abnormal stripes in the pattern.

[0004] Therefore, the existing laser marking equipment has the problem of concentrated bright and dark stripes after marking, resulting in unsatisfactory marking effect. SUMMARY

[0005] The main purpose of the present application is to provide a laser marking method, device, equipment and storage medium, which aims to solve the technical problem of the existing laser marking equipment that appears concentrated bright and dark stripes after marking, resulting in unsatisfactory marking effect.

[0006] To achieve the above purpose, the present application provides a laser marking method, which comprises:

[0007] According to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the import order of each pixel point in the to-be-processed pattern is obtained.

[0008] Based on the import order, laser marking is performed on the workpiece to mark the to-be-processed pattern on the workpiece.

[0009] Illustratively, the to-be-processed pattern is imported into the canvas of the marking application according to the preset import rule, and the import order of each pixel point in the to-be-processed pattern is obtained, which comprises:

[0010] Obtain the to-be-processed pattern and the position sequence number on the to-be-processed pattern;

[0011] acquire a preset import rule, traverse a position serial number on the to-be-processed pattern according to the import rule, and perform the following steps on the traversed position serial number:

[0012] determine a current pixel point corresponding to the position serial number;

[0013] import the current pixel point into the canvas.

[0014] The method further includes, for example:

[0015] divide the to-be-processed pattern into at least one row and at least one column;

[0016] traverse the at least one row, and perform the steps of acquiring a preset import rule, traversing a position serial number on the to-be-processed pattern according to the import rule on the traversed row.

[0017] The traversing of the at least one row includes, for example:

[0018] acquire a preset traversal rule, the traversal rule including sequential row traversal and random row traversal;

[0019] traverse the at least one row based on the traversal rule.

[0020] The laser marking of the workpiece based on the import sequence includes, for example:

[0021] acquire a marking sequence corresponding to the import sequence, the marking sequence including at least one marking serial number;

[0022] traverse the marking sequence, and determine a target pixel point corresponding to the traversed marking serial number;

[0023] acquire coordinate information of the target pixel point, and transmit the coordinate information to a laser device and an optical path scanning system, so that the laser device and the optical path scanning system perform laser marking on the workpiece to mark the to-be-processed pattern on the workpiece.

[0024] Before the acquisition of the coordinate information of the target pixel point, the method includes, for example:

[0025] determine whether the target pixel point is a black pixel point;

[0026] if yes, perform the step of acquiring the coordinate information of the target pixel point;

[0027] if no, filter out the current target pixel point, and traverse a next marking serial number.

[0028] Illustratively, before the acquisition of the import order of each pixel point in the to-be-processed pattern, the method comprises the following steps of:

[0029] dividing the canvas into at least one marking area:

[0030] traversing the marking area, and performing the step of acquiring the import order of each pixel point in the to-be-processed pattern on the traversed marking area;

[0031] the acquisition of the import order of each pixel point in the to-be-processed pattern comprises:

[0032] acquiring the import order of each pixel point of the to-be-processed pattern in the traversed marking area.

[0033] Illustratively, to achieve the above-mentioned purpose, the present application also provides a laser marking device, which comprises:

[0034] a pattern import module, configured to import a to-be-processed pattern into a canvas of a marking application according to a preset import rule, and acquire an import order of each pixel point in the to-be-processed pattern;

[0035] a laser marking module, configured to perform laser marking on a workpiece based on the import order, so as to mark the to-be-processed pattern on the workpiece.

[0036] Illustratively, to achieve the above-mentioned purpose, the present application also provides a laser marking device, which comprises a memory, a processor, and a laser marking program stored in the memory and executable on the processor, and the laser marking program realizes the steps of the laser marking method when executed by the processor.

[0037] Illustratively, to achieve the above-mentioned purpose, the present application also provides a computer storage medium, which stores a laser marking program, and the laser marking program realizes the steps of the laser marking method when executed by a processor.

[0038] Compared with the prior art, the laser marking device is affected by device vibration and production environment vibration, and concentrated bright and dark stripes appear on the marked part, resulting in an undesirable marking effect. In the present application, the to-be-processed pattern is imported into the canvas of the marking application according to the preset import rule, and the arrangement order of the pixel points is disturbed. The import order of the pixel points in the to-be-processed pattern is used as the marking order, and the conventional order marking mode is changed, so that when the laser device marks light, the continuous points or line segments will not be offset due to vibration, the problem of abnormal stripes in the marked pattern is solved, and the laser marking effect is improved. BRIEF DESCRIPTION OF DRAWINGS

[0039] Figure 1 is a flowchart of a first embodiment of the laser marking method of the present application;

[0040] Figure 2 is a functional module diagram of a preferred embodiment of the laser marking device of the present application;

[0041] Figure 3 is a structural diagram of a hardware operating environment involved in the embodiment of the present application.

[0042] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments in conjunction with the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are merely intended to explain the present application and not to limit the present application.

[0044] The main solution of the embodiment of the present application is:

[0045] The laser marking device is particularly sensitive to the vibration of the production workshop environment and the equipment machine in the process of processing high-precision point filling patterns. The frequency of environmental vibration is mixed with high-frequency and low-frequency components, which can easily cause small regional line segment deviation in marking effect. Although single-point deviation is difficult to observe abnormalities intuitively in visual effect, the overall deviation of the regional line segment can be seen as obvious abnormal stripes, such as bright stripes and dark stripes, after the pattern is enlarged.

[0046] In view of the above situation, the conventional processing method is to reduce the marking influence caused by vibration by strengthening the rigidity and shock resistance of the equipment. However, since the vibration of the production workshop is difficult to be very good, even if the rigidity of the laser marking device itself is strengthened, it is still affected by the environmental vibration, causing abnormal stripes in the pattern.

[0047] The present application provides a solution suitable for the field of laser processing, which solves the technical problem that the existing laser marking device appears concentrated bright and dark stripes after marking, resulting in unsatisfactory marking effect

[0048] The embodiment of the present application provides a laser marking method, referring to Figure 1 , Figure 1 is a flowchart of the laser marking method of the present application.

[0049] The embodiment of the present application also provides a laser marking method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that herein. The laser marking method can be applied in a computer or a laser marking device. In order to facilitate description, the following omits the description of the execution subject of each step of the laser marking method, and the laser marking method comprises:

[0050] Step S110, according to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the import order of each pixel point in the to-be-processed pattern is obtained.

[0051] Step S120, based on the import order, laser marking is performed on the workpiece to mark the to-be-processed pattern on the workpiece.

[0052] In the embodiment, the existing laser marking technology has the following deficiencies: the laser marking device is affected by device vibration and production environment vibration, and concentrated bright and dark stripes appear after marking, resulting in an undesirable marking effect. In the present application, the to-be-processed pattern is imported into the canvas of the marking application according to the preset import rule, and the arrangement order of the pixel points is disturbed. The import order of the pixel points in the to-be-processed pattern is used as the marking order, and the conventional sequential marking method is changed, so that when the laser device marks light, the continuous points or line segments will not be offset due to vibration, thereby solving the problem of abnormal stripes in the marked pattern and improving the laser marking effect.

[0053] The specific steps are as follows:

[0054] Step S110, according to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the import order of each pixel point in the to-be-processed pattern is obtained.

[0055] In the embodiment, the color EGB value of each pixel point in the gray-scale picture of the to-be-processed pattern is read, a two-dimensional array of a picture is obtained, the values (0-255) in the two-dimensional array are sharpened to obtain different gradients. The larger the gradient, the clearer the to-be-processed pattern. Each pixel point in the to-be-processed pattern is one-to-one corresponding to the canvas of the marking application. The marking application refers to software that transmits data and sets with a laser marking device or an optical path scanning system during laser marking.

[0056] The preset import rule refers to the rule or method of importing the pattern into the canvas of the marking application, and the import rule includes reading and importing the pixel points in the pattern. For example, the pixel points are imported into the canvas according to the preset import order, and the import order can be in order or out of order.

[0057] Since in the actual laser marking process, the picture DPI (Dots Per Inch, dots per inch) with the to-be-processed pattern is 2400, the distance between two pixels is 0.01 mm. If the light is continuously emitted during vibration, and the light is emitted according to the pixel row and column order on the picture, the pixel points after marking will be offset, and the overall spacing will be uneven. Therefore, when the to-be-processed pattern is imported into the canvas of the marking application, a row or a pixel point is randomly imported, and the randomly extracted pixel points are drawn in the canvas to disrupt the pixel point arrangement order. Thus, when the laser device emits light for marking, a continuous row or region of points will not be offset due to vibration, and abnormal bright and dark stripes and ripples will not occur.

[0058] Therefore, preferably, the preset import rule is a random rule or an unordered rule. The import rule can achieve randomness through an algorithm as follows:

[0059]

[0060] As an example, in the process of importing each pixel point in the to-be-processed pattern into the canvas according to the preset import rule, the import order of each pixel point is obtained, which is used for the subsequent marking order to solve the overall offset problem of laser marking when vibrating.

[0061] In a possible implementation of the present application, the method comprises:

[0062] Step S111, obtaining a to-be-processed pattern and a position sequence number on the to-be-processed pattern;

[0063] Step S112, obtaining a preset import rule, traversing the position sequence number on the to-be-processed pattern according to the import rule, and performing the following steps on the traversed position sequence number:

[0064] Step S113, determining a current pixel point corresponding to the position sequence number;

[0065] Step S114, importing the current pixel point into the canvas.

[0066] In the embodiment, the position sequence number refers to a sequence number obtained by numbering the position of each pixel point in the to-be-processed pattern. When numbering the position of each pixel point in the to-be-processed pattern, the entire pixel points in the to-be-processed pattern can be sequentially numbered, and then the import rule is for each pixel point. Alternatively, the to-be-processed pattern can be divided into rows and columns, and each pixel point in each row is coded, and then the import rule is for the pixel points in each row. According to actual production requirements such as marking effect and import efficiency, a corresponding numbering mode is reasonably selected, which is not specifically limited herein.

[0067] As an example, the to-be-processed pattern and the position sequence number corresponding to each pixel point in the to-be-processed pattern are obtained, thereby obtaining a plurality of position sequence numbers. A preset import rule is obtained, each position sequence number is traversed according to the import rule, and the operation of pixel point import is performed on the traversed position sequence number. For example, the current pixel point corresponding to the traversed position sequence number is determined, and the current pixel point is imported into the canvas of the marking application.

[0068] As an example, the import rule is obtained by the above algorithm, and the rule corresponds to the order of the position sequence number of each pixel point. For example, there are 10 pixel points, and the position sequence numbers of the first pixel point to the tenth pixel point are sequentially assigned from 1 to 10. If the order sequence corresponding to the import rule is {1, 3, 6, 8, 9, 5, 2, 4, 7, 10}, wherein 1, 3, 6, and the like represent the position sequence numbers of the pixel points. In the import process, the order sequence is traversed, the first pixel point corresponding to the first position in the sequence is imported into the canvas, the third pixel point corresponding to the second position is imported into the canvas, when the third position is traversed, the sixth pixel point corresponding to the third position is imported into the canvas, and the sequence is traversed until each pixel point in the to-be-processed pattern is imported into the canvas, and the import is completed.

[0069] In step S120, the workpiece is laser marked based on the import order to mark the to-be-processed pattern on the workpiece.

[0070] In the embodiment, if the pixel points are sequentially drawn onto the canvas of the marking application, when vibration occurs in the laser etching or laser marking, the pixel points cannot be etched according to the set position, thereby causing the offset of the marking points. With the continuous marking, the small regional line segment offset is easily caused on the marking effect. Although the single-point offset is difficult to observe the abnormality in the visual effect, the overall offset of the regional line segment can be observed, and the abnormal stripes such as bright stripes, dark stripes, and corrugations can be observed after the pattern is enlarged. Therefore, the workpiece is laser marked according to the import order of the pixel points randomly imported into the canvas, the order of the marking is disturbed, even if there is production vibration in the laser etching or laser processing, the overall offset of the continuous pixel points does not occur, and the abnormal effect of the picture after the laser etching is caused.

[0071] In a possible implementation of the present application, the laser marking of the workpiece based on the import order comprises:

[0072] In step S121, a marking sequence corresponding to the import order is obtained, and the marking sequence comprises at least one marking serial number.

[0073] In step S122, the marking sequence is traversed to determine a target pixel point corresponding to a traversed marking serial number.

[0074] In step S123, coordinate information of the target pixel point is obtained, and the coordinate information is transmitted to a laser device and an optical path scanning system, so that the laser device and the optical path scanning system perform laser marking on the workpiece to mark the to-be-processed pattern on the workpiece.

[0075] The marking sequence refers to a set of marking serial numbers. Each pixel point is marked when being imported into a canvas. The coordinate information of the pixel point in the canvas and the marking serial number are marked. The marking sequence is obtained according to the import order.

[0076] In this embodiment, the marking sequence corresponding to the import order is obtained, the marking sequence is traversed, and a target pixel point corresponding to a traversed marking serial number is determined. The target pixel point refers to a pixel point that needs to be marked on the workpiece. In the marking process, the position of the target pixel point on the workpiece is determined according to the position information of the target pixel point. Therefore, after the target pixel point to be marked is determined, the coordinate information of the target pixel point is obtained, and the coordinate information is transmitted to the laser device and the optical path scanning system, so that the laser device emits laser light for marking, and the optical path scanning system determines the marking position of the laser light on the workpiece, thereby achieving the purpose of marking the to-be-processed pattern on the workpiece and completing the marking work.

[0077] As an example, before the coordinate information of the target pixel point is obtained, the following steps are included:

[0078] In step S124, it is determined whether the target pixel point is a black pixel point.

[0079] In step S125, if yes, the coordinate information of the target pixel point is obtained.

[0080] In step S126, if no, the target pixel point is filtered out, and the next marking serial number is traversed.

[0081] In the laser marking process, according to the gray scale of the to-be-processed pattern, each pixel point in the to-be-processed pattern has a value between 0 and 255. When the value is between 200 and 255, the canvas can be set as a white pixel point, and the value between 0 and 200 is classified as a black pixel point. The black pixel is marked, and the white pixel is not marked. That is, when the white pixel point is a white pixel point, the white pixel point has no coordinates, and the laser equipment does not emit light. Therefore, before obtaining the coordinate information of the target pixel point, it is determined whether the target pixel point is a black pixel point or a white pixel point. If the target pixel point is a black pixel point, the step of obtaining the coordinate information of the target pixel point is executed, and the laser marking process is performed through the laser equipment and the optical path scanning system; if the target pixel point is a white pixel point, the current white pixel point is filtered out, the next marking serial number is traversed, the next target pixel point is obtained, and the marking process is continued.

[0082] In the present embodiment, the shortcomings of the existing laser marking technology are that the laser marking device is affected by device vibration and production environment vibration, and concentrated bright and dark stripes appear after marking, resulting in unsatisfactory marking effect. In the present application, the to-be-processed pattern is imported into the canvas of the marking application according to the preset import rule, and the arrangement order of the pixel points is disturbed. The import order of the pixel points in the to-be-processed pattern is taken as the marking order, and the conventional sequential marking mode is changed, so that when the laser equipment marks light, continuous point deviation or line segment deviation caused by vibration is avoided, thereby solving the problem of abnormal stripes in the marked pattern and improving the laser marking effect.

[0083] Based on the above first embodiment, a second embodiment of the laser marking method of the present application is proposed. In the present embodiment, the laser marking method further comprises:

[0084] Step S130, dividing the to-be-processed pattern into rows and columns to obtain at least one row and at least one column;

[0085] Step S140, traversing the at least one row, and executing the step of obtaining the preset import rule for the row traversed, and traversing the position serial number on the to-be-processed pattern according to the import rule.

[0086] When each pixel point of the to-be-processed pattern is imported into the canvas of the marking application according to the preset import rule, the object of the import rule can be selected to meet different production demands or marking efficiency. The import rule acts on all pixel points of the entire to-be-processed pattern, that is, the entire to-be-processed pattern is randomly imported. The import rule also acts on each row of pixel points of the to-be-processed pattern, that is, each row of pixel points is randomly imported or reordered.

[0087] As an example, all the pixel points in the to-be-processed pattern are divided into at least one row and at least one column. All the rows are traversed, and the step of acquiring a preset import rule is performed on the traversed row, and the position serial number on the to-be-processed pattern is traversed according to the import rule. That is, the traversed row is executed: acquiring a preset import rule, traversing the position serial number of each row of pixel points on the to-be-processed pattern according to the import rule, determining the current pixel point corresponding to the traversed position serial number, and importing the current pixel point into the canvas. After all the pixel points of the current row are imported, the pixel points of the next row are randomly imported into the canvas in sequence until all the pixels in the to-be-processed pattern are imported into the canvas for laser marking.

[0088] It should be noted that the import rule corresponding to each traversed row can be consistent or inconsistent. When the import rule corresponding to each row of pixel points is inconsistent, it means that the import order of each row of pixel points is also random and disordered.

[0089] In a possible implementation of the present application, the traversing of the at least one row comprises:

[0090] In step S141, a preset traversal rule is acquired, and the traversal rule comprises sequential row traversal and random row traversal.

[0091] In step S142, the at least one row is traversed based on the traversal rule.

[0092] In order to improve the marking effect and increase the randomness of the disordered marking, in addition to disordering the order of drawing each row of pixel points of the to-be-processed pattern into the canvas, the order of importing each row of the entire to-be-processed pattern can also be disordered. That is, after all the pixel points of the current row are randomly imported into the canvas, all the pixel points of the next row can be imported according to the order from top to bottom; or all the pixel points of the next row can be imported without the order from top to bottom but according to a preset traversal rule to select the corresponding row for pixel point import.

[0093] As an example, a preset traversal rule is acquired, and the traversal rule includes sequential row traversal and random row traversal. If the traversal rule is sequential row traversal, all pixel points of a current row are imported into a canvas, and then each pixel point of a next row is randomly imported until all pixels in the to-be-processed pattern are imported into the canvas. If the traversal rule is random row traversal, a row sequence corresponding to the random row traversal is acquired, all pixel points corresponding to a current row are randomly imported into the canvas according to the row sequence, and then all pixel points corresponding to a next row are randomly imported into the canvas according to the row sequence. For example, the to-be-processed pattern includes 8 rows, and the row sequence corresponding to the random row traversal is {2 3 6 4 8 1 7}. The pixel points of the second row are imported into the canvas first, then the pixel points of the third row are imported into the canvas, and then all pixel points are imported into the canvas according to the row sequence, to complete the pattern importing process.

[0094] In this embodiment, the pixel points of each row of the to-be-processed pattern are sequentially shuffled according to the importing rule, to realize random importing of the pixel points. When marking is performed according to the importing sequence, no overall shift of continuous pixel points occurs. In addition, when the pixel points of each row of the to-be-processed pattern are sequentially shuffled, the sequence of the imported rows can also be shuffled, to improve the disorder of the importing sequence, avoid line segment or regional shift caused by production vibration, cause abnormal stripes, and improve the effect of laser marking.

[0095] Based on the first or second embodiment, a third embodiment of the laser marking method is provided. Before the step of acquiring the importing sequence of each pixel point in the to-be-processed pattern, the method includes:

[0096] In step S150, the canvas is divided into at least one marking area.

[0097] In step S160, the marking area is traversed, and the step of acquiring the importing sequence of each pixel point in the to-be-processed pattern is performed on the traversed marking area.

[0098] In step S170, the step of acquiring the importing sequence of each pixel point in the to-be-processed pattern includes:

[0099] In step S180, the importing sequence of each pixel point of the to-be-processed pattern in the traversed marking area is acquired.

[0100] To avoid large span of random movement of the marking device when the marking effect is improved, the to-be-processed pattern in the canvas is divided into multiple marking areas, and marking is performed in a regional manner. That is, the canvas applied for marking is divided into multiple marking areas, the step of acquiring the importing sequence of each pixel point in the to-be-processed pattern is performed on each marking area, and the workpiece is laser marked based on the importing sequence, to mark the to-be-processed pattern on the workpiece.

[0101] It can be understood that the import order of the pixel points in the current region is obtained, and the pattern in the current region is marked on the workpiece according to the import order and the position information of all the pixel points in the current region. After the marking of the current region is completed, the marking of the next region is performed, and the import order of the pixel points in the next region is also obtained, and the marking is performed according to the import order to mark the pattern in the next region on the workpiece. In this way, the marking of other regions is realized until the to-be-processed pattern in the canvas is completely marked on the workpiece, the marking is completed, and the moving span of the laser equipment is reduced, and the marking efficiency is improved.

[0102] As an example, the marking of the multiple regions can be performed in the order of the regions, or can be performed in a random manner. For example, the multiple marking regions are traversed according to a region random rule, and the step of obtaining the import order of each pixel point in the to-be-processed pattern is performed on the traversed marking region, that is, the import order of each pixel point of the to-be-processed pattern in the traversed marking region is obtained.

[0103] In this embodiment, the to-be-processed pattern is divided into regions, and the marking is performed according to the regions, so that the marking order is disturbed, the problem of overall deviation of marking caused by vibration during marking is avoided, and the marking effect is improved. At the same time, when the marking is performed according to the regions, the moving span of the marking device in the current region is small, the marking speed and efficiency are improved while the marking effect is ensured.

[0104] As shown in Figure 2 The present application also provides a laser marking device, which comprises:

[0105] A pattern import module 10 is configured to import a to-be-processed pattern into a canvas of a marking application according to a preset import rule, and obtain an import order of each pixel point in the to-be-processed pattern;

[0106] A laser marking module 20 is configured to perform laser marking on a workpiece based on the import order, so as to mark the to-be-processed pattern on the workpiece.

[0107] The pattern import module 10 further comprises:

[0108] A first obtaining sub-module is configured to obtain a to-be-processed pattern and a position sequence number on the to-be-processed pattern;

[0109] A first traversing sub-module is configured to obtain a preset import rule, traverse the position sequence number on the to-be-processed pattern according to the import rule, and perform the following steps on the traversed position sequence number:

[0110] A first determining sub-module is configured to determine a current pixel point corresponding to the position sequence number.

[0111] An importing submodule is configured to import the current pixel point into the canvas.

[0112] And / or, the pattern importing module 10 further comprises:

[0113] A dividing submodule is configured to divide the to-be-processed pattern into at least one row and at least one column.

[0114] A second traversing submodule is configured to traverse the at least one row, and perform the step of obtaining a preset importing rule on the traversed row, and traverse the position serial number on the to-be-processed pattern according to the importing rule.

[0115] And / or, the second traversing submodule further comprises:

[0116] An obtaining unit is configured to obtain a preset traversing rule, and the traversing rule comprises sequential row traversal and random row traversal.

[0117] A traversing unit is configured to traverse the at least one row based on the traversing rule.

[0118] And / or, the laser marking module 20 further comprises:

[0119] A second obtaining submodule is configured to obtain a marking sequence corresponding to the importing sequence, and the marking sequence comprises at least one marking serial number.

[0120] A third traversing submodule is configured to traverse the marking sequence, and determine a target pixel point corresponding to the traversed marking serial number.

[0121] A marking submodule is configured to obtain coordinate information of the target pixel point, and transmit the coordinate information to a laser device and an optical path scanning system, so that the laser device and the optical path scanning system perform laser marking on the workpiece, and mark the to-be-processed pattern on the workpiece.

[0122] And / or, the laser marking module 20 further comprises:

[0123] A judging submodule is configured to judge whether the target pixel point is a black pixel point.

[0124] A second determining submodule is configured to, if yes, perform the step of obtaining the coordinate information of the target pixel point.

[0125] A third determining submodule is configured to, if no, filter out the current target pixel point, and traverse a next marking serial number.

[0126] And / or, the device further comprises:

[0127] The dividing module is configured to divide the canvas into at least one marking area.

[0128] The traversing module is configured to traverse the marking area and perform the step of obtaining the import order of each pixel point in the to-be-processed pattern on the traversed marking area.

[0129] The pattern import module comprises:

[0130] The third obtaining sub-module is configured to obtain the import order of each pixel point in the to-be-processed pattern in the traversed marking area.

[0131] The laser marking device specific implementation of the present application is basically the same as the above-mentioned laser marking method, and will not be repeated here.

[0132] In addition, the present application also provides a laser marking device. As shown in Figure 3 is a structural diagram of the hardware running environment involved in the embodiment of the present application. Figure 3 In a possible implementation,

[0133] That is, the structural diagram of the hardware running environment of the laser marking device. Figure 3 As shown in

[0134] , the laser marking device can include a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704, the memory 703 is used to store computer programs; the processor 701 is used to execute the programs stored in the memory 703 to realize the steps of the laser marking method. Figure 3 The communication bus 704 mentioned above can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 704 can be divided into an address bus, a data bus and a control bus, etc. For the convenience of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0135] The communication interface 702 is used for communication between the above-mentioned laser marking device and other devices.

[0136]

[0137] ​The memory 703 can include a random access memory (RAM) and can also include a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory 703 can also be at least one storage device located away from the aforementioned processor 701.

[0138] The processor 701 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0139] The laser marking device specific embodiment of the present application is basically the same as the above-mentioned laser marking method embodiments, and will not be repeated here.

[0140] In addition, the embodiments of the present application also propose a computer storage medium, and the computer storage medium stores a laser marking program. When the laser marking program is executed by a processor, the steps of the laser marking method described above are implemented.

[0141] The computer storage medium specific embodiment of the present application is basically the same as the above-mentioned laser marking method embodiments, and will not be repeated here.

[0142] It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the sentence "including a…" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0143] The serial number of the above-mentioned embodiments of the present application is only for description, not representing the advantages and disadvantages of the embodiments.

[0144] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, can also be through hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art contribution can be embodied in the form of software products, the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), including a number of instructions to make a terminal device (may be a mobile phone, computer, server, device, or network equipment, etc.) executes the method described in various embodiments of the present application.

[0145] The above is only the preferred embodiment of the present application, not therefore limit the patent scope of the present application, all use the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, equivalent structure or equivalent process transformation, or, are also included in the patent protection scope of the present application.

Claims

1. A method of laser marking, characterized in that, The method comprises: According to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the import order of each pixel point in the to-be-processed pattern is obtained; According to the preset import rule, the to-be-processed pattern is imported into the canvas of the marking application, and the import order of each pixel point in the to-be-processed pattern is obtained, comprising: Obtain the to-be-processed pattern and the position sequence number on the to-be-processed pattern; Obtain the preset import rule, traverse the position sequence number on the to-be-processed pattern according to the import rule, and execute the following steps on the traversed position sequence number: Determine the current pixel point corresponding to the position sequence number; Import the current pixel point into the canvas; Wherein, the preset import rule is a random rule or an unordered rule; Based on the import order of the pixel points into the canvas, laser marking is performed on the workpiece to mark the to-be-processed pattern on the workpiece; Based on the import order of the pixel points into the canvas, laser marking is performed on the workpiece to mark the to-be-processed pattern on the workpiece, comprising: Obtain the marking sequence corresponding to the import order, and the marking sequence includes at least one marking sequence number; Traverse the marking sequence to determine the target pixel point corresponding to the traversed marking sequence number; Obtain the coordinate information of the target pixel point, and transmit the coordinate information to the laser equipment and the optical path scanning system, so that the laser equipment and the optical path scanning system perform laser marking on the workpiece to mark the to-be-processed pattern on the workpiece; The method further comprises: Divide the to-be-processed pattern into at least one row and at least one column; Traverse the at least one row, and execute the following steps on the traversed row to disorder the order of drawing each row of pixel points in the to-be-processed pattern into the canvas: obtaining a preset import rule, traversing the position sequence number on the to-be-processed pattern according to the import rule.

2. The method of claim 1, wherein, The traversal of the at least one row comprises: Obtain a preset traversal rule, and the traversal rule comprises sequential row traversal and random row traversal; Traverse the at least one row based on the traversal rule.

3. The method of claim 1, wherein, Before obtaining the coordinate information of the target pixel point, comprising: Determine whether the target pixel point is a black pixel point; If yes, execute the step of obtaining the coordinate information of the target pixel point; If not, filter out the current target pixel point and traverse the next marking sequence number.

4. The method of claim 1, wherein, Before obtaining the import order of each pixel point in the to-be-processed pattern, comprising: Divide the canvas into at least one marking area: Traverse the marking area, and execute the following steps on the traversed marking area to obtain the import order of each pixel point in the to-be-processed pattern: Obtain the import order of each pixel point of the to-be-processed pattern in the traversed marking area. The device comprises:

5. A laser marking device, characterized by ​ The pattern import module is configured to import a to-be-processed pattern into a canvas of a marking application according to a preset import rule, and obtain an import order of each pixel point in the to-be-processed pattern, wherein the preset import rule is a random rule or a disordered rule. The pattern import module further includes a first obtaining sub-module, a first traversal sub-module, a first determining sub-module, and an import sub-module. The first obtaining sub-module is configured to obtain a to-be-processed pattern and a position sequence number on the to-be-processed pattern. The first traversal sub-module is configured to obtain a preset import rule, traverse the position sequence number on the to-be-processed pattern according to the import rule, and perform a pixel point import step on the traversed position sequence number. The first determining sub-module is configured to determine a current pixel point corresponding to the position sequence number. The import sub-module is configured to import the current pixel point into the canvas. The laser marking module is configured to perform laser marking on a workpiece based on the import order of the pixel point import into the canvas, so as to mark the to-be-processed pattern on the workpiece. The laser marking module further includes a second obtaining sub-module, a third traversal sub-module, and a marking sub-module. The second obtaining sub-module is configured to obtain a marking sequence corresponding to the import order, wherein the marking sequence includes at least one marking sequence number. The third traversal sub-module is configured to traverse the marking sequence, and determine a target pixel point corresponding to a traversed marking sequence number. The marking sub-module is configured to obtain coordinate information of the target pixel point, and transmit the coordinate information to a laser device and an optical path scanning system, so that the laser device and the optical path scanning system perform laser marking on the workpiece, and mark the to-be-processed pattern on the workpiece. The pattern import module further includes a division sub-module and a second traversal sub-module. The division sub-module is configured to divide the to-be-processed pattern into at least one row and at least one column. The second traversal sub-module is configured to traverse the at least one row, and perform the steps of obtaining a preset import rule, traversing the position sequence number on the to-be-processed pattern according to the import rule, and disarranging the order of drawing each row of pixel points of the to-be-processed pattern into the canvas.

6. A laser marking apparatus characterized by comprising: The laser marking device includes a memory, a processor, and a laser marking program stored on the memory and executable on the processor, and the laser marking program, when executed by the processor, implements the steps of the laser marking method according to any one of claims 1 to 4.

7. A computer storage medium, characterized in that The computer storage medium stores a laser marking program, and the laser marking program, when executed by a processor, implements the steps of the laser marking method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Laser marking machine and marking method thereof

    CN108436283A