CN108154208B - Article identification method, article identification method and article identification system based on two-dimensional code - Google Patents
Article identification method, article identification method and article identification system based on two-dimensional code Download PDFInfo
- Publication number
- CN108154208B CN108154208B CN201611107057.7A CN201611107057A CN108154208B CN 108154208 B CN108154208 B CN 108154208B CN 201611107057 A CN201611107057 A CN 201611107057A CN 108154208 B CN108154208 B CN 108154208B
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- characteristic
- article
- characteristic information
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000004422 calculation algorithm Methods 0.000 claims description 69
- 238000004891 communication Methods 0.000 claims description 17
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 12
- 238000004519 manufacturing process Methods 0.000 description 9
- 238000004458 analytical method Methods 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 5
- 239000002994 raw material Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000007689 inspection Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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
-
- 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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses an article identification method, an article identification method and an article identification system based on two-dimensional codes, wherein the identification method comprises the steps of S100 inputting the characteristic information of an article to be identified; s200, generating a characteristic two-dimensional code according to the characteristic information and by combining a preset generation rule; s300, the generated characteristic two-dimensional code is marked on the article to be marked according to the one-to-one correspondence relationship. In the invention, the characteristic information of the article to be identified is obtained by the two-dimensional code generating device, then the characteristic information is generated into the characteristic two-dimensional code according to the preset generating rule, and the generated two-dimensional code identifies the article to be identified according to the one-to-one corresponding relation. Therefore, repeated identification or missing identification can be avoided, and meanwhile, identification is carried out in a one-to-one correspondence mode, and the identification can be used as a unique identification code of an article and used for distinguishing uniqueness and uniqueness of the article.
Description
Technical Field
The invention relates to the field of anti-counterfeiting identification and two-dimensional codes, in particular to an article identification method, an article identification method and an article identification system based on the two-dimensional codes.
Background
The two-dimensional code records data symbol information in a two-dimensional direction by using a specific geometric figure according to a certain rule; in coding, the concept of "0" and "1" bit stream which forms the internal logic basis of computer is used, several geometric forms correspondent to binary system are used to represent literal numerical information, and can be automatically read by means of image input equipment or photoelectric scanning equipment so as to implement automatic information processing: it has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Two-dimensional codes are a more advanced bar code format than one-dimensional codes. One-dimensional codes can only express information in one direction (generally, the horizontal direction), while two-dimensional codes can store information in both the horizontal and vertical directions. The one-dimensional code only consists of numbers and letters, and the two-dimensional code can store information such as Chinese characters, numbers, pictures and the like, so that the application field of the two-dimensional code is much wider. The two-dimensional bar code technology is a high-tech means for data anti-counterfeiting, carrying and transferring which is popular internationally in recent years. The method has the characteristics of large storage capacity, high confidentiality, high traceability, strong damage resistance, high redundancy, low cost and the like.
A natural attribute is an abstract noun that is descriptive of the nature of the face, regularity, phenomenon, and characteristics of an object in nature. It is a part of the description that is not subject to change by human mind and adjustment. The attribute of the changed things is the category of social attributes. The encryption algorithm is to process the original plain text file or data according to a certain algorithm to make it an unreadable segment of code. The aim of protecting data from being stolen and read by an illegal person is achieved through an encryption algorithm, and the reverse process (the process of converting the coded information into the original data) of the process is decryption.
The existing anti-counterfeiting technology comprises telephone code anti-counterfeiting, short message anti-counterfeiting or anti-counterfeiting through a radio frequency tag and a two-dimensional code. The anti-counterfeiting modes such as telephone code anti-counterfeiting and short message anti-counterfeiting have the defect of inconvenient detection, namely, the anti-counterfeiting mode needs to be authenticated through telephone or short message access and the like during each authenticity detection. The radio frequency label is used for anti-counterfeiting, the anti-counterfeiting cost is high, and the problem of environmental pollution exists. The existing two-dimension code anti-counterfeiting technology causes a bad manufacturer to produce a fake product of a high-quality product because of low production cost of the two-dimension code, or pretends an overdue or inferior product or a second-hand product into an original product for sale, thereby greatly damaging the benefits of consumers and destroying the social harmony and stability.
Disclosure of Invention
The invention provides an article identification method, an article identification method and an article identification system based on two-dimensional codes, and aims to identify articles by combining selected article characteristic information and an encryption algorithm and increase anti-counterfeiting strength.
The technical scheme provided by the invention is as follows:
an article identification method based on two-dimensional codes comprises the following steps:
s100, inputting characteristic information of an article to be identified;
s200, generating a characteristic two-dimensional code according to the characteristic information by combining a preset generation rule;
s300, the generated characteristic two-dimensional codes are marked on the articles to be marked according to the one-to-one correspondence relationship.
In the invention, the characteristic information of the article to be identified is obtained by the two-dimensional code generating device, then the characteristic information is generated into the characteristic two-dimensional code according to the preset generating rule, and the generated two-dimensional code identifies the article to be identified according to the one-to-one corresponding relation. Therefore, repeated identification or missing identification can be avoided, and meanwhile, identification is carried out in a one-to-one correspondence mode, and the identification can be used as a unique identification code of an article and used for distinguishing uniqueness and uniqueness of the article.
Further, the step S100 includes, before the step, the steps of:
s010 presets the generating rule and stores the preset generating rule;
wherein the generation rule comprises a composition rule and/or an encryption algorithm;
the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte; the encryption algorithm includes any one or more of internationally and/or domestically recognized encryption algorithms.
In the invention, the articles are not particularly specified to a certain object or a class of objects, but have more general meanings, including all commodities or electronic data and products of a virtual world in work and life of clothes, food, live, and the like of people. The encryption algorithm may be an SM series algorithm issued by the national crypto authority, or an internationally recognized algorithm such as RSA and AES. In order to ensure the security of the item identification number, the encryption algorithm used is not limited to a single key or a public key mechanism or a hash function according to the actual requirements (such as security requirements, convenience of parsing, etc.).
Further, the step S200 further includes the steps of:
s210, the characteristic information is obtained, and the characteristic information comprises natural attribute information and/or social attribute information of the article to be identified.
S220, generating a characteristic information character string according to the characteristic information and the preset generation rule;
s230, judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code; if yes, go to step S240, otherwise go to step S250 directly;
s240, deleting characters of the characteristic information character string according to a preset deletion method; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code;
s250, storing the characteristic information character string; and/or the presence of a gas in the gas,
s260, encrypting the characteristic information character string according to the preset encryption algorithm;
and S270, generating the characteristic two-dimensional code from the characteristic information character string according to the generation rule and storing the characteristic two-dimensional code.
The method can acquire one or more kinds of characteristic information of an article to be identified, generate a characteristic information character string according to a preset generation rule by using the acquired characteristic information, judge whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code or not because the length of a character set of the two-dimensional code is limited after the characteristic information character string is generated, store the characteristic information character string if the length of the character set of the two-dimensional code is smaller than or equal to the length of the preset two-dimensional code, and generate the characteristic two-dimensional code according to the generation rule by using the characteristic information character string. If the number of the characters is larger than the preset number of the characters, deleting the characters of the characteristic information character string according to a preset deleting method; and storing the deleted feature information character string until the length of the feature information character string is less than or equal to the length of the preset two-dimensional code, and then generating the feature information character string into the feature two-dimensional code according to the generation rule by using the deleted feature information character string. The deleting method can delete characters with large capacity in sequence from large to small according to the character capacity (or delete characters with small capacity in sequence from small to large according to the character capacity) according to the program script; according to the sequence of the character strings, the high order is deleted from the low order (or the low order is deleted from the high order); characters can be deleted according to the importance degree of the characteristic information, for example, the apple brand, the origin and the model of the apple mobile phone are important information, and the weight and the raw materials are not important information. Of course, this is just an assumption and not the real case. The nature and social attributes of an article include, but are not limited to, the name of the raw materials that make up the article, the place of manufacture, the manufacturer, the lot, the date of manufacture, the shape, the color, the weight, the odor, and the like.
In the invention, the characteristic two-dimensional code can be generated only according to the characteristic information, and can also be generated by combining the characteristic information with an encryption algorithm, and the security of the latter is higher, so that the security of the anti-counterfeiting technology can be greatly improved, and the rights and interests of original producers and consumers can be guaranteed.
Further, the step S300 includes the steps of:
s310, judging whether the characteristic two-dimensional code is used or not according to the characteristic two-dimensional code; if yes, go to step S320, otherwise go to step S330;
s320, storing the characteristic two-dimensional code into the used two-dimensional code database; and returns to step S200;
s330, the generated characteristic two-dimensional code is marked on the article to be marked according to the one-to-one correspondence relationship.
In the invention, when the characteristic two-dimensional codes are generated in batch, repeated identification or identification omission can occur, and the used two-dimensional codes are classified into the used two-dimensional code database through judgment, so that the one-to-one corresponding identification efficiency can be improved, and meanwhile, the characteristic two-dimensional codes on the articles are used as the unique identification codes of the articles to distinguish the uniqueness and uniqueness of the articles.
The invention also provides an article identification method based on the two-dimensional code, which is characterized by comprising the following steps:
s410, scanning a two-dimensional code on an object to be scanned, judging whether the two-dimensional code is a characteristic two-dimensional code, and if so, executing a step S420; otherwise, go to step S460;
s420, analyzing the acquired characteristic two-dimensional code according to a preset generation rule to obtain analyzed article information;
s460, the failure of identifying the object to be scanned is output, and the scanning identification process is quitted.
In the invention, the article identification method is a reverse process of the identification method, and the generation rules of the two methods are consistent, namely the composition rule and the encryption algorithm are consistent, so that when a user identifies an article by using the article characteristic two-dimensional code, performs quality inspection or after the user is put into the market, and when the user needs to identify the article, the characteristic two-dimensional code on the article is scanned, and then the acquired characteristic two-dimensional code is analyzed according to the generation rule to obtain analyzed article information, for example, the scanned article characteristic information can be relatively simple.
If the scanning device cannot identify the two-dimensional code, but can identify the origin of the two-dimensional code, for example, the scanning function of the browser cannot scan the two-dimensional code of the WeChat but can jump to a WeChat webpage, and the user scans and acquires the information of the two-dimensional code after logging in.
Further, after the step S420 and before the step S460, the method further includes the steps of:
s430, judging whether the analyzed article information is consistent with article information contained in the characteristic two-dimensional code database, if so, executing a step S440; otherwise, go to step S450;
s440, outputting that the scanned article is consistent with preset article information;
s450, outputting that the scanned article is inconsistent with the preset article information.
In the invention, the analyzed article information obtained based on the scanned characteristic two-dimensional code is judged with the article characteristic information of the stored characteristic two-dimensional code, and whether the scanned article is consistent with the article information in the two-dimensional code database or not can be known after the judgment result is obtained. For example, if we scan the two-dimensional code of the apple on the computer and do not connect the network to access the official database, we can only obtain that the computer is the apple computer, but cannot know whether the apple computer is a genuine product, and it is likely to be a high-imitation product. The invention can greatly improve the security of the anti-counterfeiting technology and ensure the rights and interests of original producers and consumers.
The invention also provides an article identification system based on the two-dimensional code, which is characterized by comprising the following components:
the device comprises a two-dimensional code generating device and at least one article to be identified; the two-dimensional code generating device is in communication connection with the article to be identified;
the two-dimensional code generating device comprises an acquisition module, a generating module and a control module; the generating module is respectively in communication connection with the acquiring module and the control module;
the acquisition module is used for inputting the characteristic information of the article to be identified;
the generating module is used for generating a characteristic two-dimensional code by combining a preset generating rule according to the characteristic information;
and the control module marks the generated characteristic two-dimensional code on the article to be marked according to the one-to-one corresponding relation.
In the invention, the characteristic information of the article to be identified is obtained by the two-dimensional code generating device, then the characteristic information is generated into the characteristic two-dimensional code according to the preset generating rule, and the generated two-dimensional code identifies the article to be identified according to the one-to-one corresponding relation. Therefore, repeated identification or missing identification can be avoided, and meanwhile, identification is carried out in a one-to-one correspondence mode, and the identification can be used as a unique identification code of an article and used for distinguishing uniqueness and uniqueness of the article.
Further, the two-dimensional code generating apparatus further includes: the setting module is in communication connection with the generating module;
the setting module is used for presetting the generation rule; and storing the preset generation rule;
wherein the generation rule comprises a composition rule and/or an encryption algorithm;
the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte; the encryption algorithm includes any one or more of internationally and/or domestically recognized encryption algorithms.
In the invention, the articles are not particularly specified to a certain object or a class of objects, but have more general meanings, including all commodities or electronic data and products of a virtual world in work and life of clothes, food, live, and the like of people. The encryption algorithm may be an SM series algorithm issued by the national crypto authority, or an internationally recognized algorithm such as RSA and AES. In order to ensure the security of the item identification number, the encryption algorithm used is not limited to a single key or a public key mechanism or a hash function according to the actual requirements (such as security requirements, convenience of parsing, etc.). The aim of protecting data from being stolen and read by an illegal person is achieved through an encryption algorithm, and the anti-counterfeiting safety is improved.
Further, the generating module includes: the judgment sub-module, the control sub-module, the encryption sub-module and the generation sub-module; the control submodule is respectively in communication connection with the judgment submodule and the generation submodule;
and the judging submodule acquires the characteristic information, wherein the characteristic information comprises natural attribute information and/or social attribute information of the article to be identified. Generating a characteristic information character string according to the characteristic information and the preset generation rule; judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code or not;
the control submodule deletes characters of the characteristic information character string according to a preset deletion method when the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code; storing the characteristic information character string;
the control submodule stores the characteristic information character string when the length of the generated characteristic information character string is less than or equal to the length of a preset two-dimensional code; and/or the presence of a gas in the atmosphere,
the encryption submodule encrypts the characteristic information character string according to the preset encryption algorithm;
the generating submodule generates the characteristic two-dimensional code from the characteristic information character string according to the generating rule and stores the characteristic two-dimensional code;
the control module further comprises: a judgment submodule and a control submodule; the judgment sub-module is in communication connection with the control sub-module;
the judging submodule judges whether the characteristic two-dimensional code is used or not;
the control sub-module stores the characteristic two-dimensional code into the used two-dimensional code database when the characteristic two-dimensional code is used;
and when the control sub-module is not used, the generated characteristic two-dimensional code is marked on the article to be marked according to the one-to-one corresponding relation.
The method can acquire one or more kinds of characteristic information of an article to be identified, generate a characteristic information character string according to a preset generation rule by using the acquired characteristic information, judge whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code or not because the length of a character set of the two-dimensional code is limited after the characteristic information character string is generated, store the characteristic information character string if the length of the character set of the two-dimensional code is smaller than or equal to the length of the preset two-dimensional code, and generate the characteristic two-dimensional code according to the generation rule by using the characteristic information character string. If the number of the characters is larger than the preset number of the characters, deleting the characters of the characteristic information character string according to a preset deleting method; and storing the deleted feature information character string until the length of the feature information character string is less than or equal to the length of the preset two-dimensional code, and then generating the feature information character string into the feature two-dimensional code according to the generation rule by using the deleted feature information character string. In the invention, the characteristic two-dimensional code can be generated only according to the characteristic information, and can also be generated by combining the characteristic information with an encryption algorithm, and the security of the latter is higher, so that the security of the anti-counterfeiting technology can be greatly improved, and the rights and interests of original producers and consumers can be guaranteed. In the invention, when the characteristic two-dimensional codes are generated in batch, repeated identification or identification omission can occur, and the used two-dimensional codes are classified into the used two-dimensional code database through judgment, so that the one-to-one corresponding identification efficiency can be improved, and meanwhile, the characteristic two-dimensional codes on the articles are used as the unique identification codes of the articles to distinguish the uniqueness and uniqueness of the articles.
The invention also provides an article identification system based on the two-dimensional code, which is characterized by comprising the following components: the scanning device and at least one object to be scanned; the scanning device comprises a scanning module and an analysis module; the scanning module is in communication connection with the analysis module;
the scanning module scans the two-dimensional code on the article and judges whether the two-dimensional code is a characteristic two-dimensional code;
the analysis module outputs failure in identifying the article and quits the scanning and identifying process when the two-dimension code is not the characteristic two-dimension code;
the analysis module is used for analyzing the acquired characteristic two-dimensional code according to the generation rule to obtain analyzed article information when the two-dimensional code is the characteristic two-dimensional code; or,
the analysis module also judges whether the analyzed article information is consistent with article information contained in the characteristic two-dimensional code database;
when the scanned article information is consistent with the preset article information, outputting that the scanned article information is consistent with the preset article information;
when the scanned article information is inconsistent with the preset article information, outputting that the scanned article information is inconsistent with the preset article information;
wherein the generation rule comprises a composition rule and/or an encryption algorithm; the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte; the encryption algorithm comprises any one or more of internationally and/or domestically approved encryption algorithms; the article characteristic information comprises natural attribute information and/or social attribute information of the article to be identified.
In the invention, the article identification method is an inverse process of the identification method, and the generation rules of the two methods are consistent, namely the composition rule and the encryption algorithm are consistent, so that when a user identifies an article by using the article characteristic two-dimensional code, performs quality inspection or after the user is put into the market, the user scans the characteristic two-dimensional code on the article and analyzes the acquired characteristic two-dimensional code according to the generation rule to obtain analyzed article information, for example, the scanned analyzed article information can obtain simpler article characteristic information.
In the invention, the analyzed article information obtained based on the scanned characteristic two-dimensional code is judged with the article characteristic information of the stored characteristic two-dimensional code, and whether the scanned article is consistent with the article information in the two-dimensional code database or not can be known after the judgment result is obtained. For example, if we scan the two-dimensional code of the apple on the computer and do not connect the network to access the official database, we can only obtain that the computer is the apple computer, but cannot know whether the apple computer is a genuine product, and it is likely to be a high-imitation product. The invention can greatly improve the security of the anti-counterfeiting technology and ensure the rights and interests of original producers and consumers.
Compared with the prior art, the invention provides an article identification method, an article identification method and an article identification system based on a two-dimensional code, which at least bring the following technical effects:
1. the selected characteristic information of the article is combined with the encryption algorithm to mark the article, so that the anti-counterfeiting strength is enhanced.
2. Each article is assigned with an 'identification card number', which can be used as a unique identification code of the article to distinguish the uniqueness and uniqueness of the article.
Drawings
The following description of preferred embodiments will further describe characteristics, technical features, advantages and implementation manners of an article identification method, identification method and system based on two-dimensional codes in a clearly understandable manner with reference to the accompanying drawings.
FIG. 1 is a flow chart of an embodiment of a method for identifying an article based on a two-dimensional code according to the present invention;
FIG. 2 is a flow chart of another embodiment of a method for identifying an article based on a two-dimensional code according to the present invention;
FIG. 3 is a flow chart of another embodiment of a method for identifying an article based on a two-dimensional code according to the present invention;
FIG. 4 is a flow chart of one embodiment of a method for identifying an article based on a two-dimensional code according to the present invention;
FIG. 5 is a flow chart of another embodiment of a method for identifying an article based on a two-dimensional code according to the present invention;
FIG. 6 is a block diagram of one embodiment of a two-dimensional code based item identification system of the present invention;
FIG. 7 is a block diagram of another embodiment of a two-dimensional code based item identification system of the present invention;
FIG. 8 is a block diagram of another embodiment of a two-dimensional code based item identification system of the present invention;
FIG. 9 is a block diagram of one embodiment of a two-dimensional code based item identification system of the present invention;
fig. 10 is a flowchart of an example of an article identification method based on a two-dimensional code according to the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
Referring to fig. 1, the present invention provides an embodiment of an article identification method based on a two-dimensional code, including:
s100, inputting characteristic information of an article to be identified;
s200, generating a characteristic two-dimensional code according to the characteristic information by combining a preset generation rule;
s300, the generated characteristic two-dimensional code is marked on the article to be marked according to the one-to-one correspondence relationship.
Specifically, in this embodiment, the feature information of the article to be identified is obtained by the two-dimensional code generating device, then the feature information is used to generate the feature two-dimensional code according to the preset generating rule, and the generated two-dimensional code is used to identify the article to be identified according to the one-to-one correspondence relationship. Therefore, repeated identification or missing identification can be avoided, and meanwhile, identification is carried out in a one-to-one correspondence mode, and the identification can be used as a unique identification code of an article and used for distinguishing uniqueness and uniqueness of the article. Each article is provided with a unique and anti-counterfeiting identification number, namely, each article is distributed with an 'identification number'. The identification number can be used as a unique identification code of the article to distinguish the uniqueness and uniqueness of the article. The articles are not particularly specific to a certain object or a class of objects, but have more general meanings, including all commodities or electronic data and products of a virtual world in work and life of clothes, food, live, and the like of people. The method for inputting the characteristic information of the article to be identified includes, but is not limited to, shooting and acquiring, manual acquiring by a user, and the like.
S100, inputting characteristic information of an article to be identified;
s210, the characteristic information is obtained, and the characteristic information comprises natural attribute information and/or social attribute information of the article to be identified.
S220, generating a feature information character string according to the feature information and the preset generation rule;
s230, judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code; if yes, go to step S240, otherwise go to step S250 directly;
s240, deleting the characters of the characteristic information character string according to a preset deleting method; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code;
s250, storing the characteristic information character string; and/or the presence of a gas in the gas,
s260, encrypting the characteristic information character string according to the preset encryption algorithm;
s270, generating the characteristic two-dimensional code from the characteristic information character string according to the generation rule and storing the characteristic two-dimensional code;
s310, judging whether the characteristic two-dimensional code is used or not according to the characteristic two-dimensional code; if yes, go to step S320, otherwise go to step S330;
s320, storing the characteristic two-dimensional code into the used two-dimensional code database; and returns to step S200;
s330, the generated characteristic two-dimensional codes are marked on the articles to be marked according to the one-to-one correspondence relationship.
Specifically, in this embodiment, the generation rule includes a composition rule; the composition rule comprises setting the length of the characteristic two-dimensional code, and/or the position of each byte of the characteristic two-dimensional code, and/or the meaning of each byte. In this embodiment, the articles are not specific to a certain object or a class of objects, but have more general meanings, including all the commodities or electronic data and products of the virtual world in work and life of clothes, food, live, and the like of people. The two-dimensional code is used as the unique identification number of the article, and the two-dimensional code can be scanned and analyzed only through a special tool to obtain the related information of the article. When the characteristic two-dimensional codes are generated in batches, repeated identification or identification omission may occur, so that the used two-dimensional codes are classified into the used two-dimensional code database through judgment, the one-to-one identification efficiency can be improved, and meanwhile, the characteristic two-dimensional codes on the articles are used as unique identification codes of the articles to distinguish the uniqueness and uniqueness of the articles.
In this embodiment, one or more kinds of feature information of an article to be identified may be acquired, the acquired feature information is generated into a feature information character string according to a preset generation rule, after the feature information character string is generated, since the length of the character set of the two-dimensional code is limited, it is further necessary to determine whether the length of the generated feature information character string is greater than a preset length of the two-dimensional code, if the length is less than or equal to the preset length of the two-dimensional code, the feature information character string is stored, and then the feature two-dimensional code is generated according to the generation rule according to the feature information character string. If the number of the characters is larger than the preset number of the characters, deleting the characters of the characteristic information character string according to a preset deleting method; and storing the deleted feature information character string until the length of the feature information character string is less than or equal to the length of the preset two-dimensional code, and then generating the feature information character string into the feature two-dimensional code according to the generation rule by using the deleted feature information character string. The deleting method can delete characters with large capacity in sequence from large to small according to the character capacity (or delete characters with small capacity in sequence from small to large according to the character capacity) according to the program script; according to the sequence of the character strings, the high order is deleted from the low order (or the low order is deleted from the high order); characters can be deleted according to the importance degree of the characteristic information, for example, the apple brand, the origin and the model of the apple mobile phone are important information, and the weight and the raw materials are not important information. Of course, this is just an assumption and not the real case. The nature and social attributes of an article include, but are not limited to, the name of the raw materials that make up the article, the place of manufacture, the manufacturer, the lot, the date of manufacture, the shape, the color, the weight, the odor, and the like.
Referring to fig. 3, the same parts are not described in detail with respect to the previous embodiment. The invention provides another embodiment of an article identification method based on two-dimensional codes, which is added with an encryption step compared with the previous embodiment:
s260, encrypting the characteristic information character string according to the preset encryption algorithm.
Specifically, in this embodiment, the encryption algorithm includes any one or more of internationally and/or domestically recognized encryption algorithms. The encryption algorithm may be an SM series algorithm issued by the national crypto authority, or an internationally recognized algorithm such as RSA and AES. In order to ensure the security of the item identification number, the encryption algorithm used is not limited to a single key (the single key refers to generating a key according to a symmetric algorithm), or a public key mechanism, or implemented using a hash function, according to the actual requirements (such as security requirements, convenience of parsing, etc.). The security of the anti-counterfeiting technology can be greatly improved, and the rights and interests of original producers and consumers are guaranteed. By means of the internationally or domestically approved encryption algorithm, various natural or social attributes of the articles with typical meanings are used as encryption elements to form the two-dimensional code.
Referring to fig. 4, an embodiment of an article identification method based on a two-dimensional code according to the present invention includes:
s410, scanning a two-dimensional code on an object to be scanned, judging whether the two-dimensional code is a characteristic two-dimensional code, and if so, executing a step S420; otherwise, go to step S460;
s420, analyzing the acquired characteristic two-dimensional code according to a preset generation rule to obtain analyzed article information;
s460, the failure of identifying the object to be scanned is output, and the scanning identification process is quitted.
Specifically, in this embodiment, the article identification method is an inverse process of the identification method, and the generation rules of the two methods should be consistent, that is, the composition rule and the encryption algorithm are consistent, so that when a user identifies an article after using the article characteristic two-dimensional code for identification, performs quality inspection, or after putting into the market, and the user needs to identify the article, the characteristic two-dimensional code on the article is scanned, and then the obtained characteristic two-dimensional code is analyzed according to the generation rule to obtain analyzed article information, for example, the scanned analyzed article information can obtain relatively simple article characteristic information.
If the scanning device cannot identify the two-dimensional code, but can identify the exit of the two-dimensional code, for example, the scanning function of the browser cannot scan the two-dimensional code of the WeChat but can jump to a WeChat webpage, and the user scans to obtain the information of the two-dimensional code after logging in.
Referring to fig. 5, the same parts are not described in detail with respect to the previous embodiment. The invention provides another embodiment of an article identification method based on a two-dimensional code, which comprises the following steps of:
s430, judging whether the analyzed article information is consistent with article information contained in the characteristic two-dimensional code database, if so, executing a step S440; otherwise, go to step S450;
s440, outputting that the scanned article is consistent with preset article information;
s450, outputting that the scanned article is inconsistent with the preset article information.
Specifically, in this embodiment, the analyzed article information obtained based on the scanned characteristic two-dimensional code is judged with the article characteristic information of the stored characteristic two-dimensional code, and after a judgment result is obtained, whether the scanned article is consistent with the article information in the two-dimensional code database can be known. For example, if we scan the two-dimensional code of the apple on the computer and do not connect the network to access the official database, we can only obtain that the computer is the apple computer, but cannot know whether the apple computer is a genuine product, and it is likely to be a high-imitation product. The invention can greatly improve the security of the anti-counterfeiting technology and ensure the rights and interests of original producers and consumers.
Referring to fig. 6, the present invention provides an embodiment of an article identification system 1000 based on two-dimensional code, including: a two-dimensional code generating device 1100, at least one article 1200 to be identified; the two-dimensional code generation device 1100 is in communication connection with the article to be identified 1200;
the two-dimensional code generation device 1100 comprises an acquisition module 1110, a generation module 1120 and a control module 1130; the generating module 1120 is in communication connection with the acquiring module 1110 and the control module 1130 respectively;
the obtaining module 1110 inputs feature information of the article 1200 to be identified;
the generating module 1120 is configured to generate a feature two-dimensional code according to the feature information and by combining a preset generating rule;
the control module 1130 marks the generated characteristic two-dimensional code on the article 1200 to be marked according to a one-to-one correspondence relationship.
Specifically, in this embodiment, the two-dimensional code generation device 1100 obtains feature information of the article 1200 to be identified, then generates a feature two-dimensional code according to a preset generation rule based on the feature information, and identifies the article 1200 to be identified according to a one-to-one correspondence relationship based on the generated two-dimensional code. Therefore, repeated identification or missing identification can be avoided, and meanwhile, identification is carried out in a one-to-one correspondence mode, and the identification can be used as a unique identification code of an article and used for distinguishing uniqueness and uniqueness of the article.
Referring to fig. 7, the same parts are not described in detail with respect to the previous embodiment. The invention provides another embodiment of an article identification system 1000 based on two-dimensional codes, which comprises the following components, relative to the previous embodiment:
the two-dimensional code generation apparatus 1100 further includes: a setup module 1140, communicatively coupled to the generation module 1120;
the setting module is used for presetting the generation rule; and storing the preset generation rule;
the generating module 1120 includes: a judgment sub-module 1121, a control sub-module 1122, and a generation sub-module 1124; the control sub-module 1122 is in communication connection with the judgment sub-module 1121 and the generation sub-module 1124 respectively;
the determining sub-module 1121 acquires the feature information, where the feature information includes natural attribute information and/or social attribute information of the article 1200 to be identified. Generating a characteristic information character string according to the characteristic information and the preset generation rule; judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code or not;
the control sub-module 1122, when the length of the generated characteristic information character string is greater than the length of the preset two-dimensional code, deletes the character of the characteristic information character string according to a preset deletion method; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code; storing the characteristic information character string;
the control sub-module 1122, when the length of the generated characteristic information character string is less than or equal to the length of the preset two-dimensional code, stores the characteristic information character string; and/or the presence of a gas in the atmosphere,
the generating submodule 1124 is configured to generate and store the characteristic two-dimensional code from the characteristic information character string according to the generating rule;
the control module 1130 also includes: a judgment sub-module 1131 and a control sub-module 1132; the judgment sub-module 1131 is in communication connection with the control sub-module 1132;
the judging submodule 1131 judges whether the feature two-dimensional code is already used;
the control sub-module 1132, when already used, stores the characteristic two-dimensional code into the used two-dimensional code database;
when the characteristic two-dimensional code is not used, the control sub-module 1132 marks the generated characteristic two-dimensional code on the article 1200 to be marked according to a one-to-one correspondence relationship.
Specifically, in this embodiment, the generation rule includes a composition rule; the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte; the encryption algorithm includes any one or more of internationally and/or domestically recognized encryption algorithms.
In this embodiment, the articles are not specific to a certain object or a class of objects, but have more general meanings, including all the commodities or electronic data and products of the virtual world in work and life of clothes, food, live, and the like of people. In this embodiment, one or more kinds of feature information of the article 1200 to be identified may be acquired, the acquired feature information is generated into a feature information character string according to a preset generation rule, after the feature information character string is generated, since the length of the character set of the two-dimensional code is limited, it is further necessary to determine whether the length of the generated feature information character string is greater than the preset length of the two-dimensional code, if the length is less than or equal to the preset length of the two-dimensional code, the feature information character string is stored, and then the feature two-dimensional code is generated according to the generation rule according to the feature information character string. If the character size is larger than the preset size, deleting the characters of the characteristic information character string according to a preset deletion method; and storing the deleted feature information character string until the length of the feature information character string is less than or equal to the length of the preset two-dimensional code, and then generating the feature information character string into the feature two-dimensional code according to the generation rule by using the deleted feature information character string. In this embodiment, when the characteristic two-dimensional codes are generated in batches, a phenomenon of repeated identification or missing identification may occur, and then the two-dimensional codes that have been used are classified into the used two-dimensional code database by judgment, so that the efficiency of identification in one-to-one correspondence can be improved, and meanwhile, the characteristic two-dimensional codes on the articles are used as unique identification codes of the articles to distinguish the uniqueness and uniqueness of the articles.
Referring to fig. 8, the same parts are not described in detail with respect to the previous embodiment. The invention provides another embodiment of an article identification system 1000 based on two-dimensional codes, which adds an encryption sub-module 1123 to the previous embodiment, and comprises: the encryption sub-module 1123 is in communication connection with the control sub-module 1122 and the generation sub-module 1124 respectively;
the encryption submodule 1123 encrypts the characteristic information character string according to the preset encryption algorithm;
specifically, in this embodiment, the encryption algorithm includes any one or more of internationally and/or domestically recognized encryption algorithms. The encryption algorithm may be an SM series algorithm issued by the national crypto authority, or an internationally recognized algorithm such as RSA and AES. In order to ensure the security of the item identification number, the encryption algorithm used is not limited to a single key (the single key refers to generating a key according to a symmetric algorithm), or a public key mechanism, or implemented using a hash function, according to the actual requirements (such as security requirements, convenience of parsing, etc.). The security of the anti-counterfeiting technology can be greatly improved, and the rights and interests of original producers and consumers are guaranteed. By means of the internationally or domestically approved encryption algorithm, various natural or social attributes of the articles with typical meanings are used as encryption elements to form the two-dimensional code.
Referring to fig. 9, the present invention provides an embodiment of an article identification system 2000 based on a two-dimensional code, including: a scanning device 2100 and at least one object to be scanned; the scanning device 2100 includes a scanning module 2110 and a parsing module 2120; the scanning module 2110 is in communication connection with the analyzing module 2120;
the scanning module 2110 is used for scanning the two-dimensional code on the article and judging whether the two-dimensional code is a characteristic two-dimensional code;
the analysis module 2120 outputs the failure to identify the article and quits the scanning and identifying process when the two-dimensional code is not the characteristic two-dimensional code;
the analyzing module 2120 is configured to analyze the acquired characteristic two-dimensional code according to the generation rule to obtain analyzed article information when the two-dimensional code is the characteristic two-dimensional code; or,
the analyzing module 2120 further determines whether the analyzed article information is consistent with article information contained in the characteristic two-dimensional code database;
when the scanned article information is consistent with the preset article information, outputting that the scanned article information is consistent with the preset article information;
when the scanned article information is inconsistent with the preset article information, outputting that the scanned article information is inconsistent with the preset article information;
specifically, in this embodiment, the generation rule includes a composition rule and/or an encryption algorithm; the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte; the encryption algorithm comprises any one or more of internationally and/or domestically approved encryption algorithms; the article characteristic information comprises natural attribute information and/or social attribute information of the article to be identified. The method for identifying the article is an inverse process of the above identification method, and the generation rules of the two methods are consistent, that is, the composition rule and the encryption algorithm are consistent, so that when a user identifies the article by using the article characteristic two-dimensional code, performs quality inspection or after the user is put into the market, and the user needs to identify the article, the characteristic two-dimensional code on the article is scanned, and then the obtained characteristic two-dimensional code is analyzed according to the generation rules to obtain analyzed article information, for example, the scanned article characteristic information can be obtained by relatively simple scanning.
In this embodiment, the analyzed article information obtained based on the scanned characteristic two-dimensional code is judged with the article characteristic information of the stored characteristic two-dimensional code, and after a judgment result is obtained, whether the scanned article is consistent with the article information in the two-dimensional code database or not can be known. For example, if we scan the two-dimensional code of the apple on the computer and do not connect the network to access the official database, we can only obtain that the computer is the apple computer, but cannot know whether the apple computer is a genuine product or not, and the apple computer may be a high-imitation product. The invention can greatly improve the security of the anti-counterfeiting technology and ensure the rights and interests of original producers and consumers.
Referring to fig. 10, the present invention provides an example of an article identification method based on a two-dimensional code, including
Firstly, establishing a composition rule module or system of the two-dimension code;
secondly, recording the composition rule of the two-dimension code;
thirdly, inputting article related information;
fourthly, applying for encryption;
fifthly, encrypting;
sixthly, requesting to generate a two-dimensional code;
seventhly, generating a two-dimensional code;
eighthly, applying for coding;
and ninthly, assigning codes to the articles.
And submitting the generated two-dimensional code to a code assigning system, and assigning the two-dimensional code to the article by the code assigning system by utilizing various available effective safety means, namely establishing the one-to-one correspondence relationship between the two-dimensional code and the article. The final purpose of using effective safety means is to ensure the uniqueness relation between the two-dimensional code and the article and prevent the repeated use of the two-dimensional code.
Specifically, in this example, a composition rule module or system of the two-dimensional code is established. The composition rule of the two-dimensional code comprises the steps of setting the length of the two-dimensional code and designing and defining each byte bit of the two-dimensional code. A natural attribute or a social attribute that an article has a typical meaning should be included in the two-dimensional code. The nature and social attributes of an article include, but are not limited to, the name of the raw materials that make up the article, the place of manufacture, the manufacturer, the lot, the date of manufacture, the shape, the color, the weight, the odor, and the like. The purpose of record is to ensure that the composition rule of the two-dimensional code conforms to the established design specification and ensure the uniqueness of the two-dimensional code. Only after the successful filing, the two-dimensional code becomes a regular component or system, and the system can be put into use. An encryption engine or encryption tool is constructed using a nationally or internationally recognized encryption algorithm. The encryption algorithm may be an SM series algorithm issued by the national crypto authority, or an internationally recognized algorithm such as RSA and AES. In order to ensure the security of the item identification number, the encryption algorithm used is not limited to a single key or a public key mechanism or a hash function according to the actual requirements (such as security requirements, convenience of parsing, etc.). And generating the two-dimensional code of the article according to the rule. And submitting the generated two-dimensional code to a code assigning system, and assigning the two-dimensional code to the article by the code assigning system by utilizing various available effective safety means, namely establishing the one-to-one correspondence relationship between the two-dimensional code and the article. The final purpose of using effective safety means is to ensure the uniqueness relation between the two-dimensional code and the article and prevent the repeated use of the two-dimensional code.
In this example, the length of the two-dimensional code can be customized, and the key is to be able to record successfully. The length of the two-dimensional code depends on the parsing efficiency of the code scanning device, wherein one two-dimensional code can accommodate as many as 1850 capital letters, 2710 digits, 1108 bytes, or more than 500 Chinese characters, but these indexes are greatly improved with the progress of the code scanning device.
For example: the two-dimensional code length is 256 bits, and is divided into two parts: the manufacturer self-defining and the signature are formed. The manufacturer defined 128bit is divided into:
1-8 bit: province codes are divided according to administrative regions;
9-12 bits: a two-dimensional code version code; 16 versions
13-20 bits: production plant code: 256 manuids;
21-36 bits: and (3) commodity code: commodity code, 65536
37-44 bits: product brand representation, 256 brands;
45-48: key version information; 16, the number of the channels is 16;
49-52 bits: package, strip, box information, 0000: packaging; 0001: (ii) a strip; 0010: box, 16 metering modes;
53-76 bits: manufacturing Time, utc Time format (BD Time), accurate to seconds; time origin: 2015-01-0100: 00: 00; (136 years data can be recorded)
77-84: batch information, etc., 256 batches;
and finally, 85-128 bits: the serial number is a two-dimensional code serial number (Sequence No.), and the serial number is unique to the same manufacturer ID identification;
129-256 bits: the first 128 bits are intercepted and encrypted by the root key, and the SM4 algorithm is adopted.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (3)
1. An article identification method based on two-dimensional codes is characterized by comprising the steps of S100, inputting characteristic information of an article to be identified;
s200, generating a characteristic two-dimensional code according to the characteristic information and a preset generation rule;
s300, identifying the generated characteristic two-dimensional codes on the articles to be identified according to a one-to-one corresponding relation;
the step S100 comprises the step S010 of presetting the generation rule and storing the preset generation rule; wherein the generation rule comprises a composition rule and/or an encryption algorithm; the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte;
the S200 further includes:
s210, acquiring the characteristic information, wherein the characteristic information comprises natural attribute information and/or social attribute information of the article to be identified;
s220, generating a characteristic information character string according to the characteristic information and the preset generation rule;
s230, judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code; if yes, executing S240, otherwise, directly executing S250;
s240, deleting the characters of the characteristic information character string according to a preset deleting method; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code;
s250, storing the characteristic information character string;
s260, encrypting the characteristic information character string according to a preset encryption algorithm;
s270, generating the characteristic two-dimensional code from the characteristic information character string according to the generation rule and storing the characteristic two-dimensional code;
the preset deleting method is to delete characters with large capacity in turn according to the sequence of the character capacity from large to small according to a program script, or delete characters with small capacity in turn according to the sequence of the character capacity from small to large, or delete characters from high order to low order in turn according to the sequence of character strings, or delete characters from low order to high order in turn according to the sequence of the character strings, or delete characters according to the importance degree of characteristic information;
the preset encryption algorithm is SM series algorithm, RSA or AES.
2. The article identification method based on two-dimensional code according to claim 1, wherein said S300 comprises:
s310, judging whether the characteristic two-dimensional code is used or not according to the characteristic two-dimensional code; if yes, executing S320, otherwise executing S330;
s320, storing the characteristic two-dimensional code into a used two-dimensional code database; and returning to S200;
s330, the generated characteristic two-dimensional codes are marked on the articles to be marked according to the one-to-one correspondence relationship.
3. An article identification system based on two-dimensional codes, comprising: the device comprises a two-dimensional code generating device and at least one article to be identified; the two-dimensional code generating device is in communication connection with the article to be identified; the two-dimensional code generating device comprises an acquisition module, a generating module and a control module;
the generating module is respectively in communication connection with the acquiring module and the control module;
the acquisition module is used for inputting the characteristic information of the article to be identified;
the generating module is used for generating a characteristic two-dimensional code by combining a preset generating rule according to the characteristic information; the control module is used for marking the generated characteristic two-dimensional codes on the articles to be marked according to the one-to-one corresponding relation;
the two-dimensional code generating apparatus further includes: the setting module is in communication connection with the generating module;
the setting module is used for presetting the generation rule; and storing the preset generation rule; wherein the generation rule comprises a composition rule and/or an encryption algorithm;
the composition rule comprises the length of the characteristic two-dimensional code and/or the position of each byte of the characteristic two-dimensional code and/or the meaning of each byte;
the generation module comprises: the device comprises a judgment sub-module, a control sub-module, an encryption sub-module and a generation sub-module;
the control submodule is respectively in communication connection with the judgment submodule and the generation submodule;
the judging submodule acquires the characteristic information, wherein the characteristic information comprises natural attribute information and/or social attribute information of the article to be identified; generating a characteristic information character string according to the characteristic information and the preset generation rule; judging whether the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code or not;
the control submodule deletes characters of the characteristic information character string according to a preset deletion method when the length of the generated characteristic information character string is larger than the length of a preset two-dimensional code; until the length of the characteristic information character string is less than or equal to the length of the preset two-dimensional code; storing the characteristic information character string;
the control submodule stores the characteristic information character string when the length of the generated characteristic information character string is less than or equal to the length of a preset two-dimensional code;
the encryption submodule encrypts the characteristic information character string according to a preset encryption algorithm;
the generating submodule generates the characteristic two-dimensional code from the characteristic information character string according to the generating rule and stores the characteristic two-dimensional code;
the control module further comprises: a judgment submodule and a control submodule; the judgment sub-module is in communication connection with the control sub-module;
the judging submodule judges whether the characteristic two-dimensional code is used or not; the control sub-module stores the characteristic two-dimensional code into the used two-dimensional code database when the characteristic two-dimensional code is used;
the control submodule is used for marking the generated characteristic two-dimensional code on the article to be marked according to the one-to-one corresponding relation when the characteristic two-dimensional code is not used;
the preset deleting method is to delete characters with large capacity in turn according to the sequence of the character capacity from large to small according to a program script, or delete characters with small capacity in turn according to the sequence of the character capacity from small to large, or delete characters from high order to low order in turn according to the sequence of character strings, or delete characters from low order to high order in turn according to the sequence of the character strings, or delete characters according to the importance degree of characteristic information;
the preset encryption algorithm is SM series algorithm, RSA or AES.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611107057.7A CN108154208B (en) | 2016-12-06 | 2016-12-06 | Article identification method, article identification method and article identification system based on two-dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611107057.7A CN108154208B (en) | 2016-12-06 | 2016-12-06 | Article identification method, article identification method and article identification system based on two-dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108154208A CN108154208A (en) | 2018-06-12 |
CN108154208B true CN108154208B (en) | 2022-07-01 |
Family
ID=62471008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611107057.7A Active CN108154208B (en) | 2016-12-06 | 2016-12-06 | Article identification method, article identification method and article identification system based on two-dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108154208B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109214831B (en) * | 2018-08-09 | 2021-08-03 | 云智前沿科技发展(深圳)有限公司 | Hash fingerprint based on position information and DNA information, construction method and application |
CN109409452B (en) * | 2018-09-20 | 2021-12-31 | 摩尔元数(福建)科技有限公司 | Method and device for analyzing universal label and automatically generating printing label |
CN110334791A (en) * | 2019-07-12 | 2019-10-15 | 四川虹美智能科技有限公司 | A kind of identification method and device, control system and its application method of smart machine |
CN110377247B (en) * | 2019-07-24 | 2023-10-17 | 深圳市凯木金科技有限公司 | Identification processing method, identification processing device, computer equipment and computer readable storage medium |
CN112749767B (en) * | 2019-10-16 | 2024-03-05 | 北京京东乾石科技有限公司 | Article inspection method and apparatus |
CN111401491A (en) * | 2020-03-06 | 2020-07-10 | Oppo(重庆)智能科技有限公司 | Component control method and device, storage medium and terminal |
CN111639724A (en) * | 2020-04-07 | 2020-09-08 | 上海智畔智能科技有限公司 | Article identification method based on machine vision |
CN111914297A (en) * | 2020-08-10 | 2020-11-10 | 国网电子商务有限公司 | Object identification information management method and related equipment |
CN114239618A (en) * | 2021-11-24 | 2022-03-25 | 浙江中控技术股份有限公司 | Goods fleeing prevention method, system, equipment and medium in industrial control industry |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020684A (en) * | 2012-12-07 | 2013-04-03 | 北京印刷学院 | Anti-counterfeiting device, anti-counterfeiting recognition device and system for commodity packaging |
CN103034884A (en) * | 2012-12-07 | 2013-04-10 | 北京印刷学院 | Commodity packaging anti-fake device and device and system for anti-fake recognition with built-in secret key |
CN103246863A (en) * | 2013-04-02 | 2013-08-14 | 包晗 | Identifying system and identifying method for interactive anti-counterfeiting based on identifying codes |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9292717B2 (en) * | 2010-12-16 | 2016-03-22 | Peter Malcolm Moran | Apparatus for forming and reading an identification feature and method thereof |
US9628270B2 (en) * | 2014-09-09 | 2017-04-18 | Microsoft Technology Licensing, Llc | Cryptographically-verifiable attestation label |
-
2016
- 2016-12-06 CN CN201611107057.7A patent/CN108154208B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020684A (en) * | 2012-12-07 | 2013-04-03 | 北京印刷学院 | Anti-counterfeiting device, anti-counterfeiting recognition device and system for commodity packaging |
CN103034884A (en) * | 2012-12-07 | 2013-04-10 | 北京印刷学院 | Commodity packaging anti-fake device and device and system for anti-fake recognition with built-in secret key |
CN103246863A (en) * | 2013-04-02 | 2013-08-14 | 包晗 | Identifying system and identifying method for interactive anti-counterfeiting based on identifying codes |
Also Published As
Publication number | Publication date |
---|---|
CN108154208A (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108154208B (en) | Article identification method, article identification method and article identification system based on two-dimensional code | |
CN107194449B (en) | Printing anti-counterfeiting and information tracing method based on combination of digital watermark and two-dimensional code | |
US9076024B2 (en) | Anti-counterfeiting system and method | |
CN111639734B (en) | Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code | |
CN103646331B (en) | Wine anti-counterfeit source tracing method based on enciphered bar code mark | |
CN103281386B (en) | A kind ofly provide the method for safeguard protection for article mark and analysis service thereof | |
CN104766111B (en) | Combined anti-fake mark and generation method based on the same ID and device | |
CN107038594A (en) | A kind of commodity counterfeit prevention traceability system based on two-dimensional bar code | |
CN105550891A (en) | Product anti-fake source tracing method and system | |
CN105447546A (en) | Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor | |
CN103886469A (en) | Product two-dimension code generation and query system | |
CN108416223B (en) | Information label encryption method and system based on chaos theory | |
CN105976005A (en) | Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device | |
CN104778436B (en) | The method and device distinguished to combined anti-fake | |
CN107705139A (en) | A kind of novel article anti-counterfeiting authentication method | |
US20150356803A1 (en) | Item authentication | |
CN111178477A (en) | Commodity two-dimensional code generation method | |
CN105184590A (en) | Laser on-line efficient etching and product anti-fake traceability system applied to steels | |
CN104574119B (en) | A kind of method that commodity Jianzhen traces to the source | |
CN105354606A (en) | Label formed by two-dimensional code and variable information, generating method and generating system | |
CN106022187A (en) | High-efficient O2O implementation method | |
CN108334919A (en) | A kind of product false proof verification method and its system based on Quick Response Code | |
CN106067121A (en) | A kind of product off-line false distinguishing method based on NFC technique | |
CN108960387A (en) | A kind of anti-counterfeiting two dimensional code and its generation and recognition methods | |
CN106022797A (en) | Smart device APP image recognition method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |