CN115994552B - Verification method and device based on graphic code, electronic equipment and storage medium - Google Patents

Verification method and device based on graphic code, electronic equipment and storage medium Download PDF

Info

Publication number
CN115994552B
CN115994552B CN202310285393.4A CN202310285393A CN115994552B CN 115994552 B CN115994552 B CN 115994552B CN 202310285393 A CN202310285393 A CN 202310285393A CN 115994552 B CN115994552 B CN 115994552B
Authority
CN
China
Prior art keywords
text
graphic code
product
code information
checked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310285393.4A
Other languages
Chinese (zh)
Other versions
CN115994552A (en
Inventor
黎鹏
雷兆龙
彭凤飞
刘卫星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Contemporary Amperex Technology Co Ltd
Original Assignee
Contemporary Amperex Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Contemporary Amperex Technology Co Ltd filed Critical Contemporary Amperex Technology Co Ltd
Priority to CN202310285393.4A priority Critical patent/CN115994552B/en
Publication of CN115994552A publication Critical patent/CN115994552A/en
Application granted granted Critical
Publication of CN115994552B publication Critical patent/CN115994552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a verification method and device based on graphic codes, electronic equipment and a storage medium. Wherein the method comprises the following steps: acquiring first graphic code information of a product to be verified from a preset code-etching file; the method comprises the steps that a preset code-carving file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and first graphic code information comprises a first text used for indicating a preset identification text of a product to be checked; acquiring second graphic code information of a product to be checked, wherein the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked; and verifying the product to be verified based on the first graphic code information and the second graphic code information. According to the embodiment of the application, the graphic code comprising the text mark can be accurately checked, and the production quality of a product is improved.

Description

Verification method and device based on graphic code, electronic equipment and storage medium
Technical Field
The present application relates to the field of data detection technologies, and in particular, to a verification method and apparatus based on a graphic code, an electronic device, and a storage medium.
Background
In the production process of the product, the attribute information of the product is usually indicated by marking the graphic code on the commodity code, in order to ensure that the image code of the product can accurately correspond to the attribute information of the product, the graphic code marked with errors needs to be screened, and in the related technology, the commodity with the error graphic code is screened by a code reader, however, in the mode, only the bar code or the two-dimensional code can be read, and the text data in the image code cannot be read.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide a verification method, device, electronic device, and storage medium based on a graphic code, which can solve the technical problem that the graphic code with text cannot be effectively verified in the related art.
In a first aspect, an embodiment of the present application provides a verification method based on a graphic code, including: acquiring first graphic code information of a product to be verified from a preset code-etching file; the method comprises the steps that a preset code-marking file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked; acquiring second graphic code information of a product to be checked, wherein the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked; and verifying the product to be verified based on the first graphic code information and the second graphic code information.
According to the technical scheme, the graphic code with the text can be effectively checked, the product with the error mark can be found in time, and the production quality of the product is improved by acquiring the preset code information of the product to be checked and the text information of the mark of the product to be checked and comparing the preset code information with the text information of the mark.
In some embodiments, the obtaining the second graphic code information of the product to be verified includes: acquiring a second text from the code-carved log file, wherein the code-carved log file is stored in the upper computer; the second graphic code information includes the second text; and when the first graphic code information and the second graphic code information are determined to be inconsistent, sending alarm information, including: and sending alarm information under the condition that the first text and the second text are not consistent. In the embodiment, the text information of the identification of the product to be checked is obtained from the code-engraving log file of the upper computer, and is compared with the preset code-engraving text information, so that the graphic code with the text can be effectively checked without adding additional checking equipment.
In some embodiments, the above-mentioned verification method based on graphic codes further includes: acquiring a shooting image obtained by shooting the graphic code marked by the product to be verified by image acquisition equipment, wherein the image acquisition equipment is electrically connected with the upper computer; performing optical character recognition on the shot image to obtain a third text; the second graphic code information includes the third text; verifying the product to be verified based on the first graphic code information and the second graphic code information, including: and verifying the product to be verified based on the first text and the second text. In the embodiment, the graphic code information for determining the identification of the product to be checked can be obtained by carrying out optical character recognition on the shot image acquired by the image acquisition equipment, and the graphic code information is compared with the preset graphic code information for checking, so that the graphic code with the text can be effectively checked, the product with the error identification can be found in time, and the production quality of the product is improved.
In some embodiments, obtaining second graphic code information of the product to be verified includes: a fourth text obtained by scanning the graphic code on the product to be checked by the code scanning equipment is obtained, and a fifth text corresponding to the fourth text is obtained from the code-engraving log file; the code scanning equipment is electrically connected with the upper computer, the code-engraving log file is stored in the upper computer, and the second graphic code information comprises the fourth text and the fifth text; the verification method based on the graphic code further comprises the following steps: and verifying the product to be verified based on the fourth text and the fifth text. In the embodiment, the text information obtained by the code scanning equipment is compared with the identified graphic code information, so that the problem that the graphic and the text information in the graphic code on the product to be checked are inconsistent can be timely detected, the product with the error identification can be timely found, and the production quality of the product is improved.
In some embodiments, the fourth text obtained by scanning the graphic code on the product to be verified includes: and acquiring scanning text information obtained by scanning the two-dimensional code and/or the bar code on the product to be checked by the code scanning equipment, wherein the fourth text comprises the scanning text information. In the embodiment, the text information corresponding to the two-dimensional code or the bar code is obtained through the code scanning equipment and compared and checked with the text information corresponding to the two-dimensional code or the bar code, so that the problem that the graph and the text information in the graph code on the product to be checked are inconsistent can be timely detected, the product with the error mark can be timely found, and the production quality of the product is improved.
In a second aspect, an embodiment of the present application provides a verification device based on a graphic code, including: the first acquisition unit acquires first graphic code information of the product to be checked from a preset code-etching file; the method comprises the steps that a preset code-marking file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked; the second acquisition unit is used for acquiring second graphic code information of the product to be checked, wherein the second graphic code information comprises texts corresponding to the graphic codes identified by the product to be checked; and the verification unit is used for verifying the product to be verified based on the first graphic code information and the second graphic code information.
In a third aspect, an embodiment of the present application provides a verification system based on a graphic code, including: the upper computer is electrically connected with the code scanning equipment; the upper computer is used for acquiring first graphic code information of a product to be checked from a preset code-etching file and acquiring second graphic code information of the product to be checked, wherein the first graphic code information comprises a first text for indicating a preset identification text of the product to be checked, the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked, and the preset code-etching file is stored in the upper computer; and verifying the product to be verified based on the first graphic code information and the second graphic code information. The code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text, and transmitting the scanning identification text to the upper computer.
In some embodiments, the system further comprises an image acquisition device, the image acquisition device being electrically connected to the host computer; the image acquisition device is configured to shoot the graphic code identified by the product to be verified to obtain a shot image, and send the shot image to the upper computer, so that the upper computer performs optical character recognition on the shot image to obtain a third text, where the second graphic code information includes the third text.
In a fourth aspect, an embodiment of the present application provides a verification system based on a graphic code, including: the upper computer is electrically connected with the programmable logic controller; the programmable logic controller is configured to determine first graphic code information of a product to be verified, and receive second graphic code information of the product to be verified, where the first graphic code information includes a first text for indicating a preset identification text of the product to be verified, and the second graphic code information includes text information corresponding to a graphic code identified by the product to be verified; verifying the product to be verified based on the first graphic code information and the second graphic code information; and the upper computer is used for sending the second graphic code information to the programmable logic controller.
In some embodiments, the graphic code based verification system further includes a code scanning device, where the code scanning device is electrically connected to the programmable logic controller; the code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text, and sending the scanning identification text to the programmable logic controller.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement a method as described in the first aspect.
In a sixth aspect, an embodiment of the present invention provides a computer readable storage medium storing a computer program, which when executed by a processor, implements a method as described in the first aspect.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the accompanying drawings. In the drawings:
FIG. 1 is a flow diagram of a method of graphic code based verification in accordance with one or more embodiments;
FIG. 2 is a schematic illustration of a graphical code in accordance with one or more embodiments;
FIG. 3 is a schematic diagram of an encoded log file content in accordance with one or more embodiments;
FIG. 4 is a schematic diagram of a parameter setting interface in accordance with one or more embodiments;
FIG. 5 is a schematic diagram of an alert interface in accordance with one or more embodiments;
FIG. 6 is a schematic illustration of another graphical code in accordance with one or more embodiments;
FIG. 7 is a schematic diagram of another encoded log file content in accordance with one or more embodiments;
FIG. 8 is a schematic diagram of a configuration of a graphics code based verification device in accordance with one or more embodiments;
FIG. 9 is a schematic diagram of a host computer according to one or more embodiments;
FIG. 10 is a schematic diagram of a graphics code based verification system in accordance with one or more embodiments;
FIG. 11 is a schematic diagram of another graphical code-based verification system in accordance with one or more embodiments;
FIG. 12 is a schematic diagram of another graphical code-based verification system in accordance with one or more embodiments;
FIG. 13 is a schematic diagram of another graphical code-based verification system in accordance with one or more embodiments;
FIG. 14 is a schematic diagram of another graphical code-based verification system in accordance with one or more embodiments;
FIG. 15 is a flow diagram of another method of graphic code based verification in accordance with one or more embodiments;
fig. 16 is a schematic structural diagram of an electronic device in accordance with one or more embodiments.
Detailed Description
Embodiments of the technical solutions of the present application will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical solutions of the present application, and thus are only examples, and are not intended to limit the scope of protection of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions.
In the description of embodiments of the present invention, the technical terms "first," "second," and the like are used merely to distinguish between different objects and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, a particular order or a primary or secondary relationship. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more unless explicitly defined otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the description of the embodiments of the present invention, the term "and/or" is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the description of the embodiments of the present invention, the term "plurality" means two or more (including two), and similarly, "plural sets" means two or more (including two), and "plural sheets" means two or more (including two).
In the description of the embodiments of the present invention, the orientation or positional relationship indicated by the technical terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. are based on the orientation or positional relationship shown in the drawings, and are merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or element referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the embodiments of the present invention.
In the description of the embodiments of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured" and the like should be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally formed; or may be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the embodiments of the present invention will be understood by those of ordinary skill in the art according to specific circumstances.
At present, in the process of generating a product, a graphic code is printed on a commodity code to indicate the attribute information of the product, in order to ensure that the image code of the product can accurately correspond to the attribute information of the product, the graphic code marked with errors needs to be screened, and in the related art, the commodity marked with the errors is screened through a code reader, however, in the mode, only the bar code or the two-dimensional code can be read, text data in the image code cannot be read, and therefore, the effective verification of the graphic code marked with the text information of the product cannot be realized.
In order to solve the above technical problems, an embodiment of the present invention provides a verification method based on a graphic code, as shown in fig. 1, the method specifically includes the following steps:
step S102, obtaining first graphic code information of a product to be checked from a preset code-etching file; the preset code file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text for indicating the preset identification text of the product to be checked.
The execution main body of the embodiment of the invention comprises a programmable logic controller (Programmable Logic Controller, PLC) and an upper computer, wherein the upper computer comprises a mobile phone, a set top box, a television, a tablet computer, a notebook computer, a PC, a vehicle-mounted electronic device, a wearable device and other terminals, and the terminals are connected to a server through a wireless network or a wired network. Wherein the wireless network comprises: WIFI and other networks that enable wireless communications. The wired network may include, but is not limited to: wide area network, metropolitan area network, local area network. A server may include, but is not limited to, any hardware device that can perform a calculation. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and is not limited in any way in the present embodiment.
Specifically, the product to be verified in the embodiment of the invention is a product printed or engraved with a graphic code, such as a battery. Taking a battery as an example, in the battery production process, in order to identify the battery, as shown in fig. 2, a two-dimensional code and text information are identified on the surface of the battery, the text information includes a multi-bit code identifier (e.g. text code 202) of the battery, the current text code 202 of the battery corresponds to a 5-bit code identifier 2AH09, and then the preset code file includes the 5-bit code identifier (first text). It should be noted that, in the 5-bit coded identifier herein, the first 3-bit character (2 AH) generally indicates a standard parameter of the battery, such as a product lot number or a product code, and the second two-bit character (09) represents an identification code of a generated line number or area where the battery is located.
In the embodiment of the invention, the upper computer acquires first graphic code information of a product to be checked from a preset code-etching file stored locally, the first graphic code is sent to the identification printing equipment to carry out graphic code identification on the product, or the programmable logic controller receives the first graphic code information sent by the upper computer, the programmable logic controller sends the first graphic code information to the identification printing equipment, and the identification printing equipment carries out graphic code identification on the product according to the first graphic code information.
Step S104, second graphic code information of the product to be checked is obtained, wherein the second graphic code information comprises texts corresponding to the graphic codes identified by the product to be checked.
Specifically, in the embodiment of the invention, the second graphic code information comprises a locally generated code-engraving log file (comprising a text corresponding to the identified graphic code) after the upper computer obtains the code-engraving of the product to be verified, or a text obtained by performing character recognition on an image photographed by the image acquisition equipment on the product to be verified; in an example, the second graphic code information includes a text obtained by receiving, by the programmable logic controller, an encoded log file generated locally by the upper computer and sent by the upper computer, or performing character recognition on an image of the product to be verified after photographing by the image acquisition device.
And S106, checking the product to be checked based on the first graphic code information and the second graphic code information.
Optionally, in an example, the alarm information is sent in case it is determined that the first graphic code information and the second graphic code information are not identical.
Specifically, the upper computer or the programmable logic controller sends alarm information when the first graphic code information and the second graphic code information are determined to be inconsistent. As shown in fig. 4, assuming that the first graphic code information indicates that the preset identification text corresponding to the text code 202 is 2AH08 (characters in the stay text setting box), when the first graphic code information indicates that the actual coded text corresponding to the text code 202 is 2AH09 (characters in the stay text display box), it may be determined that the two are inconsistent; the pull line text name in fig. 4 is S-3, which represents the line number where the product to be checked is currently located in the production process. As shown in FIG. 5, the alarm interface of the upper computer or the programmable logic controller outputs alarm information (the stay wire text and the setting are inconsistent for alarm) to prompt that the identification of the product to be checked is printed with errors.
According to the technical scheme, the graphic code with the text can be effectively checked, the product with the error mark can be found in time, and the production quality of the product is improved by acquiring the preset code information of the product to be checked and the text information of the mark of the product to be checked and comparing the preset code information with the text information of the mark.
In another embodiment of the present application, the obtaining the second graphic code information of the product to be verified includes: acquiring a second text from the code-carved log file, wherein the code-carved log file is stored in the upper computer; the second graphic code information includes the second text;
the verifying the product to be verified based on the first graphic code information and the second graphic code information includes: and verifying the product to be verified based on the first text and the second text.
Optionally, in an example, in a case where it is determined that the first text and the second text are inconsistent, alarm information is sent.
Specifically, in general, the code-carving software is installed in the upper computer, the code-carving software controls the code-carving equipment to code the product, the generated code-carving log file includes the actual graphic code actually carved by the product, the code-carving log file is stored in the upper computer, as shown in fig. 3, the code-carving log file with the name 2022621 includes the second text 2AH09 corresponding to the identified graphic code of the product to be verified, and if the upper computer or the programmable logic controller determines that the first text is 2AH08 and the second text 2AH09 is inconsistent, the upper computer or the programmable logic controller sends alarm information to prompt that the identification of the product to be verified is printed with errors.
In the embodiment of the invention, the text information of the identification of the product to be checked is obtained from the code-engraving log file of the upper computer, and is compared with the preset code-engraving text information, so that the graphic code with the text can be effectively checked without adding additional check equipment.
In another embodiment of the present application, the verification method based on a graphic code further includes:
acquiring a shooting image obtained by shooting the graphic code marked by the product to be verified by image acquisition equipment, wherein the image acquisition equipment is electrically connected with the upper computer;
performing optical character recognition on the shot image to obtain a third text; the second graphic code information includes the third text;
verifying the product to be verified based on the first graphic code information and the second graphic code information, including: and verifying the product to be verified based on the first text and the third text.
Optionally, in an example, in a case where it is determined that the first text and the third text are inconsistent, alarm information is sent.
Specifically, for example, the image acquisition device shoots the graphic code identified by the product to be checked to obtain a shot image, the shot image is subjected to optical character recognition (Optical Character Recognition, OCR) to obtain a third text (namely graphic code information actually printed by the product), and when the first text and the third text are inconsistent, alarm information is sent, namely, when the condition that the graphic code preset by the product to be checked is inconsistent with the graphic code information actually printed is determined, the upper computer or the programmable logic controller sends the alarm information to prompt that the identification of the product to be checked is printed with errors.
In the embodiment of the invention, the graphic code information for determining the identification of the product to be checked can be obtained by carrying out optical character recognition on the shot image acquired by the image acquisition equipment, and the graphic code information is compared and checked with the preset graphic code information, so that the graphic code with the text can be effectively checked, the product with the error identification can be found in time, and the production quality of the product is improved.
In another embodiment of the present application, obtaining second graphic code information of a product to be verified includes: a fourth text obtained by scanning the graphic code on the product to be checked by the code scanning equipment is obtained, and a fifth text corresponding to the fourth text is obtained from the code-engraving log file; the code scanning equipment is electrically connected with the upper computer, the code-engraving log file is stored in the upper computer, and the second graphic code information comprises the fourth text and the fifth text;
the verification method based on the graphic code further comprises the following steps: and verifying the product to be verified based on the fourth text and the fifth text.
Optionally, in an example, in a case where it is determined that the fourth text and the fifth text are inconsistent, alarm information is sent.
Specifically, as shown in fig. 6, in a normal case, a plurality of commodity text codes 602 and two-dimensional codes 604 corresponding to the commodity text codes 602 are engraved in different areas on the surface of a product to be verified (a battery is taken as an example here), the commodity text codes 602 are generally called plain codes, the two-dimensional codes 604 are generally called secret codes corresponding to the plain codes, the plain codes are generally 24-bit codes, and the plain codes shown in fig. 6 include: 001CE1S000000FC6D0900043, in the 24-bit code, the first 3-bit character represents the code of the manufacturer, the 4-bit character represents the product type, the 5-bit character represents the cell type, the 6-8-bit characters represent the specification code of the battery, the 9-13-bit characters represent the reserved code, the 14-bit character represents the code of the place of production of the battery, the 15-17-bit characters represent the date code of production of the battery, the 18-24-bit characters represent the serial number of the battery, and the like.
In order to verify the products with inconsistent explicit codes and password, in the embodiment of the present invention, the method includes, but is not limited to, scanning, by a code scanning device, a fourth text obtained by scanning a graphic code on the product to be verified, as shown in fig. 6, for example, scanning, by a scanner, a two-dimensional code 604 on the product to be verified may obtain text information (fourth text) actually corresponding to the two-dimensional code 604; as shown in fig. 7, a fifth text (001 CE1S000000FC6M 0900004) corresponding to the fourth text is obtained from the encoded log file, and the upper computer or the programmable logic controller transmits an alarm message when it is determined that the fourth text and the fifth text do not match.
In the embodiment, the text information obtained by the code scanning equipment is compared with the identified graphic code information, so that the problem that the graphic and the text information in the graphic code on the product to be checked are inconsistent can be timely detected, the product with the error identification can be timely found, namely, the condition that the clear code identification and the secret code identification of the product are inconsistent is checked, and the production quality of the product is improved.
In some embodiments, the fourth text obtained by scanning the graphic code on the product to be verified includes: and acquiring scanning text information obtained by scanning the two-dimensional code and/or the bar code on the product to be checked by the code scanning equipment, wherein the fourth text comprises the scanning text information. In the embodiment, the code scanning equipment acquires the text information corresponding to the two-dimensional code or the bar code and compares and verifies the text information corresponding to the two-dimensional code or the bar code, so that the product with the false mark can be detected in time.
The embodiment of the invention also provides a verification device based on the graphic code, which is used for executing the verification method based on the graphic code provided by the above embodiments, as shown in fig. 8, and comprises the following steps:
A first obtaining unit 802, configured to obtain first graphic code information of a product to be verified from a preset code file; the method comprises the steps that a preset code-marking file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked;
a second obtaining unit 804, configured to obtain second graphic code information of a product to be verified, where the second graphic code information includes a text corresponding to a graphic code identified by the product to be verified;
and a verification unit 806, configured to verify the product to be verified based on the first graphic code information and the second graphic code information.
In one or more embodiments of the present application, the second obtaining unit 804 includes:
the first acquisition module is used for acquiring a second text from the code-marked log file, and the code-marked log file is stored in the upper computer; the second graphic code information includes the second text;
the verification unit 806 includes:
and the first verification module is used for verifying the product to be verified based on the first text and the second text.
In one or more embodiments of the present application, the verification device based on a graphic code further includes:
a third acquisition unit for acquiring a shooting image obtained by shooting the graphic code marked by the product to be checked by an image acquisition device, wherein the image acquisition device is electrically connected with the upper computer;
the identification unit is used for carrying out optical character identification on the shot image to obtain a third text; the second graphic code information includes the third text;
the verification unit 806 further includes:
and the second checking module is used for checking the product to be checked based on the first text and the third text.
In one or more embodiments of the present application, the second obtaining unit 804 includes:
the second acquisition module is used for acquiring a fourth text obtained by scanning the graphic code on the product to be checked by the code scanning equipment and acquiring a fifth text corresponding to the fourth text from the code-engraving log file; the code scanning equipment is electrically connected with the upper computer, the code-engraving log file is stored in the upper computer, and the second graphic code information comprises the fourth text and the fifth text;
The verification device based on the graphic code further comprises: and the determining alarm unit is used for checking the product to be checked based on the fourth text and the fifth text.
In one or more embodiments of the present application, the second acquisition module includes:
the first acquisition subunit is configured to acquire scanned text information obtained by the code scanning device scanning the two-dimensional code and/or the bar code on the product to be verified, where the fourth text includes the scanned text information.
Alternatively, in one or more embodiments, the above-described verification method based on the graphic code may be applied in the application environment shown in fig. 9. As shown in fig. 9, a user 902 and an upper computer can perform man-machine interaction. The host computer includes a memory and a processor, where the memory may include, but is not limited to, the first obtaining unit 802, the second obtaining unit 804, and the verification unit 806 in the verification device based on the graphics code. In this embodiment, the host computer may, but is not limited to, perform the operation of determining the first graphic code information and the second graphic code information, and verify the product to be verified based on the first graphic code information and the second graphic code information.
Optionally, an embodiment of the present invention further provides a verification system based on a graphic code, as shown in fig. 10, where the system includes: the upper computer is electrically connected with the code scanning equipment;
the upper computer is used for acquiring first graphic code information of a product to be checked from a preset code-etching file and acquiring second graphic code information of the product to be checked, wherein the first graphic code information comprises a first text for indicating a preset identification text of the product to be checked, the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked, and the preset code-etching file is stored in the upper computer;
and verifying the product to be verified based on the first graphic code information and the second graphic code information.
The code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text, and transmitting the scanning identification text to the upper computer.
In one or more embodiments of the present application, as shown in fig. 11, the verification system based on a graphic code further includes an image acquisition device, where the image acquisition device is electrically connected to the upper computer;
the image acquisition device is configured to shoot the graphic code identified by the product to be verified to obtain a shot image, and send the shot image to the upper computer, so that the upper computer performs optical character recognition on the shot image to obtain a third text, where the second graphic code information includes the third text.
Optionally, an embodiment of the present invention further provides another verification system based on a graphic code, as shown in fig. 12, including: the upper computer is electrically connected with the programmable logic controller;
the programmable logic controller is configured to determine first graphic code information of a product to be verified, and receive second graphic code information of the product to be verified, where the first graphic code information includes a first text for indicating a preset identification text of the product to be verified, and the second graphic code information includes text information corresponding to a graphic code identified by the product to be verified;
verifying the product to be verified based on the first graphic code information and the second graphic code information;
and the upper computer is used for sending the second graphic code information to the programmable logic controller.
In one or more embodiments, as shown in fig. 13, the verification system based on graphic codes further includes a code scanning device, where the code scanning device is electrically connected to the programmable logic controller;
the code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text, and sending the scanning identification text to the programmable logic controller.
In one or more embodiments, as shown in fig. 13, the graphic code based verification system further includes an image acquisition device electrically connected to the programmable logic controller;
the image acquisition equipment is used for shooting the graphic code marked by the product to be checked to obtain a shooting image, and sending the shooting image to the programmable logic controller so that the upper computer can perform optical character recognition on the shooting image to obtain a third text, and the second graphic code information comprises the third text.
Based on the above embodiment, in another embodiment of the present application, as shown in fig. 15, the verification method based on the graphic code specifically includes the following steps:
step S1502, determining preset code information, where the code information includes the text information of the required code, and inputting the text information of the required code into the code software of the upper computer.
Step S1504, the code-engraving software of the upper computer controls the code-engraving equipment to code the product according to the code-engraving text information required;
step S1506, storing the actual coded text (coded log file) of the product into the database of the upper computer.
Step S1508, the code log file is sent to a programmable logic controller, the programmable logic controller judges whether the actual code text of the product to be checked is consistent with the information of the code text required to be checked, if so, the step S1512 is carried out, and if not, the step S1510 is carried out.
Step S1510, sending alarm information to remind the engineering personnel to check the abnormal reasons and solve the abnormal problems (graphic code fault).
Step S1512, finishing the coding task.
The verification device based on the graphic code provided by the above embodiment of the present application and the verification method based on the graphic code provided by the embodiment of the present invention have the same beneficial effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium including instructions, such as a memory including instructions, executable by a battery processor to perform the above-described graphics code-based verification method, the method comprising: acquiring first graphic code information of a product to be verified from a preset code-etching file; the method comprises the steps that a preset code-marking file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked; acquiring second graphic code information of a product to be checked, wherein the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked; and verifying the product to be verified based on the first graphic code information and the second graphic code information. Optionally, the above instructions may also be executed by a processor of the battery to perform other steps involved in the above exemplary embodiments. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by a processor of a battery to perform the above-described graphic code based verification method, the method comprising obtaining first graphic code information of a product to be verified from a preset code file; the method comprises the steps that a preset code-marking file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked; acquiring second graphic code information of a product to be checked, wherein the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked; and verifying the product to be verified based on the first graphic code information and the second graphic code information. Optionally, the above instructions may also be executed by a processor of the battery to perform other steps involved in the above exemplary embodiments.
Fig. 16 is a block diagram of a logic structure of an electronic device, according to an example embodiment. For example, the electronic device 1600 may be an electronic device disposed inside an electrical appliance such as a motor controller, an in-vehicle controller, a domain controller, or other industrial production device.
Fig. 16 is an example diagram of an electronic device 1600. It will be appreciated by those skilled in the art that the schematic diagram 16 is merely an example of the electronic device 1600 and is not meant to be limiting of the electronic device 1600, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device 1600 may also include input-output devices, network access devices, buses, etc.
The processor 1604 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor 1604 may be any conventional processor or the like, the processor 1604 being a control center for the electronic device 1600, with various interfaces and lines connecting various parts of the overall electronic device 1600.
The memory 1602 may be used to store computer readable instructions, and the processor 1604 implements the various functions of the electronic device 1600 by executing or executing computer readable instructions or modules stored within the memory 1602 and invoking data stored within the memory 1602. The memory 1602 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data created according to the use of the electronic device 1600, and the like. In addition, the Memory 1602 may include a hard disk, memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or other non-volatile/volatile storage device.
The modules integrated with the electronic device 1600, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the flow of the method of the above-described embodiments, and computer readable instructions, which may also be implemented by means of hardware associated with the instructions of the computer readable instructions, may be stored in a computer readable storage medium, which when executed by a processor, implement the steps of the various method embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A method for verification based on a graphic code, the method comprising:
acquiring first graphic code information of a product to be verified from a preset code-etching file; the method comprises the steps that a preset code-carving file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and first graphic code information comprises a first text used for indicating a preset identification text of a product to be checked;
acquiring second graphic code information of a product to be checked, wherein the second graphic code information comprises a text corresponding to the graphic code identified by the product to be checked;
the obtaining the second graphic code information of the product to be checked comprises the following steps:
acquiring a second text from the code-carved log file, wherein the code-carved log file is stored in the upper computer; the second graphic code information includes the second text;
verifying the product to be verified based on the first graphic code information and the second graphic code information, including:
and verifying the product to be verified based on the first text and the second text, and sending alarm information under the condition that the first text and the second text are inconsistent.
2. The method according to claim 1, wherein the method further comprises:
acquiring a shooting image obtained by shooting the graphic code marked by the product to be verified by image acquisition equipment, wherein the image acquisition equipment is electrically connected with the upper computer;
performing optical character recognition on the shot image to obtain a third text; the second graphic code information includes the third text;
verifying the product to be verified based on the first graphic code information and the second graphic code information, including:
and verifying the product to be verified based on the first text and the third text.
3. The method of claim 1, wherein the obtaining the second graphic code information of the product to be verified comprises:
a fourth text obtained by scanning the graphic code on the product to be checked by the code scanning equipment is obtained, and a fifth text corresponding to the fourth text is obtained from the code-engraving log file; the code scanning equipment is electrically connected with the upper computer, the code-engraving log file is stored in the upper computer, and the second graphic code information comprises the fourth text and the fifth text;
The method further comprises the steps of: and verifying the product to be verified based on the fourth text and the fifth text.
4. A method according to claim 3, wherein the fourth text obtained by scanning the graphic code on the product to be verified comprises:
and acquiring scanning text information obtained by scanning the two-dimensional code and/or the bar code on the product to be checked by the code scanning equipment, wherein the fourth text comprises the scanning text information.
5. A graphic code-based verification apparatus, comprising:
the first acquisition unit acquires first graphic code information of the product to be checked from a preset code-etching file; the method comprises the steps that a preset code-carving file is stored in an upper computer or a programmable logic controller, the upper computer is electrically connected with the programmable logic controller, and first graphic code information comprises a first text used for indicating a preset identification text of a product to be checked;
the second acquisition unit is used for acquiring second graphic code information of the product to be verified, wherein the second graphic code information comprises texts corresponding to the graphic codes identified by the product to be verified; the obtaining the second graphic code information of the product to be checked comprises the following steps:
Acquiring a second text from the code-carved log file, wherein the code-carved log file is stored in the upper computer; the second graphic code information includes the second text;
the verification unit is configured to verify the product to be verified based on the first graphic code information and the second graphic code information, and includes:
and verifying the product to be verified based on the first text and the second text, and sending alarm information under the condition that the first text and the second text are inconsistent.
6. A graphic code based verification system, comprising: the upper computer is electrically connected with the code scanning equipment;
the upper computer is used for acquiring first graphic code information of a product to be checked from a preset code-etching file and acquiring second graphic code information of the product to be checked, wherein the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked, the second graphic code information comprises a text corresponding to a graphic code identified by the product to be checked, and the preset code-etching file is stored in the upper computer;
the obtaining the second graphic code information of the product to be checked comprises the following steps:
Acquiring a second text from the code-carved log file, wherein the code-carved log file is stored in the upper computer; the second graphic code information includes the second text;
verifying the product to be verified based on the first graphic code information and the second graphic code information, including:
checking the product to be checked based on the first text and the second text, and sending alarm information under the condition that the first text and the second text are inconsistent;
the code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text and sending the scanning identification text to the upper computer.
7. The system of claim 6, further comprising an image acquisition device, the image acquisition device being electrically connected to the host computer;
the image acquisition equipment is used for shooting the graphic code identified by the product to be checked to obtain a shooting image, and sending the shooting image to the upper computer so that the upper computer can perform optical character recognition on the shooting image to obtain a third text, and the second graphic code information comprises the third text.
8. A graphic code based verification system, comprising: the upper computer is electrically connected with the programmable logic controller;
the programmable logic controller is used for determining first graphic code information of a product to be checked and receiving second graphic code information of the product to be checked, which is sent by the upper computer, wherein the first graphic code information comprises a first text used for indicating a preset identification text of the product to be checked, and the second graphic code information comprises text information corresponding to the graphic code identified by the product to be checked; the second graphic code information comprises a second text in an encoded log file, and the encoded log file is stored in the upper computer;
verifying the product to be verified based on the first graphic code information and the second graphic code information, including:
checking the product to be checked based on the first text and the second text, and sending alarm information under the condition that the first text and the second text are inconsistent;
and the upper computer is used for sending the second graphic code information to the programmable logic controller.
9. The system of claim 8, further comprising a code scanning device electrically connected to the programmable logic controller;
the code scanning equipment is used for scanning the graphic code of the product to be checked, obtaining a scanning identification text and sending the scanning identification text to the programmable logic controller.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1-4 by means of the computer program.
11. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 4.
CN202310285393.4A 2023-03-22 2023-03-22 Verification method and device based on graphic code, electronic equipment and storage medium Active CN115994552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310285393.4A CN115994552B (en) 2023-03-22 2023-03-22 Verification method and device based on graphic code, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310285393.4A CN115994552B (en) 2023-03-22 2023-03-22 Verification method and device based on graphic code, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115994552A CN115994552A (en) 2023-04-21
CN115994552B true CN115994552B (en) 2023-07-25

Family

ID=85993799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310285393.4A Active CN115994552B (en) 2023-03-22 2023-03-22 Verification method and device based on graphic code, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115994552B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368507A (en) * 2020-02-28 2020-07-03 煤炭科学技术研究院有限公司 Product code generation method and device, computer equipment and storage medium
CN112907225A (en) * 2021-03-26 2021-06-04 中国建设银行股份有限公司 Entity seal management control method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914621A (en) * 2003-12-08 2007-02-14 国际条形码公司 Method for identifying and authenticating goods using codes, barcodes and radio frequency identification
CN105955879A (en) * 2016-04-22 2016-09-21 广东小天才科技有限公司 Method and device for testing two-dimensional code generating algorithm
CN109685180B (en) * 2019-03-18 2019-10-11 深南电路股份有限公司 Method of calibration, device, computer equipment and the readable storage medium storing program for executing of product material
CN110990801B (en) * 2019-11-29 2022-05-17 深圳市商汤科技有限公司 Information verification method and device, electronic equipment and storage medium
CN117636233A (en) * 2022-08-30 2024-03-01 江苏时代新能源科技有限公司 Method, device, computer equipment and storage medium for detecting quality of code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368507A (en) * 2020-02-28 2020-07-03 煤炭科学技术研究院有限公司 Product code generation method and device, computer equipment and storage medium
CN112907225A (en) * 2021-03-26 2021-06-04 中国建设银行股份有限公司 Entity seal management control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115994552A (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN109977935B (en) Text recognition method and device
CN108183924A (en) A kind of login validation method and terminal device
EP0261030A2 (en) System for data field area acquisition in IC card for multiple services
CN109901754B (en) Data self-calibration method and related device
JP4533389B2 (en) Time certification server, terminal device, time certification method, and time certification program
CN111950673A (en) Commodity anti-counterfeiting verification method, device and equipment based on two-dimensional code and storage medium
CN115994552B (en) Verification method and device based on graphic code, electronic equipment and storage medium
CN103577964A (en) Method and system for acquiring product circulation regional information and verifying authenticity of product
CN115221487A (en) Identity authentication method and device
CN111541503B (en) Detection method and detection device for connection tightness of WIFI antenna
CN112181327B (en) Table lookup processing method, device, consumable chip, system and storage medium
CN112396418A (en) Information processing method, device and system
CN108200060B (en) Single sign-on verification method based on web subsystem, server and storage medium
CN111178467A (en) Identity verification method and device based on school bus, storage medium and terminal
KR20170122211A (en) Interactive bulletin board system for elevators
JP5287348B2 (en) Module mounting system and module mounting method
CN117094349B (en) Two-dimensional code graph generation method, device, equipment and medium
CN110427163B (en) Product identification printing method and related equipment
CN114445806A (en) Method, device and equipment for detecting fake plate of electric bicycle and storage medium
CN111524343B (en) Vehicle monitoring method and device and monitoring equipment
KR100868772B1 (en) Time proof server, terminal, and time proving method
EP3576003B1 (en) Legal chip identification method and system
CN117765639A (en) Vehicle unlocking method, device, equipment and storage medium
CN116167832A (en) Auction processing method and device for NFT (NFT) and electronic equipment
CN116455563A (en) Equipment verification method, system, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant