CN112163871A - Product verification method and device, computer equipment and storage medium - Google Patents

Product verification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112163871A
CN112163871A CN202011083844.9A CN202011083844A CN112163871A CN 112163871 A CN112163871 A CN 112163871A CN 202011083844 A CN202011083844 A CN 202011083844A CN 112163871 A CN112163871 A CN 112163871A
Authority
CN
China
Prior art keywords
product
counterfeiting
target
information
dimensional code
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.)
Pending
Application number
CN202011083844.9A
Other languages
Chinese (zh)
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.)
Shenzhen Jinjia Hehe Technology Co ltd
Original Assignee
Shenzhen Jinjia Hehe 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 Shenzhen Jinjia Hehe Technology Co ltd filed Critical Shenzhen Jinjia Hehe Technology Co ltd
Priority to CN202011083844.9A priority Critical patent/CN112163871A/en
Publication of CN112163871A publication Critical patent/CN112163871A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Abstract

The application discloses a product verification method, a product verification device, computer equipment and a storage medium, and belongs to the technical field of anti-counterfeiting. The method is used for verifying a product provided with a target anti-counterfeiting two-dimensional code image, wherein the target anti-counterfeiting two-dimensional code image comprises an anti-counterfeiting image and a two-dimensional code image, and the method comprises the following steps: acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result; if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image; and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information. The embodiment of the application can avoid the target anti-counterfeiting two-dimensional code image from being copied, and can realize better anti-counterfeiting effect.

Description

