CN105550730B - Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier - Google Patents

Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier Download PDF

Info

Publication number
CN105550730B
CN105550730B CN201610060527.2A CN201610060527A CN105550730B CN 105550730 B CN105550730 B CN 105550730B CN 201610060527 A CN201610060527 A CN 201610060527A CN 105550730 B CN105550730 B CN 105550730B
Authority
CN
China
Prior art keywords
quick response
response code
microdot
dimension
white
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610060527.2A
Other languages
Chinese (zh)
Other versions
CN105550730A (en
Inventor
周晓明
曹鹏
王敬
于丽芳
牟大中
董智红
冯柳平
罗文秋
陈建博
李沐明
祖艳娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING PAN-PASS INFO TECH Co Ltd
Original Assignee
BEIJING PAN-PASS INFO TECH Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING PAN-PASS INFO TECH Co Ltd filed Critical BEIJING PAN-PASS INFO TECH Co Ltd
Priority to CN201610060527.2A priority Critical patent/CN105550730B/en
Publication of CN105550730A publication Critical patent/CN105550730A/en
Application granted granted Critical
Publication of CN105550730B publication Critical patent/CN105550730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06037Record 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06046Constructional details
    • G06K19/06056Constructional details the marking comprising a further embedded marking, e.g. a 1D bar code with the black bars containing a smaller sized coding

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention discloses a safe two-dimensional code manufacture method and decoding method, and a safe two-dimensional code identifier. The safe two-dimensional code manufacture method comprises the following steps: according to a two-dimensional code coding rule, obtaining a data storage area of a two-dimensional code, implanting a plurality of black and white microdots and a structure, which is formed by the relative positions of the microdots, of the black and white microdots into the data storage area, wherein the black and white microdots and the structure represent implanted information; and implanting the black and white microdots and the structure into the storage area of the two-dimensional code to form a safe two-dimensional code. The scheme solves the defects of low safety, replicability and the like of the common two-dimensional code. The safe two-dimensional code provided by the invention and a safe two-dimensional code identifier which uses the safe two-dimensional code can be widely applied to various information service systems including intellectual property protection, object authentication, anti-counterfeiting traceability and the like.

Description

A kind of safe Quick Response Code preparation method, coding/decoding method and safe Quick Response Code mark
Technical field
The present invention relates to two-dimension code safe technical field, more particularly to a kind of safe Quick Response Code preparation method, decoding side Method and safe Quick Response Code mark.
Background technology
With the popularization and application of planar bar code technology, it is used as the mark of commodity by Quick Response Code, or by scanning two dimension Code is very universal come the application to distinguish true from false, although existing ordinary two dimensional code is capable of identify that a certain commodity, or Person reviews the merchandise news of this Quick Response Code behind, but this ordinary two dimensional code is easily replicated and copys, and therefore, security is relatively Low.
Content of the invention
A kind of safe Quick Response Code preparation method, coding/decoding method and safe Quick Response Code mark is provided in the embodiment of the present invention, Low to solve the problems, such as two-dimension code safe of the prior art.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
A kind of safe Quick Response Code preparation method, methods described includes:
Obtain the data storage areas of Quick Response Code;
In the module of composition Quick Response Code coding in described data storage areas, configure black microdot and its by relative position The structure of composition, and white microdot and its structure being made up of relative position;
The structure be made up of described black microdot and its relative position, and white microdot and its be made up of relative position Structure is implanted on the data storage areas of described Quick Response Code, forms safe Quick Response Code.
Preferably, the module of described Quick Response Code coding includes at least one black module and at least one white module;
Described configuration black microdot and its structure that is made up of relative position, and white microdot and its be made up of relative position Structure, including:
Described white microdot and its structure being made up of relative position are configured on each described black module, and, every The structure configuring described black microdot and its being made up of relative position in individual described white module, wherein, described white microdot Size is less than the size of described black module, and the size of described black microdot is less than the size of described white module.
Preferably, described white microdot and its structure being made up of relative position are configured on each described black module, With, described black microdot and its structure being made up of relative position are configured on each described white module, including:
Obtain implantation information, wherein, described implantation information includes third dimension text message;
Described implantation information is converted to third dimension implantation information coding;
Choose described third dimension implantation information coding, the structure be made up of with black microdot and its relative position, and white Microdot and its mapping ruler corresponding to structure being made up of relative position;
Described white microdot is configured and its by relative position group in each described black module according to described mapping ruler The structure becoming, and, described black microdot and its structure being made up of relative position are configured on each described white module.
Preferably, also include after described implantation information being converted to third dimension implantation information coding:
Described third dimension implantation information coding is encrypted;
Choose and implant the corresponding mapping ruler of information coding with the third dimension after described encryption;
The mapping ruler corresponding to information coding is implanted with the third dimension after encryption described in storage.
Preferably, the described data storage areas obtaining Quick Response Code include:
Obtain the coding rule of any one Quick Response Code;
Obtain the data storage areas of this Quick Response Code according to the coding rule of described Quick Response Code, wherein, described data storage Region is used for storing user data.
A kind of safe Quick Response Code coding/decoding method, methods described includes:
Safe Quick Response Code is carried out separate, obtain and the black microdot corresponding to described safe Quick Response Code and its by relative position Put the structure of composition, and white microdot and its structure being made up of relative position;
The structure be made up of to described black microdot and its relative position, and described white microdot and its by relative position group The structure becoming is parsed, and obtains mapping ruler;
According to described mapping ruler by described black microdot and its structure that is made up of relative position, and white microdot and its Third dimension implantation information coding is converted to by the structure that relative position forms;
Information coding is implanted according to the described third dimension and obtains the third dimension literary composition implanted with this third dimension corresponding to information coding This information.
Preferably, obtain the third dimension text message implanted corresponding to information coding with this third dimension to include:
Described third dimension implantation information coding is verified, rejects mistake, or reduction is compensated to missing information, Generate third dimension implantation message code;
Parse described third dimension implantation message code, obtain described third dimension text message.
Preferably, methods described also includes:
Judge whether a Quick Response Code is safe Quick Response Code;
If carrying out to described Quick Response Code separating, can obtain and the black microdot corresponding to described Quick Response Code and its by phase Structure to position composition, and white microdot and its structure being made up of relative position, and meet mapping ruler, then this two dimension Code is safe Quick Response Code.
Preferably, methods described also includes:
Judge whether described safe Quick Response Code is true;
If the information phase of described third dimension text message and the ordinary two dimensional code separated from described safe Quick Response Code Coupling, then described safe Quick Response Code is true;Otherwise, described safe Quick Response Code is false.
A kind of safe Quick Response Code mark, described safe Quick Response Code mark includes:Safe Quick Response Code and printing mark, wherein, Described safe Quick Response Code is printed on described printing mark.
From above technical scheme, a kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, common Configuration black, white microdot and its structure being made up of relative position on the data storage areas of Quick Response Code, and by these microdots And its structure is implanted on the data storage areas of Quick Response Code, form safe Quick Response Code.This safe Quick Response Code modulates information, In Image Coding, printout and IMAQ, information demodulation information extraction, the modulation of Application of composite present information and letter Breath coding, information security and the multinomial advanced technology such as digital code anti-false, halftoning vector screening are it is achieved that Quick Response Code memory space Dimension extends, and completely compatible original ordinary two dimensional code, solves ordinary two dimensional code and does not have security and anti-copying etc. and lacks Fall into, can be widely applied to intellectual property protection, article authentication, false proof that much information service system such as trace to the source.
Additionally, present invention also offers a kind of safe Quick Response Code coding/decoding method, by conciliating to the separation of safe Quick Response Code Analysis, is obtained the third dimension text message of its representative, and then is judged the true and false of safe Quick Response Code by this third dimension text message.By Contain third dimension text message in safe Quick Response Code, text information is to be translated by special third dimension implantation information coding Become, therefore, will not obtain, because of the mode such as duplication or scanning, the third dimension text message that safe Quick Response Code is hidden, and then compare The security of ordinary two dimensional code and antifalsification are higher.
Present invention also offers a kind of safe Quick Response Code mark, by having the safe Quick Response Code of implantation message identification It is arranged on printing mark, form safe Quick Response Code mark so that this safe Quick Response Code mark can be pasted or be applied many Plant in information service system.Additionally, unique mark or the trade mark of user also can be added on this safe Quick Response Code mark, enter one Improve to step application and the antifalsification of safe Quick Response Code.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of flow chart of safe Quick Response Code preparation method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another kind of safe Quick Response Code preparation method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another safe Quick Response Code preparation method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of safe Quick Response Code coding/decoding method provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another kind of safe Quick Response Code coding/decoding method provided in an embodiment of the present invention;
Fig. 6 is the flow chart of another safe Quick Response Code coding/decoding method provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of safe Quick Response Code provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of safe Quick Response Code mark provided in an embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, real below in conjunction with the present invention Apply the accompanying drawing in example, the enforcement it is clear that described is clearly and completely described to the technical scheme in the embodiment of the present invention Example is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under the premise of not making creative work, all should belong to present invention protection Scope.
Below in conjunction with Fig. 1 to Fig. 8 to a kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, coding/decoding method And safe Quick Response Code mark is specifically described.
Referring to Fig. 1, it is a kind of flow chart of safe Quick Response Code preparation method provided in an embodiment of the present invention, concrete the method Including:
Step S110:Obtain the data storage areas of Quick Response Code.
Wherein, the data storage areas obtaining Quick Response Code are specially:First obtain the Quick Response Code of any one, according to this two dimension The coding rule of code obtains the data storage areas of this Quick Response Code, such as by the specification lookup to Quick Response Code, or pass through Scanning device scanning obtains the coding rule of this Quick Response Code.Wherein, described data storage areas are except location information, system information User data storage region in addition.Taking QR code as a example, region beyond 3 postings, version information and format information, use In the region of storage user data, these regions are data storage areas.
Wherein, represent a coding in described every group white microdot or black microdot and its structure, all described whites are micro- The code set of point or black microdot and its structure represents implantation information.
Step S120:In described data storage areas composition Quick Response Code coding module on, configuration black microdot and its The structure being made up of relative position, and white microdot and its structure being made up of relative position.
Normally, size identical little module is regularly arranged forms by several for Quick Response Code, and each lattice Gray scale is different, presents two kinds of colors of black and white.At least one black module is included in the module of described Quick Response Code coding With at least one white module;
Step S120 specifically includes:Described white microdot is configured on each described black module and its by relative position group The structure becoming, and, described black microdot and its structure being made up of relative position are configured on each described white module, its In, the size of described white microdot is less than the size of described black module, and the size of described black microdot is less than described white mould The size of block.
In the module of composition Quick Response Code coding in described data storage areas, configuration or embedding on the position of black little module Enter the white microdot with certain structure distribution, that is, configure white microdot and its structure being made up of white microdot, and, in white Configure on the position of little module or the embedded black microdot with certain structure distribution, that is, configure black microdot and its have black micro- The structure of point composition.
Microdot on several wherein adjacent little modules forms a coding unit, and this coding unit represents the letter of implantation Breath, and, in coding unit, the quantity of microdot and position can assume various permutation and combination, every kind of permutation and combination, can represent one Basic symbol, such as numeral, character etc., a series of units then can represent a character string or information.
Additionally, the present invention is in described other codings except configuration or embedded black and white microdot and structure on Free Region, example As, symbol, the mark such as geometry falls within the range of the present invention protected.
Step S130:The structure be made up of described black microdot and its relative position, with white microdot and its by relative The structure of position composition is implanted on the data storage areas of described Quick Response Code, forms safe Quick Response Code.
Specifically, by orthogonal (or halftoning) modulation technique, and I, Q orthogonal modulation technique, image in 2 D code is carried out Halftoning orthogonal vector is modulated, and realizes modulates information and vast capacity modulates information.Implantable in ordinary two dimensional code be equivalent to The data of its 10 to 1000 times of two-dimensional code data total amount, to form safe Quick Response Code, as shown in Figure 7.
As shown in Fig. 2 in a preferred embodiment, in above-mentioned steps S120:Group in described data storage areas Become in the module of Quick Response Code coding, configuration black microdot and its structure that is made up of relative position, and white microdot and its by phase The structure of position composition is specifically included:
Step S121:Obtain implantation information, wherein, described implantation information is third dimension text message.This third dimension text Data storage areas in the corresponding ordinary two dimensional code of information or third dimension information space, this third dimension text message can record two The identity informations such as the fingerprint of dimension code publisher, watermark, the information that ordinary two dimensional code is issued carries out authenticity annotation, stops him People copies, so that ordinary two dimensional code becomes safe Quick Response Code.
Step S122:Described implantation information is converted to third dimension implantation information coding.Being typically implanted message identification is literary composition Word or character string, this word or character string are converted to the message code of N number of 1 or 0 expression, so that this implantation information is planted Enter or be embedded in ordinary two dimensional code.
Step S123:Choose described third dimension implantation information coding, the knot be made up of with black microdot and its relative position Structure, and white microdot and its mapping ruler corresponding to structure being made up of relative position.
For example, the coding table of comparisons stores multigroup black microdot and its structure being made up of black microdot, and, white Microdot and the structure being made up of white microdot.Every kind of mapping ruler represents the quantity of one group of white microdot and its by white microdot The structure of distribution composition, and black microdot quantity and its by the black microdot structure that forms of distribution.
For ensureing the uniqueness of safe Quick Response Code, in the safe Quick Response Code generating every time, black microdot and white microdot are little In module, mapping ruler respectively and quantity are different from, but in same safe Quick Response Code, in all little modules, black is micro- The distribution rule of point and quantity are identicals, and the corresponding all white microdots and its structure being made up of white microdot, in little mould In block, rule respectively and quantity are also identical.
Step S124:Described white microdot is configured and its by phase in each described black module according to described mapping ruler Structure to position composition, and, described black microdot is configured on each described white module and its is made up of relative position Structure.In step S123, choose the current black microdot in the little module in data storage areas, and the reflecting of white microdot After penetrating rule and quantity, black microdot and white microdot are respectively configured or are implanted on each self-corresponding little module.Now, Complete black microdot to be implanted and the making of white microdot.Afterwards, execute abovementioned steps S130, by black microdot and its by The structure of relative position composition, and white microdot and its structure being made up of relative position be implanted to the data of described Quick Response Code and deposit Step on storage area domain, to form safe Quick Response Code.
Additionally, being security and the antifalsification being further ensured that implantation information, in above-mentioned steps S122:By described implantation letter Breath also includes after being converted to third dimension implantation information coding:
Step S1221:Described third dimension implantation information coding is encrypted.For example, by special algorithm pair Third dimension implantation information coding is encrypted.It should be noted that generally, third dimension space encoding is typically unjust Open, therefore can carry out multi-enciphering, and then can achieve the information privacy under naked state and safety.
Step S1222:Choose and implant the corresponding mapping ruler of information coding with the third dimension after described encryption.Can be concrete Ground, can be chosen by computer random, or be manually set the mapping ruler of current safety Quick Response Code, and according to this locating rule Third dimension implantation information coding after encryption is carried out black color dots position and the configuration of white point position, that is, chooses one group of black microdot Quantity and the structure being made up of these black microdots, and the quantity of white microdot and the knot being made up of these white microdots Structure.
Step S1223:Implant corresponding to information coding with the third dimension after encryption described in computer or system storage Mapping ruler, in order to searching or parsing the third dimension implantation information coding of current safety Quick Response Code, to obtain implantation information.
In the present embodiment, it is encrypted by the third dimension is implanted with information coding, increased implantation information coding Complexity, further increases deciphering or the difficulty of decoding information coding, improves antifalsification and the security of safe Quick Response Code.
Additionally, in above-mentioned steps S120:In the module of Quick Response Code coding, configure black microdot and its have relative position The structure of composition, and white microdot and its be made up of relative position structure when, also include:The implantation information of pre- implantation is carried out Redundancy is processed.
It is specially:According to the black microdot of described selection, white microdot mapping ruler on described data storage areas Configuration least one set third dimension information coding, wherein, each group of third dimension information coding by a series of black microdot or White microdot and its structure being made up of relative position are constituted.Due to ordinary two dimensional code free space (data storage areas) relatively Many, therefore, it can using methods such as verification, compensation on free space, to prevent single one group of implantation message identification from making Or during editor, mistake occurs, or there is error, lead to not identify or read the implantation message identification of safe Quick Response Code. Therefore, the free space of ordinary two dimensional code arranges redundancy, prevent single implantation message identification None- identified, and affect to pacify The identification of full Quick Response Code and use.
A kind of safe Quick Response Code preparation method provided in an embodiment of the present invention, in the data storage areas of common Quick Response Code Upper configuration black, white microdot and its structure being made up of relative position, and these microdots and its structure are implanted to Quick Response Code Data storage areas on, formed safe Quick Response Code.This safe Quick Response Code modulates information, Image Coding, printout with And in IMAQ, information demodulation information extraction, the modulation of Application of composite present information and information coding, information security and number The multinomial advanced technologies such as false proof, the halftoning vector screening of code are it is achieved that the dimension of Quick Response Code memory space extends and completely compatible Original ordinary two dimensional code, solves ordinary two dimensional code and does not have the defect such as security and anti-copying, can be widely applied to knowledge Property right protection, article authentication, false proof that much information service system such as trace to the source.
In a specific embodiment, as shown in figure 3, being another safety two dimension code system provided in an embodiment of the present invention The flow chart making method.The method is specially:
Step 201:The text message of Quick Response Code is embedded in ordinary two dimensional code () taking QR code as a example, generates ordinary two dimensional Code figure (step 202).
Step 101:Select the pre- third dimension text message implanting ordinary two dimensional code, for example, this third dimension text message Content is:" Industrial and Commercial Bank of China ".Step 102:Parameter configuration device in system or processor select or one ginseng of configuration Count in third dimension text message, the 3rd text message conversion is generated third dimension information coding (step 103), for example, configuration Configuration parameter to described third dimension text message is " 1 ", and described " Industrial and Commercial Bank of China " corresponding character is respectively " ABCDEF ", then the third dimension information generating is encoded to " 1;ABCDEF”.Step 104 is compiled to the third dimension information in step 103 Code carries out cipher key, that is, select one or more encryption rules to " 1;ABCDEF " is encrypted, the letter generating after encryption Cease for " 2UVWXYZ " (step 105);Then, execution step 106 character code conversion, for example, according to certain rule, " 2, U, V, W, X, Y, Z " is corresponding respectively to be " 01,000,001,010,011,100,101,110 " with binary coding, then by " 2UVWXYZ " The expression formula being converted to the binary numeral only comprising 0 or 1 is " 01000001010011100101110 ".Step 107, to step The character code generating in rapid 106 carries out information Error Control, that is, check whether binary expression formula is correct.If after conversion Binary number value expression correct, then execution step 108, configure mapping ruler;Otherwise re-execute step 106.In system Processor choose the mapping ruler of configuration, that is, the black color dots position of the quantity of black color dots position and current quantity is on little module Distribution rule, and the quantity of white point position and the white point position of current quantity, after the distribution rule on little module, will join The black and white microdot put and its structure being made up of relative position are implanted to Quick Response Code coding in data storage areas On little module, i.e. step 109:Frame address of cache.Wherein, step 109 is included at least one binary numeral table Reach formula " 01000001010011100101110 " to be replicated by black microdot and white microdot mapping ruler, and do redundancy Process.
Step 301:The frame address that the ordinary two dimensional code figure generating in step 202 and step 109 are generated is reflected Penetrate through halftone dot modulation, using I, Q orthogonal modulation technique, image in 2 D code carried out with halftoning orthogonal vector modulation, Generate safe Quick Response Code (step 302).That is, comprise the implicit encryption letter of " Industrial and Commercial Bank of China " in this safe Quick Response Code of generation Breath.
The present embodiment in Quick Response Code planar range, outside Quick Response Code normally represents symbol ability, using Quick Response Code Micro-space, in addition opens new free memory, i.e. the Free Region of Quick Response Code, and will implant identification information, such as produces Product coding, network access address etc. are implanted in this free memory, realize the extension to ordinary two dimensional code storage capacity, shape Become third dimension memory space, compared with for ordinary two dimensional code, improve antifalsification and security.Additionally, this safe Quick Response Code due to It is to enter edlin and configuration information in idle third dimension memory space, therefore, do not affect the recognition of former ordinary two dimensional code information.
Invention additionally discloses a kind of safe Quick Response Code coding/decoding method, corresponding to the safe Quick Response Code of one of previous embodiment Preparation method, as shown in figure 4, described coding/decoding method includes:
Step S210:Safe Quick Response Code is carried out separate, obtain with the black microdot corresponding to described safe Quick Response Code and Its structure being made up of relative position, and white microdot and its structure being made up of relative position.
Wherein, separate safe Quick Response Code and obtain ordinary two dimensional code, several black microdots and its by these black microdot groups The structure becoming, and several white microdots and its structure being made up of these white microdots.Described step S210 is swept by equipment Retouch safe Quick Response Code, differentiate that scheduling algorithm carries out separating using certain position and image definition, realize safe Quick Response Code microdot and divide Resolution collection, image rectification and information extraction, information demodulation, information inspection error correction and information decryption processing.This step and aforementioned reality Apply step S130 implantation black microdot in example, white microdot and its reciprocal by the consitutional operation of relative position.
Step S220:The structure be made up of to described black microdot and its relative position, and described white microdot and its by The structure of relative position composition is parsed, and obtains mapping ruler.According to detached black microdot, the quantity of white microdot and point Bit distribution rule, screens the mapping ruler corresponding with it, corresponding step S123 with previous embodiment of this step S220.
Step S230:According to the mapping ruler being parsed by described black microdot and its structure that is made up of relative position, The structure be made up of with white microdot and its relative position is converted to third dimension implantation information coding.By parsing black, white The mapping ruler of point position, the black microdot in safe Quick Response Code or white microdot are converted to third dimension implantation information coding, its Described in the third dimension implant information coding by a string black microdot or white microdot and its structure that is made up of relative position by Combine according to certain mapping ruler, and described third dimension implantation information coding is represented by a basic symbol, such as digital, Character etc., or represent character string etc..
Step S240:Implant information coding acquisition according to the described third dimension to implant corresponding to information coding with this third dimension Third dimension text message.
Translate described third dimension implantation information coding and obtain third dimension text message, obtain the implantation information of user.Respectively Translate each described character string, obtain and the third dimension text message corresponding to each character string described.Wherein, reflected by address Penetrate Static-state Space vector algorithm, arrange and quote version information and cipher key index information, realize to third dimension spatial information Correct acquisition, parsing and the meaning of one's words understand.
The present embodiment achieves the decoding to safe Quick Response Code by step S210 to step S240, obtains safe Quick Response Code In third dimension text message or implantation information, and can be by by the third dimension text message of deciphering and the literary composition pre-setting This information is compared, and to judge whether the information source of this safe Quick Response Code is identical with implantation text message, if two groups of phases With, then explanation is same information source, and then corresponding to the article of this safe Quick Response Code or information security, more common two Dimension code is safer and reliable.
In above-mentioned steps S240, as shown in figure 5, in step S240, information coding being implanted according to the described third dimension and obtains Implant the corresponding third dimension text message of information coding with this third dimension to include:
Step S241:Described third dimension implantation information coding is verified, rejects mistake, or missing information is carried out Compensate reduction, generate third dimension implantation message code, to guarantee this third dimension implantation information password correctly parsing Corresponding third dimension text message.Usually, can be verified by computer program or detect third dimension implantation information coding Whether correct, and detect whether third dimension implantation message code lacks, or omit.
Step S242:Parse described third dimension implantation message code, obtain described third dimension text message.
Additionally, also including in step S241:Judge whether the length of the third dimension implantation message code of current parsing surpasses Cross preset length, wherein, described preset length implants the code length of information for user.If the third dimension implantation of current parsing The length of message code exceedes code implant length, resolves into two or more characters to this third dimension implantation message code String.Usually, the third dimension implantation information coding being parsed by mapping ruler is longer, and the information of expression is more, directly parses meeting The consuming time, and easily malfunction, therefore, first third dimension implantation message code is carried out segmentation fractionation.Wherein, can be according to implantation The length of message code is split, and such as code implant length is 8, and the code more than 8 for the length is carried out according to every 8 one group Split, to improve efficiency and the accuracy of parsing coding.
In another preferred embodiment, methods described can also be used to check whether the Quick Response Code being decoded is safety Quick Response Code.Specifically step includes:
Step S211:One Quick Response Code is obtained by specific scanning device.
Step S212:Whether the Quick Response Code judging described acquisition is safe Quick Response Code;Judge in scanned Quick Response Code A common Quick Response Code, black microdot and its structure being made up of relative position whether can be isolated, and white microdot and Its structure being made up of relative position, and whether met pre- by the structure parsing these microdots and its be made up of relative position If mapping ruler.
If carrying out to described Quick Response Code separating, can obtain and the black microdot corresponding to described Quick Response Code and its by phase Structure to position composition, and white microdot and its structure being made up of relative position, and meet mapping ruler, then this two dimension Code is safe Quick Response Code.Continue executing with step S210 to step S230.Otherwise, this Quick Response Code is non-security Quick Response Code.
Additionally, also including after step S240:Judge whether described safe Quick Response Code is true.
It is specially:Judge the third dimension text message parsing and the ordinary two dimensional separated from described safe Quick Response Code Whether the information of code matches, and that is, whether third dimension text message is identical with the information being previously implanted, if the described third dimension is civilian This information is identical with implantation information in advance, then prove that described third dimension text message is identical with the issue object of implantation information. For example, the third dimension text message obtaining in safe Quick Response Code is " Industrial and Commercial Bank of China ", and implanting text message is " China Agricultural bank ", the content of text messages that both understand is different, and therefore, this interpreted safe Quick Response Code is false.If two groups of solutions The text message read is identical, then illustrate that the safe Quick Response Code of this scanning is true.
A kind of safe Quick Response Code coding/decoding method that the present embodiment provides, by the separation of safe Quick Response Code and parsing, obtaining The third dimension text message representing to it, and then the true and false of safe Quick Response Code is judged by this third dimension text message.Due to peace Third dimension text message is contained, text information is to be translated into by special third dimension implantation information coding in full Quick Response Code, because This, will not obtain, because of the mode such as duplication or scanning, the third dimension text message that safe Quick Response Code is hidden, and then than common The security of Quick Response Code and antifalsification are higher.
In a specific embodiment, as shown in fig. 6, the tool of a kind of safe Quick Response Code decoding providing for the present embodiment Body flow chart, corresponding to the safe Quick Response Code Making programme of accompanying drawing 3, the comprising the following steps that of decoding:
Step 3001:Obtain a safe Quick Response Code, wherein, in addition it is also necessary to first sentence before obtaining any one Quick Response Code Whether this Quick Response Code disconnected is safe Quick Response Code, specially:By being capable of identify that the equipment of safe Quick Response Code to any one Quick Response Code It is scanned, if can obtain that in the data storage areas of detected Quick Response Code there is certain mapping ruler after scanning Black microdot, white microdot and its structure being made up of relative position, and the mapping ruler being parsed belongs in database and deposits One kind of multiple mapping rulers of storage, then prove that the Quick Response Code of this detection is safe Quick Response Code.Then this safe Quick Response Code is entered Row separates and parses, and obtains a common Quick Response Code 2001, and carries black color dots position, the graphical information of white point bit distribution.
Step 2002:Ordinary two dimensional code is parsed, obtains the Quick Response Code text message on ordinary two dimensional code, specifically may be used By mobile phone A PP, the equipment such as scanner obtains this Quick Response Code text message.
Step 1001:Obtain by the configuration parameter of detached safe two-dimension code pattern.Wherein, described configuration parameter refers to two Black microdot and the distribution rule corresponding to white microdot in each little module of dimension code, these distribution rules can be by configuring ginseng Number obtains, and therefore, the distribution rule corresponding to black-white point is found in distribution, and quantity is so as to obtain frame address Mapping (step 1002), is generated the step 109 in safe Quick Response Code, is reflected by address in this step correspondence and an aforementioned embodiment Penetrate and can obtain a series of coded strings being made up of binary code 1/0, the coded strings that for example this obtains after step 1002 are " 01000001010011100101110 ", then execution step 1003, information Error Control, i.e. volume in checking procedure 1002 Whether sequence is correct, specifically can judge whether coded strings are wrong by way of comparing or calculating, if inspection is errorless, Execution step 1004;Otherwise, jump to step 1001, again parse safe Quick Response Code.Step 1004:Code character is changed, that is, Coded strings are converted into character string, for example, coded strings " 01000001010011100101110 " are converted into " 2UVWXYZ " word Symbol string.It should be noted that under normal circumstances, for ensureing the information security hidden in safe Quick Response Code, typically making safety In Quick Response Code, can be encrypted to each character string, therefore, before the content to character string parses, first will be to this word Symbol string is decrypted, i.e. step 1005:Obtain cipher key.Because different coded strings correspond to different AESs, therefore, Need the index finding encryption could decode.Step 1006, is decoded to character string after finding cipher key index.For example, right Generating new character string after character string " 2UVWXYZ " deciphering is " 1ABCDEF " it is preferred that can be several in described character string Word, letter, symbol or above several combination.Step 1007:Decompose third dimension information.Wherein said third dimension information refers to It is stored in the character string on the free space of ordinary two dimensional code, or message identification.Normally, due to letter that character string is to be carried Breath is more, so the character string after deciphering typically all can be very long.For example, described new character string " 1ABCDEF " is decomposed into " 1 " and " ABCDEF ", concrete decomposition rule can designed, designed as needed.Step 1008:Understand every group of character string after decomposing Implication, obtain third dimension text message.For example, in the present embodiment the implication that " ABCDEF " represents is " the industrial and commercial silver of China OK ", " 1 " represents this bank's sequence number.User can by understanding third dimension text message out, that is, the Industrial and Commercial Bank of China with And its sequence number, and then judge the information that this safe Quick Response Code is carried, or the true and false of commodity, so more common Quick Response Code and Speech, the security of this safe Quick Response Code and antifalsification are higher.
A kind of safe Quick Response Code mark, is applied to a kind of safe Quick Response Code preparation method of previous embodiment, as Fig. 8 institute Show, this safe Quick Response Code mark includes:Safe Quick Response Code and printing mark, wherein, described safe Quick Response Code is printed on described print In brush mark.
Present invention also offers a kind of safe Quick Response Code mark, by having the safe Quick Response Code of implantation message identification It is arranged on printing mark, form safe Quick Response Code mark so that this safe Quick Response Code mark can be pasted or be applied many Plant in information service system.Additionally, unique mark or the trade mark of user also can be added on this safe Quick Response Code mark, enter one Improve to step application and the antifalsification of safe Quick Response Code.
Additionally, a kind of safe Quick Response Code preparation method, coding/decoding method and safe Quick Response Code mark that the present invention provides also have There is following beneficial effect:
1st, safety, anti-copying, false proof anti-channeling, attack resistance.
2nd, can achieve offline discriminating, there is non repudiation.
3rd, safe multidimensional code can be generated based on any Quick Response Code, such as DM, PDF417 etc..
4th, it is widely used, safe Quick Response Code provided in an embodiment of the present invention or safe Quick Response Code mark can be directly in electronics Use, for recording circulation and transfer of goods information etc. under version form." one yard of multiple-effect " facilitates design and the realization of marketing program, additionally, Code can also be expanded and do false proof link of tracing to the source.
5th, RFID identification function can be simulated.Coding can be expanded using ordinary two dimensional code as product coding as chip coding.
6th, change the traditional discriminant approach of digital code anti-false inquiry, not to inquire about first as differentiating true and false foundation, to expand Coding information differentiates true and false, it is to avoid fake products true code head looks into as really embarrassment.Additionally, the present embodiment is provided in safe Quick Response Code mark Safe Quick Response Code be not required to cover, be also not required to scrape checking off.
7th, entrance link is convenient:If consumer-user scans multidimensional code, it is directly entered marketing link;If manager Scanning input multidimensional code, then be directly entered management link, and then can reduce marketing management cost, reduce marketing management personnel and Time puts into
8th, " one yard of multiple-effect " saves mark area, alternative uncovering label, reduces mark cost, can arbitrary number of times look into Ask, do not affect true and false property and judge.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising of his property, so that including a series of process of key elements, method, article or equipment not only include those key elements, and And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or equipment institute Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including institute Also there is other identical element in process, method, article or the equipment of stating key element.
The above is only the specific embodiment of the present invention, makes skilled artisans appreciate that or realizing this Bright.Multiple modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one The scope the widest causing.

Claims (8)

1. a kind of safe Quick Response Code preparation method is it is characterised in that methods described includes:
Obtain the data storage areas of Quick Response Code;
In the module of composition Quick Response Code coding in described data storage areas, configure black microdot and its be made up of relative position Structure, and white microdot and its structure being made up of relative position;
The structure be made up of described black microdot and its relative position, and white microdot and its structure being made up of relative position It is implanted on the data storage areas of described Quick Response Code, form safe Quick Response Code;
At least one black module and at least one white module is included in the module of described Quick Response Code coding;
Described configuration black microdot and its structure being made up of relative position, and white microdot and its knot being made up of relative position Structure, including:
Described white microdot and its structure being made up of relative position are configured on each described black module, and, in each institute State the structure described black microdot being configured on white module and its being made up of relative position, wherein, the size of described white microdot Less than the size of described black module, the size of described black microdot is less than the size of described white module;
Described white microdot and its structure being made up of relative position are configured on each described black module, and, in each institute State the structure described black microdot being configured on white module and its being made up of relative position, including:
Obtain implantation information, wherein, described implantation information includes third dimension text message;
Described implantation information is converted to third dimension implantation information coding;
Choose described third dimension implantation information coding, the structure be made up of with black microdot and its relative position, and white microdot And its mapping ruler corresponding to structure being made up of relative position;
Described white microdot is configured in each described black module according to described mapping ruler and its is made up of relative position Structure, and, described black microdot and its structure being made up of relative position are configured on each described white module.
2. method according to claim 1 is compiled it is characterised in that described implantation information is converted to third dimension implantation information Also include after code:
Described third dimension implantation information coding is encrypted;
Choose and implant the corresponding mapping ruler of information coding with the third dimension after described encryption;
The mapping ruler corresponding to information coding is implanted with the third dimension after encryption described in storage.
3. method according to claim 1 and 2 is it is characterised in that the data storage areas of described acquisition Quick Response Code include:
Obtain the coding rule of any one Quick Response Code;
Obtain the data storage areas of this Quick Response Code according to the coding rule of described Quick Response Code, wherein, described data storage areas For storing user data.
4. a kind of safe Quick Response Code coding/decoding method, is applied to the safe Quick Response Code described in any one of claims 1 to 3, its feature It is, methods described includes:
Safe Quick Response Code is carried out separate, obtain and the black microdot corresponding to described safe Quick Response Code and its by relative position group The structure becoming, and white microdot and its structure being made up of relative position;
The structure that be made up of to described black microdot and its relative position, and described white microdot and its be made up of relative position Structure is parsed, and obtains mapping ruler;
According to described mapping ruler by described black microdot and its structure that is made up of relative position, and white microdot and its by phase Third dimension implantation information coding is converted to the structure of position composition;
Information coding is implanted according to the described third dimension and obtains the third dimension text envelope implanted with this third dimension corresponding to information coding Breath.
5. method according to claim 4 implants corresponding the of information coding it is characterised in that obtaining with this third dimension Three-dimensional text information includes:
Described third dimension implantation information coding is verified, rejects mistake, or missing information is compensated with reduction, generate The third dimension implants message code;
Parse described third dimension implantation message code, obtain described third dimension text message.
6. the method according to claim 4 or 5 is it is characterised in that methods described also includes:
Judge whether a Quick Response Code is safe Quick Response Code;
If carrying out to described Quick Response Code separating, can obtain and the black microdot corresponding to described Quick Response Code and its by relative position Put the structure of composition, and white microdot and its structure being made up of relative position, and meeting mapping ruler, then this Quick Response Code is Safe Quick Response Code.
7. the method according to claim 4 or 5 is it is characterised in that methods described also includes:
Judge whether described safe Quick Response Code is true;
If the information match of described third dimension text message and the ordinary two dimensional code separated from described safe Quick Response Code, Then described safe Quick Response Code is true;Otherwise, described safe Quick Response Code is false.
8. a kind of safe Quick Response Code mark, is applied to the safety two dimension making using the method described in any one of claims 1 to 3 Code is it is characterised in that described safe Quick Response Code mark includes:Safe Quick Response Code and printing mark, wherein, described safe Quick Response Code It is printed on described printing mark.
CN201610060527.2A 2016-01-28 2016-01-28 Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier Active CN105550730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610060527.2A CN105550730B (en) 2016-01-28 2016-01-28 Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610060527.2A CN105550730B (en) 2016-01-28 2016-01-28 Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier

Publications (2)

Publication Number Publication Date
CN105550730A CN105550730A (en) 2016-05-04
CN105550730B true CN105550730B (en) 2017-02-08

Family

ID=55829913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610060527.2A Active CN105550730B (en) 2016-01-28 2016-01-28 Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier

Country Status (1)

Country Link
CN (1) CN105550730B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384143B (en) * 2016-09-20 2020-03-17 北京兆信信息技术股份有限公司 Dynamic electronic two-dimensional code generation method and identification method
CN108345925A (en) * 2017-01-24 2018-07-31 北京大码技术有限公司 Generation, reading method and the device of composite type two-dimensional code
CN107578079B (en) * 2017-09-18 2020-04-21 臧戈平 Anti-counterfeiting method for high-fidelity hidden picture in information code area
CN107832824A (en) * 2017-11-28 2018-03-23 广州真知码信息科技有限公司 It is a kind of to show the method, system and device and Method of printing for closing source Quick Response Code
CN108229627A (en) * 2017-12-25 2018-06-29 刘世洪 Agricultural product quality and safety whole process is traced to the source space-time hybrid coding and coding method
SG10201801042QA (en) * 2018-02-07 2019-09-27 I Sprint Innovations Pte Ltd Two-Dimensional Barcode Generating Method, Verification Method, Server and Two-Dimensional Barcode
CN109829844B (en) * 2019-01-16 2024-01-12 王诗会 Information hiding method and device based on two-dimension code and electronic equipment
CN110222800A (en) * 2019-04-30 2019-09-10 浙江大学 A kind of two-dimension code anti-counterfeit mark image and its recognition methods based on dot matrix
CN114175048A (en) * 2019-08-07 2022-03-11 罗伯特·博世有限公司 Anti-counterfeiting product with random micro-point characteristic and manufacturing method and verification method thereof
CN111222610B (en) * 2020-01-09 2022-09-02 周晓明 Coding and decoding method and system for double-ID two-dimensional code micro-code element
CN115310572B (en) * 2022-08-05 2024-04-16 蚂蚁区块链科技(上海)有限公司 Graphic code generation method and graphic code verification method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392260A (en) * 2014-12-17 2015-03-04 肖学静 Two-dimensional code anti-counterfeiting method based on additional information
CN104778489A (en) * 2015-03-24 2015-07-15 立德高科(北京)数码科技有限责任公司 Combined anti-counterfeit label, and generation method and generation device of combined anti-counterfeit label
CN104715275B (en) * 2015-04-02 2018-04-24 矽图(厦门)科技有限公司 A kind of generation method and generating means of grey Quick Response Code

Also Published As

Publication number Publication date
CN105550730A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105550730B (en) Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier
CN103761799B (en) A kind of bill anti-counterfeit method based on texture image feature and device
CN106529633B (en) Generation method, coding/decoding method and the device of two dimensional code
CN105095936B (en) A kind of two-dimensional image code and its generation method and system based on Information hiding
CN101593324B (en) Method and system for network multi-level approval based on dependable computing application technique
CN102194137A (en) Multi-dimensional encryption anti-counterfeiting printing technology based on shape of amplitude modified screen
CN103310252B (en) CCQR (Colorful Coded Quick Response) anti-counterfeiting mark
CN103310344B (en) CCQR (Colorful Coded Quick Response) anti-counterfeiting method
KR100975725B1 (en) Image processing method and image processing device
CN105740931B (en) Multidimensional security code label, its production method and recognition methods
CN102225671A (en) Encrypted anti-counterfeit printing technology for modulating shape of printed matter amplitude-modulation screen dot by dual-encrypted signal
CN102184428A (en) Encrypting anti-counterfeiting printing technology for modulating shapes of amplitude modulation dots of printed work through binary-system encrypting signal
GB2375421A (en) Document printed with graphical symbols which encode information
CN108805787A (en) A kind of method and apparatus that paper document distorts Jianzhen
CN109816077A (en) A kind of hidden method of two-dimensional barcode information, device, electronic equipment and storage medium
CN108960387A (en) A kind of anti-counterfeiting two dimensional code and its generation and recognition methods
CN110335189A (en) Fill method, apparatus, computer equipment and the storage medium of anti-counterfeiting information
CN117541271A (en) Invisible code-based product anti-counterfeiting traceability verification method and system
CN108847122A (en) A kind of novel C CQR code anti-counterfeiting mark
US20100162413A1 (en) Two Part Code
CN110109864A (en) Folder document management method based on invisible two-dimensional codes as mark
CN109325568A (en) Anti-fake two-dimension code and its modulation encryption method and identifying system
CN102999771B (en) Commodity anti-counterfeiting code construction and verification method
CN109447593B (en) Method and system for generating dynamic anti-counterfeiting physical signature
Khadam et al. Data aggregation and privacy preserving using computational intelligence

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier

Effective date of registration: 20190704

Granted publication date: 20170208

Pledgee: Beijing first financing Company limited by guarantee

Pledgor: Beijing Pan-pass Info Tech Co., Ltd.

Registration number: 2019990000659

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210601

Granted publication date: 20170208

Pledgee: Beijing first financing Company limited by guarantee

Pledgor: BEIJING PANPASS INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: 2019990000659

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: The invention relates to a safe two-dimensional code making method, a decoding method and a safe two-dimensional code identification

Effective date of registration: 20210707

Granted publication date: 20170208

Pledgee: Beijing first financing Company limited by guarantee

Pledgor: BEIJING PANPASS INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021990000588

PE01 Entry into force of the registration of the contract for pledge of patent right