Methods and devices for encoding and decoding two-dimension code and terminal
A coding method and two-dimensional code technology, which is applied to record carriers used in machines, instruments, induction record carriers, etc., 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
[0043] Embodiment 1 of the present invention provides a two-dimensional code encoding method, such as figure 1 shown, including:
[0044] 101. Obtain the data to be encoded;
[0045] 102. Determine whether the data size exceeds the capacity of a two-dimensional code after being encoded by the two-dimensional code, if "no", turn to "103", and if "yes", turn to "104";
[0046] The encoded QR code includes splicing area and information data area. Since the encoding method is determined, the size of the added area after encoding, such as the splicing character area, can be determined. Then the size of the data after encoding the QR code can be calculated in advance. Each 2D 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 encoding, each two-dimensional code satisfies: the size of the information data area = each two-dimensional code The information encodin...
Embodiment 2
[0081] Embodiment 2 of the present invention provides a two-dimensional code encoding method, such as Figure 5 shown, including:
[0082] 501. Obtain data to be encoded;
[0083] 502. Determine whether the size of the encoded data exceeds the capacity of a two-dimensional code, if "No", turn to "503", and if "Yes", turn to "504";
[0084] The encoded QR code includes splicing area and information data area. Since the encoding method is determined, the size of the added area after encoding, such as the splicing character area, can be determined. Then the size of the data after encoding the QR code can be calculated in advance. Each 2D 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 encoding, each two-dimensional code satisfies: the size of the information data area = each two-dimensional code The information encoding capacity that can be carried - the...
Embodiment 3
[0127] Embodiment 3 of the present invention provides a two-dimensional code encoding method, such as Figure 9 shown, including:
[0128] The following is a flow example of the two-dimensional code generation method of the present invention:
[0129] 901. Obtain the data to be encoded;
[0130] 902. Determine whether the size of the data exceeds the capacity of a two-dimensional code after being encoded by the two-dimensional code. If "No", turn to "903", and if "Yes", turn to "904";
[0131] The encoded QR code includes splicing area and information data area. Since the encoding method is determined, the size of the added area after encoding, such as the splicing character area, can be determined. Then the size of the data after encoding the QR code can be calculated in advance. Each 2D 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 encoding, each ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 