CN111598199A - Two-dimensional code generation method - Google Patents
Two-dimensional code generation method Download PDFInfo
- Publication number
- CN111598199A CN111598199A CN202010454448.6A CN202010454448A CN111598199A CN 111598199 A CN111598199 A CN 111598199A CN 202010454448 A CN202010454448 A CN 202010454448A CN 111598199 A CN111598199 A CN 111598199A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- subunits
- information
- initial
- generation method
- 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
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
- 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
Landscapes
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Credit Cards Or The Like (AREA)
Abstract
The invention discloses a two-dimensional code generation method, which comprises the following steps: establishing a two-dimension code identification database; acquiring original identification information; dividing the initial two-dimensional code into a plurality of subunits, coding the original identification information according to a two-dimensional code identification database to generate coding information, and storing the coding information in the subunits to generate the initial two-dimensional code; presetting a depth value for each subunit; and processing the depth of each subunit on the surface of the object according to a preset depth value to form a target two-dimensional code. Compared with the traditional two-dimension code, the anti-counterfeiting code has the characteristics of super-capacity information storage, higher anti-counterfeiting safety, alteration prevention and wear resistance, and can ensure the one-to-one relation between the two-dimension code and a product and prevent the product from being packaged.
Description
Technical Field
The invention relates to the technical field of two-dimensional codes, in particular to a two-dimensional code generation method.
Background
The traditional two-dimensional code adopts a planar two-dimensional code, one is that the traditional two-dimensional code is printed on paper and then pasted on the surface of a product, and the other is that the traditional two-dimensional code is directly printed on the surface of the product, so that the two-dimensional code is easy to drop or wear to cause loss or damage; in addition, the traditional two-dimension code has the potential safety hazard that the product is easily changed and the package is adjusted, and the one-to-one relation between the product and the two-dimension code cannot be guaranteed.
Disclosure of Invention
The present invention is directed to solve the above problems, and provides a two-dimensional code generating method, including:
s1, establishing a two-dimensional code identification database;
s2, acquiring original identification information;
s3, dividing the initial two-dimensional code into a plurality of subunits, coding the original identification information according to the two-dimensional code identification database to generate coding information, and storing the coding information in the subunits to generate the initial two-dimensional code;
s4, presetting a depth value for each sub-unit;
and S5, processing the depth of each subunit on the surface of the object according to the preset depth value to form the target two-dimensional code.
The invention has the beneficial effects that: compared with the traditional two-dimension code, the anti-counterfeiting code has the characteristics of super-capacity information storage, higher anti-counterfeiting safety, alteration prevention and wear resistance, and can ensure the one-to-one relation between the two-dimension code and a product and prevent the product from being packaged.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a schematic diagram of an initial two-dimensional code;
fig. 3 is a schematic diagram of a target two-dimensional code.
In the figure: a-a first region; b-first character rectangle box; c-a second character rectangle; 1-product surface; 2-positioning the rectangular frame; 3-positioning holes; 4-subunit rectangular frame; 5-hole.
Detailed Description
The invention will be further described with reference to the accompanying drawings in which:
as shown in fig. 1, the two-dimensional code generation method of the present invention includes the following steps:
s1, establishing a two-dimensional code identification database;
s2, acquiring original identification information;
s3, dividing the initial two-dimensional code into a plurality of subunits, coding the original identification information according to the two-dimensional code identification database to generate coding information, and storing the coding information in the subunits to generate the initial two-dimensional code;
s4, presetting a depth value for each sub-unit;
and S5, processing the depth of each subunit on the surface of the object according to the preset depth value to form the target two-dimensional code.
Preferably, the initial two-dimensional code includes a first region and a second region; the first area is used for storing positioning identification information; the second area is used for storing the subunits. Preferably, the first area is arranged outside the second area, so that the range of the two-dimensional code can be rapidly located when the two-dimensional code is detected and read.
Preferably, the encoding information at least comprises a first encoding value and a second encoding value; the first encoded value is shown to be different from the second encoded value.
Preferably, in S4, the same depth value is set for the sub-cells having the same coding information, and different depth values are set for the sub-cells having different coding information.
Preferably, the subunit is a rectangular frame.
Preferably, the processing manner in S5 is punching or grooving.
Specifically, a two-dimension code identification database is established; acquiring product information for distinguishing a product from other products, such as an original product code, and generating a DataMatrix two-dimensional code as an initial two-dimensional code by using a computer through the original code; the DataMatrix two-dimensional code adopts M-N (M and N are both more than or equal to 8) rectangular frames with the lattice size as subunits of an initial two-dimensional code, different character information can be stored in the subunits, such as characters '1' and '0', punching is carried out in the subunit rectangular frame with the character '1', no punching is carried out in the subunit rectangular frame with the character '0', the depth value of the punched subunit rectangular frame is taken as a first depth value more than zero, the depth value of the non-punched subunit rectangular frame is taken as a second depth value equal to zero, the subunits with the first depth values and the subunits with the second depth values are jointly arranged and combined to form coding information with the characters '1' and '0', the set of all the subunits is taken as a coding area of the two-dimensional code of the invention, punched positioning rectangular frames are further arranged at the upper left part, the lower left part and the lower right part of the periphery of the coding area, positioning holes are punched in the positioning rectangular frames, the method is used for quickly identifying the range of the two-dimensional code. As shown in fig. 2, in the initial two-dimensional code, the sub-unit rectangular frame with the shaded area corresponding to the character "1" is set as the first character rectangular frame, and the sub-unit rectangular frame with the blank area corresponding to the character "0" is set as the second character rectangular frame.
The invention codes the product information into the two-dimensional code and realizes the processing of the two-dimensional code on the product by controlling the depth of the punching. In the process of reading and verifying, the character data of the subunit codes are judged by identifying the depth of the open holes of the rectangular frame of the two-dimensional code subunit or detecting whether the subunit opens the holes, so that the initial two-dimensional code is generated, and the original product code information is obtained by reading the initial two-dimensional code information.
The two-dimensional code generation method has the characteristics of storing ultra-large capacity information and higher safety; the two-dimensional code has strong error correction capability, and even if the surface of a product is partially worn, original information can be accurately decoded; compared with the traditional two-dimension code, the two-dimension code has the characteristics of altering prevention and low possibility of abrasion, and in addition, the one-to-one relation between the two-dimension code and a product can be ensured, so that the product is prevented from being turned and wrapped.
The technical solution of the present invention is not limited to the limitations of the above specific embodiments, and all technical modifications made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims (6)
1. A two-dimensional code generation method is characterized by comprising the following steps:
s1, establishing a two-dimensional code identification database;
s2, acquiring original identification information;
s3, dividing the initial two-dimensional code into a plurality of subunits, coding the original identification information according to the two-dimensional code identification database to generate coding information, and storing the coding information in the subunits to generate the initial two-dimensional code;
s4, presetting a depth value for each sub-unit;
and S5, processing the depth of each subunit on the surface of the object according to the preset depth value to form the target two-dimensional code.
2. A two-dimension code generation method is characterized in that the initial two-dimension code comprises a first area and a second area; the first area is used for storing positioning identification information; the second area is used for storing the subunits.
3. The method according to claim 1, wherein the encoded information at least includes a first encoded value and a second encoded value; the first encoded value is shown to be different from the second encoded value.
4. The method of claim 1, wherein in step S4, the same depth value is set for subunits having the same encoding information, and different depth values are set for subunits having different encoding information.
5. The two-dimensional code generation method according to claim 1, wherein the sub-unit is a rectangular frame.
6. The two-dimensional code generation method according to claim 1, wherein the processing in S5 is punching or grooving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010454448.6A CN111598199A (en) | 2020-05-26 | 2020-05-26 | Two-dimensional code generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010454448.6A CN111598199A (en) | 2020-05-26 | 2020-05-26 | Two-dimensional code generation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111598199A true CN111598199A (en) | 2020-08-28 |
Family
ID=72181374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010454448.6A Pending CN111598199A (en) | 2020-05-26 | 2020-05-26 | Two-dimensional code generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111598199A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113807479A (en) * | 2021-08-11 | 2021-12-17 | 深圳市升达康科技有限公司 | PCB tracing method, PCB tracing identification method and PCB |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325075A (en) * | 2012-11-22 | 2013-09-25 | 长沙建研信息技术有限公司 | Concrete test block locating method based on two-dimensional bar codes |
CN106056268A (en) * | 2016-05-17 | 2016-10-26 | 北京诺士诚国际工程项目管理有限公司 | Engineering project management cloud platform system based on material tracking |
CN206292835U (en) * | 2016-08-26 | 2017-06-30 | 广州一洲信息技术有限公司 | A kind of device for identifying concrete test block |
CN107992917A (en) * | 2017-12-13 | 2018-05-04 | 广东正业科技股份有限公司 | A kind of quality retroactive method of efficient multi-layer PCB |
CN108073966A (en) * | 2017-12-13 | 2018-05-25 | 广东正业科技股份有限公司 | A kind of conversion method of Quick Response Code and hole horizontal and vertical parity check code |
CN108710932A (en) * | 2018-05-21 | 2018-10-26 | 周冰 | A kind of two-dimensional code generation method, device and electronic equipment |
CN109389001A (en) * | 2018-12-21 | 2019-02-26 | 长安大学 | It is a kind of based on two dimensional code and the anti-fake concrete sample witness sampling system and method for image recognition |
CN109543803A (en) * | 2018-11-23 | 2019-03-29 | 上海好想法网络科技有限公司 | The coded system and decoding system of editable primary-secondary type color two dimensional code |
CN110517051A (en) * | 2019-08-26 | 2019-11-29 | 北京太和互邦科技有限公司 | A kind of two dimension code generation method, coding/decoding method, two dimensional code and readable storage medium storing program for executing |
CN110645873A (en) * | 2019-09-12 | 2020-01-03 | 珠海新华通软件股份有限公司 | Anti-counterfeiting card for on-site evidence-finding sampling implantation of concrete and verification method thereof |
CN110796221A (en) * | 2019-10-18 | 2020-02-14 | 周晓明 | Anti-counterfeit label generation method, anti-counterfeit label verification method and system and anti-counterfeit label |
-
2020
- 2020-05-26 CN CN202010454448.6A patent/CN111598199A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325075A (en) * | 2012-11-22 | 2013-09-25 | 长沙建研信息技术有限公司 | Concrete test block locating method based on two-dimensional bar codes |
CN106056268A (en) * | 2016-05-17 | 2016-10-26 | 北京诺士诚国际工程项目管理有限公司 | Engineering project management cloud platform system based on material tracking |
CN206292835U (en) * | 2016-08-26 | 2017-06-30 | 广州一洲信息技术有限公司 | A kind of device for identifying concrete test block |
CN107992917A (en) * | 2017-12-13 | 2018-05-04 | 广东正业科技股份有限公司 | A kind of quality retroactive method of efficient multi-layer PCB |
CN108073966A (en) * | 2017-12-13 | 2018-05-25 | 广东正业科技股份有限公司 | A kind of conversion method of Quick Response Code and hole horizontal and vertical parity check code |
CN108710932A (en) * | 2018-05-21 | 2018-10-26 | 周冰 | A kind of two-dimensional code generation method, device and electronic equipment |
CN109543803A (en) * | 2018-11-23 | 2019-03-29 | 上海好想法网络科技有限公司 | The coded system and decoding system of editable primary-secondary type color two dimensional code |
CN109389001A (en) * | 2018-12-21 | 2019-02-26 | 长安大学 | It is a kind of based on two dimensional code and the anti-fake concrete sample witness sampling system and method for image recognition |
CN110517051A (en) * | 2019-08-26 | 2019-11-29 | 北京太和互邦科技有限公司 | A kind of two dimension code generation method, coding/decoding method, two dimensional code and readable storage medium storing program for executing |
CN110645873A (en) * | 2019-09-12 | 2020-01-03 | 珠海新华通软件股份有限公司 | Anti-counterfeiting card for on-site evidence-finding sampling implantation of concrete and verification method thereof |
CN110796221A (en) * | 2019-10-18 | 2020-02-14 | 周晓明 | Anti-counterfeit label generation method, anti-counterfeit label verification method and system and anti-counterfeit label |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113807479A (en) * | 2021-08-11 | 2021-12-17 | 深圳市升达康科技有限公司 | PCB tracing method, PCB tracing identification method and PCB |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20040257203A1 (en) | Data encoding in radio frequency identification transponders | |
US5764774A (en) | Source data compression and decompression in code symbol printing and decoding | |
WO2017044777A1 (en) | Generating and decoding two-dimensional code | |
US20090255992A1 (en) | System for Synthesizing a Two Dimensional Code and a Logo and the Method Thereof | |
CN111539502B (en) | Anti-counterfeiting two-dimensional code generation method and device, server and storage medium | |
CN106096488B (en) | A kind of recognition methods of horizontal and vertical parity check code | |
GB2446299A (en) | Two part code | |
CN111598199A (en) | Two-dimensional code generation method | |
WO2005109327A2 (en) | Methods for encoding and decoding information | |
CN105894065A (en) | RF electronic tag associated with encrypted two-dimensional code, and identify authentication system and method thereof | |
WO2016206446A1 (en) | Character encoding method and character decoding method having error correction function and product thereof | |
CN103377390A (en) | Method and device for generating and recognizing two-dimension code | |
CN108073966A (en) | A kind of conversion method of Quick Response Code and hole horizontal and vertical parity check code | |
CN106934639A (en) | A kind of false proof retroactive method of paper diaper based on RFID and Quick Response Code | |
AU2017380263B2 (en) | Method for detecting and recognising long-range high-density visual markers | |
CN101957929A (en) | Method for identifying object on basis of two-dimensional lattice code | |
CN109690575B (en) | Sheet product and method for authenticating a security tag | |
JP4460903B2 (en) | ID mark recognition method for semiconductor wafer | |
CN110991589A (en) | Two-dimensional code and encryption method thereof | |
CN108734048A (en) | Various dimensions Quick Response Code based on proprietary code generates and interpretation method | |
CN103824102B (en) | A kind of two-dimension code anti-counterfeit encryption method | |
CN110555492B (en) | Preparation method of high-imitation micro-display two-dimensional code | |
CN114997350A (en) | Method and system for identifying authenticity of article | |
CN111598200A (en) | Two-dimensional code generation method based on photochromic material | |
CN111597855A (en) | Concrete identification method based on two-dimensional code |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200828 |