Product verification method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of anti-counterfeit technologies, and in particular, to a method and an apparatus for product authentication, a computer device, and a storage medium.
Background
At present, counterfeit products are frequently forbidden in the market, and the counterfeit products cause benefit loss to manufacturers and consumers, so that the anti-counterfeiting technology at home and abroad is rapidly developed, and the anti-counterfeiting consciousness is gradually enhanced.
The anti-counterfeiting technology in the prior art is generally as follows: the anti-counterfeiting label is printed or adhered on the surface of the outer package of the product, and the anti-counterfeiting label is provided with an anti-counterfeiting code which can be a bar code or a two-dimensional code and the like. The user can scan the anti-counterfeiting code through the mobile phone to obtain the product information, so that the authenticity of the product is identified.
However, in the prior art, the anti-counterfeiting code has the problem of being easily copied, so that the anti-counterfeiting effect is poor.
Disclosure of Invention
Based on this, the embodiment of the application provides a product verification method, a product verification device, computer equipment and a storage medium, which can achieve a better anti-counterfeiting effect.
A product verification method is used for verifying a product provided with an anti-counterfeiting two-dimensional code, wherein the anti-counterfeiting two-dimensional code comprises an anti-counterfeiting image and a two-dimensional code, and the method comprises the following steps:
acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image;
and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
In an embodiment of the present application, after obtaining the product identifier according to the two-dimensional code image, the method further includes:
acquiring a target public account number of an enterprise to which a product belongs according to the product identifier;
and acquiring a bank remittance channel based on the target public account number, detecting whether the bank remittance channel is unblocked, and if the bank remittance channel is unblocked, determining that the product information is reliable.
In an embodiment of the present application, the method further includes, according to the product identifier, acquiring product information corresponding to the product identifier from the blockchain, where the method further includes:
detecting whether the product identification is matched with the product identification of the anti-counterfeiting platform;
and if so, acquiring target product information corresponding to the product identification from the block chain.
In an embodiment of the present application, if the matching is performed, obtaining target product information corresponding to the product identifier from the blockchain includes:
if the matching is carried out, first target product information corresponding to the product identification is obtained from the block chain, and second target product information corresponding to the product identification is obtained from the product information base;
and comparing the first target product information with the second target product information, and determining the first target product information as the target product information if the first target product information is consistent with the second target product information.
In one embodiment of the present application, detecting whether the product identifier matches the product identifier of the anti-counterfeit platform comprises:
and searching the product identification from the anti-counterfeiting platform, and if the product identification identical to the product identification is searched from the anti-counterfeiting platform, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In an embodiment of the present application, determining that the product identifier matches the product identifier of the anti-counterfeit platform if the product identifier identical to the product identifier is found from the anti-counterfeit platform includes:
if the product identification which is the same as the product identification is found from the anti-counterfeiting platform, detecting the states of the product identification, wherein the states comprise an activated state and an inactivated state;
and if the state of the product identification is the activated state, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment of the present application, the method further comprises:
and if the decryption result does not meet the preset condition, or if the product identifier is not matched with the product identifier of the anti-counterfeiting platform, or if the state of the product identifier is an inactivated state, generating abnormal reminding information, and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for reminding a user that the product verification fails.
The utility model provides a product verification device for verify the product that is provided with anti-fake two-dimensional code, anti-fake two-dimensional code includes anti-fake image and two-dimensional code, and the device includes:
the first acquisition module is used for acquiring the anti-counterfeiting image and decrypting the anti-counterfeiting image to obtain a decryption result;
the second acquisition module is used for acquiring the two-dimensional code image if the decryption result meets the preset condition and acquiring the product identification according to the two-dimensional code image;
and the verification module is used for acquiring target product information corresponding to the product identification from the block chain according to the product identification and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
A computer device comprising a memory and a processor, the memory storing a computer program that when executed by the processor performs the steps of:
acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image;
and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image;
and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the product verification method, the product verification device, the computer equipment and the storage medium can achieve a better anti-counterfeiting effect, the product verification method is used for verifying the product provided with the target anti-counterfeiting two-dimensional code image, and the target anti-counterfeiting two-dimensional code image comprises an anti-counterfeiting image and a two-dimensional code image: the method comprises the following steps: the method comprises the steps of obtaining an anti-counterfeiting image included by a target anti-counterfeiting two-dimensional code image, decrypting the anti-counterfeiting image to obtain a decryption result, obtaining the two-dimensional code image included by the target anti-counterfeiting two-dimensional code image under the condition that the decryption result accords with a preset condition, obtaining a product identification according to the two-dimensional code image, obtaining target product information corresponding to the product identification from a block chain according to the product identification, and sending the target product information to a terminal so that the terminal can display the target product information, wherein the target product information includes product basic information and product traceability information. In the embodiment of the application, the target anti-counterfeiting two-dimensional code image comprises the anti-counterfeiting image and the two-dimensional code image, the anti-counterfeiting image has the characteristic of being incapable of being copied and being unchangeable, and whether the target anti-counterfeiting two-dimensional code image is a copied image can be verified by a decryption result obtained by decrypting the anti-counterfeiting image, so that the aim of preventing the target anti-counterfeiting two-dimensional code image from being copied is fulfilled. Furthermore, under the condition that the decryption result meets the preset condition, the product identification is obtained according to the two-dimensional code image, the product basic information and the product traceability information are obtained from the block chain according to the product identification, and data in the block chain has the characteristic of being unchangeable, so that the information of the target product displayed at the terminal is ensured to be unchanged, and the reliability of the information of the target product is improved. According to the content, the target anti-counterfeiting two-dimensional code image can be prevented from being copied, and a better anti-counterfeiting effect can be achieved.
Drawings
Fig. 1 is a schematic diagram of an implementation environment of a product verification method according to an embodiment of the present application;
fig. 2 is a flowchart of a product verification method according to an embodiment of the present application;
FIG. 3 is a flow chart of another product authentication method provided by an embodiment of the present application;
fig. 4 is a flowchart of a method for obtaining product information corresponding to a product identifier according to an embodiment of the present application;
fig. 5 is a block diagram of a product verification apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The anti-counterfeiting industry is an important industry for supporting and promoting the economic development of the market. The counterfeit and shoddy commodities are horizontal, and the market fraud behaviors are continuous, so that the counterfeit and shoddy commodities become an important factor for restricting the sustainable, rapid and healthy development of the national economy of China. With the continuous development of the economy of the Chinese market, the development of the anti-counterfeiting technology in China also realizes qualitative leap. Due to the ever-increasing anti-counterfeiting demand of brand holders for products, more and more technical schemes are applied.
The anti-counterfeiting technology in the prior art is generally as follows: the anti-counterfeiting label is printed or adhered on the surface of the outer package of the product, and the anti-counterfeiting label is provided with an anti-counterfeiting code which can be a bar code or a two-dimensional code and the like. The user can scan the anti-counterfeiting code through the mobile phone to obtain the product information, so that the authenticity of the product is identified.
However, in practical applications, the counterfeit label may be illegally copied to a counterfeit product, and in this case, when the user scans the counterfeit code on the counterfeit product through the mobile phone, the user may obtain product information of the genuine product, so that the consumer obtains wrong information.
Based on the above problem, in the embodiment of the application, the target anti-counterfeiting two-dimensional code image includes an anti-counterfeiting image and a two-dimensional code image, the anti-counterfeiting image has the characteristic of being non-reproducible and non-changeable, and whether the target anti-counterfeiting two-dimensional code image is a copied image can be verified by a decryption result obtained by decrypting the anti-counterfeiting image, so that the purpose of preventing the target anti-counterfeiting two-dimensional code image from being copied is achieved. Furthermore, under the condition that the decryption result meets the preset condition, the product identification is obtained according to the two-dimensional code image, the product basic information and the product traceability information are obtained from the block chain according to the product identification, and data in the block chain has the characteristic of being unchangeable, so that the information of the target product displayed at the terminal is ensured to be unchanged, and the reliability of the information of the target product is improved. According to the content, the target anti-counterfeiting two-dimensional code image can be prevented from being copied, and a better anti-counterfeiting effect can be achieved.
In the following, a brief description will be given of an implementation environment related to the product authentication method provided in the embodiment of the present application.
As shown in fig. 1, fig. 1 is a schematic diagram of an implementation environment of the product authentication method, and the implementation environment includes: the anti-counterfeiting system comprises a terminal 101, a product 102 and a server 103, wherein the product 102 is provided with a target anti-counterfeiting two-dimensional code image, as shown by a filled grid area on the product 102 in fig. 1. The terminal 101 and the server 103 may communicate with each other by wire or wirelessly.
In this embodiment, a target application program is installed on the terminal 101, and the target application program may call a scanning component of the terminal 101 to scan a target anti-counterfeiting two-dimensional code image on the product 102, and then the terminal 101 may send the target anti-counterfeiting two-dimensional code image to the server 103.
After the server 103 obtains the target anti-counterfeiting two-dimensional code image, the server can obtain an anti-counterfeiting image from the target anti-counterfeiting two-dimensional code image, and decrypt the anti-counterfeiting image to obtain a decryption result; if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image; and acquiring target product information corresponding to the product identifier from the block chain according to the product identifier, and sending the target product information to the terminal 101.
After receiving the target product information, the terminal 101 displays the product basic information and the product tracing information included in the target product information.
Referring to fig. 2, a flowchart of a product verification method provided by an embodiment of the present application is shown, where the product verification method may be applied to a server in the implementation environment shown in fig. 1. The product verification method is used for verifying a product provided with a target anti-counterfeiting two-dimensional code image, wherein the target anti-counterfeiting two-dimensional code image comprises an anti-counterfeiting image and a two-dimensional code image, and the method can comprise the following steps:
step 201, the server acquires the anti-counterfeiting image, and decrypts the anti-counterfeiting image to obtain a decryption result.
In the embodiment of the application, the anti-counterfeiting image can be sent to the server by the terminal, or can be obtained by processing a target anti-counterfeiting two-dimensional code image received from the terminal by the server.
In the embodiment of the application, the target anti-counterfeiting two-dimensional code image comprises an anti-counterfeiting image and a two-dimensional code image, a layer of gray level image with anti-counterfeiting encryption is printed on the surface name of a printing stock in the process of printing the target anti-counterfeiting two-dimensional code image, the gray level image is the anti-counterfeiting image, the anti-counterfeiting image is generated by adopting an anti-counterfeiting encryption algorithm, and cannot be copied and transferred through the processes of general scanning, photographing and the like. And printing the two-dimensional code image on the gray level image again to obtain the target anti-counterfeiting two-dimensional code image.
In the embodiment of the application, the server can perform decryption operation on the anti-counterfeiting image through a special decryption algorithm to obtain a decryption result.
If the anti-counterfeiting image acquired by the server is a normal anti-counterfeiting image, the decryption result is an anti-counterfeiting code after decryption operation, and the decryption result is compared with the standard anti-counterfeiting code.
If the decryption result is the same as the standard anti-counterfeiting code, the decryption result is in accordance with the preset condition.
If the decryption result is different from the standard anti-counterfeiting code, the decryption result is not in accordance with the preset condition, namely the anti-counterfeiting image has an abnormal condition of being copied or modified, in this condition, the server can generate an abnormal reminding message and send the abnormal reminding message to the terminal, and the terminal prompts the user that the product is abnormal by displaying the abnormal reminding message.
If the anti-counterfeiting image acquired by the server is empty, the decryption result is empty after decryption operation, and in this case, the server can generate an abnormal reminding message. And sending the abnormity reminding message to the terminal, and prompting the abnormity of the product to a user by the terminal through displaying the abnormity reminding message.
Step 202, if the decryption result meets the preset condition, the server acquires the two-dimensional code image, and acquires the product identifier according to the two-dimensional code image.
In the embodiment of the application, the server can receive the two-dimensional code image sent by the terminal under the condition that the decryption result meets the preset condition, or the server can process the target anti-counterfeiting two-dimensional code image received from the terminal to obtain the two-dimensional code image.
The server can decode the two-dimensional code image to obtain a two-dimensional code character string, the server stores the corresponding relation between the two-dimensional code character string and the product identification in advance, the product identification refers to the product code, and the server can obtain the product identification according to the two-dimensional code character string and the corresponding relation.
And 203, the server acquires target product information corresponding to the product identifier from the block chain according to the product identifier and sends the target product information to the terminal.
The server can send the product identification to the blockchain, the blockchain can determine target product information corresponding to the product identification according to the product identification, and the target product information comprises product basic information and product traceability information. Then, the server can send the target product information to the terminal, and after the terminal receives the target product information, the product basic information and the product traceability information of the product can be displayed at the terminal, so that the user can judge the authenticity of the product through the product basic information and the product traceability information of the product.
In the embodiment of the application, the anti-counterfeiting image has the characteristic of being incapable of being copied and being unchangeable, and whether the target anti-counterfeiting two-dimensional code image is a copied image can be verified by a decryption result obtained by decrypting the anti-counterfeiting image, so that the aim of preventing the target anti-counterfeiting two-dimensional code image from being copied is fulfilled. Furthermore, under the condition that the decryption result meets the preset condition, the product identification is obtained according to the two-dimensional code image, the product basic information and the product traceability information are obtained from the block chain according to the product identification, and data in the block chain has the characteristic of being unchangeable, so that the information of the target product displayed at the terminal is ensured to be unchanged, and the reliability of the information of the target product is improved. According to the content, the target anti-counterfeiting two-dimensional code image can be prevented from being copied, and a better anti-counterfeiting effect can be achieved.
In another embodiment of the present application, as shown in fig. 3, another product authentication method is provided, the method comprising the steps of:
step 301, the server obtains the anti-counterfeiting image, and decrypts the anti-counterfeiting image to obtain a decryption result.
Refer to the disclosure of step 201.
And 302, if the decryption result meets the preset condition, the server acquires the two-dimensional code image and acquires the product identification according to the two-dimensional code image.
Refer to the disclosure of step 202.
Step 303, the server obtains a target-to-public account number of an enterprise to which the product belongs according to the product identifier, obtains a bank remittance channel based on the target-to-public account number, detects whether the bank remittance channel is unblocked, and determines that the product information is reliable if the bank remittance channel is unblocked.
In the embodiment of the application, the product type and the enterprise to which the product belongs can be determined according to the product identifier, and the server can search the target-to-public account number of the enterprise to which the product belongs from the pre-stored enterprise target-to-public account numbers through the enterprise to which the product belongs.
In this embodiment, the server may obtain a bank remittance channel based on the target-to-public account number, and send a link of the bank remittance channel to the terminal, the terminal may display bank remittance information after receiving the link of the bank remittance channel, the bank remittance information is used to instruct a user to remit money to the target-to-public account number, and the terminal remittance to the target-to-public account number through the bank remittance channel after receiving the remittance operation. After receiving the remittance through the bank remittance channel, the bank to which the public account belongs remittance again to the remittance party of the bank remittance channel based on the prearrangement, if the terminal receives the amount returned by the bank remittance channel, the bank remittance channel is clear, and the server determines that the product information is reliable.
Optionally, in the case that the money transfer channel of the bank is clear, the server may generate a message that the financial authentication is passed, and transmit the message that the financial authentication is passed to the terminal, and the user may see the message that the financial authentication is passed displayed by the terminal, thereby determining that the product is verified.
If the terminal does not receive the amount returned by the bank remittance channel, the bank remittance channel is not unblocked. And generating abnormal reminding information and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for indicating the terminal to display the abnormal reminding information.
In the embodiment of the application, a user can pay money with a certain amount to the target public account number through the bank remittance channel, and return money with the same amount to the public account number through the target, so that the financial credit endorsement of a product is realized, the product and an enterprise to which the product belongs are connected with the public account number through the target, the authenticity of the product is further verified, and the reliability of a verification result is improved.
In an embodiment of the present application, as shown in fig. 4, a flowchart of a method for obtaining product information corresponding to a product identifier is provided, where the method includes the following steps:
step 401, the server detects whether the product identifier is matched with the product identifier of the anti-counterfeiting platform.
In the embodiment of the application, the server can send the two-dimensional code character string obtained according to the two-dimensional code image to the anti-counterfeiting platform, the anti-counterfeiting platform searches the product identification according to the received two-dimensional code character string, and then the server can compare whether the product identification directly obtained by the server according to the two-dimensional code character string is matched with the product identification of the anti-counterfeiting platform obtained through the anti-counterfeiting platform.
And if the product identification directly obtained by the server according to the two-dimensional code character string is the same as the product identification of the anti-counterfeiting platform obtained by the anti-counterfeiting platform, matching the product identification and the product identification.
And if the product identification directly obtained by the server according to the two-dimensional code character string is different from the product identification of the anti-counterfeiting platform obtained through the anti-counterfeiting platform, the two identifications are not matched, in this case, the server can generate an abnormal reminding message and send the abnormal reminding message to the terminal, wherein the abnormal reminding message is used for reminding the user that the product verification fails.
Because some produced target anti-counterfeiting two-dimensional code images may be exposed through an irregular channel, under the circumstance, when the target anti-counterfeiting two-dimensional code images exposed outside are used on some products with unknown experiences, in order to avoid the products of the type being mistaken for genuine products, the authenticity of the products is further verified by detecting the state of the product identification.
The server can compare whether a product identifier directly obtained by the server according to the two-dimensional code character string is the same as a product identifier of an anti-counterfeiting platform obtained through the anti-counterfeiting platform or not, the state of the product identifier is detected under the condition that the product identifier directly obtained by the server according to the two-dimensional code character string is the same as the product identifier of the anti-counterfeiting platform obtained through the anti-counterfeiting platform, the state of the product identifier comprises an activated state and an inactivated state, generally, before a product is listed through a regular channel, the state of the product identifier is the inactivated state, and after the product is listed through the regular channel, the state of the product identifier is the activated state. Therefore, if the state of the product identifier is the activated state, the product identifier is determined to be matched with the product identifier of the anti-counterfeiting platform.
If the product identifier is in an inactive state, the server may generate an abnormal reminding message and send the abnormal reminding message to the terminal, where the abnormal reminding message is used to remind the user that the product verification fails.
And step 402, if the matching is performed, the server acquires target product information corresponding to the product identifier from the block chain.
In the embodiment of the application, under the matching condition, the server may send the product identifier to the blockchain, and the blockchain may find the target product information based on the product identifier and send the target product information to the server.
In an optional implementation manner, in order to further improve reliability of target product information, in this embodiment of the application, under a condition that a product identifier is matched with a product identifier of an anti-counterfeiting platform, a server may obtain first target product information corresponding to the product identifier from a block chain, obtain second target product information corresponding to the product identifier from a product information base, compare the first target product information with the second target product information, and determine the first target product information as the target product information if the first target product information is consistent with the second target product information
It should be understood that although the various steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 5, a block diagram of a product verification apparatus 500 according to an embodiment of the present application is shown, where the product verification apparatus 500 may be configured in a server in the implementation environment shown in fig. 1. As shown in fig. 1, the product authentication device 500 may include: a first acquisition module 501, a second acquisition module 502 and a verification module 503.
The first obtaining module 501 is configured to obtain an anti-counterfeit image, and decrypt the anti-counterfeit image to obtain a decryption result;
a second obtaining module 502, configured to obtain the two-dimensional code image if the decryption result meets a preset condition, and obtain the product identifier according to the two-dimensional code image;
the verification module 503 is configured to obtain target product information corresponding to the product identifier from the block chain according to the product identifier, and send the target product information to the terminal, where the target product information is used to instruct the terminal to display the product information, and the target product information includes product basic information and product traceability information.
In one embodiment, the verification module 503 is further configured to:
acquiring a target public account number of an enterprise to which a product belongs according to the product identifier;
and acquiring a bank remittance channel based on the target public account number, detecting whether the bank remittance channel is unblocked, and if the bank remittance channel is unblocked, determining that the product information is reliable.
In one embodiment, the verification module 503 is further configured to:
detecting whether the product identification is matched with the product identification of the anti-counterfeiting platform;
and if so, acquiring target product information corresponding to the product identification from the block chain.
In one embodiment, the verification module 503 is further configured to:
if the matching is carried out, first target product information corresponding to the product identification is obtained from the block chain, and second target product information corresponding to the product identification is obtained from the product information base;
and comparing the first target product information with the second target product information, and determining the first target product information as the target product information if the first target product information is consistent with the second target product information.
In one embodiment, the verification module 503 is further configured to:
and searching the product identification from the anti-counterfeiting platform, and if the product identification identical to the product identification is searched from the anti-counterfeiting platform, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment, the verification module 503 is further configured to:
if the product identification which is the same as the product identification is found from the anti-counterfeiting platform, detecting the states of the product identification, wherein the states comprise an activated state and an inactivated state;
and if the state of the product identification is the activated state, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment, the first obtaining module 501 is further configured to:
and if the decryption result does not meet the preset condition, generating abnormal reminding information, and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for reminding the user that the product verification fails.
For the specific definition of the product verification device, reference may be made to the above definition of the product verification method, which is not described herein again. The modules in the product authentication device can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute the operations of the modules.
In one embodiment of the present application, as shown in fig. 6, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor and a memory connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a product authentication method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image;
and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
acquiring a target public account number of an enterprise to which a product belongs according to the product identifier;
and acquiring a bank remittance channel based on the target public account number, detecting whether the bank remittance channel is unblocked, and if the bank remittance channel is unblocked, determining that the product information is reliable.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
detecting whether the product identification is matched with the product identification of the anti-counterfeiting platform;
and if so, acquiring target product information corresponding to the product identification from the block chain.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
if the matching is carried out, first target product information corresponding to the product identification is obtained from the block chain, and second target product information corresponding to the product identification is obtained from the product information base;
and comparing the first target product information with the second target product information, and determining the first target product information as the target product information if the first target product information is consistent with the second target product information.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
and searching the product identification from the anti-counterfeiting platform, and if the product identification identical to the product identification is searched from the anti-counterfeiting platform, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
if the product identification which is the same as the product identification is found from the anti-counterfeiting platform, detecting the states of the product identification, wherein the states comprise an activated state and an inactivated state;
and if the state of the product identification is the activated state, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
and if the decryption result does not meet the preset condition, generating abnormal reminding information, and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for reminding the user that the product verification fails.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
acquiring an anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets the preset condition, acquiring a two-dimensional code image, and acquiring a product identifier according to the two-dimensional code image;
and acquiring target product information corresponding to the product identification from the block chain according to the product identification, and sending the target product information to the terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
acquiring a target public account number of an enterprise to which a product belongs according to the product identifier;
and acquiring a bank remittance channel based on the target public account number, detecting whether the bank remittance channel is unblocked, and if the bank remittance channel is unblocked, determining that the product information is reliable.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
detecting whether the product identification is matched with the product identification of the anti-counterfeiting platform;
and if so, acquiring target product information corresponding to the product identification from the block chain.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
if the matching is carried out, first target product information corresponding to the product identification is obtained from the block chain, and second target product information corresponding to the product identification is obtained from the product information base;
and comparing the first target product information with the second target product information, and determining the first target product information as the target product information if the first target product information is consistent with the second target product information.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
and searching the product identification from the anti-counterfeiting platform, and if the product identification identical to the product identification is searched from the anti-counterfeiting platform, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
if the product identification which is the same as the product identification is found from the anti-counterfeiting platform, detecting the states of the product identification, wherein the states comprise an activated state and an inactivated state;
and if the state of the product identification is the activated state, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
and if the decryption result does not meet the preset condition, generating abnormal reminding information, and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for reminding the user that the product verification fails.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A product verification method is characterized by being used for verifying a product provided with a target anti-counterfeiting two-dimensional code image, wherein the target anti-counterfeiting two-dimensional code image comprises an anti-counterfeiting image and a two-dimensional code image, and the method comprises the following steps:
acquiring the anti-counterfeiting image, and decrypting the anti-counterfeiting image to obtain a decryption result;
if the decryption result meets a preset condition, acquiring the two-dimension code image, and acquiring a product identifier according to the two-dimension code image;
and acquiring target product information corresponding to the product identification from a block chain according to the product identification, and sending the target product information to a terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
2. The method of claim 1, wherein after obtaining the product identifier from the two-dimensional code image, the method further comprises:
acquiring a target public account number of an enterprise to which the product belongs according to the product identifier;
and acquiring a bank remittance channel based on the target public account number, detecting whether the bank remittance channel is unblocked, and if the bank remittance channel is unblocked, determining that the product information is reliable.
3. The method of claim 1, wherein the obtaining product information corresponding to the product identifier from a blockchain according to the product identifier further comprises:
detecting whether the product identification is matched with the product identification of the anti-counterfeiting platform;
and if so, acquiring target product information corresponding to the product identifier from the block chain.
4. The method according to claim 3, wherein if the matching is performed, acquiring target product information corresponding to the product identifier from the blockchain includes:
if the matching is carried out, acquiring first target product information corresponding to the product identification from the block chain, and acquiring second target product information corresponding to the product identification from a product information base;
and comparing the first target product information with the second target product information, and determining the first target product information as the target product information if the first target product information is consistent with the second target product information.
5. The method of claim 3, wherein the detecting whether the product identifier matches a product identifier of a counterfeit platform comprises:
and searching the product identification from the anti-counterfeiting platform, and if the product identification identical to the product identification is searched from the anti-counterfeiting platform, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
6. The method of claim 5, wherein determining that the product identifier matches the product identifier of the anti-counterfeiting platform if the product identifier identical to the product identifier is found from the anti-counterfeiting platform comprises:
if the product identification which is the same as the product identification is found from the anti-counterfeiting platform, detecting the state of the product identification, wherein the state comprises an activated state and an inactivated state;
and if the state of the product identification is the activated state, determining that the product identification is matched with the product identification of the anti-counterfeiting platform.
7. The method of claim 1, further comprising:
and if the decryption result does not meet the preset condition, generating abnormal reminding information, and sending the abnormal reminding information to the terminal, wherein the abnormal reminding information is used for reminding the user that the product verification fails.
8. The utility model provides a product verification device which characterized in that for verifying the product that is provided with target anti-fake two-dimensional code image, target anti-fake two-dimensional code image includes anti-fake image and two-dimensional code image, the device includes:
the first acquisition module is used for acquiring the anti-counterfeiting image and decrypting the anti-counterfeiting image to obtain a decryption result;
the second acquisition module is used for acquiring the two-dimensional code image if the decryption result meets a preset condition and acquiring a product identifier according to the two-dimensional code image;
and the verification module is used for acquiring target product information corresponding to the product identification from a block chain according to the product identification and sending the target product information to a terminal, wherein the target product information is used for indicating the terminal to display the product information, and the target product information comprises product basic information and product traceability information.
9. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202011083844.9A 2020-10-12 2020-10-12 Product verification method and device, computer equipment and storage medium Pending CN112163871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011083844.9A CN112163871A (en) 2020-10-12 2020-10-12 Product verification method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011083844.9A CN112163871A (en) 2020-10-12 2020-10-12 Product verification method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112163871A true CN112163871A (en) 2021-01-01

