WO2010012194A1 - 二维码编码方法、解码方法及装置、终端 - Google Patents

二维码编码方法、解码方法及装置、终端 Download PDF

Info

Publication number
WO2010012194A1
WO2010012194A1 PCT/CN2009/072777 CN2009072777W WO2010012194A1 WO 2010012194 A1 WO2010012194 A1 WO 2010012194A1 CN 2009072777 W CN2009072777 W CN 2009072777W WO 2010012194 A1 WO2010012194 A1 WO 2010012194A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
splicing
data
application data
encoding
Prior art date
Application number
PCT/CN2009/072777
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 EP09802387.2A priority Critical patent/EP2309426B1/en
Priority to ES09802387.2T priority patent/ES2442745T3/es
Publication of WO2010012194A1 publication Critical patent/WO2010012194A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Definitions

  • the present invention relates to the field of communication technologies and computer technologies, and in particular, to a two-dimensional code encoding method, a code method, a device, and a terminal.
  • the development of modern high-tech is urgently required to use bar codes to represent more information in a limited geometric space, thus meeting the needs of ever-changing information.
  • the two-dimensional bar code was born to solve the problem that the one-dimensional bar code can't solve.
  • the 2-dimensional bar code/two-dimensional code (2-dimens iona l bar code) is in a certain plane with a certain geometric pattern (two-dimensional In the direction of the distribution of black and white graphics to record data symbol information; in the coding of the clever use of the concept of the "0", "1" bit stream that constitutes the internal logic of the computer, using several geometric shapes corresponding to the binary To represent the text value information, automatically read by the image input device or the photoelectric scanning device to realize automatic information processing.
  • Each code system has its own specific character set; each character occupies a certain width; it has a certain check function. At the same time, it also has the functions of automatic identification of different lines of information, and processing of graphic rotation changes.
  • the 2D barcode/QR code can express information simultaneously in both the horizontal and vertical directions, so that a large amount of information can be expressed in a small area. Because it has high density, large capacity, etc., it can be used to represent data files (including Chinese characters files), pictures, and so on.
  • Two-dimensional bar code is the most ideal method for storing, carrying and automatically reading large-capacity and high-reliability information such as various documents and cards.
  • the commonly used code system is: PDF417 two-dimensional bar code, Da tama tr ix two-dimensional bar code, Maxicode two-dimensional bar code, QR Code, Code 49, Code 16K, Code one, etc., except
  • Ver icode barcodes CP barcodes
  • Codablock F barcodes field codes
  • Ul tracode barcodes Aztec barcodes.
  • the mobile phone scanning QR code technology simply means scanning the QR code through the mobile phone camera function, quickly obtaining the information stored in the 2D barcode, and performing operations such as surfing the Internet, sending text messages, dialing, data exchange, automatic text input, etc.
  • the QR code has been developed and used by major mobile phone manufacturers.
  • the mobile phone QR code is a kind of two-dimensional code.
  • the mobile phone QR code can be printed not only on newspapers, magazines, advertisements, books, packaging and personal business cards. Users can also scan the QR code through the mobile phone or enter the QR code. The number can be used to achieve fast mobile Internet access, and to download graphics and information, and to understand enterprise product information.
  • the two-dimensional code in the prior art has a limited capacity.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method and a device for generating a two-dimensional code, extending the upper application range that the two-dimensional code can support, and breaking the bottleneck of the two-dimensional code capacity.
  • An embodiment of the present invention provides a method for generating a two-dimensional code, including:
  • the upper layer application data is two-dimensional code encoded, and the generated two-dimensional code includes: a stitcher area and an information data area.
  • the embodiment of the invention further provides a two-dimensional code decoding method, including:
  • the two-dimensional code comprising a stitching area and an information data area
  • the upper application data is solved and provided to the upper application of the two-dimensional code.
  • An embodiment of the present invention further provides an encoding apparatus, including:
  • the two-dimensional code encoding unit is configured to perform two-dimensional code encoding on the upper layer application data to generate a two-dimensional code, where the two-dimensional code comprises: a stitcher area and an information data area.
  • An embodiment of the present invention further provides a decoding apparatus, including:
  • the two-dimensional code decoding unit is configured to decode the two-dimensional code into upper layer application data and provide the upper layer application to the two-dimensional code, the two-dimensional code comprising: a stitcher area and an information data area.
  • the embodiment of the present invention further provides a terminal, including an encoding device, where the encoding device includes: an obtaining unit, configured to obtain upper layer application data;
  • the two-dimensional code encoding unit is configured to perform two-dimensional code encoding on the upper layer application data to generate a two-dimensional code, where the two-dimensional code comprises: a stitcher area and an information data area.
  • the embodiment of the present invention further provides a terminal, including a decoding device, where the decoding device includes: an obtaining unit, configured to obtain a two-dimensional code;
  • the two-dimensional code decoding unit is configured to decode the two-dimensional code into the upper layer application data and provide the upper layer application to the two-dimensional code, the two-dimensional code comprising: a stitcher area and an information data area.
  • the embodiment of the present invention expands the upper application data capacity that the two-dimensional code can support by using the splicing area in the two-dimensional code.
  • FIG. 1 is a flowchart of a two-dimensional code encoding method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a two-dimensional code decoding method according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of a two-dimensional code encoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of a two-dimensional code decoding apparatus according to Embodiment 1 of the present invention.
  • FIG. 5 is a flowchart of a two-dimensional code encoding method according to Embodiment 2 of the present invention.
  • FIG. 6 is a flowchart of a two-dimensional code decoding method according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of a two-dimensional code encoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic diagram of a two-dimensional code decoding apparatus according to Embodiment 2 of the present invention.
  • FIG. 9 is a flowchart of a two-dimensional code encoding method according to Embodiment 3 of the present invention.
  • FIG. 10 is a flowchart of a two-dimensional code decoding method according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic diagram of a two-dimensional code encoding apparatus according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic diagram of a two-dimensional code decoding apparatus according to Embodiment 3 of the present invention.
  • FIG. 13 is a schematic diagram of a terminal according to Embodiment 4 of the present invention.
  • FIG. 14 is a schematic diagram of a terminal according to Embodiment 4 of the present invention.
  • FIG. 15 is a schematic diagram of a terminal according to Embodiment 4 of the present invention. detailed description
  • Embodiment 1 of the present invention provides a two-dimensional code encoding method, as shown in FIG. 1, including:
  • the encoded two-dimensional code includes a splicing area and an information data area. Since the encoding method is determined, the increased size after encoding, such as the splicing area, can be determined, and the size of the data after being encoded by the two-dimensional code can be calculated in advance, each two-dimensional
  • the coding capacity that the code can carry the size of the splicing area + the size of the information data area, that is, for a set of two-dimensional codes generated by the encoding, each of the two-dimensional codes satisfies:
  • Information data area size each two-dimensional code
  • Perform upper-dimensional application data to perform two-dimensional code encoding, and the generated two-dimensional code includes:
  • Group two-dimensional code identification It is used to identify a set of two-dimensional codes that need to be spliced, the same group (for splicing) two-dimensional code, and assign a same group two-dimensional code identification. For example, a number from 0 to 65535.
  • the number of splicing strips The number of splicing of the two-dimensional code into which the data to be encoded is divided. For example, an 8-bit binary number is used to identify the number of strips, and 0 to 255 have a total of 256 numbers. Excluding all zeros, 255 QR codes can be identified. ; splicing order: When the number of splicing is not zero, the splicing order is valid.
  • the stitching order identifies the order in which the two-dimensional code is applied in the stitching. For example, use an 8-bit binary number to identify the order, 0 ⁇ 255 for a total of 256 numbers, except for all zeros, you can identify 255 two-dimensional codes.
  • Embodiment 1 of the present invention further provides a two-dimensional code decoding method, as shown in FIG. 2, including:
  • the two-dimensional code comprising a two-dimensional code comprising a splicing area and an information data area
  • the information data in the set of two-dimensional codes is spliced according to the serial number, and is changed to "203".
  • the embodiment 1 of the present invention further provides a two-dimensional code encoding device, as shown in FIG. 3, comprising: an obtaining unit 301, configured to obtain data to be encoded;
  • the two-dimensional code encoding unit 303 is configured to encode the data to be encoded to generate a two-dimensional code code.
  • the two-dimensional code encoding includes: a stitcher area and an information data area.
  • the device may further include:
  • the determining unit 302 is configured to determine whether the size of the data to be encoded exceeds the capacity of the two-dimensional code corresponding to the data to be encoded, and if yes, perform data splitting by the data splitting unit 304, if otherwise, by the two-dimensional code encoding unit 3 G 3 Directly treating the encoded data for two-dimensional code encoding;
  • the data splitting unit 304 is configured to split the data to be encoded into data segments and sort the data when the determining unit 3022 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the data to be encoded. And providing the two-dimensional code encoding unit 303 for two-dimensional code encoding.
  • the embodiment 1 of the present invention further provides a two-dimensional code decoding device, as shown in FIG. 4, comprising: an obtaining unit 401, configured to obtain a two-dimensional code;
  • the two-dimensional code decoding unit 407 is configured to decode the two-dimensional code into the upper layer application data and provide the upper layer application to the two-dimensional code, the two-dimensional code comprising: a stitcher area and an information data area.
  • the device may further include:
  • the splicing number determining unit 402 is configured to determine the size of the splicing number of the two-dimensional code obtained by the obtaining unit 401, and if equal to 1, the upper layer information of the two-dimensional code is encoded and supplied to the two-dimensional code decoding unit 407 for processing;
  • a group two-dimensional code identification determining unit 403 configured to determine whether the two-dimensional code containing the same group two-dimensional code identifier has been obtained if the number of stitching bars is greater than one;
  • the splicing order determining unit 40 is configured to determine, if the two-dimensional code identification determining unit 403 determines that the two-dimensional code containing the same group of two-dimensional code identifiers is obtained, the two-dimensional number having the same serial number in the splicing order. code.
  • the comparison judging unit 405 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier after the splicing order judging unit 404 judges that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches.
  • a splicing unit 406, configured to: when the comparison determining unit 405 determines that it is equal to The information data in the group two-dimensional code is spliced according to the serial number and supplied to the two-dimensional code decoding unit 407 for processing.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • Embodiment 2 of the present invention provides a two-dimensional code encoding method, as shown in FIG. 5, including:
  • the encoded two-dimensional code includes a splicing area and an information data area. Since the encoding method is determined, the increased size after encoding, such as the splicing area, can be determined, and the size of the data after being encoded by the two-dimensional code can be calculated in advance, each two-dimensional
  • the coding capacity that the code can carry the size of the splicing area + the size of the information data area, that is, for a set of two-dimensional codes generated by the encoding, each of the two-dimensional codes satisfies:
  • Information data area size each two-dimensional code
  • the two-dimensional code includes:
  • Splicing ID Used to identify whether the QR code needs to be spliced. At this point, use the "1" logo to stitch;
  • Group two-dimensional code identification It is used to identify a set of two-dimensional codes that need to be spliced, the same group (for splicing) two-dimensional code, and assign a same group two-dimensional code identification. For example, a number from 0 to 65535.
  • the number of splicing bars The number of splicing of the two-dimensional code into which the upper application data is divided. For example, an 8-bit binary number is used to identify the number of bars, 0 to 255 are 256 totals, and all zeros are excluded, and 255 two-dimensional codes can be identified. ;
  • Stitching order When the number of stitching is not zero, the stitching order is valid.
  • the stitching order identifies the order in which the two-dimensional code is applied in the stitching. For example, use an 8-bit binary number to identify the order, 0 ⁇ 255 for a total of 256 numbers, except for all zeros, you can identify 255 two-dimensional codes.
  • Embodiment 2 of the present invention further provides a two-dimensional code decoding method, as shown in FIG. 6, including:
  • Extract the upper application data provide the upper layer application of the two-dimensional code, and exit;
  • the information data in the set of two-dimensional codes is spliced according to the serial number, and is rotated to 603.
  • the embodiment 2 of the present invention further provides a two-dimensional code encoding device, as shown in FIG. 7, comprising: an obtaining unit 701, configured to obtain upper layer application data;
  • the two-dimensional code encoding unit 706 is configured to perform two-dimensional code encoding on the upper layer application data to generate a two-dimensional code encoding, where the two-dimensional code encoding includes: a stitching area and an information data area;
  • the device may further include:
  • the determining unit 702 is configured to determine whether the application data size exceeds a two-dimensional code capacity corresponding to the data to be encoded, and if yes, the data splitting unit 703 performs data splitting, if otherwise, the two-dimensional code encoding unit 706 directly applies the data. Data is encoded in two-dimensional code;
  • the data splitting unit 703 is configured to split the application data into data fragments and sort them when the determining unit 702 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the data to be encoded.
  • the two-dimensional code coding unit is provided for two-dimensional code coding.
  • the two-dimensional code encoding unit 706 can include:
  • a coding unit 704 configured to: when the determining unit 702 determines that the application data size does not exceed the capacity of the two-dimensional code corresponding to the data to be encoded, directly performing the two-dimensional code encoding on the data to be encoded,
  • the QR code encoding of the application data is directly set to 1 for the number of stitches, and the "group QR code” can be filled with a filler or set to a value.
  • the "stitching order" can be filled or set with a filler. 1 . Filling in the information data area with the data to be encoded to generate a two-dimensional code code;
  • a coding unit 705, configured to: when the determining unit 702 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the data to be encoded, performing the two-dimensional code encoding on the data fragment, the pair of data Fragmentation of two-dimensional code encoding is to set the number of splicing bars as the number of shards, the splicing order is set to the serial number, the group two-dimensional code identification is set to a certain number, and the data is filled in the respective information data areas. Fragmentation.
  • the embodiment 2 of the present invention further provides a two-dimensional code decoding device, as shown in FIG. 8, comprising: an obtaining unit 801, configured to obtain a two-dimensional code;
  • the two-dimensional code decoding unit 807 is configured to decode the two-dimensional code into upper layer application data, and provide the two-dimensional code In the upper application, the two-dimensional code includes: a stitcher area and an information data area.
  • the device may further include:
  • the splicing number determining unit 802 is configured to determine the size of the splicing number of the two-dimensional code obtained by the obtaining unit 801, and if the value is equal to 1, the two-dimensional code encoding is provided to the two-dimensional code decoding unit for processing;
  • the code identification determining unit 803 is configured to determine, if the number of the splicing bars is greater than 1, whether the two-dimensional code containing the same group of two-dimensional code identifiers has been obtained;
  • the splicing order determining unit 804 is configured to determine, when the two-dimensional code identification determining unit 803 determines that the two-dimensional code containing the same group of two-dimensional code identifiers is obtained, that the two-dimensional number having the same serial number in the splicing order has been obtained. code.
  • the comparison determining unit 805 is configured to compare the pre-stored two-dimensional code number with the same group two-dimensional code identifier after the splicing order determining unit 804 determines that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches.
  • the splicing unit 806 is configured to, when the comparison determining unit 805 determines that the information is equal, the information data in the two-dimensional code is spliced according to the serial number, and is provided to the two-dimensional code decoding unit for processing.
  • the device may further include:
  • the splicing identification unit 808 is configured to determine the size of the splicing identifier. When the splicing identifier is 1, the two-dimensional code is provided to the splicing number determining unit 802. When the splicing identifier is 0, the two-dimensional The code code is supplied to the two-dimensional code decoding unit 807 for processing.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • Embodiment 3 of the present invention provides a two-dimensional code encoding method, as shown in FIG. 9, including:
  • the generated two-dimensional code includes:
  • Group two-dimensional code identification It is used to identify a set of two-dimensional codes that need to be spliced, the same group (for splicing) two-dimensional code, and assign a same group two-dimensional code identification. For example, a number from 0 to 65535.
  • the stitching order identifies the order in which the two-dimensional code is applied in the stitching. For example, an 8-bit binary number is used to identify the order, 0 - 255 is a total of 256 numbers, and all zeros are removed, and 255 two-dimensional codes can be identified.
  • the application data is divided into a total of 10 two-dimensional codes, the order of which is 4, and the subsequent number is 6.
  • the two-dimensional code is composed of a splicing area and an information data area: the splicing area can be specifically composed of a group two-dimensional code identification, a splicing order, and a subsequent number of pieces, and the information data area can be constructed by using an existing two-dimensional code encoding method.
  • the generated two-dimensional code includes:
  • Group two-dimensional code identification It is used to identify a set of two-dimensional codes that need to be spliced, the same group (for splicing) two-dimensional code, and assign a same group two-dimensional code identification. For example, one of the numbers 0 65535.
  • Stitching order identifies the order in which the two-dimensional code is applied in the stitching. For example, use an 8-bit binary number to identify the order, 0 ⁇ 255 a total of 256 numbers, except for all zeros, you can identify 255 two-dimensional codes.
  • the application data is divided into a total of 10 two-dimensional codes, the order of which is 4, and the subsequent number is 6.
  • the information data in the two-dimensional code is spliced according to the serial number, and is changed to "1003".
  • the present invention also provides a two-dimensional code encoding device, as shown in FIG. 11, comprising:
  • the obtaining unit 111 is configured to obtain data to be encoded
  • the two-dimensional code encoding unit 1 16 is configured to perform two-dimensional code encoding on the upper layer application data to generate a two-dimensional code encoding, where the two-dimensional code encoding includes: a stitching area and an information data area;
  • the device may further include:
  • the determining unit 112 is configured to determine whether the application data size exceeds the capacity of the two-dimensional code corresponding to the data to be encoded, and if yes, the data splitting unit 1 13 performs data splitting, if otherwise, the two-dimensional code encoding unit 116 directly Application data for two-dimensional code encoding;
  • the data splitting unit 113 is configured to split the data to be encoded into data fragments when the determining unit 112 determines that the data size to be encoded exceeds the capacity of the two-dimensional code corresponding to the data to be encoded. And sorting is provided to the two-dimensional code encoding unit 116 for two-dimensional code encoding.
  • the two-dimensional code encoding unit 116 may include:
  • the encoding unit 114 is configured to directly perform the two-dimensional code encoding on the data to be encoded, if the determining unit 112 determines that the data size to be encoded does not exceed the capacity of the two-dimensional code corresponding to the data to be encoded.
  • the method of directly encoding the encoded data by two-dimensional code is to set the number of splicing bars to 1, and the "group two-dimensional code identification" can be filled or set to a value using a filler, and the "stitching order" can be filled or placed with a filler. 1 is filled in the information data area with the data to be encoded to generate a two-dimensional code code;
  • the coding unit 2115 is configured to perform two-dimensional code coding on the data slice if the data to be encoded exceeds the capacity of the two-dimensional code corresponding to the data to be encoded by the determining unit 112.
  • the code, the two-dimensional code encoding of the data segment is to set the number of splicing bars to the number of shards, the splicing order is set to a sequence number, and the group two-dimensional code identifier is set to a certain number, in the respective information data.
  • the data is filled in the area.
  • the coding unit 114 is also used to calculate the number of subsequent segments
  • the coding unit 2 15 is also used to set the subsequent number of flags to zero.
  • the embodiment 3 of the present invention further provides a two-dimensional code decoding device, as shown in FIG. 12, comprising: an obtaining unit 121, configured to obtain a two-dimensional code;
  • the two-dimensional code decoding unit 127 is configured to extract upper layer application data from the two-dimensional code encoding and provide the upper layer application to the two-dimensional code.
  • the device may further include:
  • the splicing number determining unit 122 is configured to determine the size of the splicing number of the two-dimensional code obtained by the obtaining unit 121, and if the splicing number is equal to 1, the two-dimensional code encoding is provided to the application data providing unit for processing. ;
  • the group two-dimensional code identification determining unit 123 is configured to determine whether the two-dimensional code containing the same group two-dimensional code identifier has been obtained when the number of stitching bars is greater than one;
  • the splicing order judging unit 124 is configured to determine, if the two-dimensional code identification determining unit 123 has obtained the two-dimensional code that includes the same group of two-dimensional code identifiers, whether it has obtained the same number in the splicing order. Dimension code.
  • the comparison judging unit 125 is configured to compare the pre-stored two-dimensional code number with the same group two-dimensional code identifier after the splicing order judging unit 124 determines that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches.
  • the splicing unit 126 is configured to, when the comparison determining unit 125 determines that the information is equal, the information data in the two-dimensional code is spliced according to the serial number, and is provided to the two-dimensional code decoding unit for processing.
  • the device may further include:
  • the splicing number calculation unit 128 is configured to add the subsequent number of pieces to the splicing number to obtain the total number of splicings, and provide the splicing number determining unit 122.
  • the embodiment of the present invention further provides a terminal 138. As shown in FIG. 13, an encoding device 137 is included.
  • the encoding device 137 includes:
  • the obtaining unit 131 is configured to obtain upper application data
  • the two-dimensional code encoding unit 136 is configured to perform two-dimensional code encoding on the upper layer application data to generate a two-dimensional code, where the two-dimensional code comprises: a stitcher area and an information data area.
  • the encoding device 137 further includes:
  • the determining unit 132 is configured to determine whether the application data size exceeds the two-dimensional code capacity corresponding to the upper layer application data, and if yes, the data splitting unit 133 performs data splitting, if otherwise, the two-dimensional code encoding unit directly applies the data. Perform two-dimensional code encoding;
  • the data splitting unit 133 is configured to split the application data into data fragments when the determining unit 132 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the upper layer application data, and The data slice ordering is supplied to the two-dimensional code encoding unit 136 for two-dimensional code encoding.
  • the two-dimensional code encoding unit 136 includes:
  • a coding unit 134 configured to directly perform a two-dimensional code on the application data when the determining unit 132 determines that the size of the application data after encoding does not exceed the capacity of the two-dimensional code corresponding to the upper application data.
  • the direct encoding of the application data by the two-dimensional code is to set the number of splicing bars to 1, "group two-dimensional code identification” can be filled with a filler or set to a value, "stitching order" can use a filler Fill or set to 1, fill in the upper application data in the information data area to generate a two-dimensional code;
  • the coding unit 2 135 is configured to: after the determining unit 132 determines that the size of the application data after encoding exceeds the capacity of the two-dimensional code corresponding to one of the upper layer application data, perform the two-dimensional code encoding on the data slice,
  • the two-dimensional code encoding of the data segment is to set the number of the splicing number as the number of shards, the splicing order is set to the sequence number assigned by the data shard, and the two-dimensional code identifier of the group is set to be the same. Number, fill in the data segment in the respective information data area.
  • the coding unit 134 is further configured to set the splicing identifier to 0 if the judging unit 1 32 determines that the size of the application data after encoding does not exceed the capacity of the two-dimensional code corresponding to one of the upper layer application data;
  • the coding unit 2 1 35 is further configured to: when the determining unit 1 32 determines that the size of the application data after encoding exceeds the capacity of the two-dimensional code corresponding to one of the upper layer application data,
  • the embodiment of the present invention further provides a terminal 1410, as shown in FIG. 14, including a decoding device 1409, where the decoding device 149 includes:
  • the obtaining unit 141 is configured to obtain a two-dimensional code
  • the two-dimensional code decoding unit 147 is configured to decode the two-dimensional code into upper layer application data and provide the upper layer application to the two-dimensional code, the two-dimensional code comprising: a stitcher area and an information data area.
  • the decoding device 149 further includes:
  • the splicing number determining unit 142 is configured to determine the size of the splicing number of the two-dimensional code obtained by the obtaining unit 141, and if the splicing number is equal to 1, the two-dimensional code is provided to the two-dimensional code decoding unit 147 for processing;
  • the group two-dimensional code identification determining unit 143 is configured to determine whether the two-dimensional code containing the same group two-dimensional code identifier has been obtained if the splicing number determining unit 142 determines that the splicing number is greater than one;
  • the splicing order judging unit 144 is configured to determine, if the two-dimensional code identification determining unit 143 has obtained the two-dimensional code that contains the same group of two-dimensional code identifiers, whether or not the second serial number in the splicing order is obtained.
  • the comparison judging unit 145 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier after the splicing order judging unit 144 determines that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches;
  • a splicing unit 146 configured to: when the comparison determining unit 145 determines that it is equal to The information data in the group two-dimensional code is spliced according to the serial number and supplied to the two-dimensional code decoding unit 147 for processing.
  • the decoding device 1409 may further include:
  • the splicing identification unit 148 is configured to determine the size of the splicing identifier.
  • the splicing identifier is 1, the two-dimensional code is provided to the splicing number determining unit 142.
  • the splicing identifier is G, the two-dimensional The code code is supplied to the two-dimensional code decoding unit 147 for processing.
  • the embodiment 4 of the present invention further provides a terminal 1410.
  • a decoding device 149 is included.
  • the decoding device 149 includes:
  • Obtaining unit 1 for obtaining a two-dimensional code
  • the two-dimensional code decoding unit 147 is configured to decode the two-dimensional code into upper layer application data, and provide the upper layer application to the two-dimensional code, where the two-dimensional code comprises: a stitcher area and an information data area.
  • the decoding device 149 further includes:
  • the splicing number determining unit 142 is configured to determine a size of the splicing number of the two-dimensional code obtained by the obtaining unit, and if equal to 1, the two-dimensional code is provided to the two-dimensional code decoding unit 147 for processing;
  • the two-dimensional code identification determining unit 143 is configured to determine whether the two-dimensional code containing the same group two-dimensional code identifier has been obtained when the splicing number determining unit 142 determines that the splicing number is greater than one;
  • the splicing order determining unit 144 is configured to determine, if the two-dimensional code identification determining unit 143 determines that the two-dimensional code containing the same group of two-dimensional code identifiers is obtained, the two-dimensional number having the same serial number in the splicing order. code;
  • the comparison judging unit 145 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier after the splicing order judging unit 144 determines that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches;
  • the decoding device 149 further includes:
  • the splicing number calculation unit 151 is configured to add the subsequent number of pieces to the splicing number to obtain the total number of splicings, and provide the splicing number determining unit 142.
  • switching identification 011
  • group two-dimensional code identification assigns one of 0 ⁇ 65535
  • splicing number identification uses 8-bit binary number to identify the order, 0 ⁇ 255 256 numbers
  • the splicing order uses an 8-bit binary number to identify the order, 0 ⁇ 255, a total of 256 numbers, etc.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

二维码编码方法、 解码方法及装置、 终端
本申请要求于 2008 年 7 月 30 日提交中国专利局、 申请号为 200810142574. 7 , 发明名称为 "二维码编码方法、 解码方法及装置、 终端" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通讯技术及计算机技术领域, 尤其涉及一种二维码编码方法、 码方法及装置、 终端。
背景技术
现代高新技术的发展, 迫切要求用条码在有限的几何空间内表示更多的 信息, 从而满足千变万化的信息的需要。 二维条码正是为了解决一维条码无 法解决的问题而诞生的, 二维条码 /二维码 ( 2- dimens iona l bar code ) 是 用某种特定的几何图形按一定规律在平面 (二维方向上)分布的黑白相间的 图形记录数据符号信息的; 在代码编制上巧妙地利用构成计算机内部逻辑基 础的 "0" 、 "1" 比特流的概念, 使用若干个与二进制相对应的几何形体来 表示文字数值信息, 通过图象输入设备或光电扫描设备自动识读以实现信息 自动处理。 它具有条码技术的一些共性: 每种码制有其特定的字符集; 每个 字符占有一定的宽度; 具有一定的校验功能等。 同时还具有对不同行的信息 自动识别功能、 及处理图形旋转变化等特点。 二维条码 /二维码能够在横向和 纵向两个方位同时表达信息, 因此能在很小的面积内表达大量的信息。 因为 它具有高密度、 大容量等特点,所以可以用它表示数据文件(包括汉字文件)、 图片等。 二维条码是各种证件及卡片等大容量、 高可靠信息存储、 携带并自 动识读的最理想的方法。
在目前几十种二维要码中, 常用的码制有: PDF417二维条码, Da tama tr ix 二维条码, Maxicode二维条码, QR Code, Code 49, Code 16K , Code one,等, 除了这些常见的二维条码之外, 还有 Ver icode条码、 CP条码、 Codablock F条 码、 田字码、 Ul tracode条码, Aztec条码。 手机扫描二维码技术简单的说是通过手机拍照功能对二维码进行扫描 , 快速获取到二维条码中存储的信息, 进行上网、 发送短信、 拨号、 资料交换、 自动文字输入等操作, 手机二维码目前已经被各大手机厂商使用开发。
手机二维码是二维码的一种, 手机二维码不但可以印刷在报纸、 杂志、 广告、 图书、 包装以及个人名片上, 用户还可以通过手机扫描二维码, 或输 入二维码下面的号码即可实现快速手机上网功能, 并随时随地下载图文、 了 解企业产品信息等。
现有技术中的二维码容量有限。
发明内容
本发明实施例要解决的技术问题是提供二维码生成方法及装置, 延展二 维码所能够支持的上层应用范围, 突破二维码容量的瓶颈。
本发明实施例提供一种二唯码生成方法, 包括:
获得上层应用数据;
对所述上层应用数据进行二维码编码, 生成的二维码包括: 拼接符区域 和信息数据区域。
本发明实施例还提供一种二维码解码方法, 包括:
获得二维码 , 所述二维码包括拼接符区域和信息数据区域;
解出上层应用数据, 提供给二维码上层应用。
本发明实施例还提供一种编码装置, 包括:
获得单元, 用于获得上层应用数据;
二维码编码单元, 用于对所述上层应用数据进行二维码编码, 生成二维 码, 该二维码包括: 拼接符区域和信息数据区域。
本发明实施例还提供一种解码装置, 包括:
获得单元, 用于获得二维码;
二维码解码单元, 用于将二维码解码为上层应用数据, 提供给二维码上 层应用, 该二维码包括: 拼接符区域和信息数据区域。 本发明实施例还提供一种终端, 包括一编码装置 , 所述编码装置包括: 获得单元, 用于获得上层应用数据;
二维码编码单元, 用于对所述上层应用数据进行二维码编码, 生成二维 码, 该二维码包括: 拼接符区域和信息数据区域。
本发明实施例还提供一种终端, 包括一解码装置, 所述解码装置包括: 获得单元, 用于获得二维码;
二维码解码单元 , 用于将二维码解码为上层应用数据 , 提供给二维码上 层应用, 该二维码包括: 拼接符区域和信息数据区域。
本发明实施例通过二维码中的拼接符区域, 扩展了二维码所能够支持的 上层应用数据容量。
附图说明
图 1是本发明实施例 1提供的一种二维码编码方法的流程图;
图 2是本发明实施例 1提供的一种二维码解码方法的流程图;
图 3是本发明实施例 1提供的一种二维码编码装置的示意图;
图 4是本发明实施例 1提供的一种二维码解码装置的示意图;
图 5是本发明实施例 2提供的一种二维码编码方法的流程图;
图 6是本发明实施例 2提供的一种二维码解码方法的流程图;
图 7是本发明实施例 2提供的一种二维码编码装置的示意图;
图 8是本发明实施例 2提供的一种二维码解码装置的示意图;
图 9是本发明实施例 3提供的一种二维码编码方法的流程图;
图 10是本发明实施例 3提供的一种二维码解码方法的流程图;
图 11是本发明实施例 3提供的一种二维码编码装置的示意图;
图 12是本发明实施例 3提供的一种二维码解码装置的示意图。
图 1 3是本发明实施例 4提供的一种终端的示意图;
图 14是本发明实施例 4提供的一种终端的示意图;
图 15是本发明实施例 4提供的一种终端的示意图。 具体实施方式
实施例 1
本发明实施例 1提供一种二维码编码方法, 如图 1所示, 包括:
101、 获得待编码的数据;
102、 判断数据大小经二维码编码后是否超过一个二维码的容量, "否" 则转 "103" , "是" 则转 "104" ;
编码后二维码包括拼接区域和信息数据区域, 由于编码方式确定, 编码 后增加的大小如拼接符区域等可以确定, 那么数据经过二维码编码后的大小 可以预先算出来, 每个二维码所能携带的编码容量 =拼接区域大小 +信息数据 区域大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的信息编码容量 -拼接区域大小。
103、 将上层应用数据进行二维码编码, 所生成的二维码包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。 拼 接条数标识: 待编码数据被分成的二维码拼接条数, 例如, 使用 8位二进制数 来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码; 拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。 例如, 使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
将 "拼接条数标识" 置为 "1" , "组二维码标识" 可以使用填充符填充 或者置为某个值, "拼接次序" 可以使用填充符填充或者置为 1 , 在信息数据 区域中填入待编码数据, 生成二维码编码, 退出;
104、 拆分数据、 排序; 每个二维码所能携带的编码容量 =拼接区域大小 +信息数据区域大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维 码满足: 信息数据区域大小 =每个二维码所能携带的编码容量 -拼接区域大 小。 所以, 拆分数据时, 以信息数据区域大小为基准对待编码数据一次进行 分片, 每个分片依次序分配序号;
105、 将各待编码数据经二维码编码生成二维码;
将 "拼接条数标识" 置为分片数目, "拼接次序" = "序号" , 将该组 中的 "组二维码标识" 置为某个相同的数, 在各自的信息数据区域中填入数 据分片 (最后一个分片中, 元数据小于信息数据区域大小的, 可使用填充位 填充) 。
本发明实施例 1还提供一种二维码解码方法, 如图 2所示, 包括:
200.准备获得二维码, 所述二维码包括二维码包括拼接区域和信息数据 区域;
201.获得输入(如使用手机上的摄像头拍摄) 的二维码;
202.判断: 二维码中 "拼接条数" 的大小, " = 1 " 则 "203" ; ">1 " 则转 "204" ;
203.解出上层应用数据, 提供给二维码上层应用, 退出;
204.判断: 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 "205" ; "否" 则转 "208" ;
205.判断: 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 则 "206" ; "否" 则 "207" ;
206.抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码" , 转 "200" ;
207.比较: 预存的具有该相同 "组二维码标识" 的二维码条数 +1、 "拼 接条数" 的大小, "<" 则转 "208" , " =,, 则转 "209" ;
208.存储该条二维码,提示 "请继续输入该组的不同二维码",转 "200";
209.将该组二维码中的信息数据按照序号拼接起来, 转 "203" 。
本发明实施例 1还提供一种二维码编码装置, 如图 3所示, 包括: 获得单元 301, 用于获得待编码数据;
二维码编码单元 303 ,用于对所述待编码数据进行编码,生成二维码编码, 该二维码编码包括: 拼接符区域和信息数据区域。
所述装置还可以包括:
判断单元 302 , 用于判断待编码数据大小是否超过一个所述待编码数据对 应的二维码容量, 若是则由数据拆分单元 304进行数据拆分, 若否则由二维码 编码单元 3 G 3直接对待编码数据进行二维码编码;
数据拆分单元 304 , 用于在所述判断单元 3022判断应用数据大小超过一个 所述待编码数据对应的二维码容量的情况下 , 对所述待编码数据进行拆分成 数据分段并排序并提供给二维码编码单元 303进行二维码编码。 本发明实施例 1还提供一种二维码解码装置, 如图 4所示, 包括: 获得单元 401 , 用于获得二维码;
二维码解码单元 407, 用于将二维码解码为上层应用数据, 提供给二维码 上层应用, 该二维码包括: 拼接符区域和信息数据区域。
所述装置还可以包括:
拼接条数判断单元 402, 用于判断所述获得单元 401获得的二维码的拼接 条数的大小, 若等于 1则将所述二维码上层信息编码提供给二维码解码单元 407处理;
组二维码标识判断单元 403 , 用于所述拼接条数判断单元 402判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 40 , 用于在所述组二维码标识判断单元 403判断获得 含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中 序号也相同的二维码。
比较判断单元 405 , 用于在所述拼接次序判断单元 404判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数 +1后和拼接条数的大小。
拼接单元 406 , 用于在所述比较判断单元 405判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给所述二维码解码单元 407 处理。
实施例二:
本发明实施例 2提供一种二维码编码方法, 如图 5所示, 包括:
501、 获得待编码的数据;
502、 判断数据大小经编码后是否超过一个二维码的容量, "否" 则转 "503" , "是" 则转 "504" ;
编码后二维码包括拼接区域和信息数据区域, 由于编码方式确定, 编码 后增加的大小如拼接符区域等可以确定, 那么数据经过二维码编码后的大小 可以预先算出来, 每个二维码所能携带的编码容量 =拼接区域大小 +信息数据 区域大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的信息编码容量 -拼接区域大小。
503、 进行二维码编码:
"拼接标识" = "0" , 信息数据区域中编入待编码数据, 生成一组二维 码, 退出;
504、 拆分数据、 排序; 每个二维码编码容量 =拼接区域大小 +信息数据 区域大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维码满足: 信息数据区域大小 =每个二维码容量 -拼接区域大小。 所以, 拆分数据时, 以信息数据区域大小为基准对待编码数据一次进行分片, 每个分片依次序分 配序号;
505、 将各数据分片进行二维码编码。
所述二维码包括:
拼接标识: 用于标识该二维码是否需要拼接。 此时, 使用 "1" 标识需 要拼接;
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。 拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8位 二进制数来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二 维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。 例如, 使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
将 "拼接标识" = "1" , 将 "拼接条数标识" 置为分片数目, "拼接次 序" = "序号" , 将该组中的 "组二维码标识" 置为某个相同的数, 在各自 的信息数据区域中填入数据分片 (最后一个分片中, 元数据小于信息数据区 域大小的, 可使用填充位填充) , 生成一组二维码。
本发明实施例 2还提供一种二维码解码方法, 如图 6所示, 包括:
600、 准备获得二维码;
601、 获得输入(如使用手机上的摄像头拍摄) 的二维码;
602、 二维码信息编码中 "拼接标识" 的大小, " = 0" 则转 603, " = 1" 则 604;
603、 解出上层应用数据, 提供给二维码上层应用, 退出;
604、 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 605 , "否" 则 608;
605、 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 606, "否" 607;
606、 抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码" ;
607、 比较: 预存的具有该相同 "组二维码标识" 的二维码条数 +1、 "拼 接条数,, 的大小, " = " 609 , "<" 608;
608、 存储该条二维码, 提示 "请继续输入该组的不同二维码" , 转 600;
609、 将该组二维码中的信息数据按照序号拼接起来, 转 603。 本发明实施例 2还提供一种二维码编码装置, 如图 7所示, 包括: 获得单元 701, 用于获得上层应用数据;
二维码编码单元 706 , 用于对所述上层应用数据进行二维码编码, 生成二 维码编码, 该二维码编码包括: 拼接符区域和信息数据区域;
所述装置还可以包括:
判断单元 702 , 用于判断应用数据大小是否超过一个所述待编码数据对应 的二维码容量, 若是则由数据拆分单元 703进行数据拆分, 若否则由二维码编 码单元 706直接对应用数据进行二维码编码;
数据拆分单元 703 , 用于在所述判断单元 702判断应用数据大小超过一个 所述待编码数据对应的二维码容量的情况下, 对所述应用数据进行拆分成数 据分片并排序并提供给二维码编码单元进行二维码编码。
所述二维码编码单元 706可以包括:
编码单元一 704 , 用于在所述判断单元 702判断应用数据大小未超过一个 所述待编码数据对应的二维码容量的情况下, 对所述对待编码数据直接进行 二维码编码, 所述对应用数据直接进行二维码编码是将拼接条数标识置为 1, "组二维码标识" 可以使用填充符填充或者置为某个值, "拼接次序" 可以 使用填充符填充或者置为 1 , 在信息数据区域中填入待编码数据, 生成二维码 编码;
编码单元二 705 , 用于在所述判断单元 702判断应用数据大小超过一个所 述待编码数据对应的二维码容量的情况下, 对所述数据分片进行二维码编码, 所述对数据分片进行二维码编码是将拼接条数标识置为分片的数目, 拼接次 序置为序号, 将组二维码标识置为某个相同的数, 在各自的信息数据区域中 填入数据分片。
本发明实施例 2还提供一种二维码解码装置, 如图 8所示, 包括: 获得单元 801, 用于获得二维码;
二维码解码单元 807 , 用于将二维码解码为上层应用数据, 提供给二维码 上层应用, 该二维码包括: 拼接符区域和信息数据区域。
所述装置还可以包括:
拼接条数判断单元 802, 用于判断所述获得单元 801获得的二维码的拼接 条数的大小, 若等于 1则将所述二维码编码提供给二维码解码单元处理; 组二维码标识判断单元 803, 用于所述拼接条数判断单元 802判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 804 , 用于在所述组二维码标识判断单元 803判断获得 含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中 序号也相同的二维码。
比较判断单元 805 , 用于在所述拼接次序判断单元 804判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数 +1后和拼接条数的大小。
拼接单元 806 , 用于在所述比较判断单元 805判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给所述二维码解码单元处 理。
所述装置还可以包括:
拼接标识单元 808 , 用于判断拼接标识的大小, 在判断拼接标识为 1的情 况下, 将二维码编码提供给拼接条数判断单元 802 , 在判断拼接标识为 0的情 况下, 将二维码编码提供给二维码解码单元 807处理。
实施例三:
本发明实施例 3提供一种二维码编码方法, 如图 9所示, 包括:
以下是本发明二维码生成方法的流程示例:
901、 获得待编码数据;
902、 判断数据大小经二维码编码后是否超过一个二维码的容量, "否" 则转 "903" , "是" 则转 "904" ;
编码后二维码包括拼接区域和信息数据区域, 由于编码方式确定, 编码 后增加的大小如拼接符区域等可以确定, 那么数据经过二维码编码后的大小 可以预先算出来, 每个二维码所能携带的编码容量 =拼接区域大小 +信息数据 区域大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的信息编码容量 -拼接区域大小。
903、 将待编码数据进行二维码编码:
所述生成的二维码包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接次序: 拼接次序标识该条二维码在应用拼接中所处的次序。 例如, 使用 8位二进制数来标识次序, 0 - 255共 256个数, 除去全零不用, 可以标识 255个二维码。
后续条数标识: 应用数据被分成的二维码拼接条数减去条信息的拼接次 序 (即: 后续条数=总条数一该条次序) , 例如, 使用 8位二进制数来标识条 数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。 假设应用数 据被分成共 10条二维码, 该条次序为 4, 那么后续条数为 6。
二维码编码, 由拼接符区域和信息数据区域组成: 拼接符区可以具体由 组二维码标识、 拼接次序和后续条数组成, 信息数据区域可以使用现有二维 码编码方式构成。
将 "后续条数标识" 置为 "0" , "组二维码标识" 、 "拼接次序" 使用 填充符填充, 在信息数据区域中填入待编码数据, 生成二维码编码, 退出;
904、 拆分数据、 排序; 每个二维码容量=拼接区域大小 +信息数据区域 大小, 即, 对于所编码生成的一组二维码而言, 其中每个二维码满足: 信息 数据区域大小 =每个二维码容量 -拼接区域大小。 所以, 拆分数据时, 以信 息数据区域大小为基准对待编码数据一次进行分片, 每个分片依次序分配序 号;
905、 将各数据分片进行二维码编码。 所述生成的二维码包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 65535中的某一个数。
拼接次序: 拼接次序标识该条二维码在应用拼接中所处的次序。 例如, 使用 8位二进制数来标识次序, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。
后续条数标识: 应用数据被分成的二维码拼接条数减去条信息的拼接次 序 (即: 后续条数=总条数一该条次序) , 例如, 使用 8位二进制数来标识条 数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。 假设应用数 据被分成共 10条二维码, 该条次序为 4 , 那么后续条数为 6。
具体是: "拼接次序" = "序号" , 根据 "后续条数 =总条数一该条拼 接次序" 得出后续条数, 将该组中的 "组二维码标识" 置为某个相同的数, 在各自的信息数据区域中填入数据分片 (最后一个分片中, 元数据小于信息 数据区域大小的, 可使用填充位填充) , 生成一组二维码。 本发明实施例 3还提供一种二维码解码方法, 如图 10所示, 包括:
1000.准备获得二维码;
1001.获得输入(如使用手机上的摄像头拍摄) 的二维码;
1002.通过 "拼接序号" + "后续条数" 算出 "总条数" 判断: "总条数" 的大小, " = 1" 则 "1003" ; ">1" 则转 "1004" ;
1003.解出上层应用数据, 提供给二维码上层应用, 退出;
1004.判断: 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 "1005" ; "否" 则转 "1008" ;
1005.判断: 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 则 "1006" ; "否" 则 "1007" ;
1006.抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码" , 转 "1000" ;
1007.比较: 预存的具有该相同 "组二维码标识" 的二维码条数 +1、 "总 条数" 的大小, "<" 则转 "1008" , " =,, 则转 "1009" ;
1008.提示 "请继续输入该组的不同二维码" , 转 "1000" ;
1009.将该组二维码中的信息数据按照序号拼接起来, 转 "1003" 。 本发明还提供一种二维码编码装置, 如图 11所示, 包括:
获得单元 111 , 用于获得待编码数据;
二维码编码单元 1 16 , 用于对所述上层应用数据进行二维码编码, 生成二 维码编码, 该二维码编码包括: 拼接符区域和信息数据区域;
所述装置还可以包括:
判断单元 112, 用于判断应用数据大小是否超过一个所述待编码数据对应 的二维码容量, 若是则由数据拆分单元 1 13进行数据拆分, 若否则由二维码编 码单元 116直接对应用数据进行二维码编码;
数据拆分单元 113, 用于在所述判断单元 112判断待编码数据大小超过一 个所述待编码数据对应的二维码容量的情况下, 对所述待编码数据进行拆分 成数据分片, 并排序提供给二维码编码单元 116进行二维码编码。
所述二维码编码单元 116可以包括:
编码单元一 114 , 用于在所述判断单元 112判断待编码数据大小未超过一 个所述待编码数据对应的二维码容量的情况下, 对所述待编码数据直接进行 二维码编码, 所述对待编码数据直接进行二维码编码是将拼接条数标识置为 1, "组二维码标识" 可以使用填充符填充或者置为某个值, "拼接次序" 可 以使用填充符填充或者置为 1, 在信息数据区域中填入待编码数据, 生成二维 码编码;
编码单元二 115, 用于在所述判断单元 112判断待编码数据大小超过一个 所述待编码数据对应的二维码容量的情况下, 对所述数据分片进行二维码编 码, 所述对数据分片进行二维码编码是将拼接条数标识置为分片数目, 拼接 次序置为序号, 将组二维码标识置为某个相同的数, 在各自的信息数据区域 中填入数据分片。
所述编码单元一 1 14还用于计算后续条数;
所述编码单元二 1 15还用于将后续条数标识置为 0。 本发明实施例 3还提供一种二维码解码装置, 如图 12所示, 包括: 获得单元 121 , 用于获得二维码;
二维码解码单元 127 , 用于从所述二维码编码中解出上层应用数据, 提供 给二维码上层应用。
所述装置还可以包括:
拼接条数判断单元 122, 用于判断所述获得单元 121获得的二维码的拼接 条数的大小, 若所述拼接条数等于 1则将所述二维码编码提供给应用数据提供 单元处理;
组二维码标识判断单元 123, 用于所述拼接条数判断单元 122判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 124 , 用于在所述组二维码标识判断单元 123判断已获 得含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序 中序号也相同的二维码。
比较判断单元 125 , 用于在所述拼接次序判断单元 124判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数 +1后和拼接条数的大小。
拼接单元 126 , 用于在所述比较判断单元 125判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给所述二维码解码单元处 理。
所述装置还可以包括: 拼接条数计算单元 128, 用于将后续条数与拼接序号相加得出拼接总条 数, 并提供给拼接条数判断单元 122。
实施例四
本发明实施例还提供一种终端 138, 如图 13所示, 包括一编码装置 137, 所述编码装置 137包括:
获得单元 131, 用于获得上层应用数据;
二维码编码单元 136, 用于对所述上层应用数据进行二维码编码, 生成二 维码, 该二维码包括: 拼接符区域和信息数据区域。
所述编码装置 137, 还包括:
判断单元 132, 用于判断应用数据大小是否超过一个所述上层应用数据对 应的二维码容量, 若是则由数据拆分单元 133进行数据拆分, 若否则由二维码 编码单元直接对应用数据进行二维码编码;
数据拆分单元 133, 用于在所述判断单元 132判断应用数据大小超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述应用数据进行拆分成 数据分片, 并为数据分片排序提供给二维码编码单元 136进行二维码编码。
所述二维码编码单元 136包括:
编码单元一 134 , 用于在所述判断单元 132判断应用数据经编码后的大小 未超过一个所述上层应用数据对应的二维码容量的情况下, 对所述对应用数 据直接进行二维码编码, 所述对应用数据直接进行二维码编码是将拼接条数 标识置为 1, "组二维码标识" 可以使用填充符填充或者置为某个值, "拼接 次序"可以使用填充符填充或者置为 1,在信息数据区域中填入上层应用数据, 生成二维码;
编码单元二 135, 用于在所述判断单元 132判断应用数据经编码后的大小 超过一个所述上层应用数据对应的二维码容量的情况下, 对所述数据分片进 行二维码编码, 所述对数据分片进行二维码编码是将拼接条数标识置为分片 数目, 拼接次序置为数据分片分配的序号, 将组二维码标识置为某个相同的 数, 在各自的信息数据区域中填入数据分片。
所述编码单元一 1 34还用于在所述判断单元 1 32判断应用数据经编码后的 大小未超过一个所述上层应用数据对应的二维码容量的情况下将拼接标识置 为 0;
所述编码单元二 1 35还用于在所述判断单元 1 32判断应用数据经编码后的 大小超过一个所述上层应用数据对应的二维码容量的情况下将拼接标识置为
1。 本发明实施例还提供一种终端 1410 , 如图 14所示, 包括一解码装置 1409, 所述解码装置 149包括:
获得单元 141 , 用于获得二维码;
二维码解码单元 147, 用于将二维码解码为上层应用数据, 提供给二维码 上层应用, 该二维码包括: 拼接符区域和信息数据区域。
所述解码装置 149 , 还包括:
拼接条数判断单元 142, 用于判断所述获得单元 141获得的二维码的拼接 条数的大小, 若拼接条数等于 1则将所述二维码提供给二维码解码单元 147处 理;
组二维码标识判断单元 143 , 用于所述拼接条数判断单元 142判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 144 , 用于在所述组二维码标识判断单元 143判断已获 得含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序 中序号也相同的二维码;
比较判断单元 145 , 用于在所述拼接次序判断单元 144判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数 +1后和拼接条数的大小;
拼接单元 146 , 用于在所述比较判断单元 145判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给二维码解码单元 147处 理。
所述解码装置 1409还可以包括:
拼接标识单元 148 , 用于判断拼接标识的大小, 在判断拼接标识为 1的情 况下, 将二维码编码提供给拼接条数判断单元 142, 在判断拼接标识为 G的情 况下, 将二维码编码提供给二维码解码单元 147处理。 本发明实施例 4还提供一种终端 1410 , 如图 15所示, 包括一解码装置 149 , 所述解码装置 149包括:
获得单元 1 31 , 用于获得二维码;
二维码解码单元 147 , 用于将二维码解码为上层应用数据, 提供给二维码 上层应用, 该二维码包括: 拼接符区域和信息数据区域。
所述解码装置 149 , 还包括:
拼接条数判断单元 142 , 用于判断所述获得单元获得的二维码的拼接条数 的大小, 若等于 1则将所述二维码提供给二维码解码单元 147处理;
组二维码标识判断单元 143, 用于所述拼接条数判断单元 142判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 144 , 用于在所述组二维码标识判断单元 143判断获得 含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中 序号也相同的二维码;
比较判断单元 145 , 用于在所述拼接次序判断单元 144判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数 +1后和拼接条数的大小;
所述解码装置 149 , 还包括:
拼接条数计算单元 151 , 用于将后续条数与拼接序号相加得出拼接总条 数, 并提供给拼接条数判断单元 142。 上述实施例中, 所有涉及的举例, 如 "拼接标识" =011; 组二维码标识 分配 0~ 65535中的某一个数;拼接条数标识使用 8位二进制数来标识次序, 0~ 255共 256个数; 拼接次序使用 8位二进制数来标识次序, 0 ~ 255共 256个数等, 都只是一种举例说明, 实际实现时应不受此限制, 发明中的方案同样适用。

Claims

权利要求 书
1、 一种二维码编码方法, 包括:
获得上层应用数据;
对所述上层应用数据进行二维码编码, 生成的二维码包括: 拼接符区域和 信息数据区域。
2、 如权利要求 1所述的方法, 其特征在于, 所述获得上层应用数据后还包 括:
判断应用数据经编码后的大小是否超过一个所述上层应用数据对应的二维 码容量; 如果是, 则将数据拆分成数据分片并为数据分片排序, 所述对所述上 层应用数据进行二维码编码是对数据分片进行二维码编码, 所述拼接符区域包 括拼接条数标识; 如果否, 所述对所述上层应用数据进行二维码编码是对所述 应用数据直接进行二维码编码, 所述拼接符区域包括拼接条数标识。
3、 如权利要求 2所述的方法, 其特征在于, 所述拼接符区域还包括: 组二 维码标识和拼接次序;
拆分数据时, 以信息数据区域大小为基准对上层应用数据一次进行分片, 为每个分片依次序分配序号; 所述对数据分片进行二维码编码是将拼接条数标 识置为分片数目, 拼接次序置为序号, 将组二维码标识置为某个相同的数, 在 各自的信息数据区域中填入数据分片。
4、 如权利要求 2所述的方法,其特征在于, 所述拼接符区域还包括: 组二维 码标识和拼接次序;
所述对应用数据直接进行二维码编码是将拼接条数标识置为 1 , 在信息数据 区域中填入上层应用数据, 生成二维码编码。
5、 如权利要求 2所述的方法, 其特征在于, 所述拼接符区域还包括: 拼接 标识;
拆分数据时以信息数据区域大小为基准对上层应用数据一次进行分片, 为 每个分片依次序分配序号; 所述对数据分片进行二维码编码是将拼接标识置为 1, 将拼接条数标识置为分片数目, 拼接次序置为序号, 将组二维码标识置为某 个相同的数, 在各自的信息数据区域中填入数据分片。
6、 如权利要求 2所述的方法, 其特征在于, 所述拼接符区域还包括: 拼接 标识;
所述对所述应用数据直接进行二维码编码是将所述拼接标识置为 0, 信息数 据区域中编入上层应用数据。
7、 如权利要求 1所述的方法, 其特征在于, 所述获得应用数据后还包括: 判断应用数据经编码后的大小是否超过一个所述上层应用数据对应的二维码容 量; 如果是, 则将数据拆分成数据分片并排序, 所述对所述上层应用数据进行 二维码编码是对数据分片进行二维码编码, 所述拼接符区域包括组二维码标识, 后续条数标识和拼接次序; 如杲否, 所述对所述上层应用数据进行二维码编码 是对所述应用数据直接进行二维码编码, 所述拼接符区域包括组二维码标识, 后续条数标识和拼接次序。
8、 如权利要求 7所述的方法, 其特征在于, 拆分数据时以信息数据区域大 小为基准对上层应用数据一次进行分片, 为每个分片依次序分配序号; 所述对 数据分片进行二维码编码是将拼接次序置为序号, 计算后续条数, 将组二维码 标识置为相同的数, 在各自的信息数据区域中填入数据分片。
9、 如权利要求 7所述的方法, 其特征在于, 所述对所述应用数据直接进行 二维码编码是将后续条数标识置为 0, 在信息数据区域中填入待编码数据。
10、 一种二维码解码方法, 包括:
获得二维码, 所述二维码包括拼接符区域和信息数据区域;
解出上层应用数据, 提供给二维码上层应用。
11、 如权利要求 1 0所述的方法, 其特征在于, 所述拼接符区域包括组二维 码标识、 拼接条数标识和拼接次序;
所述获得二维码后还包括:
判断所述拼接条数的大小, 若拼接条数是 1则解出上层应用数据, 提供给二 维码上层应用, 若拼接条数大于 1则判断是否已获得含有相同组二维码标识的二 维码。
12、 如权利要求 1 1所述的方法,其特征在于,所述判断是否已获得含有相同 组二维码标识的二维码,若是, 则判断是否已获得含有拼接次序中序号也相同的 二维码; 若否, 则将预存的具有该相同组二维码标识的二维码条数 +1, 之后将 结果与拼接条数的大小进行比较, 若等于, 则将该组二维码中的信息数据按照 序号拼接起来, 解出上层应用数据, 提供给二维码上层应用。
13、 如权利要求 1 0所述的方法, 其特征在于, 所述拼接符区域包括拼接标 识、 组二维码标识、 拼接条数标识、 拼接次序;
所述获得二维码后还包括判断拼接标识的大小, 若拼接标识为 1则判断是否 已获得含有相同组二维码标识的二维码, 若拼接标识为 0则解出上层应用数据, 提供给二维码上层应用。
14、 如权利要求 1 3所述的方法, 其特征在于, 所述判断是否已获得含有相 同组二维码标识的二维码, 若是, 则判断是否已获得含有拼接次序中序号也相 同的二维码; 若否, 则将预存的具有该相同组二维码标识的二维码条数 +1, 之 后将结果与拼接条数的大小进行比较。
15、 如权利要求 14所述的方法, 其特征在于, 所述将结果与拼接条数的大 小进行比较, 若所述结果等于拼接条数的大小, 则将该组二维码中的信息数据 按照序号拼接起来; 解出上层应用数据, 提供给二维码上层应用。
16、 如权利要求 1 0所述的方法, 其特征在于, 所述拼接符区域包括组二维 码标识、 后续条数标识和拼接次序;
所述获得二维码后还包括将后续条数与拼接序号相加得出拼接总条数; 判 断拼接总条数的大小, 若拼接总条数等于 1则解出上层应用数据, 提供给二维码 上层应用, 若拼接总条数大于 1则判断是否已获得含有相同组二维码标识的二维 码。
17、 如权利要求 1 6所述的方法, 其特征在于, 所述判断是否已获得含有相 同组二维码标识的二维码, 若是, 则判断是否已获得含有拼接次序中序号也相 同的二维码; 若否, 则将预存的具有该相同组二维码标识的二维码条数 +1, 之 后将结果与拼接条数的大小进行比较。
18、 如权利要求 17所述的方法, 其特征在于, 所述将结果与拼接条数的大 小进行比较, 若所述结果等于拼接条数则将该组二维码中的信息数据按照序号 拼接起来, 解出上层应用数据, 提供给二维码上层应用。
19、 一种编码装置, 其特征在于, 该编码装置包括:
获得单元, 用于获得上层应用数据;
二维码编码单元, 用于对所述上层应用数据进行二维码编码, 生成二维码, 该二维码包括: 拼接符区域和信息数据区域。
20、 如权利要求 1 9所述的装置, 其特征在于, 还包括:
判断单元, 用于判断应用数据经编码后的大小是否超过一个所述上层应用 数据对应的二维码容量, 若是则由数据拆分单元进行数据拆分, 若否则由二维 码编码单元直接对应用数据进行二维码编码;
数据拆分单元, 用于在所述判断单元判断应用数据经编码后的大小超过一 个所述上层应用数据对应的二维码容量的情况下, 对所述应用数据进行拆分成 数据分段片并对数据分片排序 , 之后提供给二维码编码单元进行二维码编码。
21、 如权利要求 20所述的方法, 其特征在于, 所述二维码编码单元包括: 编码单元一, 用于在所述判断单元判断应用数据经编码后的大小未超过一 个所述上层应用数据对应的二维码容量的情况下, 对所述对应用数据直接进行 二维码编码, 所述对应用数据直接进行二维码编码是将拼接条数标识置为 1 , 在 信息数据区域中填入上层应用数据, 生成二维码;
编码单元二, 用于在所述判断单元判断应用数据经编码后的大小超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述数据分片进行二维码编 码, 所述对数据分片进行二维码编码是将拼接条数标识置为分片数目, 拼接次 序置为序号, 将组二维码标识置为某个相同的数, 在各自的信息数据区域中填 入数据分片。
11、 如权利要求 21所述的装置, 其特征在于,
所述编码单元一还用于在所述判断单元判断应用数据经编码后的大小未超 过一个所述上层应用数据对应的二维码容量的情况下将拼接标识置为 0;
所述编码单元二还用于在所述判断单元判断应用数据经编码后的大小超过 一个所述上层应用数据对应的二维码容量的情况下将拼接标识置为 1。
23、 如权利要求 22所述的装置, 其特征在于,
所述编码单元一还用于计算后续条数;
所述编码单元二还用于将后续条数标识置为 0。
24、 一种解码装置, 其特征在于, 该解码装置包括:
获得单元, 用于获得二维码;
二维码解码单元, 用于将二维码解码为上层应用数据, 提供给二维码上层 应用, 该二维码包括: 拼接符区域和信息数据区域。
25、 如权利要求 24所述的装置, 其特征在于, 还包括:
拼接条数判断单元, 用于判断所述获得单元获得的二维码的拼接条数的大 小, 若拼接条数等于 1则将所述二维码提供给二维码解码单元处理;
组二维码标识判断单元 , 用于所述拼接条数判断单元判断拼接条数大于 1的 情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元, 用于在所述组二维码标识判断单元判断获得含有相同 组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中序号也相同 的二维码;
比较判断单元, 用于在所述拼接次序判断单元判断未接受含有相同拼接次 序的二维码的情况下, 将预存的具有该相同组二维码标识的二维码条数加上 1, 之后将结果与拼接条数的大小进行比较;
拼接单元, 用于在所述比较判断单元判断所述结果等于拼接条数的大小的 情况下, 将该组二维码中的信息数据按照拼接次序序号拼接起来, 并提供给二 维码解码单元处理。
26、 如权利要求 25所述的装置, 其特征在于, 还包括:
拼接标识单元, 用于判断拼接标识的大小, 在判断拼接标识为 1的情况下, 将二维码提供给拼接条数判断单元, 在判断拼接标识为 0的情况下, 将二维码提 供给二维码解码单元处理。
27、 如权利要求 25所述的装置, 其特征在于, 还包括:
拼接条数计算单元, 用于将后续条数与拼接序号相加得出拼接总条数, 并 将拼接总条数提供给拼接条数判断单元。
28、 一种终端, 其特征在于, 包括一编码装置, 所述编码装置包括: 获得单元, 用于获得上层应用数据;
二维码编码单元, 用于对所述上层应用数据进行二维码编码, 生成二维码, 该二维码包括: 拼接符区域和信息数据区域。
29、 一种终端, 其特征在于, 包括一解码装置, 所述解码装置包括: 获得单元, 用于获得二维码;
二维码解码单元, 用于将二维码解码为上层应用数据, 提供给二维码上层 应用, 该二维码包括: 拼接符区域和信息数据区域。
PCT/CN2009/072777 2008-07-30 2009-07-15 二维码编码方法、解码方法及装置、终端 WO2010012194A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP09802387.2A EP2309426B1 (en) 2008-07-30 2009-07-15 Two-dimensional bar code encoding method, decoding method and device, terminal
ES09802387.2T ES2442745T3 (es) 2008-07-30 2009-07-15 Método de codificación de código de barras bidimensional, método y dispositivo de decodificación, terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200810142574 CN101639899B (zh) 2008-07-30 2008-07-30 二维码编码方法、解码方法及装置、终端
CN200810142574.7 2008-07-30

Publications (1)

Publication Number Publication Date
WO2010012194A1 true WO2010012194A1 (zh) 2010-02-04

Family

ID=41609948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072777 WO2010012194A1 (zh) 2008-07-30 2009-07-15 二维码编码方法、解码方法及装置、终端

Country Status (4)

Country Link
EP (1) EP2309426B1 (zh)
CN (1) CN101639899B (zh)
ES (1) ES2442745T3 (zh)
WO (1) WO2010012194A1 (zh)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976324A (zh) * 2010-09-30 2011-02-16 福建新大陆电脑股份有限公司 射频识别读取器、读取方法及相应的射频识别读取系统
CN104035737A (zh) * 2013-03-04 2014-09-10 联想(北京)有限公司 一种信息处理的方法及一种电子设备
CN103400174B (zh) * 2013-07-30 2016-08-10 人民搜索网络股份公司 一种二维码的编码方法、解码方法及系统
CN104517143B (zh) * 2013-09-30 2018-04-20 阿里巴巴集团控股有限公司 用于代码编码、解码的方法和装置以及代码编解码系统
CN103530668A (zh) * 2013-10-21 2014-01-22 安徽华菱汽车有限公司 一种零部件追溯方法与零部件标识方法
CN103530669A (zh) * 2013-11-08 2014-01-22 成都博格科技有限公司 一种数据信息的二维码编码方法
CN104680202B (zh) * 2013-12-03 2018-08-10 航天信息股份有限公司 一种发票二维码生成和验证方法
CN104700059A (zh) * 2013-12-05 2015-06-10 航天信息股份有限公司 基于安卓系统的一维码扫描方法及其装置
CN103745252B (zh) * 2013-12-27 2017-04-05 广州市宝比万像科技有限公司 编码列、二维码编码方法以及二维码解码方法
CN103984974A (zh) * 2014-05-06 2014-08-13 北京爱创科技股份有限公司 一种二维码及二维码的解码方法
CN104463296B (zh) * 2014-11-10 2018-04-10 吴涛军 一种二维码结构化信息的生成、获取及处理方法和系统
CN104794518B (zh) * 2015-05-06 2018-01-12 矽图(厦门)科技有限公司 彩色二维码的生成方法
CN105160378B (zh) * 2015-08-18 2018-10-30 矽图(厦门)科技有限公司 一种彩色隐形图像码生成方法
CN106874979B (zh) * 2015-12-14 2020-04-07 阿里巴巴集团控股有限公司 一种条形码处理、显示、读取方法和装置
CN106022433A (zh) * 2016-06-23 2016-10-12 天津众阳科技有限公司 新型二维码及其生成、扫码方法
CN107509080B (zh) * 2017-08-18 2021-01-15 北京奇艺世纪科技有限公司 一种编码图像显示方法、装置和电子设备
CN108229627A (zh) * 2017-12-25 2018-06-29 刘世洪 农产品质量安全全程溯源时空混合编码及编码方法
CN109948389A (zh) * 2019-03-28 2019-06-28 尤尼泰克(嘉兴)信息技术有限公司 一种可容纳大容量的扩展二维码绘制及识别方法
CN111353564B (zh) * 2020-03-06 2023-07-18 赵佳锦 一种新式二维系统
CN111461279A (zh) * 2020-04-01 2020-07-28 张晓鸿 多功能载体一字码结构及其使用方法
CN112749126A (zh) * 2020-12-28 2021-05-04 贵州东冠科技有限公司 执法记录数据档案化管理方法及系统
CN113627578B (zh) * 2021-08-09 2024-02-09 中国物品编码中心 二维码生成方法、识别方法、装置、二维码、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294519C (zh) * 2003-05-22 2007-01-10 武汉矽感科技有限公司 二维条码的编码和解码方法
CN101101628A (zh) * 2006-07-07 2008-01-09 中国物品编码中心 二维条码编码的汉字信息压缩方法
CN101132293A (zh) * 2007-08-24 2008-02-27 华为技术有限公司 一种个人信息的处理方法、系统和装置
CN101281607A (zh) * 2008-05-20 2008-10-08 北京方正国际软件系统有限公司 一种大信息容量的二维条码及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7575168B2 (en) * 2004-10-01 2009-08-18 Nokia Corporation Methods, devices and computer program products for generating, displaying and capturing a series of images of visually encoded data
JP4569382B2 (ja) * 2005-05-20 2010-10-27 ブラザー工業株式会社 印刷データ編集装置、印刷データ編集プログラム及び記録媒体
CN100369059C (zh) * 2006-01-18 2008-02-13 冯文伦 一种矩阵式二维条码及其编码解码方法
CN101063999B (zh) * 2006-04-29 2010-09-15 银河联动信息技术(北京)有限公司 一种二维码与标识的合成系统及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294519C (zh) * 2003-05-22 2007-01-10 武汉矽感科技有限公司 二维条码的编码和解码方法
CN101101628A (zh) * 2006-07-07 2008-01-09 中国物品编码中心 二维条码编码的汉字信息压缩方法
CN101132293A (zh) * 2007-08-24 2008-02-27 华为技术有限公司 一种个人信息的处理方法、系统和装置
CN101281607A (zh) * 2008-05-20 2008-10-08 北京方正国际软件系统有限公司 一种大信息容量的二维条码及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2309426A4 *

Also Published As

Publication number Publication date
EP2309426A4 (en) 2011-11-02
EP2309426B1 (en) 2013-10-23
ES2442745T3 (es) 2014-02-13
CN101639899A (zh) 2010-02-03
CN101639899B (zh) 2013-08-28
EP2309426A1 (en) 2011-04-13

Similar Documents

Publication Publication Date Title
WO2010012194A1 (zh) 二维码编码方法、解码方法及装置、终端
WO2010015184A1 (zh) 二维码生成方法、解码方法及装置
Kieseberg et al. QR code security
KR100927357B1 (ko) 비주얼 인코딩 데이터의 일련의 이미지들을 생성,디스플레이 및 캡처하는 방법, 장치 및 컴퓨터 프로그램제품
US8144361B2 (en) Creation and placement of two-dimensional barcode stamps on printed documents for storing authentication information
WO2014044159A1 (en) Method and device for batch scanning 2d barcodes
CN107169775A (zh) 基于微信的防伪溯源营销系统及方法
Fang Offline QR code authorization based on visual cryptography
CN104320253B (zh) 一种基于cbs签名机制的二维码认证系统及方法
WO2015012827A1 (en) Encoding an information object
Wu et al. Application of QR-code steganography using data embedding technique
WO2012050571A1 (en) A system for generating an incrementally completed 3d security mark
CN107944525A (zh) 一种基于数据分割的扩大二维码容量的方法及系统
US9087252B2 (en) Grayscale incremental information object
Gupta et al. Extending the storage capacity and noise reduction of a faster QR-code
CN1976432A (zh) 一种设备和设备的配置方法
CN109685186A (zh) 基于二维空码的大规模内容定制方法
Cheong et al. Pictorial image code: A color vision-based automatic identification interface for mobile computing environments
CN106874979B (zh) 一种条形码处理、显示、读取方法和装置
CN113902456A (zh) 一种产品防伪方法及装置
EP2891112A1 (en) Generating a regressive information object
CN202795416U (zh) 基于二维码防伪识别系统
CN1946106A (zh) 一种基于无线通信网络获取个人信息的方法及系统
Yeh et al. The 2D bar-code technology applications in medical information management
EP3783876A1 (en) The method of single-use processing of data saved in a quick response (qr) code

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: 09802387

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2009802387

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE