CN102916804A - Two-dimension code coding and decoding method and device based on local color verification - Google Patents

Two-dimension code coding and decoding method and device based on local color verification Download PDF

Info

Publication number
CN102916804A
CN102916804A CN2012103115366A CN201210311536A CN102916804A CN 102916804 A CN102916804 A CN 102916804A CN 2012103115366 A CN2012103115366 A CN 2012103115366A CN 201210311536 A CN201210311536 A CN 201210311536A CN 102916804 A CN102916804 A CN 102916804A
Authority
CN
China
Prior art keywords
dimension code
code
pigmented section
information
coding
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.)
Granted
Application number
CN2012103115366A
Other languages
Chinese (zh)
Other versions
CN102916804B (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.)
South China Agricultural University
Original Assignee
South China Agricultural University
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 South China Agricultural University filed Critical South China Agricultural University
Priority to CN201210311536.6A priority Critical patent/CN102916804B/en
Publication of CN102916804A publication Critical patent/CN102916804A/en
Application granted granted Critical
Publication of CN102916804B publication Critical patent/CN102916804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a two-dimension code coding and decoding method and devices based on local color verification. The coding method comprises the following steps of: generating coloring region data randomly according to a predefined coloring region coding and decoding table, and taking the generated coloring region data as a secret key to perform encryption so as to obtain two-dimension code generation information; generating two-dimension code black-and-white images by a two-dimension code generation algorithm; and finally coloring the generated two-dimension code black-and-white images according to the coloring region data to obtain local colored two-dimension code images. The decoding method comprises the following steps of: reading the coloring region data on the two-dimension code images, and using a standard two-dimension code decoding algorithm to decode; and performing decryption on the decoded information by taking the coloring region data as the secret key via a decipherment algorithm to obtain original information of the two-dimension cod images. By using the invention based on original black and white colors, the coloring region information is increased, coding space of two-dimension codes can be expanded, and counterfeited difficulty is increased.

Description

