Laser marking method and related device based on image recognition

Through the laser marking method based on image recognition, marking instructions are automatically identified and generated, and the problem of manual operation consumes human resources during laser marking is solved, and a convenient and efficient marking process is achieved.

CN115890004BActive Publication Date: 2025-04-11SHENZHEN KUNXING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211070217.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-02
Publication Date
2025-04-11
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

During the laser marking process, the parameters need to be adjusted manually and the marking pattern needs to be switched, resulting in waste of human resources and lack of convenient and energy-saving marking methods.

Method used

A laser marking method based on image recognition is adopted to obtain target image information, identify identity tags and marking patterns, generate marking instructions, and match the corresponding marking mode to achieve automated marking.

Benefits of technology

It realizes convenient operation during the marking process, reduces human resource consumption for manual operations, and improves marking efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115890004B_ABST
    Figure CN115890004B_ABST
Patent Text Reader

Abstract

The present application discloses a laser marking method based on image recognition and related devices, including: obtaining the target image information to be marked, obtaining the identity tag information and the marking pattern according to the target image information; when the marking pattern meets the preset conditions, generating the marking instruction according to the image pixel information in the marking pattern; matching the marking mode based on the identity tag information; marking at the target location based on the marking mode and the marking instruction. By identifying the target image information to determine the marking information and the marking pattern, matching the corresponding marking mode and the marking instruction generated based on the image, the technical effect of convenient marking in the marking process is achieved, which can not only generate the marking instruction and the marking mode according to the identified image information, but also further reduce the human resources consumed by manual operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser marking, and in particular to a laser marking method and related devices based on image recognition. Background Art

[0002] With the development of precision instruments and high-tech, laser marking is gradually being used to mark target products during the production process. In the actual laser marking process, manufacturers often enter the marking pattern, set the marking type and marking mode to laser mark the target product. In the marking process, it is necessary to manually adjust the marking parameters and manually switch the marking pattern when switching products, which wastes a lot of human resources.

[0003] Therefore, how to achieve a convenient and energy-saving marking method during the laser marking process has become a technical problem that needs to be solved urgently.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] In order to achieve a convenient and energy-saving marking method, the present application provides a laser marking method and related devices based on image recognition.

[0006] In the first aspect, the present application provides a laser marking method based on image recognition using the following technical solutions:

[0007] A laser marking method based on image recognition, comprising obtaining target image information to be marked, and obtaining identity tag information and a marking pattern based on the target image information;

[0008] Determining whether the marking pattern meets a preset condition;

[0009] If yes, generating a marking instruction according to the image pixel information in the marking pattern;

[0010] Matching a corresponding marking mode based on the identity tag information;

[0011] Marking is performed at a target marking location according to the marking mode and the marking instruction.

[0012] Optionally, the acquiring the target image information to be marked, and acquiring the identity tag information and the marking pattern based on the target image information includes:

[0013] Acquire target image information to be marked, and acquire QR code information in a first preset area of ​​the target image information;

[0014] Acquire identity tag information according to the QR code information;

[0015] A marking pattern is acquired in a second preset area in the target image information.

[0016] Optionally, the determining whether the marking pattern satisfies a preset condition includes:

[0017] Acquiring image information of a third preset area in the marking pattern;

[0018] Acquire the position requirement of the object to be marked according to the marking requirement in the image information;

[0019] Obtain the position information of the current object to be marked and determine whether it meets the position requirements of the object to be marked.

[0020] Optionally, generating a marking instruction according to the image pixel information in the marking pattern includes:

[0021] Traversing the marking pattern to obtain pixel information in the marking pattern;

[0022] generating a mapping image in a preset coordinate system according to the pixel information, wherein the mapping image is composed of a preset number of coordinate points;

[0023] Sorting the coordinate points to determine a marking order;

[0024] A marking instruction is generated according to the marking sequence.

[0025] Optionally, sorting the coordinate points to determine the marking order includes:

[0026] Get the location information of all coordinate points;

[0027] Obtaining an initial position of the laser marking device in the preset coordinate system;

