WO2010015184A1 - 二维码生成方法、解码方法及装置 - Google Patents

二维码生成方法、解码方法及装置 Download PDF

Info

Publication number
WO2010015184A1
WO2010015184A1 PCT/CN2009/073050 CN2009073050W WO2010015184A1 WO 2010015184 A1 WO2010015184 A1 WO 2010015184A1 CN 2009073050 W CN2009073050 W CN 2009073050W WO 2010015184 A1 WO2010015184 A1 WO 2010015184A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
upper layer
splicing
data
application data
Prior art date
Application number
PCT/CN2009/073050
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 华为技术有限公司
Publication of WO2010015184A1 publication Critical patent/WO2010015184A1/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 computer technology and information technology, and more particularly to two-dimensional code technology.
  • 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 2D barcode is born to solve the problem that the one-dimensional barcode can't solve.
  • the 2-dimensional barcode is distributed in a plane (two-dimensional direction) according to a certain rule by a certain geometric pattern.
  • Black and white graphics record data symbol information; skillfully use the concept of "0", "1" bitstreams that form the basis of the computer's internal logic, and use several geometric shapes corresponding to binary to represent literal values.
  • Information, automatic reading by image input device or photoelectric scanning device for automatic information processing It has some commonalities of bar code technology: each code system has its specific character set; each character occupies a certain width; Check function, etc.
  • 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 of its 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 mobile phone scanning QR code technology is simply to scan the QR code through the mobile phone camera function. Quickly obtain the information stored in the 2D barcode, and access the Internet, send SMS, dial, data exchange, automatic text input, etc.
  • the mobile phone 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, which expands the upper application range that the two-dimensional code can support, and breaks through the bottleneck of the two-dimensional code capacity.
  • An embodiment of the present invention provides a method for generating a two-dimensional code, including:
  • Performing upper layer information encoding on the upper layer application data to generate an upper layer information encoding where the upper layer information encoding includes: a stitching area and an information data area;
  • the upper layer information is encoded and encoded in a two-dimensional code to generate a two-dimensional code.
  • the embodiment of the invention further provides a two-dimensional code decoding method, including:
  • the two-dimensional code into a two-dimensional code upper layer information coding, where the upper layer information coding includes a splicing 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 upper layer information encoding unit is configured to perform upper layer information encoding on the upper layer application data, and generate an upper layer information encoding, where the upper layer information encoding includes: a stitching area and an information data area;
  • the two-dimensional code encoding unit is configured to encode the upper layer information and perform two-dimensional code encoding to generate a two-dimensional code.
  • An embodiment of the present invention further provides a decoding apparatus, including: Obtaining unit for obtaining a two-dimensional code;
  • An upper layer information decoding unit configured to decode the two-dimensional code into a two-dimensional code upper layer information encoding, where the upper layer information encoding comprises: a stitching area and an information data area;
  • an application data providing unit configured to extract upper layer application data from the upper layer information coding of the two-dimensional code, and provide the upper layer application to the two-dimensional code.
  • the upper layer application data capacity that the two-dimensional code can support is expanded by the splicing symbol area in the upper layer information coding of the two-dimensional code.
  • FIG. 1 is a flowchart of a method for generating a two-dimensional code according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for decoding a two-dimensional code 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 method for generating a two-dimensional code according to Embodiment 2 of the present invention
  • FIG. 6 is a flowchart of a method for decoding a two-dimensional code 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 method for generating a two-dimensional code according to Embodiment 3 of the present invention
  • FIG. 10 is a flowchart of a method for decoding a two-dimensional code 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.
  • Embodiment 1 of the present invention provides a method for generating a two-dimensional code. As shown in FIG. 1, the method includes:
  • the upper application data is encoded into the upper layer information of the two-dimensional code, and the "stitching number identification" is set to " ⁇ ," the group two-dimensional code identifier is filled with a filler or set to a certain value, and the "stitching order" is filled. Fill or set to 1, fill the upper application data in the information data area, generate the upper layer information encoding of the two-dimensional code, and turn "106";
  • the splicing area and the information data area are included, and the splicing area 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 upper application data 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. ;
  • 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.
  • the information data area includes: a basic identification area and an identifier area, the basic identification area including an operator identification and a version number, the identifier area including an application identifier and an attribute.
  • Each individual application begins with the carrier identification and version information, followed by the application identifier, which represents the type of application.
  • An attribute consists of an attribute identifier that represents the type of the attribute, and an attribute identifier that contains the actual content.
  • Each attribute parameter can take multiple values.
  • the upper layer information coding of the two-dimensional code is as shown in FIG. 3, and includes a stitching area and an information data area, and the stitching area 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 upper application data 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. ;
  • 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.
  • Each upper layer information code is encoded by a two-dimensional code to generate a group or a two-dimensional code.
  • Embodiment 1 of the present invention further provides a two-dimensional code decoding method, as shown in FIG. 2, including:
  • the upper layer information coding of the two-dimensional code includes a splicing area and an information data area, and the splicing area includes:
  • Group QR code identification Used to identify a set of QR codes that need to be stitched, the same group (for splicing) QR code, assign a same group QR code identifier. 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 upper application data 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. ;
  • 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.
  • the information data area can be constructed using existing upper layer information coding methods.
  • Extract the upper application data provide the upper layer application of the two-dimensional code, and exit;
  • the information data in the two-dimensional code is spliced according to the serial number, and is changed to "204".
  • the embodiment 1 of the present invention further provides an encoding device 301, as shown in FIG. 3, including:
  • the obtaining unit 302 is configured to obtain upper application data
  • the upper layer information encoding unit 304 is configured to perform upper layer information encoding on the upper layer application data, and generate an upper layer information encoding, where the upper layer information encoding includes: a stitching area and an information data area;
  • the two-dimensional code encoding unit 305 is configured to encode the upper layer information and perform two-dimensional code encoding to generate a two-dimensional code.
  • the device may further include:
  • the determining unit 303 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 306 performs data splitting, if otherwise, the upper layer information encoding unit 304 directly applies the data. Perform upper layer information encoding;
  • the data splitting unit 306 is configured to split the application data into data segments and sort them when the determining unit 303 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the upper layer application data.
  • the upper layer information encoding unit 304 is supplied to perform upper layer information encoding.
  • the embodiment 1 of the present invention further provides a decoding apparatus 401, as shown in FIG. 4, comprising: an obtaining unit 402, configured to obtain a two-dimensional code;
  • the two-dimensional code decoding unit 403 is configured to decode the two-dimensional code into a two-dimensional code upper layer information encoding, where the upper layer information encoding includes: a stitching area and an information data area;
  • the application data providing unit 409 is configured to extract upper layer application data from the upper layer information coding of the two-dimensional code, and provide the upper layer application to the two-dimensional code.
  • the device 401 can also include:
  • the splicing number determining unit 404 is configured to determine the size of the splicing number of the two-dimensional code obtained by the obtaining unit 402, and if yes, the two-dimensional code upper layer information encoding is provided to the application data providing unit 409 for processing;
  • the group two-dimensional code identification determining unit 405 is 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 406 is configured to determine, when the two-dimensional code identification determining unit 405 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 judging unit 407 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier plus one after the splicing order judging unit 406 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 408, configured to: when the comparison determining unit 407 determines that it is equal to The information data in the group two-dimensional code is spliced according to the serial number and provided to the application data providing unit
  • Embodiment 2 of the present invention provides a method for generating a two-dimensional code, as shown in FIG. 5, including:
  • the splicing area is further determined as the splicing identifier, that is, the length of the splicing area is the length of the splicing identification (lbit) in the calculation.
  • the encoding mode 2 refers to generating a two-dimensional code upper layer information coding including a splicing area, and includes: splicing identification: used to identify whether the two-dimensional code needs to be spliced. At this time, the "0" mark is used without splicing;
  • the upper layer information coding in the two-dimensional code is composed of a splicing symbol area and an information data area: the splicing symbol area may be specifically composed of a splicing identifier, and the information data area may be constructed by using an existing upper layer information encoding manner.
  • the size of the information data area the encoding capacity of the upper layer information that each QR code can carry - the size of the splicing area. Therefore, when splitting the data, the upper layer application data is fragmented once based on the size of the information data area, and each slice is sequentially assigned a sequence number;
  • the encoding mode 1 refers to generating a two-dimensional code upper layer information encoding including a splicing area, and the splicing area includes:
  • Splicing ID Used to identify whether the QR code needs to be spliced. At this point, use the "1" logo to splicing;
  • 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 upper application data 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. ;
  • 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.
  • the upper layer information coding of the two-dimensional code is composed of a splicing symbol area and an information data area: the splicing symbol area may be specifically composed of a splicing identifier, a group two-dimensional code identifier, a splicing number and a splicing order, and the information data region may be encoded using the existing upper layer information. Way composition.
  • Each upper layer information code is encoded by the two-dimensional code to generate one or a group of two-dimensional codes.
  • Embodiment 2 of the present invention further provides a two-dimensional code decoding method. As shown in FIG. 6, the method includes:
  • the upper layer information coding of the two-dimensional code includes a splicing area and an information data area, and the splicing area includes: Splicing ID: Used to identify whether the QR code needs to be spliced. Use "1" to identify stitching, use "0" to identify stitching;
  • 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 upper application data is divided. For example, an 8-bit binary number is used to identify the number of strips, and 0 to 255 are 256 totals. Excluding all zeros, 255 QR 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.
  • the information data area can be constructed using existing upper layer information coding methods.
  • the information data in the set of two-dimensional codes is spliced according to the serial number
  • Extract the upper application data provide the upper layer application of the two-dimensional code, and exit.
  • the embodiment 2 of the present invention further provides an encoding device 701, as shown in FIG. 7, comprising:
  • the obtaining unit 702 is configured to obtain upper application data.
  • the upper layer information encoding unit 704 is configured to perform upper layer information encoding on the upper layer application data, and generate The upper layer information encoding includes: a splicing symbol area and an information data area; and a two-dimensional code encoding unit 705, configured to encode the upper layer information and perform two-dimensional code encoding to generate a two-dimensional code.
  • the device 701 can also include:
  • the determining unit 703 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 706 performs data splitting, if otherwise, the upper layer information encoding unit 704 directly applies the data. Perform upper layer information encoding;
  • the data splitting unit 706 is configured to split the application data into data segments and sort them when the determining unit 703 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the upper layer application data.
  • the upper layer information encoding unit 704 is supplied to perform upper layer information encoding.
  • the upper layer information encoding unit may include:
  • the encoding unit 707 is configured to directly perform upper layer information encoding on the application data when the determining unit 703 determines that the application data size does not exceed the capacity of the two-dimensional code corresponding to the upper layer application data, and the pair
  • the application data directly encodes the upper layer information by setting the number of splicing bars to 1, the "group two-dimensional code identifier" using a filler to fill or set a value, and the "stitching order" using a filler to fill or set to 1, in the information
  • the upper layer application data is filled in the data area, and the upper layer information coding of the two-dimensional code is generated;
  • the encoding unit 708 is configured to: when the determining unit 703 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to the upper layer application data, performing upper layer information encoding on the data segment, where the data segment is
  • the upper layer information coding is performed by setting 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, and data fragments are filled in the respective information data areas.
  • Embodiment 2 of the present invention further provides a decoding apparatus 801, as shown in FIG. 8, including:
  • Obtaining unit 802 configured to obtain a two-dimensional code
  • the upper layer information decoding unit 803 is configured to decode the two-dimensional code into a two-dimensional code upper layer information encoding, where the upper layer information encoding comprises: a stitching area and an information data area;
  • An application data providing unit 810 configured to extract an upper application from the upper layer information coding of the two-dimensional code Data, provided to the upper application of the QR code.
  • the device 801 can also include:
  • the splicing number determining unit 805 is configured to determine a size of the splicing number of the two-dimensional code obtained by the obtaining unit, and if yes, provide the upper layer information encoding of the two-dimensional code to the application data providing unit for processing;
  • the identifier judging unit 806 is 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 807 is configured to determine, if the two-dimensional code identification determining unit 806 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 808 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier plus one after the splicing order judging unit 807 judges that the two-dimensional code having the same splicing order is not accepted. And the size of the number of stitches.
  • the splicing unit 809 is configured to, when the comparison determining unit 808 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 application data providing unit for processing.
  • the device 801 can also include:
  • the splicing identification unit 804 is configured to determine the size of the splicing identifier.
  • the splicing identifier is 1, the encoding of the upper layer information of the two-dimensional code is provided to the splicing number determining unit 805, and when the splicing identifier is 0, The two-dimensional code upper layer information encoding is supplied to the application data providing unit 810 for processing.
  • Example 3
  • Embodiment 3 of the present invention provides a method for generating a two-dimensional code. As shown in FIG. 9, the method includes:
  • the upper layer information coding of the two-dimensional code includes a splicing area and an information data area, and the splicing area 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.
  • 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.
  • the upper 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 area can be constructed using existing upper layer information coding methods.
  • the upper layer information coding of the two-dimensional code includes a splicing area and an information data area, and the splicing area 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.
  • 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.
  • the upper 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 area can be constructed using existing upper layer information coding methods.
  • switching order “serial number”
  • subsequent number of strips total number of strips - the stitching order of the strip
  • the number of subsequent strips is obtained
  • the "group QR code identifier” in the group is set to some The same number is filled in the data segment of the respective information data area (in the last fragment, the metadata is smaller than the size of the information data area, and can be filled with padding bits);
  • Each upper layer information code is encoded by a two-dimensional code to generate a group or a two-dimensional code.
  • Embodiment 3 of the present invention further provides a two-dimensional code decoding method. As shown in FIG. 10, the method includes:
  • the upper layer information coding of the two-dimensional code includes a splicing area and an information data area, and the splicing area 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.
  • 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 in the application stitching. For example, use an 8-bit binary number to identify the order, 0 ⁇ 255 A total of 256 numbers, except for all zeros, can identify 255 two-dimensional codes.
  • the upper 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 area can be constructed using existing upper layer information coding methods.
  • the information data in the set of two-dimensional codes is spliced according to the serial number, and is changed to "1004".
  • the embodiment 3 of the present invention further provides an encoding device 1101, as shown in FIG. 11, comprising: an obtaining unit 1102, configured to obtain upper layer application data;
  • the upper layer information encoding unit 1104 is configured to perform upper layer information encoding on the upper layer application data, and generate an upper layer information encoding, where the upper layer information encoding includes: a stitching area and an information data area; and a two-dimensional code encoding unit 1105, configured to use the upper layer information
  • the code encodes the two-dimensional code to generate a two-dimensional code.
  • the device 1101 may further include:
  • the determining unit 1103 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 1106 performs data splitting, if otherwise, the upper layer information encoding unit 1104 directly applies the data. Perform upper layer information encoding;
  • the data splitting unit 1106 is configured to split the application data into data segments and sort them when the determining unit 1103 determines that the application data size exceeds the capacity of the two-dimensional code corresponding to one of the upper layer application data.
  • the upper layer information encoding unit 1104 is supplied to perform upper layer information encoding.
  • the upper layer information encoding unit 1104 may include:
  • the coding unit 1107 is configured to: when the determining unit 1103 determines that the application data size does not exceed the capacity of the two-dimensional code corresponding to the upper layer application data, set the subsequent number of labels to 0, the group two-dimensional code identifier, The splicing order is filled with a filler, and the upper layer application data is filled in the information data area to generate a two-dimensional code upper layer information code;
  • the coding unit 1107 may be further configured to: when the determining unit 1103 determines that the application data size does not exceed the capacity of the two-dimensional code corresponding to one of the upper layer application data, the splicing identifier is set to 0; The splicing identifier may be set to 1 if the determining unit determines that the application data size exceeds the capacity of the two-dimensional code corresponding to one of the upper layer application data.
  • the embodiment 3 of the present invention further provides a decoding device 1201, as shown in FIG. 12, comprising: an obtaining unit 1202, configured to obtain a two-dimensional code;
  • the upper layer information decoding unit 1203 is configured to decode the two-dimensional code into a two-dimensional code upper layer information encoding, where the upper layer information encoding includes: a stitching area and an information data area;
  • the application data providing unit 1210 is configured to extract upper layer application data from the upper layer information coding of the two-dimensional code, and provide the upper layer application to the two-dimensional code.
  • the device 1201 may further include:
  • the splicing number determining unit 1205 is configured to determine the size of the number of stitches of the two-dimensional code obtained by the obtaining unit 1202, and if yes, provide the encoding of the upper layer information of the two-dimensional code to the application data providing unit processing;
  • the group two-dimensional code identification determining unit 1206 is configured to determine whether the two-dimensional code containing the same group two-dimensional code identifier has been obtained in the case that the number of the splicing bars is greater than one, and the splicing order determining unit 1207 In the case where the group two-dimensional code identification determining unit 1206 determines that the two-dimensional code including the same group two-dimensional code identifier is obtained, it is determined whether or not the two-dimensional code having the same serial number in the splicing order has been obtained.
  • the comparison judging unit 1208 is configured to compare the pre-stored two-dimensional code strips having the same group two-dimensional code identifier plus one after the splicing order judging unit 1207 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 1209 is configured to, when the comparison determining unit 1208 determines that the information is equal, splicing the information data in the set of two-dimensional codes according to the serial number, and providing the application data providing unit processing.
  • the device 1201 may further include:
  • the splicing number calculation unit 1204 is configured to add the subsequent number of pieces to the splicing number to obtain the total number of splicing, and provide the splicing number determining unit 1205.
  • the "splicing identifier" may be 0 or 1; the group QR code identifier may be assigned a number from 0 to 65535; the number of stitching labels is identified by using an 8-bit binary number, 0 ⁇ 255 total 256 numbers; splicing order uses 8-bit binary number to identify the order, 0 ⁇ 255 total 256 numbers, etc., are just an example, the actual implementation should not be limited by this, the solution in the invention is also applicable.

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 年 8 月 6 日提交中国专利局、 申请号为 200810142344.0、 发明名称为"二维码生成方法、 解码方法及装置"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机技术及信息技术, 尤其涉及二维码技术。
背景技术
现代高新技术的发展, 迫切要求用条码在有限的几何空间内表示更多的 信息, 从而满足千变万化的信息的需要。 二维条码正是为了解决一维条码无 法解决的问题而诞生的, 二维条码 /二维码( 2-dimensionalbarcode )是用某种 特定的几何图形按一定规律在平面 (二维方向上)分布的黑白相间的图形记 录数据符号信息的; 在代码编制上巧妙地利用构成计算机内部逻辑基础的 "0"、 "1 " 比特流的概念, 使用若干个与二进制相对应的几何形体来表示文 字数值信息, 通过图象输入设备或光电扫描设备自动识读以实现信息自动处 理: 它具有条码技术的一些共性: 每种码制有其特定的字符集; 每个字符占 有一定的宽度; 具有一定的校验功能等。 同时还具有对不同行的信息自动识 别功能、 及处理图形旋转变化等特点。 二维条码 /二维码能够在横向和纵向两 个方位同时表达信息, 因此能在很小的面积内表达大量的信息。 因为它具有 高密度、 大容量等特点, 所以可以用它表示数据文件(包括汉字文件)、 图片 等。 二维条码是各种证件及卡片等大容量、 高可靠信息存储、 携带并自动识 读的最理想的方法。
在目前几十种二维要码中,常用的码制有: PDF417二维条码, Datamatrix 二维条码, Maxicode二维条码, QRCode, Code49, Codel6K, Codeone, 等, 除了这些常见的二维条码之外, 还有 Vericode条码、 CP条码、 CodablockF条 码、 田字码、 Ultracode条码, 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
本发明实施例 1提供一种二维码生成方法, 如图 1所示, 所述方法包括:
101、 获得来自上层应用的数据;
102、判断数据大小是否超过所对应的一个二维码容量, "否"则转" 103" , "是" 则转 "104" ; 如果生成的二维码种类 (DM、 QRcode 等)是确定的, 对于某种确定种 类二维码, 其单个二维码总容量确定, 二维码总容量 -拼接符区长度-现有二维 码信息编码中所必须添加的头的长度(运营商标识、 版本信息、 应用标识符 等) =所对应二维码容量
103、 将上层应用数据进行二维码上层信息编码, 将 "拼接条数标识" 置 为 "Γ , "组二维码标识" 使用填充符填充或置为某个值、 "拼接次序" 使用 填充符填充或置为 1 , 在信息数据区域中填入上层应用数据, 生成二维码上层 信息编码, 转 "106" ;
二维码上层信息编码所示, 包括拼接符区域和信息数据区域, 所述拼接 符区域包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8 位二进制数来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255 个二维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码.
信息数据区域包括: 基本标识区域和标识符区域, 所述基本标识区域包 括运营商标识和版本号, 所述标识符区域包括应用标识符和属性。
每个独立应用由运营商标识和版本信息开始, 接着是应用标识符, 应用 标识符代表该应用的类型。
后面是若干和应用有关的属性, 每个独立应用至少包含一个属性。
属性由属性标识符和属性参数组成, 属性标识符代表该属性的类型, 属 性参数包含实际的内容, 每个属性参数可取多个值。
104、 拆分数据、 排序; 每个二维码所能携带的上层信息编码容量 =拼接 区域大小加信息数据区域大小, 即, 对于所编码生成的一组二维码而言, 其 中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的上层信息编 码容量-拼接区域大小。 所以, 拆分数据时, 以信息数据区域大小为基准对 上层应用数据一次进行分片, 每个分片依次序分配序号;
105、 将各数据分段进行上层信息编码; 将 "拼接条数标识" 置为分片数 目, "拼接次序" = "序号", 将该组中的 "组二维码标识" 置为某个相同的 数, 在各自的信息数据区域中填入数据分片 (最后一个分片中, 元数据小于 信息数据区域大小的, 可使用填充位填充)。
二维码上层信息编码如图 3 所示, 包括拼接符区域和信息数据区域, 所 述拼接符区域包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8 位二进制数来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255 个二维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码.
106、 各上层信息编码经二维码编码后生成一组或一个二维码。
本发明实施例 1还提供一种二维码解码方法, 如图 2所示, 包括:
200、 准备获得二维码;
201、 获得输入(如使用手机上的摄像头拍摄) 的二维码;
202、 将二维码解码为二维码上层信息编码;
二维码上层信息编码包括拼接符区域和信息数据区域, 所述拼接符区域 包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。 拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8 位二进制数来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255 个二维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
信息数据区域可以使用现有上层信息编码方式构成。
203、判断:二维码上层信息编码中 "拼接条数"的大小, " = 1"则 "204" ; ">1" 则转 "205" ;
204、 解出上层应用数据, 提供给二维码上层应用, 退出;
205、 判断: 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 "206" ; "否" 则转 "209" ;
206、 判断: 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 则 "207" ; "否" 则 "208" ;
207、 抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码", 转 "200" ;
208、 比较: 预存的具有该相同 "组二维码标识" 的二维码条数加 1、 "拼 接条数" 的大小, "<" 则转 "209" , " = " 则转 "210" ;
209、存储该条二维码,提示 "请继续输入该组的不同二维码",转 "200" ;
210、 将该组二维码中的信息数据按照序号拼接起来, 转 "204"。
本发明实施例 1还提供一种编码装置 301 , 如图 3所示, 包括:
获得单元 302 , 用于获得上层应用数据;
上层信息编码单元 304, 用于对所述上层应用数据进行上层信息编码, 生 成上层信息编码, 该上层信息编码包括: 拼接符区域和信息数据区域;
二维码编码单元 305 ,用于将上层信息编码进行二维码编码,生成二维码。 所述装置还可以包括:
判断单元 303 ,用于判断应用数据大小是否超过一个所述上层应用数据对 应的二维码容量, 若是则由数据拆分单元 306进行数据拆分, 若否则由上层 信息编码单元 304直接对应用数据进行上层信息编码;
数据拆分单元 306 ,用于在所述判断单元 303判断应用数据大小超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述应用数据进行拆分成 数据分段并排序并提供给上层信息编码单元 304进行上层信息编码。
本发明实施例 1还提供一种解码装置 401 , 如图 4所示, 包括: 获得单元 402 , 用于获得二维码;
二维码解码单元 403 , 用于将二维码解码为二维码上层信息编码, 该上层 信息编码包括: 拼接符区域和信息数据区域;
应用数据提供单元 409,用于从所述二维码上层信息编码中解出上层应用 数据, 提供给二维码上层应用。
所述装置 401还可以包括:
拼接条数判断单元 404,用于判断所述获得单元 402获得的二维码的拼接 条数的大小, 若等于则将所述二维码上层信息编码提供给应用数据提供单元 409处理;
组二维码标识判断单元 405 ,用于所述拼接条数判断单元 404判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 406,用于在所述组二维码标识判断单元 405判断获得 含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中 序号也相同的二维码。
比较判断单元 407 ,用于在所述拼接次序判断单元 406判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数加 1后和拼接条数的大小。
拼接单元 408 , 用于在所述比较判断单元 407判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给所述应用数据提供单元
409处理。 实施例 2
本发明实施例 2提供一种二维码生成方法, 如图 5所示, 包括:
501、 获得来自上层应用的数据;
502、 判断数据大小是否超过一个所对应的二维码的容量, "否" 则转 "503" , "是" 则转 "504" ;
二维码总容量-拼接符区长度-现有二维码信息编码中所必须添加的头的 长度(运营商标识、 版本信息、 应用标识符等) =所对应二维码(应用数据) 容量同样适用, 不过, 在该计算式中, 拼接符区进一步确定为拼接标识, 即 拼接符区的长度在计算时为拼接标识的长度( lbit )。
503、 进行二维码的编码方式 2: "拼接标识" = "0" , 信息数据区域中编 入上层应用数据, 转 "506" ;
所述编码方式 2是指生成包括拼接符区域的二维码上层信息编码, 包括: 拼接标识: 用于标识该二维码是否需要拼接。 此时, 使用 "0" 标识不需 要拼接;
在二维码上层信息编码, 由拼接符区域和信息数据区域组成: 拼接符区 可以具体由拼接标识组成, 信息数据区域可以使用现有上层信息编码方式构 成。
504、 拆分数据、 排序; 每个二维码所能携带的上层信息编码容量 =拼接 区域大小加信息数据区域大小, 即, 对于所编码生成的一组二维码而言, 其 中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的上层信息编 码容量-拼接区域大小。 所以, 拆分数据时, 以信息数据区域大小为基准对 上层应用数据一次进行分片, 每个分片依次序分配序号;
505、 将各数据分段进行上层信息编码方式 1 : 将 "拼接标识" = "1" , 将 "拼接条数标识" 置为分片数目, "拼接次序" = "序号", 将该组中的 "组 二维码标识"置为某个相同的数,在各自的信息数据区域中填入数据分片(最 后一个分片中, 元数据小于信息数据区域大小的, 可使用填充位填充);
所述编码方式 1 是指生成包括拼接符区域的二维码上层信息编码, 所述 拼接符区域包括:
拼接标识: 用于标识该二维码是否需要拼接。 此时, 使用 " 1 " 标识需要 拼接;
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8 位二进制数来标识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255 个二维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
二维码上层信息编码, 由拼接符区域和信息数据区域组成: 拼接符区可 以具体由拼接标识、 组二维码标识、 拼接条数和拼接次序组成, 信息数据区 域可以使用现有上层信息编码方式构成。
506、 各上层信息编码经二维码编码生成一个或一组二维码。
本发明实施例 2还提供一种二维码解码方法, 如图 6所示, 所述方法包 括:
600、 准备获得二维码;
601、 获得输入(如使用手机上的摄像头拍摄) 的二维码;
602、 将二维码解码为二维码上层信息编码;
二维码上层信息编码包括拼接符区域和信息数据区域, 所述拼接符区域 包括: 拼接标识: 用于标识该二维码是否需要拼接。 使用 "1" 标识需要拼接, 使用 "0" 标识不需要拼接;
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0~ 65535中的某一个数。
拼接条数标识: 上层应用数据被分成的二维码拼接条数, 例如, 使用 8 位二进制数来标识条数, 0~ 255共 256个数, 除去全零不用, 可以标识 255 个二维码;
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
信息数据区域可以使用现有上层信息编码方式构成。
603、 判断若拼接标识为 1, 则 "604"; 若拼接标识为 0, 则转 "610";
604、 判断: 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 "605"; "否" 则转 "608";
605、 判断: 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 则 "606"; "否" 则 "607";
606、 抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码", 转 "600";
607、 比较: 预存的具有该相同 "组二维码标识" 的二维码条数加 1、 "拼 接条数" 的大小, "<" 则转 "608", "=" 则转 "609";
608、 提示 "请继续输入该组的不同二维码", 转 "600";
609、 将该组二维码中的信息数据按照序号拼接起来;
610、 解出上层应用数据, 提供给二维码上层应用, 退出。
本发明实施例 2还提供一种编码装置 701, 如图 7所示, 包括:
获得单元 702, 用于获得上层应用数据;
上层信息编码单元 704, 用于对所述上层应用数据进行上层信息编码, 生 成上层信息编码, 该上层信息编码包括: 拼接符区域和信息数据区域; 二维码编码单元 705 ,用于将上层信息编码进行二维码编码,生成二维码。 所述装置 701还可以包括:
判断单元 703 ,用于判断应用数据大小是否超过一个所述上层应用数据对 应的二维码容量, 若是则由数据拆分单元 706进行数据拆分, 若否则由上层 信息编码单元 704直接对应用数据进行上层信息编码;
数据拆分单元 706 ,用于在所述判断单元 703判断应用数据大小超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述应用数据进行拆分成 数据分段并排序并提供给上层信息编码单元 704进行上层信息编码。
所述上层信息编码单元可以包括:
编码单元一 707 ,用于在所述判断单元 703判断应用数据大小未超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述对应用数据直接进行 上层信息编码, 所述对应用数据直接进行上层信息编码是将拼接条数标识置 为 1 , "组二维码标识"使用填充符填充或置为某个值、 "拼接次序"使用填充 符填充或置为 1 , 在信息数据区域中填入上层应用数据, 生成二维码上层信息 编码;
编码单元二 708,用于在所述判断单元 703判断应用数据大小超过一个所 述上层应用数据对应的二维码容量的情况下, 对所述数据分段进行上层信息 编码, 所述对数据分段进行上层信息编码是将拼接条数标识置为分片数目, 拼接次序置为序号, 将组二维码标识置为某个相同的数, 在各自的信息数据 区域中填入数据分片。
本发明实施例 2还提供一种解码装置 801 , 如图 8所示, 包括:
获得单元 802 , 用于获得二维码;
上层信息解码单元 803 , 用于将二维码解码为二维码上层信息编码, 该上 层信息编码包括: 拼接符区域和信息数据区域;
应用数据提供单元 810,用于从所述二维码上层信息编码中解出上层应用 数据, 提供给二维码上层应用。
所述装置 801还可以包括:
拼接条数判断单元 805 ,用于判断所述获得单元获得的二维码的拼接条数 的大小, 若等于则将所述二维码上层信息编码提供给应用数据提供单元处理; 组二维码标识判断单元 806 ,用于所述拼接条数判断单元 805判断拼接条 数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码;
拼接次序判断单元 807 ,用于在所述组二维码标识判断单元 806判断获得 含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序中 序号也相同的二维码。
比较判断单元 808 ,用于在所述拼接次序判断单元 807判断未接受含有相 同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二维 码条数加 1后和拼接条数的大小。
拼接单元 809 , 用于在所述比较判断单元 808判断为等于的情况下, 将该 组二维码中的信息数据按照序号拼接起来, 并提供给所述应用数据提供单元 处理。
所述装置 801还可以包括:
拼接标识单元 804, 用于判断拼接标识的大小, 在判断拼接标识为 1的情 况下, 将二维码上层信息编码提供给拼接条数判断单元 805 , 在判断拼接标识 为 0的情况下, 将二维码上层信息编码提供给应用数据提供单元 810处理。 实施例 3
本发明实施例 3提供一种二维码生成方法, 如图 9所示, 所述方法包括:
901、 获得来自上层应用的数据;
902、判断数据大小是否超过一个二维码的容量, "否"则转 " 903" , "是" 则转 "904" ;
如果生成的二维码种类 (DM、 QRcode 等)是确定的, 对于某种确定种 类二维码, 其单个二维码总容量确定, 二维码总容量 -拼接符区长度-现有二维 码信息编码中所必须添加的头的长度(运营商标识、 版本信息、 应用标识符 等) =所对应二维码容量。
903、 将上层应用数据进行二维码上层信息编码: 将 "后续条数标识" 置 为 "0" , "组二维码标识"、 "拼接次序" 使用填充符填充, 在信息数据区域中 填入上层应用数据, 生成二维码上层信息编码, 转 "906" ;
二维码上层信息编码包括拼接符区域和信息数据区域, 所述拼接符区域 包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
后续条数标识: 上层应用数据被分成的二维码拼接条数减去条信息的拼 接次序 (即: 后续条数=总条数一该条次序), 例如, 使用 8位二进制数来标 识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。 殳设 上层应用数据被分成共 10条二维码, 该条次序为 4 , 那么后续条数为 6。
信息数据区域可以使用现有上层信息编码方式构成。
904、 拆分数据、 排序; 每个二维码所能携带的上层信息编码容量 =拼接 区域大小加信息数据区域大小, 即, 对于所编码生成的一组二维码而言, 其 中每个二维码满足: 信息数据区域大小 =每个二维码所能携带的上层信息编 码容量-拼接区域大小。 所以, 拆分数据时, 以信息数据区域大小为基准对 上层应用数据一次进行分片, 每个分片依次序分配序号;
905、 将各数据分段进行上层信息编码;
二维码上层信息编码包括拼接符区域和信息数据区域, 所述拼接符区域 包括: 组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
后续条数标识: 上层应用数据被分成的二维码拼接条数减去条信息的拼 接次序 (即: 后续条数=总条数一该条次序), 例如, 使用 8位二进制数来标 识条数, 0 ~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。 殳设 上层应用数据被分成共 10条二维码, 该条次序为 4 , 那么后续条数为 6。
信息数据区域可以使用现有上层信息编码方式构成。
具体可以是: "拼接次序" = "序号", 根据 "后续条数 =总条数一该条 拼接次序" 得出后续条数, 将该组中的 "组二维码标识" 置为某个相同的数, 在各自的信息数据区域中填入数据分片 (最后一个分片中, 元数据小于信息 数据区域大小的, 可使用填充位填充);
906、 各上层信息编码经二维码编码生成一组或一个二维码。
本发明实施例 3还提供一种二维码解码方法, 如图 10所示, 所述方法包 括:
1000、 准备获得二维码;
1001、 获得输入(如使用手机上的摄像头拍摄) 的二维码;
1002、 将二维码解码为二维码上层信息编码;
二维码上层信息编码包括拼接符区域和信息数据区域, 所述拼接符区域 包括:
组二维码标识: 用于标识需要拼接的一组二维码, 同一组(用于拼接的) 二维码, 分配一个同样的组二维码标识。 例如, 0 ~ 65535中的某一个数。
拼接次序: 在拼接条数不为零时, 拼接次序有效。 拼接次序标识该条二 维码在应用拼接中所处的次序。例如,使用 8位二进制数来标识次序, 0 ~ 255 共 256个数, 除去全零不用, 可以标识 255个二维码。
后续条数标识: 上层应用数据被分成的二维码拼接条数减去条信息的拼 接次序 (即: 后续条数=总条数一该条次序), 例如, 使用 8位二进制数来标 识条数, 0~ 255共 256个数, 除去全零不用, 可以标识 255个二维码。 殳设 上层应用数据被分成共 10条二维码, 该条次序为 4, 那么后续条数为 6。
信息数据区域可以使用现有上层信息编码方式构成。
1003、 通过 "拼接序号"加 "后续条数" 算出 "总条数" 判断: "总条数" 的大小, " = 1" 则 "1004"; ">1" 则转 "1005";
1004、 解出上层应用数据, 提供给二维码上层应用, 退出;
1005、 判断: 是否已获得含有相同 "组二维码标识" 的二维码, "是" 则 "1006"; "否" 则转 "1009";
1006、 判断: 是否已获得含有 "拼接次序" 中序号也相同的二维码, "是" 则 "1007"; "否" 则 "1008";
1007、 抛弃该重复输入, 并提示 "输入重复, 请输入不同的二维码", 转 "1000";
1008、 比较: 预存的具有该相同 "组二维码标识"的二维码条数加 1、 "总 条数" 的大小, "<" 则转 "1009", "=" 则转 "1010";
1009、 提示 "请继续输入该组的不同二维码", 转 "1000";
1010、 将该组二维码中的信息数据按照序号拼接起来, 转 "1004"。
本发明实施例 3还提供一种编码装置 1101, 如图 11所示, 包括: 获得单元 1102, 用于获得上层应用数据;
上层信息编码单元 1104, 用于对所述上层应用数据进行上层信息编码, 生成上层信息编码, 该上层信息编码包括: 拼接符区域和信息数据区域; 二维码编码单元 1105, 用于将上层信息编码进行二维码编码, 生成二维 码。
所述装置 1101还可以包括: 判断单元 1103 , 用于判断应用数据大小是否超过一个所述上层应用数据 对应的二维码容量, 若是则由数据拆分单元 1106进行数据拆分, 若否则由上 层信息编码单元 1104直接对应用数据进行上层信息编码;
数据拆分单元 1106,用于在所述判断单元 1103判断应用数据大小超过一 个所述上层应用数据对应的二维码容量的情况下, 对所述应用数据进行拆分 成数据分段并排序并提供给上层信息编码单元 1104进行上层信息编码。
所述上层信息编码单元 1104可以包括:
编码单元一 1107 ,用于在所述判断单元 1103判断应用数据大小未超过一 个所述上层应用数据对应的二维码容量的情况下, 将后续条数标识置为 0 , 组 二维码标识、 拼接次序使用填充符填充, 在信息数据区域中填入上层应用数 据, 生成二维码上层信息编码;
编码单元二 1108,用于在所述判断单元 1103判断应用数据大小超过一个 所述上层应用数据对应的二维码容量的情况下, 对所述数据分段进行上层信 息编码, 所述对数据分段进行上层信息编码是将拼接次序置为序号,根据 "后 续条数 =总条数一该条拼接次序" 得出后续条数, 将组二维码标识置为某个 相同的数, 在各自的信息数据区域中填入数据分片。
所述编码单元一 1107还可以用于在所述判断单元 1103判断应用数据大 小未超过一个所述上层应用数据对应的二维码容量的情况下将拼接标识置为 0; 所述编码单元二还可以用于在所述判断单元判断应用数据大小超过一个所 述上层应用数据对应的二维码容量的情况下将拼接标识置为 1。
本发明实施例 3还提供一种解码装置 1201 , 如图 12所示, 包括: 获得单元 1202, 用于获得二维码;
上层信息解码单元 1203 , 用于将二维码解码为二维码上层信息编码, 该 上层信息编码包括: 拼接符区域和信息数据区域;
应用数据提供单元 1210 , 用于从所述二维码上层信息编码中解出上层应 用数据, 提供给二维码上层应用。 所述装置 1201还可以包括:
拼接条数判断单元 1205 ,用于判断所述获得单元 1202获得的二维码的拼 接条数的大小, 若等于则将所述二维码上层信息编码提供给应用数据提供单 元处理;
组二维码标识判断单元 1206 ,用于所述拼接条数判断单元 1205判断拼接 条数大于 1的情况下, 判断是否已获得含有相同组二维码标识的二维码; 拼接次序判断单元 1207 ,用于在所述组二维码标识判断单元 1206判断获 得含有相同组二维码标识的二维码的情况下, 判断是否已获得含有拼接次序 中序号也相同的二维码。
比较判断单元 1208 ,用于在所述拼接次序判断单元 1207判断未接受含有 相同拼接次序的二维码的情况下, 比较预存的具有该相同组二维码标识的二 维码条数加 1后和拼接条数的大小。
拼接单元 1209, 用于在所述比较判断单元 1208判断为等于的情况下, 将 该组二维码中的信息数据按照序号拼接起来, 并提供给所述应用数据提供单 元处理。
所述装置 1201还可以包括:
拼接条数计算单元 1204 , 用于将后续条数与拼接序号相加得出拼接总条 数, 并提供给拼接条数判断单元 1205。
上述实施例所涉及的举例, 如 "拼接标识" 可以为 0或者 1 ; 组二维码标 识可以分配 0 ~ 65535中的某一个数; 拼接条数标识使用 8位二进制数来标识 次序, 0 ~ 255共 256个数; 拼接次序使用 8位二进制数来标识次序, 0 ~ 255 共 256个数等, 都只是一种举例说明, 实际实现时应不受此限制, 发明中的 方案同样适用。
通过以上的实施方式的描述, 本领域普通技术人员可以理解: 实现上述 实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成, 所述的程序可以存储于一计算机可读取存储介质中, 该程序在执行时, 包括 如上述方法实施例的步骤, 所述的存储介质, 如: ROM/RAM、磁碟、光盘等。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以权利要求的保护范围为准。

