CN117094736A - Product authentication method, device, equipment and computer readable storage medium - Google Patents
Product authentication method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN117094736A CN117094736A CN202310994260.4A CN202310994260A CN117094736A CN 117094736 A CN117094736 A CN 117094736A CN 202310994260 A CN202310994260 A CN 202310994260A CN 117094736 A CN117094736 A CN 117094736A
- Authority
- CN
- China
- Prior art keywords
- product
- information
- product information
- coded
- package
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 239000003814 drug Substances 0.000 claims description 65
- 238000010586 diagram Methods 0.000 claims description 18
- 238000004519 manufacturing process Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 abstract description 9
- 229940079593 drug Drugs 0.000 description 14
- 239000002775 capsule Substances 0.000 description 8
- 239000002537 cosmetic Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 108091026890 Coding region Proteins 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 238000011022 operating instruction Methods 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 239000000825 pharmaceutical preparation Substances 0.000 description 3
- 229940127557 pharmaceutical product Drugs 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000004459 forage Substances 0.000 description 1
- 230000008570 general process Effects 0.000 description 1
- 238000007373 indentation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 239000006187 pill Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Marketing (AREA)
- General Health & Medical Sciences (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- Strategic Management (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses a product authentication method, a device, equipment and a computer readable storage medium, which are applied to the technical field of product security and comprise the following steps: acquiring coded product information; the coded product information is information obtained by coding according to the characteristic information of the product in the package; acquiring target transactions created by block chain link points according to the coded product information; and storing the target transaction on a blockchain to obtain the uplink product information. The invention acquires the coding characteristic information obtained by coding the product based on the characteristics of the product in the package, further combines with the blockchain technology, and uses the blockchain technology to track the product.
Description
Technical Field
The present invention relates to the field of product security technologies, and in particular, to a product authentication method, device and apparatus, and a computer readable storage medium.
Background
When authenticating food, medicine, cosmetics and the like, the technical scheme mainly adopted is that two-dimensional code information is arranged outside a medicine packaging box and is mainly related to production time, production site and external packing information. But this approach is not effective in preventing malicious vending personnel from replacing the medication. For example, after a malicious person takes out the outer package, the malicious person replaces a genuine product with a fake product, and at this time, the user scans the two-dimensional code on the outer package in time, so that the safety of the product cannot be ensured, and the product cannot be authenticated.
Therefore, how to improve the security of product authentication and reduce counterfeit and inferior products is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
Accordingly, the present invention is directed to a product authentication method, apparatus and device, and computer readable storage medium, which solve the technical problem of low product authentication security in the prior art.
In order to solve the technical problems, the invention provides a product authentication method, which comprises the following steps:
acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package;
acquiring target transaction created by the block chain link points according to the coded product information;
and storing the target transaction to a blockchain to obtain the uplink product information.
Optionally, the obtaining the encoded product information includes:
and obtaining the coded product information obtained by coding according to the characteristic information of the medicine in the package.
Optionally, the obtaining the coded product information obtained by coding according to the characteristic information of the medicine in the package includes:
and acquiring the coded product information obtained by coding according to the color characteristic information and/or the angle characteristic information of the medicine in the package.
Optionally, after the storing the target transaction on the blockchain to obtain the uplink product information, the method further includes:
and sending the uplink product information to two-dimensional code generating equipment.
Optionally, after the step of sending the uplink product information to the two-dimensional code generating device, the method further includes:
searching the corresponding target transaction in the blockchain through the target two-dimensional code on the inner package; wherein the target two-dimensional code is a two-dimensional code related to the encoded product information generated by the two-dimensional code generating apparatus;
if the searching fails, determining that the target transaction does not exist;
and if the searching is successful, acquiring a product characteristic diagram according to the information in the target transaction.
Optionally, the obtaining the encoded product information includes:
and acquiring binary coded product information obtained by carrying out information coding according to the characteristic information of the product in the package.
Optionally, the obtaining the encoded product information includes:
and acquiring the coded product information obtained by coding according to the characteristic information and the production information of the product.
The invention also provides a product authentication device, which comprises:
the coded product information acquisition module is used for acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package;
the target transaction acquisition module is used for acquiring target transactions created by the block chain link points according to the coded product information;
and the uplink module is used for storing the target transaction to a blockchain to obtain uplink product information.
The invention also provides a product authentication device based on the block chain, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the product authentication method when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the product authentication method described above.
It can be seen that the present invention provides for the acquisition of encoded product information; the coded product information is information obtained by coding according to the characteristic information of the product in the package; acquiring target transactions created by block chain link points according to the coded product information; and storing the target transaction on a blockchain to obtain the uplink product information. The invention encodes the product based on the characteristics of the product in the package, combines the product with the blockchain technology, and uses the blockchain technology to track the product, compared with the current encoding mode only according to manufacturers, places of production, manufacturing raw materials and production dates, the encoding mode encodes the product according to the characteristics of the product in the package, so that the product is difficult to tamper, the problem that the product is tampered is effectively solved, the safety of the product is improved, and the product is prevented from being counterfeited.
In addition, the invention also provides a product authentication device and a computer readable storage medium
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a product authentication method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a transaction structure corresponding to a product authentication method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of random number encoding according to color features according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of encoding angle information according to angle characteristics according to an embodiment of the present invention;
fig. 5 is a schematic structural view of a pharmaceutical package according to an embodiment of the present invention;
FIG. 6 is a schematic view of another pharmaceutical package according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of a drug authentication method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a product authentication device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a product authentication device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a product authentication method according to an embodiment of the present invention. The method may include:
s100, obtaining coded product information; the coded product information is information obtained by coding according to the characteristic information of the product in the package.
The embodiment is not limited to the kind of product corresponding to the encoded product information. For example, the product category to which the encoded product information corresponds is food; or the product type corresponding to the coded product information is a cosmetic; or a drug of a product type corresponding to the encoded product information; or the product type corresponding to the coded product information can also be an ornament. The embodiment is not limited to a specific way of encoding based on the characteristic information within the package, as long as the encoding is based on the specific characteristics of the product within the package. For example, the product may be encoded according to color characterization information within the package; or may be encoded according to the location characteristic information of the product within the package; or may be encoded based on angular characteristics of the product within the package. It is understood that encoding based on the characteristic information of the product within the package means encoding based on the form of the product within the package. For example, coding is carried out according to color distribution characteristic information of the product in the package, and different colors correspond to different coding information; or coding according to the position of the product in the package according to a certain structure in the package; or based on the relative angular information of the product within the package, which generally refers to packages that are only proximate to the product. For example, for pharmaceutical products, a tablet may be within the package; or may be a capsule within the package. For cosmetics, the package may be a box that directly carries the cosmetics. The embodiment is not limited to a specific format of the encoded product information. For example, the encoded product information may be binary encoded product information; or the encoded product information may also be hexadecimal encoded product information.
Further, to improve the feasibility of product protection, the acquiring the encoded product information may include:
and obtaining coded product information obtained by coding according to the characteristic information of the medicine in the package.
The embodiment can obtain the coded product information obtained by coding according to the characteristic information of the medicine in the package. This embodiment does not limit specific information about the characteristics of the drug within the package. For example, the random number may be encoded according to color characterization information of the drug within the package; or the medicine can be encoded according to the position information of the medicine in the package, and the whole position of the medicine in the whole inner package; or the location of individual ones of the medicaments within the inner package.
Further, in order to improve the diversity of the codes, the obtaining the code product information obtained by coding the characteristic information of the medicine in the package may include:
and acquiring coded product information obtained by coding according to the color characteristic information and/or the angle characteristic information of the medicine in the package.
The embodiment may obtain encoded product information encoded according to color characteristic information and/or angle characteristic information of the pharmaceutical product within the package. This embodiment may encode based only on the color feature information; or the embodiment may be encoded based solely on the angular characteristic information; or the embodiment may encode with both color feature information and angle feature information. The embodiment is not limited to a specific manner of encoding based on the color characteristic information. For example, the coding may be performed from left to right according to color characteristics; or from top to bottom according to the color characteristics. The embodiment is also not limited to the specific manner in which the encoded product information is encoded according to the angular characteristics. For example, the left edge and the upper edge of the inner package can be determined to be the positive and the negative directions, and the included angles between each detail point (the included angle between the positive direction of lipstick in cosmetics and the indentation of the inner wall, the included angle between sleeves, collars and the inner package in clothes) and the inner package can be obtained; alternatively, the right and upper edges of the inner package may be determined to be square and then the included angle between each minutiae point and the inner package may be obtained.
For ease of understanding, please refer to fig. 3, fig. 3 is a schematic diagram of a random number coding according to color characteristics according to an embodiment of the present invention, and a random number coding is set for each drug in a package considering that specific information of each drug may be different (see fig. 3). The coding design is as follows: according to the text information attached to the capsules, determining the upper edge and the left edge of the medicine plate in the text positive direction, (a) the dark part of each capsule represents 1, and the bright part represents 0; (b) Each capsule has a bright and dark part, the left part is used as a capsule mark, and if the left side of a capsule is dark, the random number of the capsule is 1. (c) The random number coding sequence of each capsule is from top to bottom and from left to right. Finally, the medicine containing the random binary code 11011001 is obtained. It should be noted that fig. 3 is only one type of coding according to color characteristics, and when the coding is actually performed, the upper edge and the left edge of the medicine board can be determined according to the reverse direction of the characters, and the coding sequence can be from bottom to top and from left to right; or from top to bottom, from right to left.
For ease of understanding, fig. 4 is a schematic diagram of an embodiment of the present invention for encoding angle information according to angle characteristics, and the present invention designs an angle information encoding method (see fig. 5) that requires that the package be tight enough to prevent the tablet from rotating after the package. The angle information coding mode is designed as follows: according to the character information attached to the tablet, the upper edge and the left edge of the tablet are determined in the positive direction of the character, and the left edge and the upper edge of the tablet are used as alignment lines and as extension lines. (a) Extending the diameter of each tablet, intersecting the upper edge (or its extension) to form an angle A near the left edge i (e.g., α, β, γ). (b) Angle A of each tablet i Conversion of numerical values into binary character strings S i ,S i The angle information code of the tablet is obtained. (c) The angle coding sequence of each tablet is from top to bottom and from left to right. Angle information coding set S= { S of each tablet 1 ,S 2 ,...,S n }. (d) Angle information code T of each tablet i =S 1 ||S 2 ||...||S n Wherein the symbol i indicates a string concatenation. When actually encoding according to the angle characteristics, the angle between the medicine and the inner package may be obtained, and the angle determination method may be changed arbitrarily.
Further, to increase the speed of the uplink of the encoded product information, the acquiring the encoded product information may include:
and acquiring characteristic information of the product, and performing information coding to obtain binary coded product information.
This embodiment directly acquires binary coded product information in order to increase the speed of the uplink of coded product information. It will be appreciated that most of the information in a computer system needs to be converted to binary information, so directly retrieving the binary encoded product may allow the blockchain system to directly use the binary encoded product information.
Further, in order to improve the security of product tracing, the acquiring the encoded product information may include:
and acquiring coded product information obtained by coding according to the characteristic information and the production information of the product.
The embodiment acquires encoded product information obtained by encoding according to the characteristic information and the production information of the product. It can be understood that the characteristic information and the production information of the medicine are combined, so that the state of the medicine when leaving the factory can be verified during tracing, and the manufacturer, the production place, the production information and the like of the product can be obtained.
S101, acquiring target transactions created by block chain link points according to the coded product information.
In this embodiment, when the encoded product information is obtained, the blockchain node creates a target transaction based on the encoded product information. The embodiment is not limited to a specific transaction structure as long as the coded product information is included in the transaction structure. For example, the transaction structure may include coded product information, transaction time, transaction input, and transaction output; or the transaction structure may include an encoded product information transaction hash, a transaction signature, a transaction version, and a transaction time. For easy understanding, please refer to fig. 2, fig. 2 is a schematic structural diagram of a transaction structure corresponding to a product authentication method according to an embodiment of the present invention, and the present invention designs a transaction data structure for recording transaction information. The transaction structure indicates version information, including time stamp services, explicitly entered information. The input information contains encoded information and an input address. The transaction needs to use information signature to ensure the transaction security.
S102, storing the target transaction on the blockchain to obtain the uplink product information.
This embodiment stores the target transaction on the blockchain, resulting in the uplink product information. It can be appreciated that the general process of uploading the transaction to the blockchain is that the transaction is completed (accounting is completed) as the target transaction application (generation application), the whole network broadcast (announcement to the whole network), the transaction verification (each block verification), the verification pass (whole person verification), and the target transaction is successfully uplink to obtain the uplink product information.
Further, in order to improve the traceability convenience, after storing the target transaction on the blockchain to obtain the uplink product information, the method may further include:
and sending the uplink product information to the two-dimensional code generating equipment.
The embodiment transmits the uplink product information to the two-dimensional code generating apparatus. The embodiment is not limited to a specific two-dimensional code generating apparatus as long as the two-dimensional code can be generated from the uplink product information. For example, the two-dimensional code generating apparatus may be a forage two-dimensional code, or the two-dimensional code generating apparatus may also be a two-dimensional code generator.
Further, in order to improve the security of tracing the target two-dimensional code on the blockchain system, after the uplink product information is sent to the two-dimensional code generating device, the method may further include:
searching a corresponding target transaction in the blockchain through a target two-dimensional code on the inner package; the target two-dimensional code is a two-dimensional code which is generated by using two-dimensional code generating equipment and is related to the coded product information;
if the searching fails, determining that the target transaction does not exist;
if the search is successful, acquiring a product feature map according to the information in the target transaction.
It can be appreciated that, in this embodiment, when the target transaction corresponding to the blockchain needs to be found by the target two-dimensional code on the inner package, the two-dimensional code scanning device needs to be used for scanning the target two-dimensional code, so as to obtain the target transaction corresponding to the target two-dimensional code. When the target transaction can be successfully searched, the transaction information is shown to exist in the blockchain, a product characteristic diagram can be obtained, whether the characteristics of the current medicine are consistent with the product characteristic diagram stored in the blockchain is checked, and the authenticity of the product is further verified. When the target transaction is not found, the product is not authenticated on behalf of the product.
In the embodiment, the target two-dimensional codes are arranged on the inner package of the product, so that the information stored by each target two-dimensional code is strongly bound with the medicine plate, and the safety of product authentication is further improved. For easy understanding, please refer to fig. 5, fig. 5 is a schematic structural diagram of a medicine package provided by an embodiment of the present invention, and please refer to fig. 6, fig. 6 is a schematic structural diagram of another medicine package provided by an embodiment of the present invention, and in fig. 5 and fig. 6, a target two-dimensional code is disposed on a medicine board.
The product authentication method provided by the embodiment of the invention obtains the coded product information; the coded product information is information obtained by coding according to the characteristic information of the product in the package; acquiring target transactions created by block chain link points according to the coded product information; and storing the target transaction on a blockchain to obtain the uplink product information. Therefore, the invention encodes the product based on the characteristics of the product in the package, combines the product with the blockchain technology, and uses the blockchain technology to track the product. Moreover, the product authentication method is suitable for medicines closely related to the physical health of people, and the feasibility of the product authentication method is relatively strong because the characteristics of medicine packaging are more obvious compared with other technical fields. In addition, the coding characteristic information can be related to the color characteristic information and/or the angle characteristic information, so that the correlation between the coding characteristic information and the medicine is improved; the method and the device can generate the target two-dimensional code corresponding to the coding characteristic information, so that a user can directly authenticate the commodity through the self-use equipment; and the authenticity of the target transaction can be verified by scanning the target two-dimensional code on the inner package and searching the target transaction; in addition, the binary coding characteristic information which can be identified by the computer can be directly obtained; and the coding characteristic information is related to both the characteristic information and the production information, so that the coding information is more comprehensive, and the tracing safety is improved.
In order to facilitate understanding of the present invention, referring to fig. 7 specifically, fig. 7 is a schematic flow chart of a drug authentication method according to an embodiment of the present invention, where the method specifically may include:
s200, obtaining coded medicine information according to the color characteristic information of the medicine.
The embodiment directly obtains the coded medicine information of binary character strings which are coded by random number according to the color characteristic information of the medicine.
S201, acquiring a target transaction created by the block chain link point according to the coded medicine information.
In this embodiment, the block chain node constructs a target transaction that includes the encoded characteristic information.
S202, the target transaction is uplink.
S203, when receiving the target transaction corresponding to the two-dimensional code on the medicine board acquired by the intelligent equipment, inquiring the target transaction corresponding to the two-dimensional code on the medicine board by using the blockchain.
S204, if the search fails, determining that the target transaction does not exist;
s205, if the search is successful, acquiring a medicine feature map and a medicine life cycle according to the information in the target transaction.
The embodiment utilizes a medicine tracing system to read the transaction hash value in the two-dimension code, searches the target transaction through the blockchain, fails to search, the target transaction does not exist, the medicine is fake, and the result is returned to the user. And if the searching is successful, the medicine characteristic diagram is reproduced according to the coding information in the transaction. Namely the distribution mode of pills in the medicine plate or the distribution angle of the tablets in the medicine plate, and returning the reproduction result graph to the user; (3) and the user compares the result graph returned by the medicine tracing system with the real medicine board. If not, the medicine is replaced. The medicine life cycle in this embodiment refers to the medicine life cycle: (a) pharmaceutical product manufacture and packaging; (b) the drug vending personnel vend; (c) the user checks authentication and uses. It will be appreciated that a blockchain is a digital ledger that is made up of blocks that record many computer transactions. Since all participating computers carry the same digital ledger and each block carries the history of its previous block in an encrypted manner, it is almost impossible to change the data of a block. Thus, each transaction is secure and unchangeable. When a number of entities (drug subjects) participate in transactions, blockchains equipped with various smart contracts can perform transactions, each drug-related transaction can be identified and tracked, resulting in a drug lifecycle.
The following describes a product authentication device provided in an embodiment of the present invention, and a product authentication device described below and a product authentication method described above may be referred to correspondingly.
Referring to fig. 8 specifically, fig. 8 is a schematic structural diagram of a product authentication device according to an embodiment of the present invention, which may include:
the coded product information acquisition module 100 is used for acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package;
a target transaction acquisition module 200, configured to acquire a target transaction created by the block link point according to the encoded product information;
the uplink module 300 is configured to store the target transaction on a blockchain to obtain uplink product information.
Further, based on the above embodiment, the above encoded product information obtaining module 100 may include:
the coded product information acquisition unit is used for acquiring coded product information obtained by coding according to the characteristic information of the medicine in the package.
Further, based on the above embodiment, the above encoded product information obtaining unit may include:
and the coded product information acquisition subunit is used for acquiring the coded product information obtained by coding according to the color characteristic information and/or the angle characteristic information of the medicine in the package.
Further, based on any of the above embodiments, the product authentication device may further include:
and the target two-dimension code creation module is used for sending the uplink product information to two-dimension code generation equipment.
Further, based on any of the above embodiments, the product authentication device may further include:
the target transaction searching module is used for searching the corresponding target transaction in the blockchain through the target two-dimensional code on the inner package; wherein the target two-dimensional code is a two-dimensional code related to the encoded product information generated by the two-dimensional code generating apparatus;
a transaction absence determining module configured to determine that the target transaction is absent when the target transaction fails to find;
and the transaction existence determining module is used for acquiring a product characteristic diagram according to the information in the target transaction when the target transaction is successfully searched.
Further, the above-mentioned encoded product information obtaining module 100 may include:
and the binary code product information acquisition module is used for acquiring the characteristic information of the product and carrying out information coding to obtain binary code product information.
Further, the above-mentioned encoded product information obtaining module 100 may include:
and the coded product information acquisition module is used for acquiring the coded product information obtained by coding according to the characteristic information and the production information of the product.
It should be noted that, the order of the modules and units in the product authentication device can be changed without affecting the logic.
The product authentication device provided by the embodiment of the invention comprises: the coded product information acquisition module 100 is used for acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package; a target transaction acquisition module 200, configured to acquire a target transaction created by the block link point according to the encoded product information; the uplink module 300 is configured to store the target transaction on a blockchain to obtain uplink product information. Therefore, the invention encodes the product based on the characteristics of the product in the package, combines the product with the blockchain technology, and uses the blockchain technology to track the product. In addition, the product authentication method is suitable for medicines closely related to the physical health of people, so the product authentication method has strong applicability. In addition, the coding characteristic information can be related to the color characteristic information and/or the angle characteristic information, so that the correlation between the coding characteristic information and the medicine is improved; the method and the device can generate the target two-dimensional code corresponding to the coding characteristic information, so that a user can directly authenticate the commodity through the self-use equipment; and the authenticity of the target transaction can be verified by scanning the target two-dimensional code on the inner package and searching the target transaction; in addition, the binary coding characteristic information which can be identified by the computer can be directly obtained; and the coding characteristic information is related to both the characteristic information and the production information, so that the coding information is more comprehensive, and the tracing safety is improved.
The following describes a product authentication device provided in an embodiment of the present invention, and a product authentication device described below and a product authentication method described above may be referred to correspondingly.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a product authentication device according to an embodiment of the present invention, which may include:
a memory 10 for storing a computer program;
a processor 20 for executing a computer program to perform the steps of a product authentication method as described above.
The memory 10, the processor 20, and the communication interface 30 all communicate with each other via a communication bus 40.
In the embodiment of the present invention, the memory 10 is used for storing one or more programs, the programs may include program codes, the program codes include computer operation instructions, and in the embodiment of the present invention, the memory 10 may store programs for implementing the following functions:
acquiring coded product information; the coded product information is information obtained by coding according to the characteristic information of the product in the package;
acquiring target transactions created by block chain link points according to the coded product information;
and storing the target transaction on a blockchain to obtain the uplink product information.
In one possible implementation, the memory 10 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, and at least one application program required for functions, etc.; the storage data area may store data created during use.
In addition, memory 10 may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, where the operating instructions may include various operating instructions for performing various operations. The operating system may include various system programs for implementing various basic tasks as well as handling hardware-based tasks.
The processor 20 may be a central processing unit (Central Processing Unit, CPU), an asic, a dsp, a fpga or other programmable logic device, and the processor 20 may be a microprocessor or any conventional processor. The processor 20 may call a program stored in the memory 10.
The communication interface 30 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 9 does not limit a product authentication device according to an embodiment of the present invention, and in practical applications, a product authentication device may include more or fewer components than those shown in fig. 9, or may combine some components.
The following describes a computer readable storage medium provided in an embodiment of the present invention, where the computer readable storage medium described below and a product authentication method described above may be referred to correspondingly.
The present invention also provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of a product authentication method as described above.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Finally, it is further noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The foregoing has outlined some of the more detailed description of the method, apparatus, device and computer readable storage medium of product authentication, wherein specific embodiments are provided to facilitate the understanding of the method and core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. A method of authenticating a product, comprising:
acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package;
acquiring target transaction created by the block chain link points according to the coded product information;
and storing the target transaction to a blockchain to obtain the uplink product information.
2. The product authentication method of claim 1, wherein the obtaining encoded product information comprises:
and obtaining the coded product information obtained by coding according to the characteristic information of the medicine in the package.
3. The product authentication method according to claim 2, wherein the acquiring the encoded product information obtained by encoding the characteristic information of the medicine in the package includes:
and acquiring the coded product information obtained by coding according to the color characteristic information and/or the angle characteristic information of the medicine in the package.
4. The product authentication method of claim 1, further comprising, after said storing said target transaction on a blockchain to obtain uplink product information:
and sending the uplink product information to two-dimensional code generating equipment.
5. The product authentication method according to claim 4, further comprising, after the transmitting the uplink product information to a two-dimensional code generating apparatus:
searching the corresponding target transaction in the blockchain through a target two-dimensional code on the inner package; wherein the target two-dimensional code is a two-dimensional code related to the encoded product information generated by the two-dimensional code generating apparatus;
if the searching fails, determining that the target transaction does not exist;
and if the searching is successful, acquiring a product characteristic diagram according to the information in the target transaction.
6. The product authentication method of claim 1, wherein the obtaining encoded product information comprises:
and acquiring binary coded product information obtained by carrying out information coding according to the characteristic information of the product in the package.
7. The product authentication method of claim 1, wherein the obtaining encoded product information comprises:
and acquiring the coded product information obtained by coding according to the characteristic information and the production information of the product.
8. A product authentication device, comprising:
the coded product information acquisition module is used for acquiring coded product information; the coded product information is information obtained by coding according to characteristic information of the product in the package;
the target transaction acquisition module is used for acquiring target transactions created by the block chain link points according to the coded product information;
and the uplink module is used for storing the target transaction to a blockchain to obtain uplink product information.
9. A blockchain-based product authentication device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the product authentication method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the product authentication method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310994260.4A CN117094736A (en) | 2023-08-09 | 2023-08-09 | Product authentication method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310994260.4A CN117094736A (en) | 2023-08-09 | 2023-08-09 | Product authentication method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117094736A true CN117094736A (en) | 2023-11-21 |
Family
ID=88770907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310994260.4A Pending CN117094736A (en) | 2023-08-09 | 2023-08-09 | Product authentication method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117094736A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930438A (en) * | 2011-08-11 | 2013-02-13 | 曹斌 | System and method for multi-level information matching anti-counterfeiting verification of commodities |
CN104574170A (en) * | 2014-12-26 | 2015-04-29 | 北京慧眼智行科技有限公司 | Code pattern setting method for products and buying behavior automated verification method and system |
CN106022805A (en) * | 2016-05-25 | 2016-10-12 | 华中科技大学 | Anti-fake traceablility system and method based on label reading |
CN108416590A (en) * | 2018-04-08 | 2018-08-17 | 程昔恩 | A kind of block chain technical certification method based on topography |
CN109034845A (en) * | 2018-07-27 | 2018-12-18 | 中链科技有限公司 | Commodity based on block chain trace to the source code generate, verifying and querying method and device |
CN109949050A (en) * | 2019-03-12 | 2019-06-28 | 翟红鹰 | Qualified products analysis method, terminal device and storage medium based on block chain |
CN110675166A (en) * | 2019-09-03 | 2020-01-10 | 宁波鱼讯信息技术有限责任公司 | Information acquisition system and method for aquatic product tracing |
CN110910148A (en) * | 2019-10-11 | 2020-03-24 | 北京海益同展信息科技有限公司 | Block chain-based article authentication method and device and storage medium |
CN111340515A (en) * | 2020-03-02 | 2020-06-26 | 北京京东振世信息技术有限公司 | Characteristic information generation and article tracing method and device |
CN112184268A (en) * | 2020-10-27 | 2021-01-05 | 广州市家庭医生在线信息有限公司 | Medicine traceability management method and system based on block chain technology |
CN114997884A (en) * | 2022-05-16 | 2022-09-02 | 杨炎茂 | Dual anti-counterfeiting authentication system based on tea cake image and information code |
-
2023
- 2023-08-09 CN CN202310994260.4A patent/CN117094736A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930438A (en) * | 2011-08-11 | 2013-02-13 | 曹斌 | System and method for multi-level information matching anti-counterfeiting verification of commodities |
CN104574170A (en) * | 2014-12-26 | 2015-04-29 | 北京慧眼智行科技有限公司 | Code pattern setting method for products and buying behavior automated verification method and system |
CN106022805A (en) * | 2016-05-25 | 2016-10-12 | 华中科技大学 | Anti-fake traceablility system and method based on label reading |
CN108416590A (en) * | 2018-04-08 | 2018-08-17 | 程昔恩 | A kind of block chain technical certification method based on topography |
CN109034845A (en) * | 2018-07-27 | 2018-12-18 | 中链科技有限公司 | Commodity based on block chain trace to the source code generate, verifying and querying method and device |
CN109949050A (en) * | 2019-03-12 | 2019-06-28 | 翟红鹰 | Qualified products analysis method, terminal device and storage medium based on block chain |
CN110675166A (en) * | 2019-09-03 | 2020-01-10 | 宁波鱼讯信息技术有限责任公司 | Information acquisition system and method for aquatic product tracing |
CN110910148A (en) * | 2019-10-11 | 2020-03-24 | 北京海益同展信息科技有限公司 | Block chain-based article authentication method and device and storage medium |
CN111340515A (en) * | 2020-03-02 | 2020-06-26 | 北京京东振世信息技术有限公司 | Characteristic information generation and article tracing method and device |
CN112184268A (en) * | 2020-10-27 | 2021-01-05 | 广州市家庭医生在线信息有限公司 | Medicine traceability management method and system based on block chain technology |
CN114997884A (en) * | 2022-05-16 | 2022-09-02 | 杨炎茂 | Dual anti-counterfeiting authentication system based on tea cake image and information code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7348207B2 (en) | Composite security markings and methods and apparatus for providing and reading composite security markings | |
CN108460605B (en) | Block chain-based tracing and anti-counterfeiting method and system for paper artwork | |
JP5149909B2 (en) | Data access control with RFID devices | |
US10079825B2 (en) | Method and apparatus for authenticating RFID tags | |
CN104281954B (en) | Antifake method for products | |
US20150106113A1 (en) | Near Field Communication (NFC) Based Counterfeit Product Identification System | |
CN103824202A (en) | CPK (Combined Public Key) identification authentication technology based RFID (Radio Frequency Identification Device) and two-dimensional code composite truth-identification and anti-fake source-tracing method | |
CN103544517A (en) | Agricultural product traceability anti-fake system and two-dimension code label used for same | |
JP2012528499A (en) | RFID tag authentication method using asymmetric encryption method | |
CN104680389A (en) | NFC mobile phone terminal anti-fake system and method based on time encryption | |
WO2018075403A1 (en) | Open registry for provenance and tracking of goods in the supply chain | |
CN103886469A (en) | Product two-dimension code generation and query system | |
US8001016B2 (en) | Pharmaceutical product packaging | |
CN107169775A (en) | False proof marketing system and the method for tracing to the source based on wechat | |
WO2018067974A1 (en) | Open registry for human identification | |
CN107316073A (en) | A kind of application process of variable two-dimension code in anti-drug counterfeiting is traced to the source | |
CN101763767A (en) | Anti-fake identification method with dual encryption code | |
Yiu | An NFC-enabled anti-counterfeiting system for wine industry | |
CN107862364A (en) | The generation method and system for the individual identification mark that a kind of plain code is combined with password | |
CN117094736A (en) | Product authentication method, device, equipment and computer readable storage medium | |
CN106815614A (en) | A kind of bank acceptance Antiforge system of use NFC anti-counterfeiting technologies | |
CN210836203U (en) | Tracing anti-counterfeiting application system based on block chain, RFID and NFC | |
CN105187422A (en) | Anti-phishing website identification method based on invisible image encoding technology and system | |
CN113077268B (en) | Agricultural product information traceability system and method based on NFC and block chain | |
Teraura et al. | A QR Symbol with ECDSA for Both Public and Secret Areas using Rhombic Sub-cells |
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 |