[0028] Determine the potential energy of each coordinate point in a preset coordinate system according to the initial position;

[0029] A marking sequence is generated according to the potential energy of each coordinate point combined with a preset sorting rule.

[0030] Optionally, the matching of the corresponding marking mode based on the identity tag information includes:

[0031] Obtaining a marked identity file corresponding to the identity tag information;

[0032] Obtain historical marking records, and determine whether the marking identity file is the first time to mark;

[0033] If not, the marking mode corresponding to the marking identity file is obtained from the historical marking record.

[0034] Optionally, after marking at the target marking location according to the marking mode and the marking instruction, the method further includes:

[0035] Record the marking energy consumption each time marking is completed;

[0036] When it is detected that the difference between the current marking energy consumption and the marking energy consumption when the last marking was completed is greater than a preset threshold;

[0037] Sending a marking error alarm and obtaining the marking patterns of the corresponding two markings;

[0038] When a difference is detected between two marking patterns, a difference report is generated and fed back to the target terminal.

[0039] In a second aspect, the present application provides a laser marking device based on image recognition, and the laser marking device based on image recognition includes:

[0040] An image acquisition module, used to acquire target image information to be marked, and acquire identity tag information and a marking pattern based on the target image information;

[0041] A condition judgment module, used to judge whether the marking pattern meets the preset conditions;

[0042] an instruction generating module, for generating a marking instruction according to the image pixel information in the marking pattern if so;

[0043] A pattern matching module, used to match a corresponding marking pattern based on the identity tag information;

[0044] The marking execution module is used to perform marking at the target marking location according to the marking mode and the marking instruction.

[0045] In a third aspect, the present application provides a computer device, comprising: a memory and a processor, wherein the processor executes the method described above when running computer instructions stored in the memory.

[0046] In a fourth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0047] In summary, the present application includes the following beneficial technical effects:

[0048] This application obtains the target image information to be marked, obtains the identity tag information and the marking pattern according to the target image information; generates a marking instruction according to the image pixel information in the marking pattern when the marking pattern meets the preset conditions; matches the marking mode based on the identity tag information; and marks the target at the target location based on the marking mode and the marking instruction. By identifying the target image information to determine the marking information and the marking pattern, matching the corresponding marking mode and the marking instruction generated based on the image, the technical effect of convenient marking in the marking process is achieved, which can not only generate the marking instruction and the marking mode according to the identified image information, but also further reduce the human resources consumed by manual operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present invention;

[0050] Figure 2 It is a flow chart of the first embodiment of the laser marking method based on image recognition of the present invention;

[0051] Figure 3 It is a flow chart of a second embodiment of a laser marking method based on image recognition according to the present invention;

[0052] Figure 4 It is a structural block diagram of the first embodiment of the laser marking device based on image recognition of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below through the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present invention.

[0055] like Figure 1As shown, the computer device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0056] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0057] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a laser marking program based on image recognition.

[0058] exist Figure 1 In the computer device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the computer device of the present invention can be set in the computer device, and the computer device calls the image recognition-based laser marking program stored in the memory 1005 through the processor 1001, and executes the image recognition-based laser marking method provided by the embodiment of the present invention.

[0059] The embodiment of the present invention provides a laser marking method based on image recognition, referring to Figure 2 , Figure 2 It is a flow chart of the first embodiment of the laser marking method based on image recognition of the present invention.

[0060] In this embodiment, the laser marking method based on image recognition includes the following steps:

[0061] Step S10: Acquire the target image information to be marked, and acquire the identity tag information and the marking pattern based on the target image information.

[0062] It should be noted that the target image to be marked is image information acquired by a preset image recognition device. After the image recognition device or target collector acquires the image information, the image information is regarded as the target image to be marked for further analysis.

[0063] It is understood that the identity tag information refers to the tag that can prove the identity information. The identity information corresponding to the identity tag can be obtained in the preset tag set through the identity information tag. If the identity information tag is not in the preset tag set, an unfamiliar identity reminder will be sent to enable the administrator to create a new identity file based on the identity tag information.

[0064] It should be noted that the marking pattern refers to a marking image set according to actual needs. The marking is performed on the target product by a laser marking device.

