title>Chinese-sensible code - GB/T 21049-2007 - Chinese standardNet - bzxz.net
Home > GB > Chinese-sensible code
Chinese-sensible code

Basic Information

Standard ID: GB/T 21049-2007

Standard Name:Chinese-sensible code

Chinese Name: 汉信码

Standard category:National Standard (GB)

state:Abolished

Date of Release2007-08-23

Date of Implementation:2008-02-01

Date of Expiration:2022-10-01

standard classification number

Standard ICS number:Information technology, office machinery and equipment >> 35.040 Character sets and information coding

Standard Classification Number:Comprehensive>>Basic Standards>>A24 Classification Code

associated standards

alternative situation:Replaced by GB/T 21049-2022

Publication information

publishing house:China Standards Press

Plan number:20051974-T-469

Publication date:2008-02-01

other information

Release date:2007-08-23

drafter:Zhang Chenghai, Zhao Nan, Huang Yanbin, Luo Qiuke, Wang Yi, Zhang Duo, Wang Yue

Drafting unit:China Article Numbering Center, Beijing Netthink Technology Development Co., Ltd., Beijing Yirui Xinchuang Technology Co., Ltd.

Focal point unit:China National Institute of Standardization China Article Numbering Center

Proposing unit:China National Institute of Standardization

Publishing department:General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China Standardization Administration of China

competent authority:General Administration of Quality Supervision, Inspection and Quarantine

Introduction to standards:

This standard specifies the code system and encoding method of a matrix two-dimensional barcode - Hanxin Code. This standard describes in detail the symbol structure, information encoding method, error correction encoding algorithm, information arrangement method, reference decoding algorithm and other contents of Hanxin Code. Hanxin Code can efficiently represent the Chinese character information in GB 18030-2000 "Supplement to the Basic Set of Chinese Character Coded Character Set for Information Technology Information Exchange", and has the characteristics of large data capacity, strong anti-distortion and anti-pollution ability, and beautiful appearance, which is suitable for wide application in various industries in my country. This standard specifies the symbol structure, information encoding method, error correction encoding algorithm, information arrangement method, reference decoding algorithm, symbol quality requirements and other technical contents of Hanxin Code symbols. This standard is applicable to automatic recognition and data collection. GB/T 21049-2007 Hanxin Code GB/T21049-2007 standard download decompression password: www.bzxz.net
This standard specifies the code system and encoding method of a matrix two-dimensional barcode - Hanxin Code. This standard describes in detail the symbol structure, information encoding method, error correction encoding algorithm, information arrangement method, reference decoding algorithm and other contents of Hanxin Code. Hanxin Code can efficiently represent the Chinese character information in GB 18030-2000 "Supplement to the Basic Set of Chinese Character Coded Character Sets for Information Technology Information Interchange", and has the characteristics of large data capacity, strong anti-distortion and anti-pollution ability, and beautiful appearance, which is suitable for wide application in various industries in China. This standard specifies the symbol structure, information encoding method, error correction encoding algorithm, information arrangement method, reference decoding algorithm, symbol quality requirements and other technical contents of Hanxin Code symbols. This standard is applicable to automatic recognition and data collection.

The clauses in the following documents become clauses of this standard through reference in this standard. For any dated referenced document, all subsequent amendments (excluding errata) or revisions are not applicable to this standard. However, parties to an agreement based on this standard are encouraged to study whether the latest versions of these documents can be used. For any undated document, the latest version applies to this standard.
GB/T 11383 Information processing - Structure and compilation rules for eight-bit codes for information exchange (GB/T 11383-1989, idt ISO 4873:1986)
GB/T 12905 Barcode terminology
GB 18030 Information technology - Extension of the basic set of Chinese coded character sets for information exchange
ISO/IEC 15415 Information technology - Inspection of barcode symbol quality - Two-dimensional barcode symbol
AIM International Technical Specification Extended Interpretation: Part 1: Identification Schemes and Protocols

Some standard content:

