WO2018137602A1 - 复合型二维码的生成、识读方法及装置 - Google Patents

复合型二维码的生成、识读方法及装置 Download PDF

Info

Publication number
WO2018137602A1
WO2018137602A1 PCT/CN2018/073752 CN2018073752W WO2018137602A1 WO 2018137602 A1 WO2018137602 A1 WO 2018137602A1 CN 2018073752 W CN2018073752 W CN 2018073752W WO 2018137602 A1 WO2018137602 A1 WO 2018137602A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
information
encoding
module
composite
Prior art date
Application number
PCT/CN2018/073752
Other languages
English (en)
French (fr)
Inventor
沈维
王四平
Original Assignee
北京大码技术有限公司
北京西阁万投资咨询有限公司
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 北京大码技术有限公司, 北京西阁万投资咨询有限公司 filed Critical 北京大码技术有限公司
Priority to JP2019539253A priority Critical patent/JP6961705B2/ja
Priority to US16/479,911 priority patent/US11042791B2/en
Publication of WO2018137602A1 publication Critical patent/WO2018137602A1/zh

Links

Images

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/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
    • 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/06075Constructional details the marking containing means for error correction
    • 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/06178Constructional details the marking having a feature size being smaller than can be seen by the unaided human eye
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/1434Barcodes with supplemental or add-on codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction

Definitions

  • the invention relates to a method and a device for generating and reading a composite two-dimensional code, in particular to a technique for coding multiple sets of information in a two-dimensional code to improve the security of the two-dimensional code.
  • Two-dimensional code has been widely used, especially for smart phone scanning code Internet access, scan code payment, etc., has been popularized. Since the encoding and decoding of the two-dimensional code are already open technologies, anyone can generate a two-dimensional code through the two-dimensional code generation software or the website, and the security of the scanning code online and payment is greatly challenged. Improving the security of QR codes is an urgent problem to be solved in the current two-dimensional code field.
  • a two-dimensional code in which color information is superimposed is disclosed in Publication No. 1 (Publication No.: CN102184380.A).
  • the technical idea is to superimpose a color coating on a common two-dimensional code, and the color coating is composed of a combination of modules of different colors to form hidden information.
  • the hidden information is encrypted in an encrypted manner and requires a key to decrypt.
  • the hidden information is read at the same time, and the authenticity of the two-dimensional code is verified by decrypting the hidden information.
  • Publication 2 (Publication No.: CN102902997A) discloses a hybrid coded two-dimensional code. It encrypts a part of the information in the original information of the two-dimensional code to form hidden information that requires key decryption. When reading, the key is used to decrypt the hidden information to obtain complete information.
  • Publication Document 3 discloses a two-dimensional code anti-counterfeiting method based on additional information.
  • the technical idea is to change the color of the standard two-dimensional code part module by adding a set of secret points to the standard two-dimensional code, and change the pattern of the two-dimensional code to generate a two-dimensional code figure different from the standard two-dimensional code.
  • the position of the standard two-dimensional code and the location of the secret point are stored in the server, and the authenticity of the two-dimensional code is determined by confirming the position of the secret point.
  • the above existing methods are based on the existing two-dimensional code, and a set of data or a secret point is set, and the two-dimensional code information is verified to achieve the purpose of anti-counterfeiting. Since the additional data and the secret point are easy to read and recognize, the problem that the two-dimensional code is easily copied is still present.
  • the hidden information of the color is encrypted, but as long as the encoding rule is grasped, the same color coating can be reproduced by using the read bit stream without decrypting the information itself. Due to the visibility of the color coating, the analytical coding rules for color coatings are also easily cracked. At the same time, the color coating is added to increase the manufacturing cost of the two-dimensional code.
  • the identical two-dimensional code can be easily reproduced by using the existing two-dimensional code generating tool based on the read bit stream.
  • the two-dimensional code has an overlay layer, and the encryption symbol is printed on the overlay layer, which increases the complexity of the production.
  • the secret point has only the position information. Since the secret point itself does not carry information, the information of the two-dimensional code does not change itself. After the two-dimensional code is copied by the read information, the copied two-dimensional code pattern and the copied two-dimensional code pattern are copied. By comparing the two-dimensional code patterns, the position of the secret point can be determined, and the same two-dimensional code can be reproduced by setting the secret point. Moreover, since the density point has only position information, once the density point is stained, it is impossible to discriminate the authenticity of the two-dimensional code, and there is a problem that the reliability is not high.
  • QR code is also widely used in logistics tracking and management. Enterprise marketing promotion also uses two-dimensional code. Multiple QR codes for different purposes are usually printed on one item or package, which is not only easy to cause user confusion, but also waste. Paper and ink.
  • An object of the present invention is to solve the above problems of the prior art, and to provide a method and apparatus for generating and reading a composite two-dimensional code that can be programmed into a plurality of sets of information and that are not easily copied.
  • a first technical solution of the present invention is a composite two-dimensional code generating device, which comprises a two-dimensional code encoding module (1), a two-dimensional code graphic generating module (2), an implicit information encoding module (3), and then a coding area setting module (5), a graphic synthesis module (6), and an output module (7),
  • the two-dimensional code encoding module (1) generates two-dimensional code encoding information according to the two-dimensional code information
  • the two-dimensional code pattern generating module (2) generates a two-dimensional code pattern according to the two-dimensional code encoding information
  • the implicit information encoding module (3) generates re-encoding information according to the implicit information
  • the re-encoding area setting module (5) sets a re-encoding area for compiling the implicit information in the two-dimensional code pattern
  • the graphics synthesis module (6) adjusts a module distribution of the re-encoding region (Q) in the two-dimensional code pattern (W) according to the re-encoding information, and encodes the implicit information into the two-dimensional code pattern. , generating a composite two-dimensional code.
  • the second technical solution is based on the first technical solution, and further includes an output module (7), wherein the output module (7) has a bit error rate of the two-dimensional code before outputting the composite two-dimensional code. The error correction rate or the remaining error correction margin is verified.
  • the third technical solution is based on the second technical solution, characterized in that it further has a mask processing module (8), and the graphics synthesis module (6) encodes the hidden information into the two-dimensional code pattern, and the mask is The membrane processing module (8) performs mask processing to generate a composite two-dimensional code.
  • the fourth technical solution is based on the third technical solution, characterized in that the implicit information encoding module (3) adds an error correcting codeword when generating the re-encoding information, so that the implicit information has an error correcting function.
  • the fifth technical solution is based on the fourth technical solution, characterized in that the re-encoding area setting module (5) sets a plurality of re-encoding areas.
  • the sixth technical solution is based on the fifth technical solution, wherein the two-dimensional code encoding module (1) combines the two-dimensional code information and the setting information of the re-encoding region into combined information when generating the two-dimensional code encoding information. And generating two-dimensional code encoding information according to the combined information.
  • the seventh technical solution is the technical solution according to any one of the first to sixth, characterized in that it further has an implicit information graphic generating module (4), and the hidden information graphic generating module (4) is in accordance with the re-encoding region The shape and the number of modules included, an implicit information encoding graphic is generated, the module distribution in the implicit information encoding graphic corresponding to the re-encoding information.
  • the eighth technical solution is a composite two-dimensional code generation method, which is characterized in that it comprises the following steps:
  • Step 1 (S2) generating two-dimensional code encoding information according to the two-dimensional code information
  • Step 2 (S3) generating a two-dimensional code pattern (W) by using the two-dimensional code encoding information
  • Step 3 setting a re-encoding area (Q) in the generated two-dimensional code pattern (W),
  • Step 4 (S5) generating re-encoding information according to the implicit information
  • Step 5 (S6) generating an implicit information coding pattern according to the shape of the re-encoding region (Q) and the included module, so that the module distribution in the implicit information coding pattern corresponds to the re-encoding information
  • Step 6 (S7) according to the implicit information coding pattern, the distribution of the dark module and the light color module in the re-encoding region (Q) is replaced by the same distribution as the implicit information encoding graphic, and the implicit information is encoded into two.
  • the dimension code a composite two-dimensional code is generated.
  • the ninth technical solution is based on the eighth technical solution, characterized in that it further has a step 7 (S8) for verifying whether the error rate of the composite two-dimensional code is smaller than the error correction rate, and if the error rate is greater than the error correction rate, Set the error correction level of the QR code or adjust the position of the re-encoding area (Q).
  • S8 for verifying whether the error rate of the composite two-dimensional code is smaller than the error correction rate, and if the error rate is greater than the error correction rate, Set the error correction level of the QR code or adjust the position of the re-encoding area (Q).
  • a tenth technical solution is based on the ninth technical solution, characterized in that
  • Step 6a is substituted for the step 5 (S6), step 6 (S7), in step 6a, the symbols in the re-encoding information are read in order, and the values of the corresponding modules in the re-encoding region are performed. For comparison, the inconsistent modules are inversely processed, and the hidden information is encoded into the two-dimensional code to generate a composite two-dimensional code.
  • An eleventh technical solution is based on a tenth technical solution, characterized in that
  • step 4 (S5) when the re-encoding information is generated, the error correction codeword is added to make the implicit information have an error correction function.
  • a twelfth technical solution is the eleventh aspect, characterized in that in the step 3 (S4), a plurality of re-encoding regions (Q) are set in the generated two-dimensional code pattern (W).
  • the thirteenth technical solution is the technical solution according to any one of the seventh to twelfth, characterized in that, in the step 1 (S2), when the two-dimensional code encoding information is generated, the two-dimensional code information and the setting information of the re-encoding region are Combining the combined information, generating two-dimensional code encoding information according to the combined information.
  • the fourteenth technical solution is a composite two-dimensional code reading device, which comprises a two-dimensional code pattern acquiring module (11), a two-dimensional code decoding module (12), a re-encoding region determining module (13), and an implicit Information decoding module (14),
  • the composite two-dimensional code has two-dimensional code information and implicit information, and the hidden information is encoded into the two-dimensional code graphic by re-encoding a part of the module of the two-dimensional code.
  • the two-dimensional code pattern obtaining module (11) is configured to acquire an image of a composite two-dimensional code
  • the two-dimensional code decoding module (12) decodes the acquired composite type two-dimensional code image to obtain two-dimensional code information
  • the re-encoding area determining module (13) determines the position of the re-encoding area in the composite two-dimensional code image according to a preset setting.
  • the implicit information decoding module (14) decodes the re-encoding region to obtain implicit information.
  • a fifteenth technical solution is based on the fourteenth technical solution, characterized in that
  • the two-dimensional code information of the composite two-dimensional code includes setting information of setting a re-encoding area
  • the re-encoding region determining module (13) determines the position of the re-encoding region in the composite two-dimensional code image based on the setting information programmed into the two-dimensional code information.
  • the sixteenth technical solution is a method for reading a composite two-dimensional code, which is characterized by comprising the following steps,
  • the composite two-dimensional code has two-dimensional code information and implicit information, and the hidden information is encoded into the two-dimensional code graphic by re-encoding a part of the module of the two-dimensional code.
  • Step 2 (S30) decoding the composite two-dimensional code to obtain two-dimensional code information
  • step 3 (S40) the re-encoding area (Q) in the composite type two-dimensional code image is determined based on the preset setting information.
  • step 4 (S50) the re-encoding region (Q) is decoded to obtain implicit information.
  • a seventeenth technical solution is based on the sixteenth technical solution, characterized in that
  • the two-dimensional code information of the composite two-dimensional code includes setting information of setting a re-encoding area
  • the set information is obtained from the decoded two-dimensional code information, and the re-encoding region (Q) in the composite two-dimensional code image is determined based on the setting information.
  • the modules in the re-encoding region (Q) are re-encoded to incorporate implicit information.
  • the size of the re-encoding region (Q) is set according to the error correction capability of the two-dimensional code, and the embedded implicit information does not affect the decoding of the two-dimensional code. Therefore, the two-dimensional code information compiled into the two-dimensional code can be read by the two-dimensional code reading device, and its versatility is not affected.
  • the re-encoding area in the two-dimensional code is located and decoded, and the hidden information can be read. Since the QR code does not change in appearance, the hidden information cannot be identified.
  • the two-dimensional code information can be public information, such as a web address, which is decoded and implemented by a general scan code software; and the hidden information needs to be re-coded.
  • the function of the special scanning code software can identify and decode, can be used for the management of two-dimensional code generation, and further improve the security of the two-dimensional code; in addition, it can also be used in one code, such as two-dimensional code to encode the website information, hidden
  • the information is logistics information, which unifies the user interface and saves costs.
  • FIG. 1 is a block diagram showing the structure of a composite two-dimensional code generating apparatus of the present invention
  • FIG. 4 is a flow chart showing a method of generating a composite type two-dimensional code
  • Figure 5 is a block diagram showing the structure of a composite type two-dimensional code reading device of the present invention.
  • 6 is a flow chart for reading a composite two-dimensional code
  • FIG. 7 is a flow chart of embedding implicit information in a two-dimensional code using a codeword sequence of implicit information
  • Figure 8 is a modification of the composite two-dimensional code generating device
  • FIG. 10 is an example of performing advertisement monitoring using a composite type two-dimensional code
  • 11 is an example of a composite two-dimensional code applied to logistics plus marketing
  • Figure 12 is an example of increasing security by adding a re-encoding area
  • FIG. 13 is an example of a minimum coding unit as a re-encoding area.
  • the two-dimensional code such as the QR code
  • the two-dimensional code has an error correction function, and a part of the pattern of the two-dimensional code is missing in the range of the error correction capability, and does not affect the decoding of the two-dimensional code.
  • the invention utilizes the error correction function of the two-dimensional code to set a re-encoding region in the two-dimensional code, and re-encodes the module in the region with a preset rule, that is, through the redistribution of the light-colored and dark-colored modules.
  • Implicit information is programmed into the two-dimensional code so that a two-dimensional code image has both two-dimensional code information and implicit information. Depending on the number of re-encoded areas, there may be multiple sets of implicit information.
  • the size and position of the re-encoding area are set according to the error correction level of the two-dimensional code, and the total error rate of the two-dimensional code is kept smaller than the error correction rate of the two-dimensional code, so that the re-encoding of the module does not affect the decoding of the two-dimensional code information. .
  • the hidden information in the re-encoding region is not decoded, that is, for the two-dimensional code decoding device, the hidden information of the hidden information itself may be any information.
  • it may be verification information for verifying the authenticity of the two-dimensional code information, and may also be management information or logistics information of the article.
  • positioning the re-encoding area, and decoding the re-encoding area can obtain implicit information.
  • the hidden information is realized by adjusting the distribution of the module of the two-dimensional code, the size and shape of the module in the re-encoding area are unchanged, and the two-dimensional code does not change in appearance, and it is impossible to distinguish the two-dimensional code from the appearance. Group information.
  • the two-dimensional code is decoded, since the hidden information is not decoded, the same two-dimensional code cannot be copied by the decoding information. That is, the implied information is encoded in the two-dimensional code.
  • the implicit information substantially functions as a digital watermark, which solves the disadvantage that the two-dimensional code is easily copied, and improves the two-dimensional Code security.
  • the two-dimensional code is not limited to the QR code, and any of the graphic codes composed of modules and having an error correction function can be applied to the present invention.
  • FIG. 1 is a block diagram showing the configuration of a composite two-dimensional code generating apparatus of the present invention.
  • the composite type two-dimensional code generating apparatus of the present invention comprises a two-dimensional code encoding module 1, a two-dimensional code pattern generating module 2, an implicit information encoding module 3, an implicit information pattern generating module 4, and re-encoding.
  • the two-dimensional code encoding module 1 is connected to the two-dimensional code graphic generating module 2; the implicit information encoding module 3 is connected to the hidden information graphic generating module 4; the two-dimensional code graphic generating module 2, the implicit information graphic generating module 4, and the re-encoding
  • the area setting module 5 is connected to the graphic composition module 6; the graphic composition module 6 is connected to the output module 7.
  • the two-dimensional code encoding module 1 is configured to convert the input two-dimensional code information into a binary codeword sequence, and add an error correcting codeword into the codeword sequence to generate two-dimensional code encoding information.
  • the error correction level of the two-dimensional code is manually set manually or automatically according to the amount of information of the embedded implicit information.
  • the generated two-dimensional code encoding information is input to the two-dimensional code pattern generating module 2.
  • the two-dimensional code pattern generating module 2 generates a two-dimensional code pattern based on the two-dimensional code encoding information and the version of the two-dimensional code.
  • the QR code version is manually set manually or automatically based on the amount of information encoded by the QR code.
  • the two-dimensional code graphic is input to the graphic synthesis module 6.
  • the implicit information encoding module 3 is configured to convert the implicit information into a binary codeword sequence to generate re-encoded information.
  • the re-encoding information is input to the implicit information pattern generating module 4.
  • an error correction codeword is added to the codeword sequence to make the implicit information have an error correction function.
  • the error correction level is the same as the error correction level of the two-dimensional code. Error correction is not required and can be selected as needed.
  • the error correction level of the implicit information may also be selected to be different from the two-dimensional code.
  • the re-encoding area setting module 5 is configured to set a re-encoding area for embedding the hidden information in the two-dimensional code pattern, and generate setting information including a shape of the re-encoding area, a number of modules in the area, and a reference position. .
  • the setting information is input to the graphic synthesis module 6.
  • FIG. 2 is an explanatory diagram of setting a re-encoding area.
  • the lower right corner of the two-dimensional code W is the coordinate origin O, and the re-encoding region Q reference point o is located at the coordinate origin O.
  • the re-encoding area Q is a square containing 7*7 modules. According to the three positioning patterns d of the two-dimensional code W, and the number of modules on the X and Y axes, the re-encoding area Q and the position of each module in the area in the two-dimensional code W can be determined.
  • the implicit information pattern generating module 4 generates an implicit information encoding pattern composed of a dark color module and a light color module based on the re-encoding information.
  • the shape of the implicit information encoding pattern and the number of modules included are the same as the re-encoding area, and the size may be different from the re-encoding area.
  • the implicit information encoding graphic is input to the graphic synthesis module 6.
  • the graphics synthesis module 6 determines the re-encoding region Q in the two-dimensional code pattern W according to the setting information, adjusts the module distribution in the re-encoding region Q according to the implicit information encoding pattern, and encodes the implicit information into the re-encoding region Q.
  • the two-dimensional code encoded into the hidden information is used as a composite two-dimensional code input and output module.
  • FIG. 3 is a code diagram in which implicit information is encoded in the re-encoding region. Compared with FIG. 2, the module distribution in the re-encoding region Q1 in FIG. 3 changes, and the rest does not change.
  • the output module 7 is for outputting a composite two-dimensional code. Before outputting, verify that the QR code can decode or the remaining error correction margin to ensure that the QR code can be decoded or has an error correction margin. The verification method can actually decode the composite two-dimensional code by using the two-dimensional code reading device. If the decoding cannot be performed, the error rate of the entire two-dimensional code is greater than the error correction rate, and the error correction level or the size and position of the re-encoding region needs to be adjusted, so that the error rate of the entire two-dimensional code is smaller than the error correction rate, and the output module 7 Input the decoded composite QR code for storage, printing, and so on.
  • FIG. 4 is a flow chart for generating a composite two-dimensional code.
  • Step S1 initial setting.
  • the initial setting includes the following settings: setting the error correction level of the two-dimensional code; setting the two-dimensional code version, inputting the setting information, the setting information including the shape of the re-encoding area Q, the number of modules included, and the re-encoding area Q Reference point o position (refer to Figures 2 and 3).
  • step S2 the two-dimensional code encoding module 1 generates two-dimensional code encoding information according to the two-dimensional code information and the error correction level.
  • step S3 the two-dimensional code pattern generating module 2 generates a two-dimensional code pattern based on the two-dimensional code encoding information and the version of the two-dimensional code.
  • the re-encoding area setting module 5 generates setting information including the shape of the re-encoding area Q, the number of modules included, and the position coordinate o information of the re-encoding area.
  • the re-encoding area Q is preferably disposed in the data area as shown in FIG. For the QR code, as long as the positioning pattern d is avoided, any position in the two-dimensional code can be set.
  • step S5 the implicit information encoding module 3 converts the implicit information into a binary codeword sequence, and generates re-encoding information by adding an error correcting codeword to the codeword sequence according to the set error correction level.
  • step S6 the implicit information pattern generating module 4 generates an implicit information encoding pattern which is the same shape as the re-encoding region Q and is composed of a dark color module and a light color module, based on the re-encoding information.
  • step S7 the graphics synthesis module 6 replaces the distribution of the dark module and the light color module in the re-encoding region Q with the same distribution as the implicit information encoding pattern according to the implicit information encoding pattern, and encodes the implicit information into two dimensions. In the code.
  • Step S8 the output module 7 verifies the two-dimensional code programmed into the hidden information, and verifies whether the overall error rate is smaller than the error correction rate. If the error rate is smaller than the error correction rate, in step S8, as the composite type two-dimensional code. Output for saving, transferring or printing. If the error rate is greater than the error correction rate, return to step S1 to reset the error correction level of the two-dimensional code. If the setting information can be adjusted, the position or shape of the re-encoding region Q can also be adjusted until the composite two-dimensional code The overall error rate is less than the error correction rate.
  • Fig. 5 is a block diagram showing the configuration of a composite type two-dimensional code reading device of the present invention.
  • the apparatus for reading a composite two-dimensional code of the present invention comprises a two-dimensional code pattern acquisition module 11, a two-dimensional code decoding module 12, a re-encoding area determining module 13, and an implicit information decoding module 14.
  • the two-dimensional code pattern acquisition module 11 is connected to the two-dimensional code decoding module 12 and the re-encoding area determining module 13, and the re-encoding area determining module 13 is connected to the implicit information decoding module 14.
  • the two-dimensional code pattern acquisition module 11 is configured to acquire an image of the composite two-dimensional code, including an optical method and a non-optical electronic method.
  • the acquired composite two-dimensional code image is input to the two-dimensional code decoding module 12 and the re-encoding region determining module 13.
  • the two-dimensional code decoding module 12 decodes the entire composite type two-dimensional code as an object to obtain two-dimensional code information.
  • decoding including the module in the re-encoding area Q, all the module information that causes the error is automatically corrected by the error correction code word, and no information loss or bit error occurs.
  • the re-encoding area determining module 13 determines the coordinate origin O according to the three positioning patterns d of the two-dimensional code W as shown in FIG. 2, and determines re-encoding with the same setting information as that of the re-encoding area Q when the origin O is used as a reference. Area Q. That is, it is determined that the setting information of the re-encoding area Q is predetermined.
  • the implicit information decoding module 14 decodes the module code in the re-encoding region Q to obtain implicit information.
  • Fig. 6 is a flow chart for reading a composite type two-dimensional code.
  • step S20 the two-dimensional code pattern acquisition module 11 acquires an image of the composite two-dimensional code, and the image is input to the two-dimensional code decoding module 12 and the re-encoding region determining module 13.
  • step S30 the two-dimensional code decoding module 12 decodes the entire composite type two-dimensional code to obtain two-dimensional code information. Including the module in the re-encoding area, all the module information that causes the error is automatically corrected by the error correction code word, and no information loss or bit error occurs.
  • step S40 the re-encoding region determining module 13 determines the re-encoding region Q in the image of the composite-type two-dimensional code.
  • step S50 the implicit information decoding module 14 decodes the module distribution in the re-encoding region Q to obtain implicit information.
  • the above description has been made on the generation, the reading device and the generation of the composite two-dimensional code of the present invention. Since the hidden information is realized by adjusting the distribution of the two-dimensional code partial module, the entire two-dimensional code does not have any shape change in appearance. . And the decoding device of the universal two-dimensional code can only obtain the two-dimensional code information, and the information obtained by the decoding is used for copying, and only the two-dimensional code without the hidden information can be obtained, that is, the hidden information also functions as a digital watermark, and the solution is solved. The problem that the two-dimensional code is easy to be copied improves the security of the two-dimensional code.
  • a two-dimensional code can be programmed into multiple sets of information, it can hide information for encryption and anti-counterfeiting, and can also "multiple use of one code", which solves the confusion caused by printing or pasting multiple QR codes on one item or package. , saving paper and ink costs.
  • the shape of the implicit information encoding pattern is the same as the shape of the re-encoding region Q, and the module in the implicit information encoding pattern corresponds one-to-one with the module in the re-encoding region Q, and the re-encoding region Q is corresponding according to the correspondence relationship.
  • the module distribution in the case is replaced by the same distribution as the implicit information coding pattern.
  • the implicit information is directly incorporated into the re-encoding region of the two-dimensional code W by using the bit stream of the re-encoded information.
  • Figure 7 is a flow diagram of the inclusion of implicit information in a two-dimensional code using a bitstream of re-encoded information.
  • Step S71 determining the total number of modules in the re-encoding area Q.
  • step S73 the value of each bit of the re-encoded information bit stream is read in order.
  • step S74 the value of the bit stream is compared with the value of the corresponding module in the re-encoding area Q. For example, the value of the dark module is 1, and the value of the light-colored module is 0.
  • step S75 the result of the comparison is judged. If yes, the process goes to step S77. If not, the process goes to step S76, and the module is inversely processed to adjust the dark module to a light color module or the light color module to a dark color module.
  • step S77 it is determined whether the counter value S of the counter is greater than or equal to T. If it is not greater than or equal to T, the process returns to step S72, and the above steps are repeated until the count value S is greater than or equal to T, and each bit of the re-encoded information bit stream is compared. , end the process.
  • the hidden information coding pattern can be set in the shape of the re-encoding area Q, and the hidden information can be incorporated into the two-dimensional code, and the hidden information pattern generation module 4 can be omitted, simplifying the structure.
  • Modification 2 is a technical solution capable of changing the setting of the re-encoding area Q.
  • the re-encoding area setting module 5 is connected to the two-dimensional code encoding module 1 (indicated by a broken line in FIG. 1), and the re-encoding area setting module 5 sets the re-encoding area Q,
  • the setting information including the shape, the position, and the number of modules included in the re-encoding region Q is input to the two-dimensional code encoding module 1, and the two-dimensional code encoding module 1 combines the two-dimensional code information into combined information, and generates two combined information.
  • Dimension code encoding information The beginning and end of the setting information are marked with special characters.
  • the two-dimensional code decoding module 12 is connected to the re-encoding region determining module 13 (indicated by a broken line in FIG. 5), and the setting information decoded by the two-dimensional code decoding module 12 is input to the The coding region determining module 13 sets the re-encoding region Q based on the setting information. Therefore, the re-encoding area Q can be correctly set without the need to pre-arrange the composite type two-dimensional code reading device.
  • the two-dimensional code decoding module 12 discriminates the setting information by detecting a special character, and performs no display processing.
  • each two-dimensional code can have different re-encoding region positions or shapes, so that it is difficult for the interpreter to find the re-encoding region Q.
  • the location improves the difficulty of cracking the encoding algorithm and further improves the security of the two-dimensional code.
  • Fig. 8 is a modification of the composite type two-dimensional code generating device.
  • the difference from the structure of FIG. 1 is that the mask processing module 8 is added.
  • the graphic synthesis module 6 is connected to the output module 7 through a mask processing module 8.
  • the two-dimensional code pattern generation module 2 may not perform mask processing when generating the two-dimensional code.
  • the graphics synthesis module 6 encodes the hidden information into the two-dimensional code W
  • the mask processing module 8 performs mask processing, and the coded region is also masked.
  • the dark module and the light color module are evenly distributed, and only the image is improved.
  • the anti-fouling ability of the hidden information eliminates the traces of implied information, further improving the security of the two-dimensional code.
  • Fig. 10 is a modification of the re-encoding area.
  • the re-encoding area is a square.
  • the re-encoding area Q2 in the two-dimensional code W2 is a rectangular area including 7*14 modules, and the reference position o coincides with the coordinate origin O. .
  • Fig. 11 is a modification of the re-encoding area.
  • the re-encoding region Q3 in the two-dimensional code W3 is the same as in FIG. 11 and is a rectangular region including 7*14 modules. The difference from FIG. 11 is that the position of the re-encoding region Q3 is different, and the reference position o of the re-encoding region Q3 is located. Coordinate (12, 4) position.
  • Fig. 12 is a modification of the re-encoding area.
  • two re-encoding areas Q4 and Q5 are provided in the two-dimensional code W4, and the re-encoding areas Q4 and Q5 are rectangular areas including 7*7 modules, and the reference position o1 of the re-encoding area Q4 is located in coordinates ( 6, 6) Position, the reference position o2 of the re-encoding area Q5 is located at the coordinates (21, 3).
  • Fig. 13 is a modification of the re-encoding area.
  • a plurality of 1*1 modules of re-encoding units Qa...Qn are provided in the two-dimensional code W, which are illustrated as ten, and may be more, for example, 49.
  • the combination of the respective re-encoding units constitutes a re-encoding region, that is, it is equivalent to dispersing the re-encoding region into a plurality of re-encoding units according to a certain rule, and the implicit information is dispersedly incorporated into each re-encoding unit,
  • the re-encoding unit is determined based on the coordinate positions of the respective re-encoding units, and each re-encoding unit is arranged or restored into a re-encoding area having a certain shape according to a set rule, and then decoded. Since the re-encoding unit is dispersed at different positions of the two-dimensional code, the embedded implicit information is less likely to be read.
  • the encryption rule of the re-encoding unit is encrypted, and the algorithm for generating the encoded information is more difficult to crack, thereby further improving the security of the two-dimensional code.
  • the method of generating and reading the generation and reading device of the present invention has been described above.
  • the generated composite type two-dimensional code is not only easy to copy, but also uses its multiple sets of information to further improve the anti-counterfeiting function or multi-purpose.
  • the composite two-dimensional code of Fig. 3 is an application in the field of registration management.
  • QR code information is programmed into the URL information: http://www.big-code.cn, the QR code of the two-dimensional code correction level is selected, and the 7*7 module of the rectangular area (re-encoding area Q) is adopted.
  • Re-encoding programmed into the number 123456, the encoding method uses a similar two-dimensional matrix code encoding method, and adds an error correction algorithm to ensure stable reading.
  • the number 123456 represents the registration ID of the two-dimensional code for management of the two-dimensional code.
  • the user's universal reading software reads the QR code information and connects to the website content.
  • the dedicated reading software can only read the information of the 7*7 module coding area by positioning, verify the registration ID by networking or reading the local query mode of the terminal; and can also read the information of the QR code and the 7*7 module coding area.
  • the registration ID is verified by networking or by reading the local query mode of the terminal.
  • the special reading software can also read the QR code information and the information of the 7*7 module coding area.
  • the reading terminal can access the Internet through the URL in the QR code. Otherwise, an error message is displayed to ensure the security of the scan code.
  • FIG. 9 is an example of secure payment using a composite type two-dimensional code.
  • the two-dimensional code information is user account information: 1320 3234 4894 3928 23
  • the account information may be dynamically changed after being encrypted, and the two-dimensional code map is also changed after the dynamic change.
  • the error correction level of the two-dimensional code is the same as that of FIG. 3, and the highest level of H is selected.
  • the rectangular area of the 7*7 modules in the lower right corner of the two-dimensional code is selected as the re-encoding area Q1. When the re-encoding area Q1 is set, it can be tested first. The occlusion of the rectangular area does not affect the two-dimensional code reading, that is, the error rate of the two-dimensional code caused by the re-encoding area is smaller than the error correction rate of the two-dimensional code.
  • the 7*7 module of the re-encoding area Q1 is re-encoded, and the number 123123 is programmed, and a similar two-dimensional matrix code encoding method is used, and an error correction algorithm is added to ensure stable reading.
  • This number 123123 is equivalent to the key of the account information.
  • the reading software determines the information (key) of the two-dimensional code and the re-encoding area of the 7*7 module by positioning, and performs verification on the network. If the matching is correct, the payment link is entered, otherwise the payment is refused. This approach makes payment security even higher.
  • the URL information is programmed: http://www.big-code.cn, the QR code of the two-dimensional code is selected to the highest level, and the rectangle of the 7*7 module in the lower right corner of the QR code is selected.
  • the area is the re-encoding area Q.
  • the 7*7 module of the rectangular area is re-encoded into the number 456456, and a similar two-dimensional matrix code encoding method is used, and an error correction algorithm is added to ensure stable reading.
  • the number 456456 represents a parameter of the two-dimensional code, such as a media name, for identifying the source of the two-dimensional code scan code.
  • the user's reading software (having the function of reading the re-encoding area information) reads the information of the two-dimensional code and the newly coded area, and the two-dimensional code information is connected to the website content; the information of the re-encoding area (456456) is imported through the network.
  • Back-end database for monitoring, analysis, statistics, etc.
  • Figure 10 is an example of a composite two-dimensional code applied to logistics plus marketing.
  • the URL information is compiled: http://www.big-code.cn, the H-level of the two-dimensional code error correction level is selected, and the rectangle of the 7*14 module in the lower right corner of the QR code is selected.
  • the area is the re-encoding area Q2, and the 7*14 module of the rectangular area is re-encoded into the number 1234567890, which is encoded by a similar two-dimensional matrix code, and an error correction algorithm is added to ensure stable reading.
  • the number 1234567890 represents the logistics code.
  • the two-dimensional code encoding information does not change, and the encoding information of the 7*14 module area changes, representing the logistics code.
  • the user's general reading software reads the QR code information and connects to the website content; the dedicated reading software reads the information of the 7*14 module coding area (logistics code 1234567890) by positioning, and imports the back-end database through the network for logistics monitoring, Statistics, analysis, etc.
  • Fig. 11 is an example of a composite two-dimensional code applied to two-dimensional code information fidelity.
  • the number of modules on the 12 and the number of modules on the Y axis are 4.
  • the reading terminal then decodes the encoding information of the 7*14 area, and the information may be a password, a key, etc., and the authenticity of the information in the two-dimensional code may be confirmed by networking or decoding the local operation of the terminal (such as digest calculation).
  • This modification uses a dynamic position plus graphics encryption method to make the information generation algorithm of the re-encoded area more difficult to crack, thereby increasing security.
  • FIG. 12 is an example of increasing security by adding a re-encoding area.
  • the reading terminal decodes the encoding information of the 7*7 module 1 and the 7*7 module 2 area, and the combination of the two information may be a password, a key, etc., and may be confirmed by networking or decoding the local operation of the terminal (such as digest calculation).
  • the authenticity of the information in the QR code uses a plurality of coding region methods, so that the information generation algorithm of the re-encoding region is more difficult to crack, thereby increasing security.
  • one or more re-encoding regions are set, and hidden information, such as a key and logistics management information, is encoded in the re-encoding region, but the re-encoding region may also be dispersed in units of minimum coding units (modules). In the two-dimensional code pattern, as long as the overall error rate caused by it is smaller than the error correction rate.
  • Figure 13 is an example of incorporating implicit information in a minimum re-encoding unit.
  • the re-encoding units (Qa...Qn) of a plurality of 1*1 modules are arranged in the two-dimensional code, which are illustrated as ten, and may be more, for example, 49.
  • the last "201435" of the two-dimensional code coding information is the position distribution data or rules of these re-encoding units, for example, according to the coordinates, or according to the distribution rule of a certain algorithm, the distribution rule data of "201435" can also be read with the terminal.
  • Another data in the data is combined or computed to obtain distribution rule data for each re-encoding unit.
  • the reading terminal decodes the minimum re-encoding units of the 1*1 modules according to the distribution rule data, for example, a total of 49 minimum re-encoding units, according to the distribution rule data, such as the re-encoding area restored to the 7*7 module, a single pair of 7*7
  • the module decodes.
  • the decoded information may be a password, a key, etc., and the authenticity of the information in the two-dimensional code may be confirmed by networking or decoding a local operation of the terminal (such as a digest calculation).
  • the scheme uses multiple re-encoding units to make the location of the re-encoding region encrypted, and then encodes the information, that is, the algorithm for generating the implicit information is more difficult to crack, further improving the security of the two-dimensional code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Facsimile Transmission Control (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Error Detection And Correction (AREA)

Abstract

本发明提供一种复合型二维码生成装置。包括,二维码编码模块1,二维码图形生成模块2,隐含信息编码模块3,隐含信息图形生成模块4,再编码区域设定模块5,图形合成模块6,输出模块7。二维码编码模块1将输入的二维码信息转换成二进制的码字序列,生成二维码编码信息;二维码图形生成模块2根据二维码编码信息生成二维码图形,隐含信息编码模块3将隐含信息转换成二进制的码字序列,生成再编码信息;再编码区域设定模块5在二维码图形中设定用于编入隐含信息的再编码区域;隐含信息图形生成模块4根据再编码信息,生成由深色模块和浅色模块构成的隐含信息编码图形;图形合成模块6根据隐含信息编码图形,调整二维码图形的再编码区域中的模块分布,编入隐含信息。

Description

复合型二维码的生成、识读方法及装置 技术领域
本发明涉及复合型二维码的生成、识读方法及装置,尤其涉及在一个二维码中编入多组信息,提高二维码安全性的技术。
背景技术
二维码已被广泛应用,特别是智能手机扫码上网、扫码支付等,已经得到普及。由于二维码的编码和解码都已是公开技术,任何人都可以通过二维码生成软件或网站生成二维码,扫码上网、支付的安全性受到极大挑战。提高二维码的安全性是当前二维码领域急需解决的问题。
公开文献1(公开号:CN102184380.A)中公开了一种叠加彩色信息的二维码。其技术思想是在普通的二维码上叠加彩色涂层,彩色涂层由不同颜色的模块组合构成隐藏信息。隐藏信息采用加密的方式加密,需要密钥才能解密。在读取二维码时,同时读取隐藏信息,通过解密隐藏信息,对二维码的真伪进行验证。
公开文献2(公开号:CN102902997A)公开了一种混合编码的二维码。其是将二维码原始信息中的一部分信息进行加密形成需要密钥解密的隐藏信息。识读时,利用密钥对隐藏信息进行解密,才能获得完整的信息。
公开文献3(公开号:CN104392260A)公开了一种基于附加信息的二维码防伪方法。其技术思想是通过向标准二维码中加入一组密点,改变标准二维码部分模块的颜色,使二维码的图形发生变化,生成与标准二维码不同的二维码图形。标准二维码的图形和密点的位置,存储在服 务器中,通过确认密点的位置,判别二维码的真伪。
以上现有的方法都是在现有二维码的基础上,另设一组数据或密点,由其对二维码信息进行验证达到防伪的目的。由于另设的数据、密点容易读取和识别,二维码容易被复制的问题依然存在。
如公开文献1,彩色的隐藏信息虽然内容被加密,但只要掌握编码规则,利用读取的位流,就能复制出相同的彩色涂层,而不需要对信息本身进行解密。由于彩色涂层的可视性,通过对彩色涂层的分析编码规则也容易破解。同时加入彩色涂层使得二维码的制作成本增加很多。
如公开文献2,虽然二维码中一部分信息被加密,但根据读取的位流,利用现有的二维码生成工具,可简单的复制出完全相同的二维码。同时二维码都有覆盖层,覆盖层上印制加密符号,增加了制作的复杂性。
公开文献3中,密点只有位置信息,由于密点本身不带信息,二维码的信息本身没有变化,用读取的信息复制二维码后,将复制的二维码图形与被复制的二维码图形进行对比,即可判别密点的位置,通过设置密点同样能够复制出完全相同的二维码。并且由于密点只有位置信息,一旦密点受到污损,就无法判别二维码的真伪,存在可靠性不高的问题。
另外,二维码也广泛应用于物流追踪和管理,企业营销推广也利用二维码,不同用途的多个二维码,通常印刷在一个物品或包装上,不仅容易造成用户的混淆,也浪费纸张和油墨。
发明内容
本发明的目的在于解决上述现有技术的问题,提供一种能够编入多组信息,并且不容易被复制的复合型二维码的生成、识读方法及装置。
本发明的第一技术方案为复合型二维码生成装置,其特征在于包括,二维码编码模块(1)、二维码图形生成模块(2)、隐含信息编码模块(3)、再编码区域设定模块(5)、图形合成模块(6)、输出模块(7),
所述二维码编码模块(1)根据二维码信息,生成二维码编码信息,
所述二维码图形生成模块(2)根据二维码编码信息生成二维码图形,
所述隐含信息编码模块(3)根据隐含信息,生成再编码信息
所述再编码区域设定模块(5)在二维码图形中设定用于编入隐含信息的再编码区域,
所述图形合成模块(6)根据所述再编码信息,调整二维码图形(W)中的所述再编码区域(Q)的模块分布,将隐含信息编入所述二维码图形中,生成复合型二维码。
第二技术方案基于第一技术方案,其特征在于,还包括输出模块(7),所述输出模块(7)在输出所述复合型二维码之前,对二维码的误码率是否小于纠错率或剩余的纠错余量进行验证。
第三技术方案基于第二技术方案,其特征在于,还具有掩膜处理模块(8),所述图形合成模块(6)将隐含信息编入所述二维码图形后,由所述掩膜处理模块(8)进行掩膜处理,生成复合型二维码。
第四技术方案基于第三技术方案,其特征在于,所述隐含信息编码模块(3)在生成再编码信息时加入纠错码字,使隐含信息具有纠错功能。
第五技术方案基于第四技术方案,其特征在于,所述再编码区域设定模块(5)设定多个再编码区域。
第六技术方案基于第五技术方案,其特征在于,所述二维码编码模块(1)在生成二维码编码信息时,将二维码信息与再编码区域的设定信息组合成组合信息,根据组合信息生成二维码编码信息。
第七技术方案基于第一至六中任一项技术方案,其特征在于,还具有隐含信息图形生成模块(4),所述隐含信息图形生成模块(4)按照所述再编码区域的形状和包含的模块数量,生成隐含信息编码图形,所 述隐含信息编码图形中的模块分布对应于再编码信息。
第八技术方案为复合型二维码生成方法,其特征在于,包括以下步骤,
步骤1(S2),根据二维码信息,生成二维码编码信息,
步骤2(S3),用二维码编码信息生成二维码图形(W),
步骤3(S4),在生成的二维码图形(W)中设定再编码区域(Q),
步骤4(S5),根据隐含信息,生成再编码信息,
步骤5(S6),根据再编码区域(Q)的形状和包含的模块生成隐含信息编码图形,使隐含信息编码图形中的模块分布与再编码信息对应,
步骤6(S7),根据隐含信息编码图形,将再编码区域(Q)中深色模块和浅色模块的分布,置换成与隐含信息编码图形一样的分布,将隐含信息编入二维码中,生成复合型二维码。
第九技术方案基于第八技术方案,其特征在于,还具有步骤7(S8),对复合型二维码的误码率是否小于纠错率进行验证,如果误码率大于纠错率,重新设定二维码的纠错等级或调整再编码区域(Q)的位置。
第十技术方案基于第九技术方案,其特征在于,
用步骤6a代替所述步骤5(S6)、步骤6(S7),所述步骤6a中,按顺序读取所述再编码信息中的码元,与所述再编码区域中对应模块的数值进行比较,对不一致的模块进行反色处理,将隐含信息编入二维码中,生成复合型二维码。
第十一技术方案基于第十技术方案,其特征在于,
所述步骤4(S5)中,在生成再编码信息时,增加纠错码字,使隐含信息具有纠错功能。
第十二技术方案基于第十一技术方案,其特征在于,所述步骤3(S4)中,在生成的二维码图形(W)中设定多个再编码区域(Q)。
第十三技术方案基于第七至十二中任一项技术方案,其特征在于, 步骤1(S2)中,生成二维码编码信息时,将二维码信息与再编码区域的设定信息组合成组合信息,根据组合信息生成二维码编码信息。
第十四技术方案为复合型二维码识读装置,其特征在于包括,二维码图形获取模块(11)、二维码解码模块(12)、再编码区域确定模块(13)、隐含信息解码模块(14),
复合型二维码具有二维码信息和隐含信息,所述隐含信息通过对二维码的一部分模块进行再编码的方式编入二维码图形中,
所述二维码图形获取模块(11)用于获取复合型二维码的图像,
所述二维码解码模块(12)对获取的复合型二维码图像进行解码得到二维码信息,
所述再编码区域确定模块(13)根据预先的设定,确定复合型二维码图像中再编码区域的位置,
所述隐含信息解码模块(14)对所述再编码区域进行解码,得到隐含信息。
第十五技术方案基于第十四技术方案,其特征在于,
所述复合型二维码的二维码信息中含有设定再编码区域的设定信息,
所述再编码区域确定模块(13)根据编入二维码信息中的设定信息,确定复合型二维码图像中再编码区域的位置。
第十六技术方案为复合型二维码的识读方法,其特征在于包括以下步骤,
复合型二维码具有二维码信息和隐含信息,所述隐含信息通过对二维码的一部分模块进行再编码的方式编入二维码图形中,
步骤1(S20),获取复合型二维码的图像,
步骤2(S30),对复合型二维码解码,得到二维码信息,
步骤3(S40),根据预先设定的设定信息,确定复合型二维码图像 中的再编码区域(Q)。
步骤4(S50),对再编码区域(Q)进行解码得到隐含信息。
第十七技术方案基于第十六技术方案,其特征在于,
所述复合型二维码的二维码信息中含有设定再编码区域的设定信息,
所述步骤3(S40)中,由解码得到的二维码信息,获得设定信息,根据设定信息确定复合型二维码图像中的再编码区域(Q)。
效果
由于在二维码图形(W)中,设定一个或多个再编码区域(Q),对再编码区域(Q)中的模块进行再编码,编入隐含信息。再编码区域(Q)的大小根据二维码的纠错能力设置,编入的隐含信息不影响二维码的解码。因此,编入二维码的二维码信息可用二维码识读设备识读,其通用性不受影响。对二维码中的再编码区域进行定位、解码,能够识读隐含信息。由于二维码在外观上没有任何变化,无法识别其中的隐含信息。读取二维码,进行复制时,由于位流中不包含隐含信息,复合型二维码也无法复制,提高了二维码的安全性。由于能够在一个二维码图内编入两组以上信息,二维码信息可以是***息,如网址,由通用的扫码软件解码并实现操作;隐含信息,需用具有再编码区域定位功能的专用扫码软件才能识别并解码,可以用于二维码生成的管理,进一步提高二维码的安全性;另外,也可以一码两用,如二维码中编入网址信息,隐含信息为物流信息,对用户界面统一,同时节约成本。
附图说明
图1是本发明的复合型二维码生成装置的结构框图;
图2是设置再编码区域的说明图;
图3是在再编码区域中编入隐含信息后的码图;
图4是说明复合型二维码生成方法的流程图;
图5是本发明的复合型二维码的识读装置的结构框图;
图6是识读复合型二维码的流程图;
图7是利用隐含信息的码字序列在二维码中编入隐含信息的流程图;
图8复合型二维码生成装置的变形例;
图9是利用复合型二维码进行安全支付的示例;
图10是利用复合型二维码进行广告监测的示例;
图11是复合型二维码应用于物流加营销的示例;
图12是通过增加再编码区以增加安全性的示例;
图13是以最小编码单元作为再编码区域的示例。
具体实施方式
以下对本发明的实施方式进行说明。在以下实施方式中只是对优选实施方式和实施例进行示例性说明,不应理解为对本发明范围的限制。
首先,对本发明的技术构思进行说明。
二维码,如QR码具有纠错功能,在纠错能力范围内二维码的一部分图形缺损,不会影响二维码的解码。本发明利用二维码的纠错功能,在二维码内设定一个再编码区域,将该区域内的模块以预先设定的规则重新编码,即通过浅色和深色模块的重新分布,在二维码中编入隐含信息,使一个二维码图形中同时具有二维码信息和隐含信息。根据再编码区域的数量,编入的隐含信息可以有多组。再编码区域的大小、位置根据二维码的纠错等级设定,二维码的总误码率保持在小于二维码的纠错率,使模块的再编码不影响二维码信息的解码。
在二维码解码时,再编码区域内的隐含信息不会被解码,即,对于二维码解码设备,隐含信息的隐藏的,隐含信息本身可以是任何信息。 如可以是验证二维码信息真实性的验证用信息,也可以是物品的管理信息或物流信息。
在识读时,利用二维码的定位图形,定位再编码区域,对再编码区域进行解码可得到隐含信息。
由于隐含信息是通过调整二维码部分模块的分布实现的,再编码区域中的模块大小、形状不变,二维码在外观上没有变化,无法从外观上判别二维码中复合了多组信息。二维码解码时,由于隐含信息不会被解码,因此,利用解码信息复制是无法复制出相同的二维码。即,在二维码中编入隐含信息除使二维码具有多组信息外,隐含信息实质上起到了数字水印的作用,解决了二维码容易被复制的缺点,提高了二维码的安全性。作为二维码并不限于QR码,任何由模块组成、具有纠错功能的图形码,本发明均可适用。
以下,对本发明的实施方式进行说明。
图1是本发明的复合型二维码生成装置的结构框图。
如图1所示,本发明的复合型二维码生成装置包括,二维码编码模块1,二维码图形生成模块2,隐含信息编码模块3,隐含信息图形生成模块4,再编码区域设定模块5,图形合成模块6,输出模块7。
二维码编码模块1与二维码图形生成模块2连接;隐含信息编码模块3与隐含信息图形生成模块4连接;二维码图形生成模块2、隐含信息图形生成模块4、再编码区域设定模块5与图形合成模块6连接;图形合成模块6与输出模块7连接。
二维码编码模块1用于将输入的二维码信息转换成二进制的码字序列,在码字序列中加入纠错码字,生成二维码编码信息。二维码的纠错等级由人工手动设定或根据编入的隐含信息的信息量自动设定。生成的二维码编码信息输入到二维码图形生成模块2。
二维码图形生成模块2根据二维码编码信息以及二维码的版本,生 成二维码图形。二维码版本由人工手动设定或根据二维码编码信息的信息量自动设定。二维码图形输入到图形合成模块6。
隐含信息编码模块3用于将隐含信息转换成二进制的码字序列,生成再编码信息。再编码信息输入到隐含信息图形生成模块4。在本实施方式中,码字序列中加入纠错码字,使隐含信息具有纠错功能。纠错等级与二维码的纠错等级相同。纠错功能不是必须的,可根据需要选取。隐含信息的纠错等级也可选择与二维码不同的纠错等级。
再编码区域设定模块5用于在二维码图形中设定编入隐含信息用的再编码区域,生成包含与再编码区域的形状、区域内的模块数量以及基准位置相关的设定信息。设定信息输入到图形合成模块6。
图2是设置再编码区域的说明图。
如图2所示,二维码W的右下角为坐标原点O,再编码区域Q基准点o位于坐标原点O位置。再编码区域Q为正方形包含7*7的模块。根据二维码W的三个定位图形d,和X、Y轴上的模块数量,即可确定再编码区域Q以及区域内各模块在二维码W中的位置。
隐含信息图形生成模块4根据再编码信息,生成由深色模块和浅色模块构成的隐含信息编码图形。在本实施方式中,隐含信息编码图形的形状以及包含的模块数量与再编码区域相同,大小可与再编码区域不同。隐含信息编码图形输入到图形合成模块6。
图形合成模块6根据设定信息,在二维码图形W中确定再编码区域Q,按照隐含信息编码图形,调整再编码区域Q中的模块分布,将隐含信息编入再编码区域Q中,编入隐含信息的二维码作为复合型二维码输入输出模块。
图3是在再编码区域中编入隐含信息后的码图,与图2相比,图3中再编码区域Q1中的模块分布发生了变化,其余没有变化。
输出模块7用于输出复合型二维码。在输出之前,验证二维码是否 能解码或剩余的纠错余量,以保证二维码能够解码或有纠错余量。验证方法可以利用二维码的识读装置实际解码复合型二维码。如果无法解码,说明整个二维码的误码率大于纠错率,需提高纠错等级或调整再编码区域的大小、位置,使整个二维码的误码率小于纠错率,输出模块7输入经过解码验证的复合型二维码用于存储、打印等。
以下利用图1的复合型二维码生成装置对复合型二维码的生成方法进行说明。
图4是生成复合型二维码的流程图。
步骤S1,初始设定。初始设定包含以下设定:设定二维码的纠错等级;设定二维码版本,输入设定信息,设定信息包括再编码区域Q的形状、包含的模块数量以及再编码区域Q的基准点o位置(参照图2、3)。
步骤S2,二维码编码模块1根据二维码信息以及纠错等级,生成二维码编码信息。
步骤S3,二维码图形生成模块2根据二维码编码信息和二维码的版本,生成二维码图形。
步骤S4,再编码区域设定模块5生成设定信息,包含再编码区域Q的形状、包含的模块数量以及再编码区域的位置坐标o信息。再编码区域Q如图2所示优选设置在数据区域中。对于QR码只要避开定位图形d,可设置二维码中的任何位置。
步骤S5,隐含信息编码模块3将隐含信息转换成二进制的码字序列,并根据设定的纠错等级,在码字序列中加入纠错码字生成再编码信息。
步骤S6,隐含信息图形生成模块4根据再编码信息,生成与再编码区域Q的形状相同、由深色模块和浅色模块构成的隐含信息编码图形。
步骤S7,图形合成模块6根据隐含信息编码图形,将再编码区域Q中深色模块和浅色模块的分布,置换成与隐含信息编码图形一样的分布,将隐含信息编入二维码中。
步骤S8,输出模块7对编入隐含信息的二维码进行验证,验证其整体误码率是否小于纠错率,如果误码率小于纠错率,在步骤S8,作为复合型二维码输出,用于保存、传送或打印。如果误码率大于纠错率,返回步骤S1,重新设定二维码的纠错等级,如果设定信息可以调整,也可调整再编码区域Q的位置或形状,直至复合型二维码的整体误码率小于纠错率。
以下,对本发明的复合型二维码的识读装置进行说明。
图5是本发明的复合型二维码的识读装置的结构框图。
如图5所示,本发明的复合型二维码的识读装置包括,二维码图形获取模块11、二维码解码模块12、再编码区域确定模块13、隐含信息解码模块14。
二维码图形获取模块11与二维码解码模块12、再编码区域确定模块13连接,再编码区域确定模块13与隐含信息解码模块14连接。二维码图形获取模块11用于获取复合型二维码的图像,包括光学的方法和非光学的电子方法。获取的复合型二维码图像输入二维码解码模块12和再编码区域确定模块13。
二维码解码模块12对以整个复合型二维码为对象进行解码得到二维码信息。解码时,包括再编码区域Q中的模块,所有引起误码的模块信息,由纠错码字自动修正,不会出现信息丢失或误码。
再编码区域确定模块13如图2所示根据二维码W的三个定位图形d,确定坐标原点O,以原点O为基准用与再编码区域Q设定时相同的设定信息确定再编码区域Q。即,确定再编码区域Q的设定信息是预先约定的。
隐含信息解码模块14对再编码区域Q内的模块编码进行解码,得到隐含信息。
以下利用图5的识读装置对复合型二维码的识读方法进行说明。
图6是识读复合型二维码的流程图。
步骤S20,二维码图形获取模块11获取复合型二维码的图像,该图像输入到二维码解码模块12和再编码区域确定模块13。
步骤S30,二维码解码模块12以整个复合型二维码为对象进行解码,得到二维码信息。包括再编码区域中的模块,所有引起误码的模块信息,由纠错码字自动修正,不会出现信息丢失或误码。
步骤S40,再编码区域确定模块13在复合型二维码的图像中确定再编码区域Q。
步骤S50,隐含信息解码模块14对再编码区域Q中的模块分布进行解码得到隐含信息。
以上对本发明的复合型二维码的生成、识读装置以及生成进行了说明,由于隐含信息是通过调整二维码部分模块的分布实现的,整个二维码在外观上没有任何形状的变化。并且通用二维码的解码设备只能获得二维码信息,利用解码得到的信息进行复制,只能得到没有隐含信息的二维码,即隐含信息同时起到了数字水印的作用,解决了二维码容易被复制的问题,提高二维码的安全性。
由于一个二维码中能够编入多组信息,既能隐含信息进行加密防伪,也能“一码多用”,解决了在一个物品或包装上印刷或粘贴多个二维码造成的混淆问题,节约了纸张和油墨等成本。
以下对其他变形例进行说明。
变形例1
在以上说明中,隐含信息编码图形的形状与再编码区域Q的形状相同,隐含信息编码图形中的模块与再编码区域Q中的模块一一对应,按照对应关系,将再编码区域Q中的模块分布,置换成与隐含信息编码图形一样的分布。
在变形例1,利用再编码信息的位流,直接将隐含信息编入二维码 W的再编码区域中。
图7是利用再编码信息的位流在二维码中编入隐含信息的流程图。
步骤S71,确定再编码区域Q内的模块总数T.
步骤S72,运算计数器S=S+1,初始时S=0。
步骤S73,按顺序读取再编码信息位流每一位的数值。
步骤S74,将位流的数值与再编码区域Q中对应模块的数值进行比较,如深色模块的数值为1,浅色模块的数值为0。
步骤S75,判断比较的结果,如果一致,进入步骤S77,如果不一致,进入步骤S76,对该模块进行反色处理,将深色模块调整成浅色模块或将浅色模块调整成深色模块。
步骤S77,判别计数器的计数值S是否大于等于T,如果不大于等于T,返回到步骤S72,重复以上步骤,直至计数值S大于或等于T,再编码信息位流的每一位比较完成后,结束流程。
在变形例中,不用按照再编码区域Q的形状设置隐含信息编码图形,也能将隐含信息编入二维码中,可以省去隐含信息图形生成模块4,简化结构。
变形例2
以上说明中,生成时的再编码区域Q的设置与识读时再编码区域Q设置均是各自单独设定,由于两个区域必须相同,才能保证隐含信息的正确读取,其位置、形状以及包含的模块数量需要预先约定,在生成时无法更改。变形例2为能够更改再编码区域Q设置的技术方案。
在复合型二维码生成装置中,再编码区域设定模块5与二维码编码模块1连接(图1中,虚线表示),再编码区域设定模块5在设定再编码区域Q时,包含再编码区域Q的形状、位置以及包含的模块数量的设定信息输入到二维码编码模块1,二维码编码模块1将其与二维码信息组合成组合信息,由组合信息生成二维码编码信息。设定信息的首尾用 特殊的字符标记。
在复合型二维码的识读装置中,二维码解码模块12与再编码区域确定模块13连接(图5中,虚线表示),二维码解码模块12解码得到的设定信息输入到再编码区域确定模块13,再编码区域确定模块13根据设定信息设定再编码区域Q。因此,不需要预先约定复合型二维码的识读装置也能正确的设置再编码区域Q。
二维码解码模块12在解码时,通过检测特殊的字符,判别设定信息,做不显示处理。
在变形例中,由于再编码区域Q的形状、位置以及包含的模块数量能够任意设置,可以使各个二维码具有不同的再编码区位置或形状,使得试图破译者难以发现再编码区域Q的位置,提高了破解编码算法的难度,进一步提高二维码的安全性。
变形例3
图8是复合型二维码生成装置的变形例。
与图1结构的不同之处为,增加掩膜处理模块8。图形合成模块6通过掩膜处理模块8与输出模块7连接。
二维码图形生成模块2在生成二维码时,可以不做掩膜处理。图形合成模块6将隐含信息编入二维码W中后,由掩膜处理模块8进行掩膜处理,再编码区域也得到掩膜处理,深色模块与浅色模块分布均匀,仅提高了隐含信息的抗污损能力,消除了隐含信息编入的痕迹,进一步提高了二维码的安全性。
变形例4
图10是再编码区域的变形例。图2、3、9中,再编码区域是正方形,图10的变形例中二维码W2中的再编码区域Q2为包含7*14个模块的矩形区域,基准位置o,与坐标原点O重合。
变形例5
图11是再编码区域的变形例。二维码W3中再编码区域Q3,与图11相同,为包含7*14个模块的矩形区域,与图11不同点为,再编码区域Q3的位置不同,再编码区域Q3的基准位置o位于坐标(12、4)位置。
变形例6
图12是再编码区域的变形例。图12的变形例中二维码W4中设置有两个再编码区域Q4和Q5,再编码区域Q4和Q5为包含7*7个模块的矩形区域,再编码区域Q4的基准位置o1位于坐标(6、6)位置,再编码区域Q5的基准位置o2位于坐标(21、3)位置。
变形例7
图13是再编码区域的变形例。在图13的变形例中,在二维码W中设置多个1*1模块的再编码单元(Qa…Qn),图示为10个,可以更多,例如49个。各个再编码单元(Qa…Qn)的组合构成再编码区域,即,相当于按一定的规则将再编码区域分散成多个再编码单元,隐含信息分散地编入各个再编码单元中,识读时,根据各个再编码单元的坐标位置,确定再编码单元,按照设定的规则,将各个再编码单元排列或还原成具有一定形状的再编码区域后,进行解码。由于再编码单元分散在二维码的各个不同位置,编入的隐含信息更不容易被读取。如对再编码单元的分散规则进行加密,再编码信息的生成算法更难以破解,进一步提高了二维码的安全性。
以上对本发明的生成、识读装置,生成、识读方法进行了说明。生成的复合型二维码不仅不容易复制,利用其多组信息,还能进一步提高防伪功能或一码多用。
以下通过具体例子对复合型二维码的使用进行说明。
图3的复合型二维码是在注册管理领域的应用。二维码信息中编入网址信息:http://www.big-code.cn,二维码纠错等级选择最高的H级,通 过将该矩形区域(再编码区域Q)的7*7模块重新编码,编入数字123456,编码方式用类似二维矩阵码编码方式,并加入纠错算法,以保证稳定识读。该数字123456表示该二维码的注册ID,用于二维码的管理。用户的通用识读软件读取二维码信息,连接到网站内容。专用识读软件通过定位仅可读取7*7模块编码区域的信息,通过联网或识读终端本地查询方式,验证该注册ID;也可以读取二维码及7*7模块编码区域的信息,通过联网或识读终端本地查询方式,验证该注册ID。也可以专用识读软件读取二维码信息及7*7模块编码区域的信息,当7*7模块编码区域的信息被验证通过时,识读终端才能通过二维码中的网址上网。否则显示错误信息,保证了扫码上网的安全。
图9是利用复合型二维码进行安全支付的示例。
在图9的复合型二维码中,二维码信息为用户账户信息:1320 3234 4894 3928 23该账户信息可以是经过加密后动态变化的,动态变化后二维码图也是变化的图形。二维码纠错等级与图3相同选择最高的H级,选择二维码右下角的7*7个模块的矩形区域为再编码区域Q1,在设定再编码区域Q1时,可以先测试一下该矩形区域的各类遮挡均不影响二维码识读,即该重新编码区域导致的二维码的误码率小于二维码的纠错率。对该再编码区域Q1的7*7模块重新编码,编入数字123123,用类似二维矩阵码编码方式,并加入纠错算法,以保证稳定识读。该数字123123相当于账户信息的密钥。识读软件通过定位确定读取二维码及该7*7模块重新编码区域的信息(密钥)并联网验证,如匹配正确,则进入支付环节,否则拒绝支付。该方法使得支付安全性更高。
利用复合型二维码进行广告监测的示例。
利用图2的二维码进行说明。图2的二维码中编入网址信息:http://www.big-code.cn,二维码纠错等级选择最高的H级,选择二维码右下角的7*7个模块的矩形区域为再编码区域Q。将该矩形区域的7*7 模块重新编码,编入数字456456,用类似二维矩阵码编码方式,并加入纠错算法,以保证稳定识读。该数字456456即表示该二维码的参数,如媒体名称,用于标识二维码扫码的来源。用户的识读软件(同时具有识读再编码区域信息的功能)读取二维码及再新编码区域的信息,二维码信息连接到网站内容;再编码区域的信息(456456)通过联网导入后台数据库,供监测、分析、统计等。
图10是复合型二维码应用于物流加营销的示例。
图10的二维码中编入网址信息:http://www.big-code.cn,二维码纠错等级选择最高的H级,选择二维码右下角的7*14个模块的矩形区域为再编码区域Q2,将该矩形区域的7*14模块重新编码,编入数字1234567890,用类似二维矩阵码编码方式,并加入纠错算法,以保证稳定识读。该数字1234567890即表示物流码。印刷时,二维码编码信息不变,而7*14模块区域的编码信息变化,代表物流码。用户的通用识读软件读取二维码信息,连接到网站内容;专用识读软件通过定位读取7*14模块编码区域的信息(物流码1234567890),通过联网导入后台数据库,供物流监控、统计、分析等。
图11是复合型二维码应用于二维码信息保真的示例。
图11的二维码W3中编入“北京火箭技术有限公司,统一社会信用代码81210108MA003JQGOW,201435”,二维码纠错等级选择中等的M级。二维码编码信息最后的“201435”即为7*14模块重新编码区的位置控制信息,代表图示的位置。该位置控制信息可以加密,经识读终端解密后,通过算法计算出7*14模块编码区域的位置,在图11中为再编码区域Q3的基准点o的坐标(12、4),X轴上的模块数12和Y轴上的模块数4。识读终端然后解码该7*14区域的编码信息,该信息可以是密码、密钥等,可以通过联网或解码终端本地的运算(如摘要计算),确认二维码中信息的真实性。本变形例用动态位置加图形加密的方法,使得重 新编码区域的信息的生成算法更难以破解,从而增加了安全性。
图12是通过增加再编码区以增加安全性的示例。
图12的二维码中编入“北京火箭技术有限公司,统一社会信用代码81210108MA003JQGOW,201435”,二维码纠错等级选择中等的M级。二维码编码信息最后的“201435”中“201”为7*7模块1的位置控制信息,“435”表示7*7模块2的位置控制信息,7*7模块1及7*7模块2位置如图。两个编码区可以是不同的编码规则也可以是相同的编码规则。识读终端解码该7*7模块1及7*7模块2区域的编码信息,两个信息的组合可以是密码、密钥等,可以通过联网或解码终端本地的运算(如摘要计算),确认二维码中信息的真实性。该方案用多个编码区的方法,使得重新编码区域的信息的生成算法更难以破解,从而增加了安全性。
以上实施例均是设置一个或多个再编码区域,在再编码区域中编入隐含信息,如密钥,物流管理信息,但再编码区域也可以以最小编码单元(模块)为单位,分散在二维码图形中,只要其所引起的整体误码率小于纠错率即可。
图13是在最小再编码单元中编入隐含信息的示例。
图13的二维码W5中编入“北京火箭技术有限公司,统一社会信用代码81210108MA003JQGOW,201435”,二维码纠错等级选择中等的M级。二维码中设置多个1*1模块的再编码单元(Qa…Qn),图示为10个,可以更多,例如49个。二维码编码信息最后的“201435”即为这些再编码单元的位置分布数据或规则,例如是按坐标,或按一定算法的分布规则,该“201435”的分布规则数据也可与识读终端中的另一个数据如“23812945”做组合或运算,从而得出各再编码单元的分布规则数据。识读终端按照分布规则数据解码这些1*1模块的最小再编码单元,例如共49个最小再编码单元,按照分布规则数据,如还原成7*7模块 的再编码区域,单对7*7模块进行解码。解码的信息可以是密码、密钥等,可以通过联网或解码终端本地的运算(如摘要计算),确认二维码中信息的真实性。该方案用多个再编码单元的方法,使得再编码区域的位置经过加密,再编码信息,即隐含信息的生成算法更难以破解,进一步提高了二维码的安全性。

Claims (17)

  1. 复合型二维码生成装置,其特征在于包括,二维码编码模块(1)、二维码图形生成模块(2)、隐含信息编码模块(3)、再编码区域设定模块(5)、图形合成模块(6)、输出模块(7),
    所述二维码编码模块(1)根据二维码信息,生成二维码编码信息,
    所述二维码图形生成模块(2)根据二维码编码信息生成二维码图形,
    所述隐含信息编码模块(3)根据隐含信息,生成再编码信息
    所述再编码区域设定模块(5)在二维码图形中设定用于编入隐含信息的再编码区域,
    所述图形合成模块(6)根据所述再编码信息,调整二维码图形(W)中的所述再编码区域(Q)的模块分布,将隐含信息编入所述二维码图形中,生成复合型二维码。
  2. 根据权利要求1所述的复合型二维码生成装置,其特征在于,还包括输出模块(7),所述输出模块(7)在输出所述复合型二维码之前,对二维码的误码率是否小于纠错率或剩余的纠错余量进行验证。
  3. 根据权利要求2所述的复合型二维码生成装置,其特征在于,还具有掩膜处理模块(8),所述图形合成模块(6)将隐含信息编入所述二维码图形后,由所述掩膜处理模块(8)进行掩膜处理,生成复合型二维码。
  4. 根据权利要求2、3所述的复合型二维码生成装置,其特征在于,所述隐含信息编码模块(3)在生成再编码信息时加入纠错码字,使隐含信息具有纠错功能。
  5. 根据权利要求1、4所述的复合型二维码生成装置,其特征在于, 所述再编码区域设定模块(5)设定多个再编码区域。
  6. 根据权利要求5所述的复合型二维码生成装置,其特征在于,所述二维码编码模块(1)在生成二维码编码信息时,将二维码信息与再编码区域的设定信息组合成组合信息,根据组合信息生成二维码编码信息。
  7. 根据权利要求1至6中任一项所述的复合型二维码生成装置,其特征在于,还具有隐含信息图形生成模块(4),所述隐含信息图形生成模块(4)按照所述再编码区域的形状和包含的模块数量,生成隐含信息编码图形,所述隐含信息编码图形中的模块分布对应于再编码信息。
  8. 复合型二维码生成方法,其特征在于,包括以下步骤,
    步骤1(S2),根据二维码信息,生成二维码编码信息,
    步骤2(S3),用二维码编码信息生成二维码图形(W),
    步骤3(S4),在生成的二维码图形(W)中设定再编码区域(Q),
    步骤4(S5),根据隐含信息,生成再编码信息,
    步骤5(S6),根据再编码区域(Q)的形状和包含的模块生成隐含信息编码图形,使隐含信息编码图形中的模块分布与再编码信息对应,
    步骤6(S7),根据隐含信息编码图形,将再编码区域(Q)中深色模块和浅色模块的分布,置换成与隐含信息编码图形一样的分布,将隐含信息编入二维码中,生成复合型二维码。
  9. 根据权利要求8所述的复合型二维码生成方法,其特征在于,还具有步骤7(S8),对复合型二维码的误码率是否小于纠错率进行验证,如果误码率大于纠错率,重新设定二维码的纠错等级或调整再编码区域(Q)的位置。
  10. 根据权利要求9所述的复合型二维码生成方法,其特征在于,
    用步骤6a代替所述步骤5(S6)、步骤6(S7),所述步骤6a中,按顺序读取所述再编码信息中的码元,与所述再编码区域中对应模块的 数值进行比较,对不一致的模块进行反色处理,将隐含信息编入二维码中,生成复合型二维码。
  11. 根据权利要求10所述的复合型二维码生成方法,其特征在于,
    所述步骤4(S5)中,在生成再编码信息时,增加纠错码字,使隐含信息具有纠错功能。
  12. 根据权利要求8、11所述的复合型二维码生成方法,其特征在于,所述步骤3(S4)中,在生成的二维码图形(W)中设定多个再编码区域(Q)。
  13. 根据权利要求8至12中任一项所述的复合型二维码生成方法,其特征在于,步骤1(S2)中,生成二维码编码信息时,将二维码信息与再编码区域的设定信息组合成组合信息,根据组合信息生成二维码编码信息。
  14. 复合型二维码识读装置,其特征在于包括,二维码图形获取模块(11)、二维码解码模块(12)、再编码区域确定模块(13)、隐含信息解码模块(14),
    复合型二维码具有二维码信息和隐含信息,所述隐含信息通过对二维码的一部分模块进行再编码的方式编入二维码图形中,
    所述二维码图形获取模块(11)用于获取复合型二维码的图像,
    所述二维码解码模块(12)对获取的复合型二维码图像进行解码得到二维码信息,
    所述再编码区域确定模块(13)根据预先的设定,确定复合型二维码图像中再编码区域的位置,
    所述隐含信息解码模块(14)对所述再编码区域进行解码,得到隐含信息。
  15. 根据权利要求14所述的复合型二维码识读装置,其特征在于,
    所述复合型二维码的二维码信息中含有设定再编码区域的设定信 息,
    所述再编码区域确定模块(13)根据编入二维码信息中的设定信息,确定复合型二维码图像中再编码区域的位置。
  16. 复合型二维码的识读方法,其特征在于包括以下步骤,
    复合型二维码具有二维码信息和隐含信息,所述隐含信息通过对二维码的一部分模块进行再编码的方式编入二维码图形中,
    步骤1(S20),获取复合型二维码的图像,
    步骤2(S30),对复合型二维码解码,得到二维码信息,
    步骤3(S40),根据预先设定的设定信息,确定复合型二维码图像中的再编码区域(Q),
    步骤4(S50),对再编码区域(Q)进行解码得到隐含信息。
  17. 根据权利要求16所述的复合型二维码的识读方法,其特征在于,
    所述复合型二维码的二维码信息中含有设定再编码区域的设定信息,
    所述步骤3(S40)中,由解码得到的二维码信息,获得设定信息,根据设定信息确定复合型二维码图像中的再编码区域(Q)。
PCT/CN2018/073752 2017-01-24 2018-01-23 复合型二维码的生成、识读方法及装置 WO2018137602A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019539253A JP6961705B2 (ja) 2017-01-24 2018-01-23 複合型二次元バーコード生成、読取装置および方法
US16/479,911 US11042791B2 (en) 2017-01-24 2018-01-23 Method and apparatus for generating and reading composite two-dimensional code

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710052468.9A CN108345925A (zh) 2017-01-24 2017-01-24 复合型二维码的生成、识读方法及装置
CN201710052468.9 2017-01-24

Publications (1)

Publication Number Publication Date
WO2018137602A1 true WO2018137602A1 (zh) 2018-08-02

Family

ID=62974378

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073752 WO2018137602A1 (zh) 2017-01-24 2018-01-23 复合型二维码的生成、识读方法及装置

Country Status (4)

Country Link
US (1) US11042791B2 (zh)
JP (1) JP6961705B2 (zh)
CN (1) CN108345925A (zh)
WO (1) WO2018137602A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353564A (zh) * 2020-03-06 2020-06-30 赵佳锦 一种新式二维***
CN111510579A (zh) * 2019-02-27 2020-08-07 京瓷办公信息***株式会社 图像处理装置以及图像形成装置
CN114039844A (zh) * 2021-10-26 2022-02-11 深圳毅芯半导体有限公司 一种物联网设备管理方法、***及装置

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119643B (zh) * 2018-02-07 2020-11-03 北京三快在线科技有限公司 二维码生成方法及装置、二维码识别方法及装置
CN111382818A (zh) * 2018-12-31 2020-07-07 佛山艾仕仑科技有限公司 一种可变二维码标签及其制造方法
CN109840574B (zh) * 2019-01-16 2022-05-17 王诗会 一种二维码信息的隐藏方法、装置、电子设备及存储介质
CN109816077A (zh) * 2019-01-16 2019-05-28 王诗会 一种二维码信息的隐藏方法、装置、电子设备及存储介质
CN109829529B (zh) * 2019-01-18 2021-05-25 深圳大学 防复制二维码的嵌入参数的优化方法和装置
CN109977716A (zh) * 2019-03-14 2019-07-05 北京龙贝世纪科技股份有限公司 一种数据解码方法、终端及存储介质
FR3106426B1 (fr) * 2020-01-21 2023-04-14 Moonify Sas Procédé et dispositif d’accès à une ressource de la toile
CN111539502B (zh) * 2020-03-25 2021-10-15 中国平安财产保险股份有限公司 防伪二维码的生成方法、装置、服务器及存储介质
CN111461279A (zh) * 2020-04-01 2020-07-28 张晓鸿 多功能载体一字码结构及其使用方法
WO2021217081A1 (en) * 2020-04-24 2021-10-28 Avocado Scan, Inc. Contrast edge barcodes
CN112364963B (zh) * 2020-10-19 2022-11-15 三维码(厦门)网络科技有限公司 一种加强视觉效果的三维码生成方法及设备
US11385962B2 (en) * 2020-11-05 2022-07-12 Sage Microelectronics Corporation Method and apparatus for error correction encoding compressed data
CN113435558A (zh) * 2021-07-19 2021-09-24 三维码(厦门)网络科技有限公司 一种含隐藏信息的三维码编码方法、解码方法及防伪方法
CN113610206B (zh) * 2021-08-19 2023-10-13 北京印刷学院 一种二维码及其加解密方法
CN113822091B (zh) * 2021-11-23 2022-03-15 北京紫光青藤微***有限公司 用于二维码码图纠错的方法及装置、电子设备、存储介质
CN114998454B (zh) * 2022-05-09 2023-05-16 西南交通大学 一种动态多色码的生成、解析方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899630A (zh) * 2015-06-18 2015-09-09 桂林电子科技大学 彩色qr码的编/解码方法
CN105224974A (zh) * 2014-06-30 2016-01-06 北京大学 一种矩阵式二维码中隐藏信息的方法和防伪方法
CN105825257A (zh) * 2016-03-09 2016-08-03 东北大学 基于二维条码的信息隐藏与隐藏信息提取方法及***

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063999B (zh) * 2006-04-29 2010-09-15 银河联动信息技术(北京)有限公司 一种二维码与标识的合成***及方法
US8968145B2 (en) * 2012-04-04 2015-03-03 Gm Global Technology Operations, Llc Multi-speed transmission
WO2015064334A1 (ja) * 2013-10-30 2015-05-07 株式会社トッパンTdkレーベル 二次元コード生成方法、二次元コード生成装置、二次元コード読み取り方法、二次元コード読み取り装置、二次元コード、および、プログラム
CN104794987A (zh) * 2014-01-21 2015-07-22 沈维 二维码防伪标签
CN204680039U (zh) * 2015-02-16 2015-09-30 浙江康恩贝制药股份有限公司 一种集成二维码与药品电子监管码的复合标签
EP3153993B1 (en) * 2015-10-08 2021-07-28 Surys Method of securing a 2d barcode
CN105550730B (zh) * 2016-01-28 2017-02-08 北京兆信信息技术股份有限公司 一种安全二维码制作方法、解码方法及安全二维码标识

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224974A (zh) * 2014-06-30 2016-01-06 北京大学 一种矩阵式二维码中隐藏信息的方法和防伪方法
CN104899630A (zh) * 2015-06-18 2015-09-09 桂林电子科技大学 彩色qr码的编/解码方法
CN105825257A (zh) * 2016-03-09 2016-08-03 东北大学 基于二维条码的信息隐藏与隐藏信息提取方法及***

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510579A (zh) * 2019-02-27 2020-08-07 京瓷办公信息***株式会社 图像处理装置以及图像形成装置
CN111510579B (zh) * 2019-02-27 2022-09-23 京瓷办公信息***株式会社 图像处理装置以及图像形成装置
CN111353564A (zh) * 2020-03-06 2020-06-30 赵佳锦 一种新式二维***
CN111353564B (zh) * 2020-03-06 2023-07-18 赵佳锦 一种新式二维***
CN114039844A (zh) * 2021-10-26 2022-02-11 深圳毅芯半导体有限公司 一种物联网设备管理方法、***及装置

Also Published As

Publication number Publication date
JP2020509457A (ja) 2020-03-26
JP6961705B2 (ja) 2021-11-05
US20190370620A1 (en) 2019-12-05
CN108345925A (zh) 2018-07-31
US11042791B2 (en) 2021-06-22

Similar Documents

Publication Publication Date Title
WO2018137602A1 (zh) 复合型二维码的生成、识读方法及装置
Tkachenko et al. Two-level QR code for private message sharing and document authentication
CN105976004B (zh) 一种彩色二维码多维信息编码、解码方法及装置
EP3673391B1 (en) Copyright protection based on hidden copyright information
Rani et al. Data security through qr code encryption and steganography
EP3673392B1 (en) Copyright protection based on hidden copyright information
CN104392260A (zh) 一种基于附加信息的二维码防伪方法
CN103415007B (zh) 一种基于信息隐藏的手机二维码安全使用方法
CN105825257A (zh) 基于二维条码的信息隐藏与隐藏信息提取方法及***
CN102799990A (zh) 基于pki的双二维码产品防伪方案
CN104766113A (zh) 一种明暗码防伪标贴及其防伪方法
CN107918791A (zh) 二维码复制过程中的二维码生成、解码方法及装置
US7421581B2 (en) Method and system for controlling encoded image production
Wang et al. 2D barcodes for visual cryptography
CN109190340A (zh) 一种网页数字水印生成、识别、打印方法及装置
US7386177B2 (en) Method and system for encoding images using encoding parameters from multiple sources
CN103259621A (zh) 彩色三维码的编码方法和装置以及彩色三维码的应用方法和***
CN111242259B (zh) 一种智能防伪码的编码和解码方法及***
CN102842053B (zh) 一种防伪图码标签及其制造方法
Rathi et al. Aesthetic QR: Approaches for Beautified, Fast Decoding, and Secured QR Codes.
CN102142073A (zh) 基于隐密水印的纸质文档防泄密及其鉴别***
WO2020173455A1 (zh) 投影仪授权使用方法
CN113160028B (zh) 基于彩色字符画的信息隐藏及恢复方法、设备及存储介质
CN109840574B (zh) 一种二维码信息的隐藏方法、装置、电子设备及存储介质
JP2008192111A (ja) 誤り訂正機能を持つシンボルシステムにおいて機密性向上を導入する方法、システム及び製品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18744837

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019539253

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18744837

Country of ref document: EP

Kind code of ref document: A1