[0065] It is understandable that during production, according to relevant national regulations or the company's own management needs, text, pictures and other marks are placed on the product, such as production date, expiration date, product number, etc. This process is called labeling.

[0066] In a specific implementation, obtaining target image information to be marked and obtaining identity tag information and marking pattern based on the target image information means obtaining image information through a preset monitoring device and analyzing the image information as the target image information to be marked, and obtaining identity tag confidence and marking pattern according to the analysis results.

[0067] Furthermore, in order to quickly identify key content in the target image information, the target image information to be marked is obtained, and identity tag information and marking pattern are obtained based on the target image information, including: obtaining the target image information to be marked, and obtaining QR code information in a first preset area in the target image information; obtaining identity tag information based on the QR code information; and obtaining a marking pattern in a second preset area in the target image information.

[0068] In a specific implementation, the first preset area and the second preset area refer to areas set in order to quickly identify key content in the target image information. Each target image information will be divided into two areas, and the content of the first preset area and the second preset area is determined by identifying the position on the specific target image. The first preset area is an area for storing QR code information, which is used to generate corresponding identity tag information based on the QR code information; the second preset area is an area for storing marking patterns, and the specific marking content is stored in the second preset area.

[0069] Step S20: Determine whether the marking pattern meets the preset conditions.

[0070] It should be noted that the preset condition is whether the current marking pattern matches the position of the object to be marked. For example, for a rectangular product, its side is the position where the marking is actually required. When judging according to the preset condition, it is found that the side marking corresponding to the marking pattern is with the bottom of the current product facing the marking position during the actual marking process, and it is determined that the preset condition is not met.

[0071] Furthermore, in order to determine whether the position of the object to be marked is correct, the determination of whether the marking pattern meets the preset conditions includes: obtaining image information of a third preset area in the marking pattern; obtaining the position requirements of the object to be marked according to the marking requirements in the image information; obtaining the position information of the current object to be marked and determining whether it meets the position requirements of the object to be marked.

[0072] Step S30: If yes, generate a marking instruction according to the image pixel information in the marking pattern.

[0073] It should be noted that if the marking pattern meets the preset conditions, a marking instruction is generated according to the image pixel information in the marking pattern; in this embodiment, it means obtaining the pixel information in the marking pattern, and generating the operation instructions and marking sequence of the laser marking device in the corresponding marking process according to the pixel information.

[0074] It can be understood that the marking instructions include: the marking sequence of the laser marking device, the marking range, and the energy control of the laser marking.

[0075] Step S40: matching the corresponding marking mode based on the identity tag information.

[0076] It should be noted that the marking mode refers to the marking mode defined for each product, and different marking modes correspond to different products to be marked. For example, a production line has 3 products A, B and C, and their corresponding marking modes are a, b and c. When the identity tag information of product B is detected, the corresponding marking mode of product b will be matched.

[0077] In a specific implementation, matching the corresponding marking mode based on the identity tag information means obtaining the identity tag information by traversing the preset identity tag set, obtaining the identity information corresponding to the identity tag, and after obtaining the identity information, marking according to the marking mode bound to the identity information.

[0078] Furthermore, in order to achieve fast matching of marking modes and save system resources, the marking mode corresponding to the matching based on the identity tag information includes: obtaining the marking identity file corresponding to the identity tag information; obtaining the historical marking record, and determining whether the marking identity file is the first time to mark; if not, obtaining the marking mode corresponding to the marking identity file in the historical marking record.

[0079] It should be noted that the historical marking archive is a marking log retained after each marking process, and the historical marking archive records each marking time, marking mode, marking object, and other special circumstances.

[0080] It can be understood that judging whether the marking identity file is the first marking refers to judging whether there is a marking record of the corresponding product in the historical marking record.

[0081] In the specific implementation, if there is a first marking record of the corresponding product in the historical marking record, it is necessary to further determine whether the marking position and marking image content of the same product are consistent. If the marking content and marking position of the same product change according to demand changes, it is regarded as the first marking.