Digital security
ICS35.040
National Standard of the People's Republic of China
GB/T21049—2007
Hanxin Code
Chinese-sensiblecode
2007-08-23 Issued
General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China Standardization Administration of China
2008-02-01 Implementation
GB/T21049—2007bZxz.net
Normative reference documents
Terms and definitions
Symbol characteristics and symbol structure
Data coding and symbol representation
Symbol printing·
Symbol quality
Decoding process,
Reference decoding algorithm of Hanxin Code
Appendix A (regulations) Appendix B (Normative Appendix)
Appendix C (Normative Appendix)
Appendix D (Normative Appendix)
Appendix E (Normative Appendix)
Appendix F (Normative Appendix)
Appendix G (Informative Appendix)
Appendix H (Normative Appendix)
Data capacity of Hanxin Code
Information capacity of Hanxin Code
Error correction and decoding steps
Error correction code generating polynomial
Error correction characteristics of each version of Hanxin Code symbols
Functional information
User guidelines for printing and scanning of Hanxin Code symbols Printing quality of Hanxin Code
Special indicators of code system·
GB/T21049—2007
This standard specifies the code system and encoding and decoding method of a matrix two-dimensional barcode, Hanxin Code. This standard describes the symbol structure, information encoding and decoding method, error correction encoding and decoding algorithm, information arrangement method, reference decoding algorithm and other contents of Hanxin Code in detail. Hanxin Code can efficiently represent the Chinese character information in GB18030-2000 "Expansion of the Basic Set of Chinese Character Coded Character Set for Information Exchange in Information Technology", and has the characteristics of large data capacity, strong anti-distortion and anti-fouling ability, and beautiful appearance, which is suitable for wide application in various industries in my country. Appendix A, Appendix B, Appendix C, Appendix D, Appendix E, Appendix F, and Appendix HI of this standard are normative appendices, and Appendix G is an informative appendix.
This standard is proposed by China National Institute of Standardization. This standard is under the jurisdiction of China Article Coding Center of China National Institute of Standardization. Drafting units of this standard: China Article Coding Center, Beijing Netrovision Technology Development Co., Ltd., Beijing Yirui Xinchuang Technology Co., Ltd.
Main drafters of this standard: Zhang Chenghai, Zhao Nan, Huang Yanbin, Luo Qiuke, Wang Yi, Zhang Duo, Wang Yue. GB/T21049—2007
The issuing agency of this standard draws attention to the fact that when declaring compliance with this standard, relevant patents related to Section 5.2, Chapter 6, Chapter 9, Chapter 10, and Appendix E can be used. The issuing agency of this standard does not make any opinion on the scope, validity and verification data of the patent. The patent holder has guaranteed to the issuing agency of this standard that any applicant can obtain a license for use free of charge. In this regard, the statement of the patent holder has been recorded with the issuing agency of this standard. The relevant information can be obtained from the following address: Patent owner
Postal code
Contact person
Contact phone
E-mail
China Article Numbering Center
4th Floor, Shuangquan Building, No. 3 North Third Ring Road, Beijing 100029
http://ancc.org.cn
010-62358298
010-82029374
[email protected]
Please note that in addition to the patents identified above, some contents of this standard may involve patents. The issuing organization of this standard shall not bear the responsibility for identifying these patents.
1 Scope
Hanxin Code
GB/T21049—2007
This standard specifies the symbol structure, information encoding and decoding method, error correction encoding and decoding algorithm, information arrangement method, reference decoding algorithm, symbol quality requirements and other technical contents of Hanxin Code symbols. This standard applies to automatic identification and data acquisition. 2 Normative referenced documents
The clauses in the following documents become the clauses of this standard through reference in this standard. For any dated referenced document, all subsequent amendments (excluding errata) or revisions are not applicable to this standard. However, the parties who reach an agreement based on this standard are encouraged to study whether the latest versions of these documents can be used. For any undated referenced document, the latest version shall apply to this standard. GB/T11383 Information processing Information exchange Eight-bit code structure and compilation rules (GB/T11383-1989, idtISO4873:1986)
GB/T12905 Bar code terminology
GB18030 Information technology Information exchange Chinese character coded character set basic set expansion ISO/IEC15415 Information technology Bar code symbol quality inspection Two-dimensional bar code symbol AIM international technical specification extended interpretation: Part 1: Identification scheme and protocol (referred to as "AIMECI specification\) 3 Terms and definitions
The terms specified in GB/T12905 and the following terms and definitions apply to this standard. 3.1
Functional graphics functionpatt ern
Specific graphics in the symbol used for symbol positioning and feature recognition. 3.2
Position detection pattern positiondetectionpattern The 4 specific graphics that make up the Hanxin code image search pattern. 3.3
Position detection center
The center of the 3×3 dark block of the Hanxin code position detection pattern. 3.4
Correction pattern alignmentpattern
Located in the Hanxin code symbol, it is a functional graphic used to determine the matrix position of the Hanxin code module. The auxiliary correction pattern assistantalignmentpattern is located at the edge of the Hanxin code symbol and is a functional graphic used to synchronize the symbol module. Image search pattern separator fi nderpatternseparator is a functional pattern used to separate the position detection pattern from the rest of the symbol, which is composed entirely of light-colored modules and has a width of one module.
GB/T21049—2007
Information encoding region
informationencodingregion
A region in the symbol that is not occupied by functional patterns and is used to encode data or error correction codewords. 3.8
Versionversion
A number used to indicate symbol specifications.
masking
To balance the ratio of dark (low reflectivity) and light (high reflectivity) modules in the symbol, XOR processing of the Hanxin code symbol bitmap in the coding area.
Function information
Data bit stream used to record version, error correction level, and mask type. 3.11
Mode mode
A method of representing a specific character set as a binary bit stream. 3.12
Mode indicator modeindicator
A 4-bit identifier indicating the coding mode of the subsequent data sequence. 3.13
Mode terminator modeterminator
A binary sequence used to indicate the end of a certain coding mode. 3.14
Binary counter binary counter
A bit sequence that defines the length of the data string in the binary abbreviation mode. 3.15
symbolpaddingbit
Symbol padding bit
When the coding area cannot be filled with 8-bit code words, it is used to fill the empty space after the last code word. Its value is 0 and does not represent data. 3.16
Extended Channel Interpretation, ECI allows protocols that have different interpretations of the Hanxin Code decoding output data stream and the default character set. 3.17
Information bit stream informationbitstream The binary sequence generated by the input raw data after pattern encoding. 3.18
Error correction bit stream ECCinformationbitstream The binary sequence for error correction generated by the information bit stream after error correction encoding. 3.19
databit stream
Data bit stream
The binary sequence obtained by appending the error correction bit stream to the information bit stream. 3.20
Paddingbit
Used to fill the meaningless bits after the last codeword of the data bit stream, its value is 0.2
4 Convention
4.1 Mathematical operators
The mathematical operators used in this standard are defined as follows: Div
Integer division
Modular operation (operation to find the remainder after integer division) GB/T21049—2007
Exclusive or operation (when the two inputs are different, the output is 1; when the two inputs are the same, the output is 0)4.2 Module position
For ease of expression, the position of the module is represented by the row and column coordinates in the symbol, the format is (i, i). Among them, i represents the row number of the module (calculated from top to bottom), represents the column number of the module (calculated from left to right), and the counting starts from 1, so the module in the upper left corner of the symbol (excluding the blank area) is represented as module (1,1).
4.3 Data Representation
()in, indicates that the content in the brackets is represented in binary. Ex, indicates that the data content is represented in hexadecimal. Without further notice, 1 byte consists of 8 binary bits, and the content of the byte is represented in hexadecimal. 5 Symbol Characteristics and Symbol Structure
5.1 Symbol Characteristics
Hanxin Code is a matrix symbol with independent positioning function. It also has the following characteristics: 5.1.1 Basic Characteristics
a) Encoded Information
1) Numerical characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data Representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol Specifications
The symbol sizes of versions 1 to 84 of the Hanxin Code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version. d) Coding Capacity
Numbers: 7827 characters;
Alphabetic characters: 4350 characters;
Commonly used Chinese characters in Zone 1: 2174 characters;
Commonly used Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×811 Mathematical operators
The mathematical operators used in this standard are defined as follows: Div
Division operation
Modular operation (operation to find the remainder after division) GB/T21049—2007
Exclusive OR operation (when two inputs are different, the output is 1; when two inputs are the same, the output is 0) 4.2 Module position
For ease of expression, the position of the module is represented by the row and column coordinates in the symbol, with the format of (i, i). Among them, i represents the row number of the module (calculated from top to bottom), and represents the column number of the module (calculated from left to right). The counting starts from 1, so the module in the upper left corner of the symbol (excluding blank areas) is represented as module (1,1).
4.3 Data representation
()in, indicates that the content in the brackets is expressed in binary. Ex, indicates that the data content is expressed in hexadecimal. If not stated, 1 byte consists of 8 binary bits, and the content of the byte is expressed in hexadecimal. 5 Symbol characteristics and symbol structure
5.1 Symbol characteristics
Hanxin code is a matrix symbol with independent positioning function. It also has the following characteristics:5.1.1 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of Hanxin code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×811 Mathematical operators
The mathematical operators used in this standard are defined as follows: Div
Division operation
Modular operation (operation to find the remainder after division) GB/T21049—2007
Exclusive OR operation (when two inputs are different, the output is 1; when two inputs are the same, the output is 0) 4.2 Module position
For ease of expression, the position of the module is represented by the row and column coordinates in the symbol, with the format of (i, i). Among them, i represents the row number of the module (calculated from top to bottom), and represents the column number of the module (calculated from left to right). The counting starts from 1, so the module in the upper left corner of the symbol (excluding blank areas) is represented as module (1,1).
4.3 Data representation
()in, indicates that the content in the brackets is expressed in binary. Ex, indicates that the data content is expressed in hexadecimal. If not stated, 1 byte consists of 8 binary bits, and the content of the byte is expressed in hexadecimal. 5 Symbol characteristics and symbol structure
5.1 Symbol characteristics
Hanxin code is a matrix symbol with independent positioning function. It also has the following characteristics:5.1.1 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of Hanxin code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×812 Module position
For ease of expression, the position of the module is represented by the row and column coordinates in the symbol, in the format of (i, i). Among them, i represents the row number of the module (calculated from top to bottom), and represents the column number of the module (calculated from left to right). The counting starts from 1, so the module in the upper left corner of the symbol (excluding the blank area) is represented as module (1,1).
4.3 Data representation
()in, indicates that the content in the brackets is represented in binary. Ex, indicates that the data content is represented in hexadecimal. When not stated, 1 byte consists of 8 binary bits, and the content of the byte is represented in hexadecimal. 5 Symbol characteristics and symbol structure
5.1 Symbol characteristics
Hanxin code is a matrix symbol with independent positioning function. It also has the following characteristics: 5.1.1 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of the Hanxin Code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×812 Module position
For ease of expression, the position of the module is represented by the row and column coordinates in the symbol, in the format of (i, i). Among them, i represents the row number of the module (calculated from top to bottom), and represents the column number of the module (calculated from left to right). The counting starts from 1, so the module in the upper left corner of the symbol (excluding the blank area) is represented as module (1,1).
4.3 Data representation
()in, indicates that the content in the brackets is represented in binary. Ex, indicates that the data content is represented in hexadecimal. When not stated, 1 byte consists of 8 binary bits, and the content of the byte is represented in hexadecimal. 5 Symbol characteristics and symbol structure
5.1 Symbol characteristics
Hanxin code is a matrix symbol with independent positioning function. It also has the following characteristics: 5.1.1 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of the Hanxin Code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×811 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of the Hanxin Code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×811 Basic characteristics
a) Encoded information
1) Numeric characters (digits 0 to 9);
2) Alphabetic characters (see GB/T11383); 3) Chinese characters (see GB18030);
4) Information that does not belong to the above types, such as images and sounds. b) Data representation
Dark modules represent binary "1", and light modules represent binary "0". Symbol specifications
The symbol sizes of versions 1 to 84 of the Hanxin Code (excluding blank areas) are 23×23 modules to 189×189 modules, respectively. Each version of the symbol has 2 more modules on each side than the previous version of the symbol. d) Coding capacity:
Digits: 7827 characters;
Alphabetic characters: 4350 characters;
Common Chinese characters in Zone 1: 2174 characters;
Common Chinese characters in Zone 2: 2174 characters;
Two-byte Chinese characters: 1739 characters;
Four-byte Chinese characters: 1044 characters;
Binary data: 3261 bytes.
Error correction selection
4 error correction levels, the recoverable codeword ratio is: 3
GB/T21049—2007
5.1.2 Additional features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, so as to minimize the possibility of efficient decoding affected by the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows the protocol to interpret the output data stream of Hanxin Code symbol decoding differently from the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
The Hanxin Code symbol is a square array consisting of nXn nominal square modules, which consists of an information encoding area, a functional information area and a functional graphic area, wherein the functional graphic area mainly includes an image-finding graphic, an image-finding graphic separation area, a correction graphic and an auxiliary correction graphic. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24-version Hanxin Code symbol structure. Image seeking graphic
Position detection
Sub-image graphic
a) Hanxin code symbol
Auxiliary correction graphic
c) Hanxin code correction graphic and auxiliary correction graphic functional information
b) Hanxin code image seeking graphic
d) Hanxin code functional information area
Figure 124 version of Hanxin code symbol structure
5.2.1 Symbol version
Empty area
e) Blank area
Figure 1 (continued)
GB/T21049—2007
There are 84 versions of Hanxin code symbols, namely version 1, version 2,..., version 84. The specification of version 1 is 23 modules × 23 modules, version 2 is 25 modules × 25 modules, and so on. Each version of the symbol has 2 more modules on each side than the previous version, until version 84, which has a specification of 189 modules × 189 modules. Figures 2 to 7 show the symbol structures of versions 1, 4, 24, 40, 62 and 84. Figure 2 Hanxin code symbol of version 1
Figure 3 Hanxin code symbol of version 4
Figure 4 Hanxin code symbol of version 24
GB/T21049—2007
Hanxin code symbol of version 40
Figure 6 Hanxin code symbol of version 62
Figure 7 Hanxin code symbol of version 84
5.2.2 Image search pattern
GB/T21049—2007
The image search pattern of Hanxin code consists of 4 position detection patterns. The size of the
position detection pattern is 7×7 modules. From the structural point of view, as shown in FIG8 , it can be regarded as 5 overlapping squares of different sizes aligned with the lower right corner. They are 7×7 dark modules, 6×6 light modules, 5×5 dark modules, 4×4 light modules, and 3×3 dark modules. The characteristic ratios of the scans are 1:1:1:1:3 and 3:1:1:1:1 (the values ​​obtained by scanning in different directions are different). The center of the 3×3 dark block in the position detection pattern is called the position detection center. The possibility of encountering similar ratios elsewhere in the symbol is extremely small. Therefore, recognizing the four position detection patterns that make up the image-finding pattern can determine the position and direction of the symbol in the field of view at a high speed. In terms of the placement of the position detection pattern, as shown in FIG8, the position detection pattern in the upper left corner is obtained by rotating the position detection pattern in the upper left corner 90° clockwise, the position detection pattern in the lower right corner is obtained by rotating the position detection pattern in the lower left corner 90° clockwise, and the position detection pattern in the upper right corner is obtained by rotating the position detection pattern in the lower right corner 90° counterclockwise. After
Figure 8 Structure of the position detection pattern
5.2.3 Image search pattern separation area
There is a light-colored image search pattern separation area with a width of 1 module between each position detection pattern and the encoding area, as shown in FIG1b). 5.2.4 Correction pattern
The correction pattern of the Hanxin code is a set of stepped correction lines. Version 1, version 2, and version 3 Hanxin code symbols have no correction pattern. The correction line is a dark bar with a width of 1 module on the left and bottom boundaries of the Hanxin code symbol, and is composed of adjacent dark and light bars with a width of 1 module on other corresponding positions of the symbol, following the principle of dark bars on the top and light bars on the bottom, dark bars on the right and light bars on the left. As shown in Figure 9. Figure 9 Correction line
GB/T21049—2007
When the symbol version is 4 to 10, there are only two correction lines in the symbol, and the length is module. When the symbol version is greater than 10, the length of the correction line is divided into two cases: the length of the two correction lines in the lower left corner of the symbol is a special value module; the length of the correction lines in other areas is the same, which is k modules. For symbols of different versions, r, k, and m have the following relationship. The parameter table is shown in Table 1. r+mxk=n
Where: n is the number of modules on one side of the Hanxin code symbol. Table 1 Correction graphic parameters of different versions of symbols Table m
Table (module)
(module)
Code image size (module)
23×23
25×25
27×27
29×29
31×31
33×33
35×35
37×37
39×39
43×43
4 5 × 45 | | tt | | 47 × 47 | | tt | | 49 × 49 | | tt | 3×73
75×75
77×77
79×79
81×812 Additional Features
a) Mask
Mask is an additional feature inherent in Hanxin Code, which can make the ratio of dark and light modules in Hanxin Code symbols close to 1:1, and minimize the possibility of affecting efficient decoding due to the arrangement of adjacent modules. b) ECI
ECI is an optional additional feature of Hanxin Code. The ECI protocol allows protocols with different interpretations of the output data stream of Hanxin Code symbol decoding and the default character set. This method allows symbols to represent data outside the default character set (such as Arabic derivatives, Cyrillic characters, Greek letters, etc.), other data interpretations (such as data represented by a certain compression method) and special encodings for specific industries. 5.2 Symbol Structure
Hanxin Code symbols are square arrays composed of nXn nominal square modules. The square array consists of an information encoding area, a functional information area and a functional graphic area, where the functional graphic area mainly includes image-finding graphics, image-finding graphic separation areas, correction graphics and auxiliary correction graphics. The code symbol is surrounded by a blank area of ​​no less than 3 modules wide. Figure 1 is a schematic diagram of the 24th version of the Hanxin Code symbol str
Tip: This standard content only shows part of the intercepted content of the complete standard. If you need the complete standard, please go to the top to download the complete standard document for free.