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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 