[0082] Step S50: marking at the target marking location according to the marking mode and marking instruction.

[0083] In a specific implementation, after obtaining the marking mode and marking instruction, the configuration information of the laser marking device and the marking trajectory are set. After the above information is set, marking is performed at the target marking location.

[0084] Furthermore, in order to quickly identify marking errors, after marking at the target marking location according to the marking mode and the marking instruction, it also includes: recording the marking energy consumption each time marking is completed; when it is detected that the difference between the current marking energy consumption and the marking energy consumption when the last marking was completed is greater than a preset threshold; sending a marking error alarm and obtaining the corresponding marking patterns of the two markings; when a difference is detected between the two marking patterns, generating a difference report and feeding back the difference report to the target terminal.

[0085] It should be noted that the marking energy consumption refers to the energy consumed by the laser marking device when marking the target product once.

[0086] It is understandable that the preset threshold is a threshold set according to actual production. When the difference in energy consumption is less than the preset threshold, it can be considered as a normal error in the production process. If it is greater than the preset threshold, it can be determined that an accident occurred in the marking process, and rapid identification of errors can be achieved.

[0087] It should be noted that sending a marking error alarm does not require stopping the marking process. Instead, the marking error product number needs to be recorded and the corresponding product can be picked out according to the product number downstream of the production line. This ensures the accuracy of product marking and does not delay normal marking on the production line.

[0088] It is understandable that when two marking pattern errors are detected, it is considered that a more serious error has occurred. At this time, it is necessary to stop marking immediately and check the cause of the marking error through data feedback. By classifying and identifying the errors that may occur in marking on different production lines, the maximum efficiency of marking is guaranteed, and at the same time, it can ensure that when a major error occurs, it can be found and stopped in time.

[0089] In a specific implementation, when a difference is detected between two marking patterns, generating a difference report and feeding the difference report back to the target terminal means that after an error is found in the two marking patterns, a difference report is generated and subsequent marking work is stopped. The difference report is sent to a security terminal preset by a system administrator. By obtaining the difference report at the security terminal, real-time monitoring of the marking process is achieved.

[0090] This embodiment obtains the target image information to be marked, obtains the identity tag information and the marking pattern according to the target image information; generates a marking instruction according to the image pixel information in the marking pattern when the marking pattern meets the preset conditions; matches the marking mode based on the identity tag information; and marks the target at the target location based on the marking mode and the marking instruction. By identifying the target image information to determine the marking information and the marking pattern, matching the corresponding marking mode and the marking instruction generated based on the image, the technical effect of convenient marking in the marking process is achieved, which can not only generate the marking instruction and the marking mode according to the identified image information, but also further reduce the human resources consumed by manual operation.

[0091] refer to Figure 3 , Figure 3 It is a flow chart of the second embodiment of the laser marking method based on image recognition of the present invention.

[0092] Based on the above first embodiment, step S30 of the laser marking method based on image recognition in this embodiment includes:

[0093] Step S301: traverse the marking pattern to obtain pixel information in the marking pattern.

[0094] In a specific implementation, the marking pattern is traversed to obtain information of each pixel point in the marking pattern and the traversal result is used as the pixel information acquisition result.

[0095] Step S302: generating a mapping image in a preset coordinate system according to the pixel information, wherein the mapping image is composed of a preset number of coordinate points.

[0096] In a specific implementation, information of a preset coordinate system is obtained, and a corresponding mapping image is generated in equal proportion according to pixel information in the preset coordinate system. The generation of the mapping image consists of a number of coordinate points. The specific number of coordinate points depends on the size of the mapping image and specific usage requirements.

[0097] It can be understood that the more coordinate points in the preset coordinate system the more similar the mapped image is to the original image. The mapped image surrounded by the coordinate points is the moving track of the laser marking device during marking.

[0098] Step S303: sort the coordinate points to determine the marking order.

[0099] It should be noted that sorting the coordinate points refers to defining the marking trajectory. Since marking requires energy consumption, the better the path optimization during the marking process, the lower the corresponding energy consumption.