Family

ID=73866422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011083844.9A Pending CN112163871A (en) 2020-10-12 2020-10-12 Product verification method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112163871A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733987A (en) * 2021-01-18 2021-04-30 深圳劲嘉盒知科技有限公司 Two-dimensional code, identification method and identification device thereof, and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104070739A (en) * 2013-12-27 2014-10-01 湖北联合天诚防伪技术股份有限公司 Preparation method of dual-layer holographic anti-counterfeiting film, product with dual-layer holographic anti-counterfeiting film, and recognition method
CN105718981A (en) * 2016-01-26 2016-06-29 南京风力舰信息技术有限公司 Processing method for preparing novel 2D code image holographic anti-counterfeiting label
CN107194449A (en) * 2017-06-19 2017-09-22 南京林业大学 The antiforge and information source tracing method combined based on digital watermarking and Quick Response Code
CN107506816A (en) * 2017-08-15 2017-12-22 大连中盈信息技术有限公司 The method of two-dimension code label, commodity counterfeit prevention code label and commodity counterfeit prevention analysis
CN108122020A (en) * 2017-12-08 2018-06-05 北京小米移动软件有限公司 Two-dimensional code generation method and device and two-dimensional code identification method and device
CN110232574A (en) * 2019-05-07 2019-09-13 中国平安财产保险股份有限公司 Product Validation method, apparatus, equipment and storage medium based on block chain
US20200202364A1 (en) * 2017-11-21 2020-06-25 Alibaba Group Holding Limited Product anti-counterfeiting verification method, apparatus, and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104070739A (en) * 2013-12-27 2014-10-01 湖北联合天诚防伪技术股份有限公司 Preparation method of dual-layer holographic anti-counterfeiting film, product with dual-layer holographic anti-counterfeiting film, and recognition method
CN105718981A (en) * 2016-01-26 2016-06-29 南京风力舰信息技术有限公司 Processing method for preparing novel 2D code image holographic anti-counterfeiting label
CN107194449A (en) * 2017-06-19 2017-09-22 南京林业大学 The antiforge and information source tracing method combined based on digital watermarking and Quick Response Code
CN107506816A (en) * 2017-08-15 2017-12-22 大连中盈信息技术有限公司 The method of two-dimension code label, commodity counterfeit prevention code label and commodity counterfeit prevention analysis
US20200202364A1 (en) * 2017-11-21 2020-06-25 Alibaba Group Holding Limited Product anti-counterfeiting verification method, apparatus, and device
CN108122020A (en) * 2017-12-08 2018-06-05 北京小米移动软件有限公司 Two-dimensional code generation method and device and two-dimensional code identification method and device
CN110232574A (en) * 2019-05-07 2019-09-13 中国平安财产保险股份有限公司 Product Validation method, apparatus, equipment and storage medium based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733987A (en) * 2021-01-18 2021-04-30 深圳劲嘉盒知科技有限公司 Two-dimensional code, identification method and identification device thereof, and electronic equipment