A kind of two-dimension code coding, coding/decoding method and device based on the local color verification
Technical field
The present invention relates to two-dimension code coding, decoding research field, particularly a kind of two-dimension code coding method, code device and coding/decoding method and decoding device based on the local color verification.
Background technology
Two-dimension code is the chequered with black and white graphic recording data symbol information that (on the two-dimensional directional) distributes on the plane according to certain rules with certain specific geometric figure, on coding, utilize dexterously " 0 ", the concept of " 1 " bit stream that consists of the computer-internal logical foundations, represent the literal numerical information with several geometrical bodies corresponding with binary system, automatically process with realization information by image input device or photoelectric scanning device automatically identifying and reading.It has some general character of barcode technology: every kind of code system has its specific character set; Each character occupies certain width; Has certain verifying function etc.Also have simultaneously information automatic identification function to different rows, and characteristics such as processing graphics rotation variation.
The characteristics such as two-dimensional bar code has the confidentiality height, tracking property is high, anti-damage is strong, redundant is large, cost is low now have been widely used in the aspects such as list, safe and secret, tracking, license, stock taking, data redundant.But because coding/decoding technology is open, the threshold of making the two-dimension code of palming off is also very low.Standard two-dimension code version all is to use black and white two looks in addition, and its space encoder is also limited.
Therefore, need a kind of effective anti-counterfeiting mark, on the one hand two-dimension code is strengthened by counterfeit difficulty, can expand on the other hand the space encoder of two-dimension code, guarantee that two-dimension code is not tampered.
Summary of the invention
Main purpose of the present invention is to overcome the shortcoming of prior art with not enough, a kind of two-dimension code coding method, code device and coding/decoding method and decoding device based on the local color verification is provided, above-mentioned coding and decoding device and method are based on the local color verification, on the basis of original black and white two looks, increased pigmented section information, can expand the space encoder of two-dimension code, improve simultaneously two-dimension code by counterfeit difficulty.
Purpose of the present invention realizes by following technical scheme:
A kind of two-dimension code coding method based on the local color verification may further comprise the steps:
(1) on the two-dimension code template, the pigmented section coding and decoding table according to predefined generates the pigmented section data at random, and the pigmented section data comprise the shape of pigmented section quantity, each pigmented section, the color of each pigmented section;
(2) two-dimension code raw information is encrypted as key with the pigmented section data that step (1) generates, obtains the two-dimension code information generated;
(3) the two-dimension code information generated that step (2) is obtained generates the two-dimension code black and white image by the two-dimension code generating algorithm;
(4) the two-dimension code template of formulating according to step (1) and the pigmented section data of generation dye to the two-dimension code black and white image that step (3) obtains, and finally obtain the partial color image in 2 D code.
Preferably, in the described step (1), the pigmented section coding and decoding table of predefined refers in advance the coding and decoding table that the shape that may occur according to pigmented section and color are set up respectively, in the shape coding decoding table, defines the corresponding numerical value of each shape, equally in the color coding decoding table, define the corresponding numerical value of each color, then together with pigmented section quantity, foundation<pigmented section quantity i, each pigmented section shape S, each pigmented section color C〉the key vector.
Preferably, in the described step (2), two-dimension code raw information comprises the cleartext information that hides Info He need not encrypt that needs encryption, the pigmented section data that generate with step (1) that hide Info that need are encrypted are encrypted as key, and the cleartext information that hides Info He need not encrypt after the encryption that then will obtain carries out amalgamation and obtains the two-dimension code information generated.
Further, in the described step (2), hiding Info that need are encrypted, with step (1) generated<i, S, C〉key vector, be encrypted hiding Info after obtaining encrypting according to existing open bidirectional encipher algorithm (need not specify certain, can be optional according to prior art).
Further, in the described step (2), hiding Info with cleartext information and after encrypting carried out amalgamation and adopted following algorithm: cleartext information is designated as M 1, hiding Info after the encryption is designated as M 2, use separator w to splice.A kind of simple connecting method is 2 D code information M=M 1+ w+M 2, cipher-text information can be undertaken expressly and the simple characters string splicing work of ciphertext by two-dimension code generation side with this thinking immediately following behind the cleartext information.Another kind of simple concatenation mode is to insert splicing, 2 D code information M=M 11+ M 21+ M 12+ M 22, being inserted into the cleartext information the inside hiding Info according to fixing insertion position, also can be undertaken expressly and the splicing of the character string of ciphertext by two-dimension code generation side with this thinking.
Preferably, in the described step (3), the two-dimension code information generated is generated image in 2 D code adopt following two-dimension code generating algorithm: the two-dimension code information generated that obtains according to step (2), the two-dimension code generating algorithm of Application standard (for example generating algorithm of two-dimension code PDF417, Datamatrix, Maxicode, QR Code, Code 49, Code16K, Vericode, Ultracode), the two-dimension code black and white image of generation standard.
A kind of two-dimension code coding/decoding method based on the local color verification may further comprise the steps:
(1) according to the pigmented section coding and decoding table of predefined, read the pigmented section data on the image in 2 D code, the pigmented section data comprise the shape of pigmented section quantity, each pigmented section, the color of each pigmented section;
(2) read image in 2 D code, color region being arranged as black region in the image in 2 D code of part dyeing, then image in 2 D code is used as standard black and white image in 2 D code, Application standard two-dimension code decoding algorithm is decoded;
(3) decoded information is decrypted by decipherment algorithm take the pigmented section data as key, obtains the raw information of image in 2 D code.
Preferably, in the described step (2), adopt the two-dimension code decoding algorithm (for example two-dimension code PDF417, Datamatrix, Maxicode, QR Code, Code 49, Code 16K, Vericode, Ultracode decoding algorithm) of existing standard that original image in 2 D code information is decoded.
Preferably, in the described step (3), decoded information comprises hiding Info and the unencrypted cleartext information of having encrypted, and step is as follows: at first by splitting algorithm decoded information is split as hiding Info of encryption and unencrypted cleartext information; The pigmented section data that generate with step (1) that hide Info that to encrypt again adopt decipherment algorithm to be decrypted as key, obtain at last the raw information of image in 2 D code.
Further, in the described step (3), hiding Info with cleartext information and after encrypting splits adopts following algorithm: in the two-dimension code simple concatenation information that described step (2) obtains, searching is carried out expressly and the separator (being designated as w) of the fractionation foundation of ciphertext, be respectively clear data and encrypt data before and after the separator, a kind of simple fractionation mode is according to 2 D code information M=M 1+ w+M 2, split clear data M 1With encrypt data M 2Obtaining two-dimension code in described step (2) inserts in the concatenation information, according to 2 D code information M=M 11+ M 21+ M 12+ M 22, reduction M 1=M 11+ M 12+ M 13, M 2=M 21+ M 22+ M 23, reduction clear data M 1With encrypt data M 2
Preferably, in the described step (3), the two-way decipherment algorithm by standard is decrypted take the pigmented section data as key to the resulting encrypt data of step (2).
A kind of two-dimension code code device based on the local color verification comprises:
The pigmented section data generating device is used in the pigmented section coding and decoding table generation pigmented section of two-dimension code template according to predefined;
The two-dimension code generating apparatus comprises encrypting module and two-dimension code coding module, and described encrypting module is connected with described two-dimension code coding module, and described two-dimension code generating apparatus is connected with the pigmented section data generating device; Encrypting module is used for take the pigmented section data as key hiding Info of need encryption being encrypted; The two-dimension code coding module, the two-dimension code information generated that is used for obtaining after the encrypting module encryption generates the two-dimension code black and white image;
The two-dimension code color image forming apparatus dyes to the two-dimension code black and white image that the two-dimension code generating apparatus generates according to the data of pigmented section data generating device, obtains the two-dimension code coloured image of local dyeing.
Preferably, described two-dimension code generating apparatus also comprises die section, and die section is used for the cleartext information that will need not encrypt and hiding Info of having encrypted carried out amalgamation, then the data after the amalgamation is sent to the two-dimension code coding module; Described die section is connected with encrypting module, two-dimension code coding module respectively.
A kind of two-dimension code decoding device based on the local color verification comprises:
Two-dimension code pigmented section reading device is used for reading image in 2 D code pigmented section data according to the pigmented section coding and decoding table of predefined;
The two-dimension code reading device comprises:
Read module is used for reading image in 2 D code;
The two-dimension code decoder module is used for the image in 2 D code information that read module reads is decoded;
Deciphering module is used for take the pigmented section data as key hiding Info of the rear encryption of decoding being decrypted;
Described read module, two-dimension code decoder module, deciphering module connect successively.
Preferably, described two-dimension code reading device also comprises the fractionation module, is used for the decoded information of two-dimension code decoder module is split into not encrypted cleartext information and encrypted hiding Info; Described fractionation module is connected with two-dimension code decoder module, deciphering module respectively.
The present invention compared with prior art has following advantage and beneficial effect:
1, the key of the present invention by hiding Info as two-dimension code with the pigmented section data, make the data pairing of local color and the two-dimension code of two-dimension code, realization is to monitoring, the supervision of data, and coding method of the present invention, coding/decoding method, code device and decoding device have identical or corresponding technical characterictic: the key that hides Info as two-dimension code with the pigmented section data is encrypted or decrypting process.One aspect of the present invention can be expanded the two-dimension code space encoder by partial color, can use on the other hand two-dimension code fetch equipment of the present invention to read the information that is hidden in the two-dimension code, integrality, fail safe and the confidentiality of two-dimension code have been guaranteed, and two-dimension code can be carried hide Info, antifalsification and the uniqueness of two-dimension code have been strengthened, the developing two-dimension code is as the outer new application of data label, so that two-dimension code is at the links of the process of circulation, can both check the true and false of two-dimension code, take precautions against the personation phenomenon.
2, the present invention needing can be widely used in the auxiliary circulation of commodities of label, production process control, management process control etc. all trades and professions, and for example supplier generates the two-dimension code that part is colour to product information and anti-counterfeiting information by the local color superposition algorithm on common black and white two-dimension code basis.On market, the consumer reads the product information in the two-dimension code by the general two-dimension code fetch program; Supplier is by professional fetch equipment, reads hiding Info of partial color in the two-dimension code, reaches the management such as data are traced to the source, sale control.
Description of drawings
Fig. 1 is the structural representation of the embodiment of the invention 1 two-dimension code code device.
Fig. 2 is the structural representation of the embodiment of the invention 1 two-dimension code decoding device.
Fig. 3 is the embodiment of the invention 1 coding method and the flow chart of coding/decoding method in the commodity anti-channel conflict is used.
Embodiment
The present invention is described in further detail below in conjunction with embodiment and accompanying drawing, but embodiments of the present invention are not limited to this.
Embodiment 1
In the present embodiment based on the two-dimension code code device of local color verification as shown in Figure 1, this device comprises pigmented section data generating device, two-dimension code generating apparatus and two-dimension code color image forming apparatus, and described two-dimension code generating apparatus comprises encrypting module, die section and the two-dimension code coding module that connects successively.
The pigmented section data generating device is used in the related data (comprise pigmented section quantity, color, shape etc.) of two-dimension code template according to the pigmented section coding and decoding table generation pigmented section of predefined.
Encrypting module is used for take the pigmented section data as key hiding Info of need encryption being encrypted.
Die section is used for carrying out amalgamation without the cleartext information of encryption with through hiding Info of encryption, then the data after the amalgamation is sent to the two-dimension code coding module.
The two-dimension code coding module is used for encrypted hiding Info generated the two-dimension code black and white image of standard with the cleartext information of not encrypted.The two-dimension code coding module can adopt the generating algorithm of two-dimension code PDF417, Datamatrix, Maxicode, QR Code, Code 49, Code 16K, Vericode, Ultracode to generate.
The two-dimension code color image forming apparatus dyes to the two-dimension code black and white image that the two-dimension code generating apparatus generates according to the resulting pigmented section of pigmented section data generating device, quantity and color, obtains the two-dimension code coloured image of local dyeing.
Based on the two-dimension code decoding device of local color verification as shown in Figure 2, comprise two-dimension code pigmented section reading device and two-dimension code reading device in the present embodiment; Described two-dimension code decoding device comprises read module, two-dimension code decoder module, fractionation module and the deciphering module that connects successively.
Two-dimension code pigmented section reading device is used for reading image in 2 D code pigmented section data according to the pigmented section coding and decoding table of predefined; The data of pigmented section comprise pigmented section quantity, color, shape etc.
Read module is used for reading image in 2 D code.
The two-dimension code decoder module is used for the image in 2 D code information that read module reads is decoded.
Split module, be used for the decoded information of image in 2 D code is split into without the cleartext information of encryption and hiding Info through encryption.
Deciphering module is used for take the pigmented section data as key being decrypted through hiding Info of encryption after the fractionation of fractionation module.
Fig. 3 is the schematic diagram of present embodiment in the commodity anti-channel conflict is used.As shown in the figure, after present embodiment is finished cataloged procedure according to coding method shown in Figure 3, production firm pastes or prints the partial color two-dimension code in product and packing thereof, production firm, consumer and sale controlling unit can be as required by the coding/decoding method shown in the figure to bar code with two-dimension code is decoded and Output rusults.Concrete, the coding method and the coding/decoding method that adopt in the present embodiment are as follows.
Based on the two-dimension code coding method of local color verification, may further comprise the steps in the present embodiment:
(1) on two-dimension code template (rectangle or square), the pigmented section coding and decoding table according to predefined generates the pigmented section data at random, and the pigmented section data comprise the shape of pigmented section quantity, each pigmented section, the color of each pigmented section.The pigmented section coding and decoding table of predefined refers in advance the coding and decoding table that the shape that may occur according to pigmented section and color are set up respectively, in the shape coding decoding table, define the corresponding numerical value of each shape, equally in the color coding decoding table, define the corresponding numerical value of each color, then together with pigmented section quantity, foundation<pigmented section quantity i, each pigmented section shape S, each pigmented section color C〉the key vector.
(2) two-dimension code raw information comprises the M that hides Info that needs encryption 1The cleartext information M that need not encrypt 2Use the bidirectional encipher algorithm M that will hide Info 1With pigmented section data vector<i, S, C〉be encrypted the M that hides Info after obtaining encrypting as key 1'=F (M 1,<i, S, C 〉); With M 1' and M 2By the amalgamation of amalgamation algorithm, obtain two-dimension code information generated M=P (M 1', M 2).A kind of simple connecting method is to use separator w to splice 2 D code information M=M 1+ w+M 2, cipher-text information can be undertaken expressly and the simple characters string splicing work of ciphertext by two-dimension code generation side with this thinking immediately following behind the cleartext information.Another kind of simple concatenation mode is to insert splicing, 2 D code information M=M 11+ M 21+ M 12+ M 22, being inserted into the cleartext information the inside hiding Info according to fixing insertion position, also can be undertaken expressly and the splicing of the character string of ciphertext by two-dimension code generation side with this thinking.
(3) the two-dimension code information generated that step (2) is obtained generates the two-dimension code black and white image of standard by the two-dimension code generating algorithm (for example two-dimension code PDF417, Datamatrix, Maxicode, QR Code, Code 49, Code 16K, Vericode, Ultracode generating algorithm) of standard.
(4) the two-dimension code template of formulating according to step (1) and the pigmented section data of generation dye to the two-dimension code black and white image that step (3) obtains, and finally obtain the partial color image in 2 D code.
Based on the two-dimension code coding/decoding method of local color verification, may further comprise the steps in the present embodiment:
(1) according to the pigmented section coding and decoding table of predefined, read the pigmented section data on the image in 2 D code, the pigmented section data comprise pigmented section quantity i,, each pigmented section shape S,, the color C of each pigmented section, obtain pigmented section data vector<i, S, C 〉.
(2) read image in 2 D code, color region being arranged as black region in the image in 2 D code of part dyeing, then image in 2 D code is used as standard black and white image in 2 D code, Application standard two-dimension code decoding algorithm is decoded and is obtained information M.
(3) by splitting algorithm<M 1', M 2〉=P -1(M) obtain the M that hides Info through encryption 1' and the cleartext information M of not encrypted 2Again by decipherment algorithm to M 1' with pigmented section data vector<i, S, C〉be decrypted the M that hides Info before obtaining encrypting as key 1, with raw information M 1And M 2Output.
Wherein two-dimension code can comprise following information: hiding Info comprises anti-counterfeiting information, encrypted message and identifying information; Can be product vendor's information, product distribution merchant information, product original producton location information, product weight, time of making the product information, keeping life, batch number and product total quantity information; Sales outlet information, the term of validity, applying unit or the personal information of certificate, bill, the amount of money, the unit of sending, recruiting unit, send time, specification, toward the information of ground return; People or unit information etc. under the certificate term of validity, reviewing authority's information, the certificate.Cleartext information can be for product ID, product essential information, product are introduced substantially, product vendor's information, product distribution merchant information, product original producton location information, product weight, time of making the product information, keeping life, batch number and product total quantity information; Sales outlet information, the term of validity, applying unit or the personal information of certificate, bill, the amount of money, the unit of sending, recruiting unit, send time, specification, toward ground return information; People or unit information under the certificate term of validity, reviewing authority's information, the certificate; Or the specific key information that password encryption/decoding is adopted etc.
In actual applications, the consumer can pass through mobile phone, PDA, computer camera etc., reads product serial number in the bar code and the cleartext information of two-dimension code.
Sell the two-dimension code reading device that controlling unit can use present embodiment, read the cleartext information of two-dimension code, read hiding Info of two-dimension code take the pigmented section data as key; Can check whether whether the packing of product conforms to product, be opened sale; Carry out the management of production marketing anti-channel conflict; Carrying out authenticity of products differentiates.
In addition, the described encoding/decoding device of present embodiment and method also can be applicable on the tax invoice, and after cataloged procedure was finished in described coding method by present embodiment, two-dimension code was printed at invoice by printing invoice unit; Consumer and coherence check department can be as required by the described coding/decoding method of present embodiment to bar code with two-dimension code is decoded and Output rusults.
Wherein the content of two-dimension code comprises cleartext information: invoice issuing unit, commodity detail, the amount of money, taxpayer number, make out an invoice the date etc., also comprise hiding Info: tax authority's identifier, cleartext information verification etc.
The consumer can read by mobile phone, PDA, computer camera etc. the cleartext information of invoice sequence number and two-dimension code.
Coherence check department can pass through the described two-dimension code reading device of present embodiment, reads hiding Info and cleartext information of two-dimension code.
Therefore, the present invention needing can be widely used in the auxiliary circulation of commodities of label, production process control, management process control etc. all trades and professions, and for example supplier generates the two-dimension code that part is colour to product information and anti-counterfeiting information by the local color superposition algorithm on common black and white two-dimension code basis.On market, the consumer reads the product information in the two-dimension code by the general two-dimension code fetch program; Supplier is by professional fetch equipment, reads hiding Info of partial color in the two-dimension code, reaches the management such as data are traced to the source, sale control.
Above-described embodiment is the better execution mode of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (10)

1. the two-dimension code coding method based on the local color verification is characterized in that, may further comprise the steps:
(1) on the two-dimension code template, the pigmented section coding and decoding table according to predefined generates the pigmented section data at random, and the pigmented section data comprise the shape of pigmented section quantity, each pigmented section, the color of each pigmented section; The pigmented section coding and decoding table of predefined refers in advance the coding and decoding table that the shape that may occur according to pigmented section and color are set up respectively, in the shape coding decoding table, define the corresponding numerical value of each shape, equally in the color coding decoding table, define the corresponding numerical value of each color, then together with pigmented section quantity, foundation<pigmented section quantity i, each pigmented section shape S, each pigmented section color C〉the key vector;
(2) two-dimension code raw information is encrypted as key with the pigmented section data that step (1) generates, obtains the two-dimension code information generated;
(3) the two-dimension code information generated that step (2) is obtained generates the two-dimension code black and white image by the two-dimension code generating algorithm;
(4) the two-dimension code template of formulating according to step (1) and the pigmented section data of generation dye to the two-dimension code black and white image that step (3) obtains, and finally obtain the partial color image in 2 D code.
2. the two-dimension code coding method based on the local color verification according to claim 1, it is characterized in that, in the described step (2), two-dimension code raw information comprises the cleartext information that hides Info He need not encrypt that needs encryption, the pigmented section data that generate with step (1) that hide Info that need are encrypted are encrypted as key, and the cleartext information that hides Info He need not encrypt after the encryption that then will obtain carries out amalgamation and obtains the two-dimension code information generated.
3. the two-dimension code coding method based on the local color verification according to claim 2, it is characterized in that, in the described step (2), hiding Info that need are encrypted, with step (1) generated<i, S, C〉key vector, be encrypted hiding Info after obtaining encrypting according to existing open bidirectional encipher algorithm;
In the described step (2), hiding Info with cleartext information and after encrypting carried out amalgamation and adopted following algorithm: the first is to adopt separator, namely cleartext information is designated as M 1, hiding Info after the encryption is designated as M 2, use separator w to splice; The second is to adopt to insert splicing, namely is inserted into the cleartext information the inside hiding Info according to fixing insertion position;
In the described step (3), the two-dimension code information generated is generated image in 2 D code adopt following two-dimension code generating algorithm: PDF417, Datamatrix, Maxicode, QR Code, Code 49, Code 16K, Vericode, Ultracode.
4. the two-dimension code coding/decoding method based on the local color verification is characterized in that, may further comprise the steps:
(1) according to the pigmented section coding and decoding table of predefined, read the pigmented section data on the image in 2 D code, the pigmented section data comprise the shape of pigmented section quantity, each pigmented section, the color of each pigmented section;
(2) read image in 2 D code, color region being arranged as black region in the image in 2 D code of part dyeing, then image in 2 D code is used as standard black and white image in 2 D code, Application standard two-dimension code decoding algorithm is decoded;
(3) decoded information is decrypted by decipherment algorithm take the pigmented section data as key, obtains the raw information of image in 2 D code.
5. the two-dimension code coding/decoding method based on the local color verification according to claim 4, it is characterized in that, in the described step (3), decoded information comprises hiding Info and the unencrypted cleartext information of having encrypted, and step is as follows: at first by splitting algorithm decoded information is split as hiding Info of encryption and unencrypted cleartext information; The pigmented section data that generate with step (1) that hide Info that to encrypt again adopt decipherment algorithm to be decrypted as key, obtain at last the raw information of image in 2 D code.
6. the two-dimension code coding/decoding method based on the local color verification according to claim 5, it is characterized in that, in the described step (3), it is that amalgamation algorithm according in the encryption algorithm decides that hiding Info with cleartext information and after encrypting splits, if employing separator, then seek and carry out expressly and the separator of the fractionation foundation of ciphertext, be respectively clear data and encrypt data before and after the separator; If the insertion of adopting splicing then according to fixing insertion position, restores respectively with cleartext information hiding Info;
In the described step (3), the two-way decipherment algorithm by standard is decrypted take the pigmented section data as key to the resulting encrypt data of step (2).
7. the two-dimension code code device based on the local color verification is characterized in that, comprising:
The pigmented section data generating device is used in the pigmented section coding and decoding table generation pigmented section of two-dimension code template according to predefined;
The two-dimension code generating apparatus comprises encrypting module and two-dimension code coding module, and described encrypting module is connected with described two-dimension code coding module, and described two-dimension code generating apparatus is connected with the pigmented section data generating device; Encrypting module is used for take the pigmented section data as key hiding Info of need encryption being encrypted; The two-dimension code coding module, the two-dimension code information generated that is used for obtaining after the encrypting module encryption generates the two-dimension code black and white image;
The two-dimension code color image forming apparatus dyes to the two-dimension code black and white image that the two-dimension code generating apparatus generates according to the data of pigmented section data generating device, obtains the two-dimension code coloured image of local dyeing.
8. the two-dimension code code device based on the local color verification according to claim 7, it is characterized in that, described two-dimension code generating apparatus also comprises die section, die section is used for the cleartext information that will need not encrypt and hiding Info of having encrypted carried out amalgamation, then the data after the amalgamation is sent to the two-dimension code coding module; Described die section is connected with encrypting module, two-dimension code coding module respectively.
9. the two-dimension code decoding device based on the local color verification is characterized in that, comprising:
Two-dimension code pigmented section reading device is used for reading image in 2 D code pigmented section data according to the pigmented section coding and decoding table of predefined;
The two-dimension code reading device comprises:
Read module is used for reading image in 2 D code;
The two-dimension code decoder module is used for the image in 2 D code information that read module reads is decoded;
Deciphering module is used for take the pigmented section data as key hiding Info of the rear encryption of decoding being decrypted;
Described read module, two-dimension code decoder module, deciphering module connect successively.
10. the two-dimension code decoding device based on the local color verification according to claim 9, it is characterized in that, described two-dimension code reading device also comprises the fractionation module, is used for the decoded information of two-dimension code decoder module is split into not encrypted cleartext information and encrypted hiding Info; Described fractionation module is connected with two-dimension code decoder module, deciphering module respectively.
CN201210311536.6A 2012-08-28 2012-08-28 Two-dimension code coding and decoding method and device based on local color verification Active CN102916804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210311536.6A CN102916804B (en) 2012-08-28 2012-08-28 Two-dimension code coding and decoding method and device based on local color verification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210311536.6A CN102916804B (en) 2012-08-28 2012-08-28 Two-dimension code coding and decoding method and device based on local color verification

Publications (2)

Publication Number Publication Date
CN102916804A true CN102916804A (en) 2013-02-06
CN102916804B CN102916804B (en) 2015-05-20

Family

ID=47615046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210311536.6A Active CN102916804B (en) 2012-08-28 2012-08-28 Two-dimension code coding and decoding method and device based on local color verification

Country Status (1)

Country Link
CN (1) CN102916804B (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310258A (en) * 2013-06-09 2013-09-18 江苏科技大学 Self-adaptive extended black and while code coding method
CN103489026A (en) * 2013-09-24 2014-01-01 深圳市中选科技有限公司 Colorful two-dimension code, generating method and generating system thereof and printed article
CN103745252A (en) * 2013-12-27 2014-04-23 广州市宝比塑料制品有限公司 Coding line, two-dimensional coding method and two-dimensional decoding method
CN104239927A (en) * 2014-08-01 2014-12-24 周奇 Colored two-dimension code generating method and decoding method
CN104392260A (en) * 2014-12-17 2015-03-04 肖学静 Two-dimensional code anti-counterfeiting method based on additional information
CN104636784A (en) * 2015-02-28 2015-05-20 立德高科(北京)数码科技有限责任公司 Two-dimensional code, and generation method and identification method thereof
CN105046306A (en) * 2015-05-05 2015-11-11 华中科技大学 Method for encoding color multi-dimensional codes containing information of variety of biological characteristics
CN105069498A (en) * 2015-09-09 2015-11-18 杭州甄别网络科技有限公司 Two-dimensional code color encryption method and device
CN105117757A (en) * 2015-08-26 2015-12-02 复旦大学无锡研究院 Quick response code encryption and decryption method based on random textures
CN105976004A (en) * 2016-04-25 2016-09-28 华南农业大学 Color two-dimensional code multi-dimensional information encoding and decoding methods and devices
TWI557647B (en) * 2015-02-28 2016-11-11 Two - dimensional code, generation method and recognition method with two - dimensional software installation information
CN106330976A (en) * 2016-11-03 2017-01-11 武汉斗鱼网络科技有限公司 Information encryption and decryption method and device
CN106529633A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Two-dimensional code generation method and decoding method and device
CN107423793A (en) * 2017-04-28 2017-12-01 南京邮电大学 A kind of Quick Response Code generation identification technology of new type of safe
CN105825257B (en) * 2016-03-09 2018-05-29 东北大学 Information hiding and hiding information extracting method and system based on two-dimensional bar code
CN108268178A (en) * 2018-02-27 2018-07-10 Tcl移动通信科技(宁波)有限公司 Mobile terminal touch screen coordinate output control, mobile terminal and storage medium
CN108351979A (en) * 2015-11-09 2018-07-31 三星电子株式会社 Electronic equipment and its operating method
CN108694428A (en) * 2017-04-05 2018-10-23 玛尔提柯西株式会社 The image conversion method of anti-fake two-dimension code and anti-fake two-dimension code
CN108921266A (en) * 2018-09-29 2018-11-30 长安大学 A kind of static two dimensional code encryption display methods and device based on image segmentation
CN109756459A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Data processing, data identification method, equipment, medium
CN109784454A (en) * 2019-01-16 2019-05-21 王诗会 A kind of information concealing method based on two dimensional code, device and electronic equipment
CN110705997A (en) * 2019-08-28 2020-01-17 江苏南大数码科技有限公司 Anti-counterfeiting coding method compatible with heterogeneous system
CN111428531A (en) * 2020-03-13 2020-07-17 郑州大学 Art QR code recognition method and device, electronic equipment and storage medium
CN112949800A (en) * 2021-01-27 2021-06-11 中国银联股份有限公司 Method, device and storage medium for generating, playing and processing graphic code video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009003770A (en) * 2007-06-22 2009-01-08 Nikon Corp Color two-dimensional code reader, its method of reading, and electronic camera
CN102184380A (en) * 2011-05-10 2011-09-14 华南农业大学 Color-superposition two-dimension code system and application method thereof
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices
KR20120040773A (en) * 2010-10-20 2012-04-30 김장익 Encryption and decoding method of two dimensional code pattern, distribution management method, and readign equipment by using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009003770A (en) * 2007-06-22 2009-01-08 Nikon Corp Color two-dimensional code reader, its method of reading, and electronic camera
KR20120040773A (en) * 2010-10-20 2012-04-30 김장익 Encryption and decoding method of two dimensional code pattern, distribution management method, and readign equipment by using the same
CN102184380A (en) * 2011-05-10 2011-09-14 华南农业大学 Color-superposition two-dimension code system and application method thereof
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾华国: "基于移动终端彩色二维条码编解码算法研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 1, 15 December 2011 (2011-12-15) *

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310258A (en) * 2013-06-09 2013-09-18 江苏科技大学 Self-adaptive extended black and while code coding method
CN103310258B (en) * 2013-06-09 2016-02-17 江苏科技大学 A kind of self-adaptation expansion black and white code encoding method
CN103489026A (en) * 2013-09-24 2014-01-01 深圳市中选科技有限公司 Colorful two-dimension code, generating method and generating system thereof and printed article
CN103489026B (en) * 2013-09-24 2017-02-15 深圳市中选科技有限公司 Colorful two-dimension code, generating method and generating system thereof and printed article
CN103745252A (en) * 2013-12-27 2014-04-23 广州市宝比塑料制品有限公司 Coding line, two-dimensional coding method and two-dimensional decoding method
CN103745252B (en) * 2013-12-27 2017-04-05 广州市宝比万像科技有限公司 Coding row, two-dimentional code encoding method and Quick Response Code coding/decoding method
CN104239927A (en) * 2014-08-01 2014-12-24 周奇 Colored two-dimension code generating method and decoding method
CN104239927B (en) * 2014-08-01 2017-02-15 周奇 Colored two-dimension code generating method and decoding method
CN104392260A (en) * 2014-12-17 2015-03-04 肖学静 Two-dimensional code anti-counterfeiting method based on additional information
TWI557647B (en) * 2015-02-28 2016-11-11 Two - dimensional code, generation method and recognition method with two - dimensional software installation information
CN104636784A (en) * 2015-02-28 2015-05-20 立德高科(北京)数码科技有限责任公司 Two-dimensional code, and generation method and identification method thereof
CN105046306A (en) * 2015-05-05 2015-11-11 华中科技大学 Method for encoding color multi-dimensional codes containing information of variety of biological characteristics
CN105117757B (en) * 2015-08-26 2018-07-06 复旦大学无锡研究院 A kind of Quick Response Code encryption and decryption approaches based on random grain
CN105117757A (en) * 2015-08-26 2015-12-02 复旦大学无锡研究院 Quick response code encryption and decryption method based on random textures
CN105069498A (en) * 2015-09-09 2015-11-18 杭州甄别网络科技有限公司 Two-dimensional code color encryption method and device
CN105069498B (en) * 2015-09-09 2017-10-17 杭州甄别网络科技有限公司 The colour-enciphered method and device of Quick Response Code
US11182659B2 (en) 2015-09-10 2021-11-23 Alibaba Group Holding Limited Generating and decoding two-dimensional code
CN106529633A (en) * 2015-09-10 2017-03-22 阿里巴巴集团控股有限公司 Two-dimensional code generation method and decoding method and device
CN108351979A (en) * 2015-11-09 2018-07-31 三星电子株式会社 Electronic equipment and its operating method
CN108351979B (en) * 2015-11-09 2021-06-18 三星电子株式会社 Electronic device and operation method thereof
CN105825257B (en) * 2016-03-09 2018-05-29 东北大学 Information hiding and hiding information extracting method and system based on two-dimensional bar code
CN105976004B (en) * 2016-04-25 2019-05-07 华南农业大学 A kind of color 2 D code multidimensional information coding, coding/decoding method and device
CN105976004A (en) * 2016-04-25 2016-09-28 华南农业大学 Color two-dimensional code multi-dimensional information encoding and decoding methods and devices
CN106330976A (en) * 2016-11-03 2017-01-11 武汉斗鱼网络科技有限公司 Information encryption and decryption method and device
CN108694428A (en) * 2017-04-05 2018-10-23 玛尔提柯西株式会社 The image conversion method of anti-fake two-dimension code and anti-fake two-dimension code
CN107423793A (en) * 2017-04-28 2017-12-01 南京邮电大学 A kind of Quick Response Code generation identification technology of new type of safe
CN109756459A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Data processing, data identification method, equipment, medium
CN109756459B (en) * 2017-11-06 2022-03-29 阿里巴巴集团控股有限公司 Data processing method, data identification method, data processing device, data identification device, and data processing medium
CN108268178B (en) * 2018-02-27 2021-07-13 Tcl移动通信科技(宁波)有限公司 Mobile terminal touch screen coordinate output control, mobile terminal and storage medium
CN108268178A (en) * 2018-02-27 2018-07-10 Tcl移动通信科技(宁波)有限公司 Mobile terminal touch screen coordinate output control, mobile terminal and storage medium
CN108921266B (en) * 2018-09-29 2021-01-22 长安大学 Static two-dimensional code encryption display method and device based on image segmentation
CN108921266A (en) * 2018-09-29 2018-11-30 长安大学 A kind of static two dimensional code encryption display methods and device based on image segmentation
CN109784454A (en) * 2019-01-16 2019-05-21 王诗会 A kind of information concealing method based on two dimensional code, device and electronic equipment
CN110705997A (en) * 2019-08-28 2020-01-17 江苏南大数码科技有限公司 Anti-counterfeiting coding method compatible with heterogeneous system
CN111428531A (en) * 2020-03-13 2020-07-17 郑州大学 Art QR code recognition method and device, electronic equipment and storage medium
CN112949800A (en) * 2021-01-27 2021-06-11 中国银联股份有限公司 Method, device and storage medium for generating, playing and processing graphic code video
CN112949800B (en) * 2021-01-27 2024-02-06 中国银联股份有限公司 Method, apparatus and storage medium for generating, playing and processing graphic code video

Also Published As

Publication number Publication date
CN102916804B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN102916804B (en) Two-dimension code coding and decoding method and device based on local color verification
CN102902997B (en) A kind of Quick Response Code hybrid coding, decoding device and method
CN102184380B (en) Color-superposition two-dimension code system and application method thereof
CN102270294A (en) Bar code and two-dimension code hybrid coding and decoding methods and devices
CN103198344B (en) Tax control secure two-dimensional code coding, decoding processing method
CN102930317B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
CN104081413B (en) Gradual bar code
CN102576394B (en) Unique identification, uniquely identified method and uniquely identified is provided to use
CN102855510B (en) Anti-fake product and recognition methods thereof
US7614546B2 (en) Method and system for deterring product counterfeiting, diversion and piracy
CN103020682B (en) Books Quick Response Code identification generation apparatus, Quick Response Code identification recognition device and system
CN105976005A (en) Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device
CN109146024A (en) Art work Anti-fake electronic label System and method for based on block chain
CN104268610B (en) One kind classification QR code generating methods and read method
US9563830B2 (en) Incremental information object with an embedded information region
US9613327B2 (en) Adapting an incremental information object
CN106067121A (en) A kind of product off-line false distinguishing method based on NFC technique
CN103985082A (en) Verification method and device for electronic certificate information
CN104899748A (en) Two-dimensional code and scratch-off code composite identifying method based on identity authentication technology
CN116029745A (en) Digital label anti-counterfeiting tracing method, device and system based on blockchain
CN104881811A (en) Management method, system and device for electronizing note information
CN103765449B (en) Generate increment information object
CN106712952B (en) Radio frequency tag security identification method and system
EP2910042B1 (en) Secure information transfer via bar codes
US9087252B2 (en) Grayscale incremental information object

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