[0100] It is understandable that the method of sorting the coordinate points is generally related to the distance of the coordinate points from the initial marking position of the laser marking. The coordinate points close to the initial marking position can be used as the marking starting point.

[0101] Furthermore, in order to achieve the technical effect of reducing energy consumption during the marking process, the sorting of the coordinate points to determine the marking order includes: obtaining the position information of all coordinate points; obtaining the initial position of the laser marking device in the preset coordinate system; determining the potential energy of each coordinate point in the preset coordinate system according to the initial position; and generating a marking order according to the potential energy of each coordinate point combined with a preset sorting rule.

[0102] Step S304: Generate marking instructions according to the marking sequence.

[0103] In a specific implementation, after obtaining the marking sequence, an instruction capable of controlling the laser marking device, namely a marking instruction, is generated according to the marking sequence. After detecting that the marking instruction is generated, the laser marking device will work according to the marking instruction.

[0104] This embodiment traverses the marking pattern to obtain pixel information in the marking pattern; generates a mapping image in a preset coordinate system according to the pixel information, sorts the coordinate points in the mapping image to generate a marking order, and finally generates a marking instruction according to the marking order. By generating a mapping image composed of coordinate points in a preset coordinate according to the pixel information; determining the marking order according to the coordinate points and further generating a marking instruction, the technical effect of generating a marking instruction according to the pixel information in the marking pattern is achieved.

[0105] In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a program for laser marking based on image recognition is stored. When the program for laser marking based on image recognition is executed by a processor, the steps of the method for laser marking based on image recognition as described above are implemented.

[0106] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the laser marking device based on image recognition of the present invention.

[0107] like Figure 4 As shown, the laser marking device based on image recognition proposed in the embodiment of the present invention includes:

[0108] An image acquisition module 10 is used to acquire the target image information to be marked, and acquire the identity tag information and the marking pattern based on the target image information;

[0109] A condition judgment module 20, used to judge whether the marking pattern meets a preset condition;

[0110] an instruction generating module 30, for generating a marking instruction according to the image pixel information in the marking pattern if so;

[0111] A pattern matching module 40, configured to match a corresponding marking pattern based on the identity tag information;

[0112] The marking execution module 50 is used to perform marking at the target marking location according to the marking mode and the marking instruction.

[0113] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0114] This embodiment obtains the target image information to be marked, obtains the identity tag information and the marking pattern according to the target image information; generates a marking instruction according to the image pixel information in the marking pattern when the marking pattern meets the preset conditions; matches the marking mode based on the identity tag information; and marks the target at the target location based on the marking mode and the marking instruction. By identifying the target image information to determine the marking information and the marking pattern, matching the corresponding marking mode and the marking instruction generated based on the image, the technical effect of convenient marking in the marking process is achieved, which can not only generate the marking instruction and the marking mode according to the identified image information, but also further reduce the human resources consumed by manual operation.

[0115] In one embodiment, the image acquisition module 10 is also used to acquire target image information to be marked, acquire QR code information in a first preset area in the target image information; acquire identity tag information based on the QR code information; and acquire a marking pattern in a second preset area in the target image information.

[0116] In one embodiment, the condition judgment module 20 is also used to obtain image information of a third preset area in the marking pattern; obtain position requirements of the object to be marked according to the marking requirements in the image information; obtain the position information of the current object to be marked and determine whether it meets the position requirements of the object to be marked.

[0117] In one embodiment, the instruction generation module 30 is also used to traverse the marking pattern to obtain pixel information in the marking pattern; generate a mapping image in a preset coordinate system based on the pixel information, and the mapping image is composed of a preset number of coordinate points; sort the coordinate points to determine the marking order; and generate a marking instruction according to the marking order.

[0118] In one embodiment, the instruction generation module 30 is also used to obtain the position information of all coordinate points; obtain the initial position of the laser marking device in the preset coordinate system; determine the potential energy of each coordinate point in the preset coordinate system based on the initial position; and generate a marking order based on the potential energy of each coordinate point combined with a preset sorting rule.