Similar Documents

Publication Publication Date Title
US20140095398A1 (en) Double ID Anti-Counterfeit Method and System
US9076024B2 (en) Anti-counterfeiting system and method
US10640273B2 (en) Authentication of packaged products
US20190347888A1 (en) Document authentication system
CN105225359B (en) Based on Quick Response Code without card withdrawal method and finger print identifying server
JP5661772B2 (en) How to check if a product is genuine product manufacturer
CN102831529A (en) Radio frequency based commodity information identification method and system
CN111860727B (en) Two-dimensional code generation method, two-dimensional code verification device and computer readable storage medium
US10007815B2 (en) Production method, RFID transponder, authentication method, reader device and computer program product
US20150356803A1 (en) Item authentication
WO2015154595A1 (en) One-time pad authentication system based on closed-loop authentication theory and internet
KR100512064B1 (en) contactless type communication tag and portable tag reader for verifying a genuine article
CN115511019A (en) Anti-counterfeiting verification method for binding RFID (radio frequency identification) label and article bar code
WO2022094635A1 (en) Anti-tampering medium, anti-tampering authentication system and tamper detection method
CN112163871A (en) Product verification method and device, computer equipment and storage medium
CN108082723A (en) A kind of anti-fake bottle lid and its method of work based on CPU crypto chips
CN102867260A (en) Bluetooth-based commodity information identification method and system
CN114140133B (en) Method for processing tracing data
CN202870899U (en) Bluetooth-based commodity information identification system
EP2091028B1 (en) Method of detecting non-authentic microprocessor cards, corresponding microprocessor card, card-reading terminal and programs
CN108064383A (en) A kind of management-control method, terminal and the POS terminal of application program permission
CN111951032A (en) Third-party article anti-counterfeiting authentication method
CN111311281A (en) Anti-counterfeiting method and anti-counterfeiting system based on website information
CN112308683A (en) Block chain-based steel quality guarantee book generation and management method and system
RU2714097C2 (en) Method of confirming objects origin legality

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