EP-4495897-B1 - MARK QUALITY INSPECTION METHOD AND APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM
Inventors
- LIU, KUN
- SONG, LEI
- ZHONG, GUANGCHENG
Dates
- Publication Date
- 20260506
- Application Date
- 20230328
Claims (9)
- A mark quality inspection method, comprising: acquiring (S701) a marked-product image obtained by photographing a marked product upon completion of a marking operation on a product; performing image identification (S702) on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image; and outputting (S703) a first indication signal under a condition that the mark quality identification result is normal, wherein the first indication signal is used to indicate that the marked product flows to a process subsequent to the marking operation, characterized in that wherein the performing image identification (S702) on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image comprises: identifying (S801) an identification code image in the marked-product image; and comparing (S802) whether the identification code image is consistent with an identification code mark image corresponding to the product to obtain an image consistency comparison result; wherein the mark quality identification result comprises the image consistency comparison result; wherein the image consistency comparison result is obtained by comparing the identification code image against the identification code mark image itself, without acquiring specific content of the identification code by scanning the code.
- The method according to claim 1, wherein the performing image identification (S702) on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image further comprises: determining (S901) identification code size information of the identification code image; and comparing (S902) the identification code size information against a preset size range to obtain a mark size identification result; wherein the mark quality identification result comprises the mark size identification result.
- The method according to claim 1, wherein the performing image identification (S702) on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image further comprises: determining (S1001) mark position information of the identified identification code image in the marked product; and obtaining (S1002) a mark position detection result based on the mark position information; wherein the mark quality identification result comprises the mark position detection result.
- The method according to claim 3, wherein the mark position information comprises: a first distance of the identification code image with respect to a first product boundary of the marked product, and a second distance with respect to a second product boundary of the marked product; and the obtaining (S1002) a mark position detection result based on the mark position information comprises: under a condition that the first distance falls within a first preset distance range and the second distance falls within a second preset distance range, determining that the mark position detection result is the mark position being accurate.
- The method according to any one of claims 1 to 4, wherein the performing image identification (S702) on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image comprises: identifying (S1101) a digital code in the marked-product image; and comparing (S1102) whether the digital code is consistent with digital code content corresponding to the product to obtain a digital code comparison result; wherein the mark quality identification result comprises the digital code comparison result.
- The method according to claim 1, wherein the method further comprises: outputting (704) a second indication signal under a condition that the mark quality identification result is abnormal, wherein the second indication signal is used to indicate pulling the marked product off a belt.
- The method according to claim 6, wherein the method further comprises: outputting (705) a third indication signal under a condition that the second indication signal has been consecutively output for a preset number of times, wherein the third indication signal is used to control shutdown of a device.
- A computer device comprising a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the method according to any one of claims 1 to 7 are executed by the one or more processors.
- A computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by one or more processors, the steps of the method according to any one of claims 1 to 7 are executed by the one or more processors.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application refers to Chinese Patent Application No. 2022110623291, filed on August 30, 2022 and entitled "MARK QUALITY INSPECTION METHOD AND APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM". TECHNICAL FIELD This application relates to the field of manufacturing technologies, and in particular, to a mark quality inspection method and apparatus, a computer device, a computer-readable storage medium, and a computer program product. BACKGROUND With the development of manufacturing and computer technologies, during manufacturing of a product, a marking operation is performed on the manufactured product, so that the authenticity and/or source of the product can be identified after the product is sold. The marking operation refers to marking an identification code on the manufactured product through engraving or by other means. The identification code may be a quick response code. For example, during manufacturing of a prismatic lithium battery, a quick response code is generally engraved on the top cover of the prismatic lithium battery. US20190220629A1 discloses methods and apparatus for analysis of images of direct part mark identification codes to measure and assess print quality. The method comprises: acquiring an image of the code; attempting to decode the code using the image; locating the code in the image if the attempt to decode the code is unsuccessful to provide a code location; and measuring aspects of a mark quality using the image and the code location in the image. To determine the mark quality of a marking operation performed during product manufacturing, the mark quality of the product needs to be inspected. SUMMARY Based on this, embodiments of this application provide a mark quality inspection method and apparatus, a computer device, a computer-readable storage medium, and a computer program product. The present invention is defined by the independent claims. In the following, in case parts of the description and drawing referring to embodiments, which are not covered by the claims are not presented as embodiments of the invention, but as examples useful for understanding the invention. According to a first aspect, this application provides a mark quality inspection method. The method includes: acquiring a marked-product image obtained by photographing a marked product upon completion of a marking operation on a product;performing image identification on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image; andoutputting a first indication signal under a condition that the mark quality identification result is normal, where the first indication signal is used to indicate that the marked product flows to a process subsequent to the marking operation. In the technical solution according to this embodiment of this application, after the marking operation is completed on the product, the marked product is photographed in real time to obtain the marked-product image, and image identification is performed on the marked-product image to obtain the mark quality identification result of the product. If the mark quality identification result is normal, the marked product flows to a process subsequent to the marking operation. In this way, the mark quality can be inspected in real time, and manual inspection of the first product can be avoided, so that mark quality problems can be detected in a timely manner and the possibility of undesirable mark quality and defectiveness of mass-produced products is effectively reduced. In the first aspect, the performing image identification on the marked-product image to obtain a mark quality identification result of an identification code in the marked-product image includes: identifying an identification code image in the marked-product image; andcomparing whether the identification code image is consistent with an identification code mark image corresponding to the product to obtain an image consistency comparison result, wherethe mark quality identification result includes the image consistency comparison result. The image consistency comparison result is obtained by comparing the identification code image against the identification code mark image itself, without acquiring specific content of the identification code by scanning the code. In this way, during mark quality inspection, the identification code mark image corresponding to the product is obtained, the identification code image is identified from the marked-product image, and the identification code image is compared with the identification code mark image for checking consistency, so as to learn about whether the identification code marked on the product is complete, thereby increasing the possibility of determining that the identification code marked on the product is a correct identification code. In some embodiments, the performing image identification on the marked-product image to o