[0119] In one embodiment, the pattern matching module 40 is also used to obtain a marking identity file corresponding to the identity tag information; obtain a historical marking record, and determine whether the marking identity file is marked for the first time; if not, obtain a marking pattern corresponding to the marking identity file in the historical marking record.

[0120] In one embodiment, the marking execution module 50 is also used to record the marking energy consumption each time marking is completed; when it is detected that the difference between the current marking energy consumption and the marking energy consumption when the last marking was completed is greater than a preset threshold; a marking error alarm is sent, and the marking patterns of the corresponding two markings are obtained; when a difference is detected between the two marking patterns, a difference report is generated and the difference report is fed back to the target terminal.

[0121] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0122] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the laser marking method based on image recognition provided in any embodiment of the present invention, and will not be repeated here.

[0123] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A laser marking method based on image recognition, characterized in that: include: Acquire target image information to be marked, and acquire identity tag information and a marking pattern based on the target image information; Determining whether the marking pattern meets a preset condition; If yes, generating a marking instruction according to the image pixel information in the marking pattern; Matching a corresponding marking mode based on the identity tag information; Marking at a target marking location according to the marking mode and the marking instruction; Wherein, after marking at the target marking location according to the marking mode and the marking instruction, the method further includes: Record the marking energy consumption each time marking is completed; When it is detected that the difference between the current marking energy consumption and the marking energy consumption when the last marking was completed is greater than a preset threshold; Sending a marking error alarm and obtaining the marking patterns of the corresponding two markings; When a difference is detected between two marking patterns, a difference report is generated and fed back to the target terminal.

2. The laser marking method based on image recognition according to claim 1, characterized in that: The step of obtaining target image information to be marked, and obtaining identity tag information and a marking pattern based on the target image information includes: Acquire target image information to be marked, and acquire QR code information in a first preset area of ​​the target image information; Acquire identity tag information according to the QR code information; A marking pattern is acquired in a second preset area in the target image information.

3. The laser marking method based on image recognition according to claim 1, characterized in that: The determining whether the marking pattern meets the preset conditions includes: Acquiring image information of a third preset area in the marking pattern; Acquire the position requirement of the object to be marked according to the marking requirement in the image information; Obtain the position information of the current object to be marked and determine whether it meets the position requirements of the object to be marked.

4. The laser marking method based on image recognition according to claim 1, characterized in that: Generating a marking instruction according to the image pixel information in the marking pattern comprises: Traversing the marking pattern to obtain pixel information in the marking pattern; generating a mapping image in a preset coordinate system according to the pixel information, wherein the mapping image is composed of a preset number of coordinate points; Sorting the coordinate points to determine a marking order; A marking instruction is generated according to the marking sequence.

5. The laser marking method based on image recognition according to claim 1, characterized in that: The marking mode corresponding to the matching of the identity tag information includes: Obtaining a marked identity file corresponding to the identity tag information; Obtain historical marking records, and determine whether the marking identity file is the first time to mark; If not, the marking mode corresponding to the marking identity file is obtained from the historical marking record.

6. A laser marking device based on image recognition, characterized in that: The laser marking device based on image recognition comprises: An image acquisition module, used to acquire target image information to be marked, and acquire identity tag information and a marking pattern based on the target image information; A condition judgment module, used to judge whether the marking pattern meets the preset conditions; an instruction generating module, for generating a marking instruction according to the image pixel information in the marking pattern if so; A pattern matching module, used to match a corresponding marking pattern based on the identity tag information; A marking execution module, used for marking at a target marking location according to the marking mode and the marking instruction; The marking execution module is also used to record the marking energy consumption each time marking is completed; when it is detected that the difference between the current marking energy consumption and the marking energy consumption when the last marking was completed is greater than a preset threshold; send a marking error alarm and obtain the corresponding marking patterns of the two markings; when a difference is detected between the two marking patterns, generate a difference report and feed back the difference report to the target terminal.

7. A computer device, characterized in that: The device comprises: a memory and a processor, wherein the processor executes the method according to any one of claims 1 to 5 when running computer instructions stored in the memory.

8. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Marking method and device of laser marking machine

    CN105855719A

  • Marking control method and device and computer readable storage medium

    CN113313135A