Claims

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

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810142344.0A CN101645140B (zh) 2008-08-06 2008-08-06 二维码生成方法、解码方法及装置
CN200810142344.0 2008-08-06

Publications (1)

Publication Number Publication Date
WO2010015184A1 true WO2010015184A1 (zh) 2010-02-11

Family

ID=41657020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073050 WO2010015184A1 (zh) 2008-08-06 2009-08-03 二维码生成方法、解码方法及装置

Country Status (2)

Country Link
CN (1) CN101645140B (zh)
WO (1) WO2010015184A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112307794A (zh) * 2020-11-25 2021-02-02 杭州视洞科技有限公司 一种摄像头通过扫描多张二维码传输数据方法

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073977A (zh) * 2010-12-13 2011-05-25 中国联合网络通信集团有限公司 数字签名的生成和验证方法、设备及系统
CN102129585B (zh) * 2011-03-03 2013-03-27 天地融科技股份有限公司 一种信息传输方法及系统、条形码显示及读取装置
US8740081B2 (en) * 2011-11-03 2014-06-03 Cognex Corporation Method and apparatus for ordering code candidates in image for decoding attempts
CN102799915B (zh) * 2012-07-16 2015-10-28 北京怡和嘉业医疗科技有限公司 信息传输方法和信息传输装置
CN103198343A (zh) * 2013-02-01 2013-07-10 陈绳旭 物联网二维码的编码方法及其应用系统
CN104035737A (zh) * 2013-03-04 2014-09-10 联想(北京)有限公司 一种信息处理的方法及一种电子设备
CN103440516B (zh) * 2013-08-26 2016-08-24 佛山市南海兴发印务实业有限公司 二维码标签及其生成方法和装置
CN104424498B (zh) * 2013-09-10 2019-03-15 北京意锐新创科技有限公司 一种高速变换二维码编码的方法及装置
CN103646121B (zh) * 2013-12-27 2016-03-16 税友软件集团股份有限公司 一种标识码及使用方法和装置
CN103753999A (zh) * 2014-01-21 2014-04-30 左仁合 一种具有二维码网络入口的纸质书籍
CN105577376A (zh) * 2014-10-13 2016-05-11 航天信息股份有限公司 二维码的编解码和认证方法和装置
CN104463296B (zh) * 2014-11-10 2018-04-10 吴涛军 一种二维码结构化信息的生成、获取及处理方法和系统
CN106874979B (zh) * 2015-12-14 2020-04-07 阿里巴巴集团控股有限公司 一种条形码处理、显示、读取方法和装置
CN106937359B (zh) * 2015-12-29 2021-07-06 西安中兴新软件有限责任公司 一种信息处理方法、服务器和热点装置
CN108280500A (zh) * 2017-01-06 2018-07-13 百度在线网络技术(北京)有限公司 二维码的编码方法、解码方法、相关装置及设备
CN108229627A (zh) * 2017-12-25 2018-06-29 刘世洪 农产品质量安全全程溯源时空混合编码及编码方法
CN108280502B (zh) * 2018-01-18 2020-10-27 福建工程学院 一种qr码容量提升方法及终端

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818935A (zh) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 一种基于十六进制编码的构建二维码的方法
CN1877600A (zh) * 2006-07-07 2006-12-13 中国物品编码中心 二维条码符号的生成方法
CN1920858A (zh) * 2005-08-26 2007-02-28 毛山 基于二维条码传输信息的方法及其编码装置、解码装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233788A (ja) * 2002-02-13 2003-08-22 Nec Infrontia Corp 図形コードシステム
JP3966203B2 (ja) * 2003-03-27 2007-08-29 ブラザー工業株式会社 バーコード画像生成装置及びプログラム
CN100369059C (zh) * 2006-01-18 2008-02-13 冯文伦 一种矩阵式二维条码及其编码解码方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920858A (zh) * 2005-08-26 2007-02-28 毛山 基于二维条码传输信息的方法及其编码装置、解码装置
CN1818935A (zh) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 一种基于十六进制编码的构建二维码的方法
CN1877600A (zh) * 2006-07-07 2006-12-13 中国物品编码中心 二维条码符号的生成方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112307794A (zh) * 2020-11-25 2021-02-02 杭州视洞科技有限公司 一种摄像头通过扫描多张二维码传输数据方法

Also Published As

Publication number Publication date
CN101645140A (zh) 2010-02-10
CN101645140B (zh) 2016-10-05

Similar Documents

Publication Publication Date Title
WO2010015184A1 (zh) 二维码生成方法、解码方法及装置
WO2010012194A1 (zh) 二维码编码方法、解码方法及装置、终端
Kieseberg et al. QR code security
CN105447546B (zh) 可嵌入大比例图形的二维码及其编码和解码方法和设备
Kato et al. Pervasive 2D barcodes for camera phone applications
Sutheebanjard et al. QR-code generator
CN102930192B (zh) 安全信息生成和获取方法、及相关装置
CN102855514A (zh) 基于二维码防伪识别方法及系统
WO2014044159A1 (en) Method and device for batch scanning 2d barcodes
CN103999104B (zh) 跟踪电子出版物中的文档
JP2000511320A (ja) 光学的文字認識(ocr)支援のバーコード解読システム及び方法
JP2014229299A (ja) 多次元カラーバーコードおよび方法
US9047544B2 (en) System and method for mobile tags with dynamic content
CN107944525A (zh) 一种基于数据分割的扩大二维码容量的方法及系统
Fang Offline QR code authorization based on visual cryptography
US8874430B2 (en) Applications for encoding and decoding multi-lingual text in a matrix code symbol
de A. Formiga et al. An assessment of data matrix barcode recognition under scaling, rotation and cylindrical warping
CN112069850A (zh) 基于二维码的服务提供方法、装置、设备及存储介质
CN109685186A (zh) 基于二维空码的大规模内容定制方法
Nurwono et al. Color quick response code for mobile content distribution
CN106599963A (zh) 一种形成带有明文的二维码的方法及系统
WO2012144994A1 (en) Grayscale incremental information object
CN109255416A (zh) 条码打印方法、装置及控制装置
CN113902456A (zh) 一种产品防伪方法及装置
He The two-dimensional bar code application in book management

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09804484

Country of ref document: EP

Kind code of ref document: A1