Unlock instant, AI-driven research and patent intelligence for your innovation.

Two-dimensional code generation method, decoding method and device

A technology of two-dimensional code and information coding, which is applied in the direction of recording carriers used by machines, instruments, computer parts, etc., and can solve problems such as limited capacity of two-dimensional codes

Active Publication Date: 2016-10-05
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The capacity of QR codes in the prior art is limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Two-dimensional code generation method, decoding method and device
  • Two-dimensional code generation method, decoding method and device
  • Two-dimensional code generation method, decoding method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Embodiment 1 of the present invention provides a method for generating a two-dimensional code, such as figure 1 As shown, the method includes:

[0039] 101. Obtain data from upper-layer applications;

[0040] 102. Determine whether the data size exceeds the capacity of a corresponding two-dimensional code, if "No", turn to "103", and if "Yes", turn to "104";

[0041] If the type of QR code generated (DM, QR code, etc.) is determined, for a certain type of QR code, the total capacity of a single QR code is determined, and the total capacity of the QR code - the length of the splicing character area - the existing two The length of the header that must be added in the coding of the two-dimensional code information (operator identification, version information, application identifier, etc.) = the capacity of the corresponding two-dimensional code

[0042] 103. Encode the upper-layer application data with the upper-layer information of the QR code, set the "number of spli...

Embodiment 2

[0093] Embodiment 2 of the present invention provides a two-dimensional code generation method, such as Figure 5 shown, including:

[0094] 501. Obtain data from an upper-layer application;

[0095] 502. Judging whether the data size exceeds the capacity of a corresponding two-dimensional code, if "No", turn to "503", and if "Yes", turn to "504";

[0096] The total capacity of the two-dimensional code - the length of the splicing character area - the length of the header that must be added in the existing two-dimensional code information encoding (operator identification, version information, application identifier, etc.) = the capacity of the corresponding two-dimensional code (application data) The same applies, however, in this calculation formula, the concatenated character area is further determined as a concatenated identifier, that is, the length of the concatenated character region is the length of the concatenated identifier (1 bit) during calculation.

[0097] 503...

Embodiment 3

[0149] Embodiment 3 of the present invention provides a two-dimensional code generation method, such as Figure 9 As shown, the method includes:

[0150] 901. Obtain data from an upper-layer application;

[0151] 902. Judging whether the data size exceeds the capacity of a two-dimensional code, if "No", turn to "903", and if "Yes", turn to "904";

[0152] If the type of QR code generated (DM, QR code, etc.) is determined, for a certain type of QR code, the total capacity of a single QR code is determined, and the total capacity of the QR code - the length of the splicing character area - the existing two The length of the header (operator identification, version information, application identifier, etc.) that must be added in the encoding of the two-dimensional code information = the capacity of the corresponding two-dimensional code.

[0153] 903. Encode the upper-layer application data into the upper-layer information of the two-dimensional code: set the "subsequent number...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a two-dimensional code generation method, a decoding method and a device, and relates to two-dimensional code technology. The technical problem to be solved is to extend the upper-level application range supported by the two-dimensional code and break through the bottleneck of the two-dimensional code capacity. The two-dimensional code generation method mainly includes: obtaining upper-layer application data; performing upper-layer information coding on the upper-layer application data to generate upper-layer information coding, the upper-layer information coding includes: a splicing symbol area and an information data area; performing two-dimensional coding on the upper-layer information Code encoding to generate a QR code. The embodiment of the present invention expands the upper-layer application data capacity supported by the two-dimensional code through the concatenated symbol area in the upper-layer information coding of the two-dimensional code.

Description

technical field [0001] The invention relates to computer technology and information technology, in particular to two-dimensional code technology. Background technique [0002] With the development of modern high-tech, it is urgent to use bar codes to express more information in a limited geometric space, so as to meet the needs of ever-changing information. Two-dimensional barcodes were born to solve the problems that one-dimensional barcodes could not solve. ) distribution of black and white graphics to record data symbol information; cleverly use the concept of "0" and "1" bit streams that form the internal logic basis of the computer in the coding, and use several geometric shapes corresponding to binary to represent Text value information is automatically read by image input equipment or photoelectric scanning equipment to realize automatic information processing: it has some common features of barcode technology: each code system has its specific character set; each ch...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06K19/06
CPCG06K19/06037
Inventor 王雷杨健陈国乔范姝男董挺张惠萍
Owner HUAWEI TECH CO LTD