CN101101628B - Chinese character compression method of two-dimensional bar code coding - Google Patents

Chinese character compression method of two-dimensional bar code coding Download PDF

Info

Publication number
CN101101628B
CN101101628B CN200610098451.9A CN200610098451A CN101101628B CN 101101628 B CN101101628 B CN 101101628B CN 200610098451 A CN200610098451 A CN 200610098451A CN 101101628 B CN101101628 B CN 101101628B
Authority
CN
China
Prior art keywords
hex
byte
internal code
hanzi internal
dimensional bar
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN200610098451.9A
Other languages
Chinese (zh)
Other versions
CN101101628A (en
Inventor
张成海
罗秋科
王毅
黄燕滨
张铎
施煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARTICLE NUMBERING CENTER OF CHINA
Original Assignee
ARTICLE NUMBERING CENTER OF CHINA
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 ARTICLE NUMBERING CENTER OF CHINA filed Critical ARTICLE NUMBERING CENTER OF CHINA
Priority to CN200610098451.9A priority Critical patent/CN101101628B/en
Publication of CN101101628A publication Critical patent/CN101101628A/en
Application granted granted Critical
Publication of CN101101628B publication Critical patent/CN101101628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The method includes steps: selecting and grouping Chinese character internal code; calculating coding value of 2D bar code for each Chinese character in grouped set; establishing mapping relation between Chinese character and its coding value of 2D bar code; obtaining mapped coding value of 2D bar code for each Chinese character needed to code in sequence, and combining 2D bar codes to form coding stream of 2D bar code. The method expresses more information in unit area so as to raise efficiency to express Chinese characters in domain of 2D bar code.

Description

The Chinese character compression method of two-dimensional bar code coding
Technical field
The present invention relates to a kind of Chinese character compression method of two-dimensional bar code coding, particularly a kind of in two-dimensional bar code coding, adopt grouping to calculate the compression method of encoding to Chinese character and part symbolic information.
Background technology
Along with the development of electronic applications technology, 2D bar code technology develops rapidly, is widely used in the aspects such as list, safe and secret, tracking, license, stock taking, data redundant.At present, in the two-dimensional bar code of tens kinds of support encodes Chinese characters for computer, widely used PDF417, Data Martix, Maxicode and the quick response coding (Quick Response Code is called for short QR Code) etc. of mainly comprising.
For PDF417 and Data Martix two-dimensional bar code, be all to adopt 16 bits to represent a Chinese character; And the higher QR Code two-dimensional bar code of relative coding efficient also needs 13 bits to represent a Chinese character.Because the storage space that two-dimensional bar code provides is very limited, obviously, in the two-dimensional bar code coding method for expressing, the problem of bit has affected the efficient that Chinese character represents at present.
Therefore, how increase information represents density, thereby expresses information more in unit area, has become industry common concern and problem demanding prompt solution.
Summary of the invention
The objective of the invention is provides a kind of Chinese character compression method at two-dimensional bar code coding for above-mentioned defective of the prior art, to improve the compression efficiency of two-dimensional bar code field Chinese character.
For achieving the above object, the invention provides a kind of Chinese character compression method of two-dimensional bar code coding, comprise the following steps:
Hanzi internal code is selected and divided into groups;
Calculate the two-dimensional bar code coding value of the rear arbitrary Hanzi internal code of grouping, set up the Chinese character corresponding with described man's ISN and the mapping relations of described two-dimensional bar code coding value;
Obtain successively according to the order of Chinese character to be encoded the two-dimensional bar code coding value that each Chinese character shines upon, and be combined to form successively two-dimensional bar code coding stream;
Wherein, after described calculating grouping, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially: to the arbitrary group of Hanzi internal code of telling, arbitrary byte of arbitrary Hanzi internal code is wherein deducted the corresponding byte of the initial Hanzi internal code of this group, and with the byte difference addition of described Hanzi internal code, be converted to the binary string that limits bit as the two-dimensional bar code coding value of described Hanzi internal code;
The described two-dimensional bar code coding stream that is combined to form is specially: after the current two-dimensional bar code coding value that needs encoding Chinese characters of combination, judge next needs encoding Chinese characters whether to belong to same group with the described current encoding Chinese characters that needs, be continue to make up described next need the two-dimensional bar code coding value of encoding Chinese characters, otherwise first make up predefined pattern end mark and pattern conversion symbol, then continue combination described next need the two-dimensional bar code coding value of encoding Chinese characters.
Further, can limit bit is 12 bits.
Wherein, after arbitrary byte of arbitrary Hanzi internal code is deducted the corresponding byte of the initial Hanzi internal code of this group, also comprise at least one byte difference is wherein carried out the computing of multiplication factor, the byte difference after obtaining to process.
After byte difference addition with described Hanzi internal code, also comprise the computing of the result of described addition being carried out additive factor.
Wherein, described pattern end mark can be (111111111111) bin, described pattern conversion symbol can be (111111111110) bin
Better technical scheme is that described Hanzi internal code is selected to be specially: select the Chinese characters in common use in CNS, its ISN scope is (B0A1) hex-(F7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hex
Described Hanzi internal code grouping is specially: described Hanzi internal code is divided into two groups, and described first group of Hanzi internal code scope is (B0A1) hex-(D7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hexDescribed second group of Hanzi internal code scope is (D8A1) hex-(F7FE) hex
When the ISN scope is (B0A1) hex-(D7FE) hexThe time, calculate and to obtain wherein that the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
The first byte of described Hanzi internal code deducts (B0) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Hanzi internal code.
When the ISN scope is (A1A1) hex-(A3FE) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
The first byte of described Hanzi internal code deducts (A1) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte obtains and value;
Will with value and additive factor (EB0) hexAddition;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Hanzi internal code.
When the ISN scope is (A8A1) hex-(A8C0) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
The first byte of described Hanzi internal code deducts (A8) hex
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference of described the first byte and described the second byte obtains and value;
Will with value and additive factor (FCA) hexAddition;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Hanzi internal code.
When the ISN scope is (D8A1) hex-(F7FE) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
The first byte of described Hanzi internal code deducts (D8) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Hanzi internal code.
As shown from the above technical solution, the present invention adopts the method for compressed encoding by Hanzi internal code is divided into groups, and has following beneficial effect:
1, expressed more information in unit area;
2, improved the efficient that two-dimensional bar code field Chinese character represents.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the process flow diagram of the Chinese character compression method of two-dimensional bar code coding provided by the present invention;
Fig. 2 is the process flow diagram of an embodiment of method shown in Figure 1.
Embodiment
In order to overcome the not high defective of two-dimensional bar code compression efficiency in prior art, the invention provides a kind of Chinese character compression method of two-dimensional bar code coding, referring to Fig. 1, comprise the following steps:
Step 1, Hanzi internal code is selected and divided into groups;
Step 2, calculating grouping be the two-dimensional bar code coding value of arbitrary Chinese character afterwards, sets up the mapping relations of described Chinese character and described two-dimensional bar code coding value;
Step 3, to the Chinese character of needs codings, sequentially obtain the two-dimensional bar code coding value of shining upon, be combined to form two-dimensional bar code coding stream.
Wherein, in step 1, the purpose of grouping is distinguished Hanzi internal code according to the numerical value interval, makes each group can better utilize the computing of ISN, obtains the effect that the encoded radio code bit reduces.For example, in the GB18030 of country standard, totally 23940 of all character symbols in double byte district (comprise Chinese character district), the scope of its first byte is (8140) hex-(FEFE) hex, can it be divided into two groups according to the second byte, for example the second byte (40) hex-(7E) hex is first group, and (80) hex-(FE) hex is second group.
The two-dimensional bar code coding value of calculating the rear arbitrary Chinese character of grouping is specially: to the arbitrary group of Hanzi internal code of telling, arbitrary byte of arbitrary Hanzi internal code is wherein deducted the corresponding byte of the initial Hanzi internal code of this group, and with the byte difference addition of described Hanzi internal code, be converted to the binary string that limits bit as the two-dimensional bar code coding value of described Chinese character.Like this, if the nybble district is finally the addition of four byte differences, if two byte regions are finally the additions of two byte differences.
For will finally obtain not on the same group data distinguished, after comprising that also arbitrary byte with arbitrary Hanzi internal code deducts the corresponding byte of the initial Hanzi internal code of this group, also comprise at least one byte difference is wherein carried out the computing of multiplication factor, the byte difference after obtaining to process.
And, after the byte difference addition with described Hanzi internal code, also comprise the computing of the result of described addition being carried out additive factor.
For the computing of above-mentioned two byte regions characters, when calculating first group of arbitrary character, can adopt following formula to obtain the two-dimensional bar code coding value of 15:
After the first byte deducted (81) hex, acquired results multiply by (BE) hex;
The second byte deducts (40) hex;
Results added with above-mentioned two steps.
When calculating second group of arbitrary character, can adopt following formula to obtain the two-dimensional strip code value of 15:
After the first byte deducted (81) hex, acquired results multiply by (BE) hex;
The second byte deducts (41) hex;
With the results added of above-mentioned two steps, be converted to the binary string of restriction bit as the two-dimensional bar code coding value of described Chinese character.
The below adopts corresponding concrete instance to be illustrated, for example:
1, input character: “ Ya "
Character value: (9D51) hex
1. the first byte value deducts (81) hex: (9D) hex-(81) hex=(1C) hex
2. result 1. be multiply by (BE) hex: (1C) hex* (BE) hex=(14C8) hex
3. the second byte value deducts (40) hex: (51) hex-(40) hex=(11) hex
4. general's result 2. adds result 3.: (14C8) hex+ (11) hex(14D9) hex
5. with results conversion be 13 two and advance the value string: (1010011011001) bin
2, input character:
Figure G06198451920060713D000061
Character value: (9EAF) hex
1. the first byte value deducts (81) hex: (9E) hex-(81) hex=(1D) hex
2. result 1. be multiply by (BE) hex: (1D) hex* (BE) hex=(1586) hex
3. the second byte value deducts (41) hex: (AF) hex-(41) hex=(6E) hex
4. general's result 2. adds result 3.: (1586) hex+ (6E) hex=(15F4) hex
5. with results conversion be 13 two and advance the value string: (1010111110100) bin
After the coding of completing all Chinese characters, set up the mapping relations of described Chinese character and described two-dimensional bar code coding value; Like this, when needs are encoded, can directly call corresponding two-dimensional bar code coding value according to mapping relations and be made up.
Due to grouping, the two-dimensional bar code coding value that must cause making up may adhere to different groups separately, and therefore, the present invention solves by pattern end mark and pattern conversion symbol.Referring to Fig. 2, be the process flow diagram of a specific embodiment:
Step 11, Hanzi internal code is selected and divided into groups;
Step 12, calculating grouping be the two-dimensional bar code coding value of arbitrary Chinese character afterwards, sets up the mapping relations of described Chinese character and described two-dimensional bar code coding value;
Step 13, after the last two-dimensional bar code coding value that needs encoding Chinese characters of combination, judge next needs encoding Chinese characters whether to belong to same group with the described last encoding Chinese characters that needs, be direct execution in step 15, otherwise execution in step 14;
Step 14, the predefined pattern end mark of combination and pattern conversion symbol;
The two-dimensional bar code coding value of step 15, next Chinese character of continuation input.
Due in national GB18030 standard, stipulated that Chinese characters in common use districts ISN is double byte 2nd district, i.e. B0A1-F7FE, 6768 code bits, 6763 Chinese characters; In non-Chinese character district, A1A1-A9FE counts 846 code bits, and wherein, A1A1-A3FE is the SBC case that uses with Chinese character coupling, and A8A1-A8C0 is 30 band tone phonetic alphabet districts.Like this, the Chinese character that above-mentioned zone covers and matching symbols can satisfy the requirement that two-dimensional bar code is expressed aspect Chinese character.Therefore, in order further to improve the efficient of Chinese character compression, especially above-mentioned zone is processed separately.
At first, Hanzi internal code is selected, namely selected the ISN scope at (B0A1) hex-(F7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hexChinese character.
Then, Hanzi internal code is divided into groups, be specially: described Hanzi internal code is divided into two groups, and described first group of Hanzi internal code scope is (B0A1) hex-(D7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hex, be called Chinese characters in common use 1st districts; Second group of Hanzi internal code scope is (D8A1) hex-(F7FE) hex, become Chinese characters in common use 2nd district.
Again, calculate the two-dimensional bar code coding value of the rear arbitrary Chinese character of grouping.
When the ISN scope is (B0A1) hex-(D7FE) hexThe time, belong to Chinese characters in common use 1st districts, calculate and obtain wherein that the two-dimensional bar code coding value of arbitrary Chinese character is specially:
The first byte of described Hanzi internal code deducts (B0) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Chinese character.
For example, input character " entirely ":
Character value (C8AB) hex
1. the first byte value deducts (B0) hex(C8) hex-(B0) hex=(18) hex
2. result 1. be multiply by (5E) hex(18) hex* (5E) hex=(8D0) hex
3. the second byte value deducts (A1) hex(AB) hex-(A1) hex=(0A) hex
4. general's result 2. adds result (8D0) 3. hex+ (0A) hex=(8DA) hex
5. with results conversion be 12 two and advance value string (100011011010) bin
When the ISN scope is (A1A1) hex-(A3FE) hexThe time, belong to Chinese characters in common use 1st districts, calculating wherein, the two-dimensional bar code coding value of arbitrary Chinese character is specially:
The first byte of described Hanzi internal code deducts (A1) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte obtains and value;
Will with value and additive factor (EB0) hexAddition;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Chinese character.
For example, input character "; ":
Character value (A3BB) hex
1. the first byte value deducts (A1) hex(A3) hex-(A1) hex=(02) hex
2. result 1. be multiply by (5E) hex(02) hex* (5E) hex=(BC) hex
3. the second byte value deducts (A1) hex(BB) hex-(A1) hex=(1A) hex
4. general's result 2. adds result (BC) 3. hex+ (1A) hex=(D6) hex
5. add (EB0) hex(D6) hex+ (EB0) hex=(F86) hex
6. with results conversion be 12 two and advance value string (1,111 1,000 0110) bin
When the ISN scope is (A8A1) hex-(A8C0) hexThe time, belong to Chinese characters in common use 1st districts, calculating wherein, the two-dimensional bar code coding value of arbitrary Chinese character is specially:
The first byte of described Hanzi internal code deducts (A8) hex
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference of described the first byte and described the second byte obtains and value;
Will with value and additive factor (FCA) hexAddition;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Chinese character.
For example, input character
Figure G06198451920060713D000081
Character value (A8BE) hex
1. a byte is deducted (A8) hex(A8) hex-(A8) hex=(00) hex
2. the second byte value deducts (A1) hex(BE) hex-(A1) hex=(1D) hex
3. general's result 1. adds result (00) 2. hex-(1D) hex=(1D) hex
4. result is 3. added (FCA) hex(1D) hex+ (FCA) hex=(FE7) hex
Be 12 binary strings (111111100111) with results conversion bin
When the ISN scope is (D8A1) hex-(F7FE) hexThe time, belong to Chinese characters in common use 2nd district, calculating wherein, the two-dimensional bar code coding value of arbitrary Chinese character is specially:
The first byte of described Hanzi internal code deducts (D8) hex
Described difference and multiplication factor (5E) hexMultiply each other;
The second byte of described Hanzi internal code deducts (A1) hex
The difference addition of the difference after described processing and described the second byte;
Be converted to 12 binary strings as the two-dimensional bar code coding value of described Chinese character.
For example, input character " Xi ":
Character value: (F3A3) hex
1. the first byte value deducts (D8) hex(F3) hex-(D8) hex=(1B) hex
2. result 1. be multiply by (5E) hex(1B) hex* (5E) hex=(9EA) hex
3. the second byte value deducts (A1) hex(A3) hex-(A1) hex=(02) hex
4. general's result 2. adds result (9EA) 3. hex+ (02) hex=(9EC) hex
5. with results conversion be 12 two and advance value string (100111101100) bin
After having obtained the two-dimensional bar code coding value of arbitrary Chinese character, set up the mapping relations of described Chinese character and described two-dimensional bar code coding value.
Chinese character to the needs coding sequentially obtains the two-dimensional bar code coding value of shining upon, and is combined to form two-dimensional bar code coding stream.Particularly, after the last two-dimensional bar code coding value that needs encoding Chinese characters of combination, judge next needs encoding Chinese characters whether to belong to same group with the described last encoding Chinese characters that needs, be continue to make up described next need the two-dimensional bar code coding value of encoding Chinese characters, otherwise first make up predefined pattern end mark and pattern conversion symbol, then continue combination described next need the two-dimensional bar code coding value of encoding Chinese characters.In the present embodiment, the pattern end mark is (111111111111) bin, described pattern conversion symbol is (111111111110) binFor instance, the Chinese character of combination is " entirely " in the ban, and the Chinese character of rear combination is " Xi ", and the data of actual input two-dimensional bar code are: (100011011010) binConnect (111111111111) binConnect (111111111110) binConnect (100111101100) bin
By above-mentioned explanation, can obviously draw:
When the ISN scope is (B0A1) hex-(D7FE) hexThe time, the result that computing obtains is (000) hex-(EAF) hex, namely two-dimensional bar code coding value interval is from (000000000000) bin-(100101000111) bin(end points (D7FE) hex, the first byte difference after it is processed is (E52) hex, its second byte difference is (5D) hex);
When the ISN scope is (A1A1) hex-(A3FE) hexThe time, the result that computing obtains is (EB0) hex-(FC9) hex, namely two-dimensional bar code coding value interval is from (111010110000) bin-(111110111001) bin(end points (A3FE) hex, the first byte difference after it is processed is (BC) hex, its second byte difference is (5D) hex, sum is (119) hex);
When the ISN scope is (A8A1) hex-(A8C0) hexThe time, the result that computing obtains is (FCA) hex-(FE9) hex, namely two-dimensional bar code coding value interval is from (111110111010) bin-(111111101001) bin(end points (A8C0) hex, the first byte difference after it is processed is (00) hex, its second byte difference is (1F) hex, sum is (119) hex);
Therefore, Chinese characters in common use 1st districts represents that the coding range of Chinese character and character is (000000000000) bin-(111111101001) bin, due to the adjustment of multiplication factor and additive factor, arbitrarily between Chinese character or matching symbols without overlapping, i.e. arbitrary 1 two-dimensional bar code coding corresponding to district's Chinese character, the equipment of scanning two-dimension bar code symbol can accurately be identified.
When the ISN scope is (D8A1) hex-(F7FE) hexThe time, the result that computing obtains is (000) hex-(BBF) hex, namely two-dimensional bar code coding value interval is from (000000000000) bin-(101110111111) bin(end points (F7FE) hex, the first byte difference after it is processed is (B62) hex, its second byte difference is (5D) hex, sum is (BBF) hex);
Therefore, Chinese characters in common use 1st districts certainly exists overlapping on the two-dimensional bar code coding value with Chinese characters in common use 2nd district, therefore informs the equipment of scanning two-dimension bar code symbol by pattern end mark and pattern conversion symbol.Because the Chinese character in Chinese characters in common use 2nd district is comparatively uncommon, can not occur when most two-dimensional bar code coding values combination, therefore, the problem of pattern end mark and pattern conversion symbol seldom has influence on the efficient of coded representation.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (6)

1. the Chinese character compression method of a two-dimensional bar code coding is characterized in that comprising the following steps:
Hanzi internal code is selected and divided into groups;
Calculate the two-dimensional bar code coding value of the rear arbitrary Hanzi internal code of grouping, set up the Chinese character corresponding with described Hanzi internal code and the mapping relations of described two-dimensional bar code coding value;
Obtain successively according to the order of Chinese character to be encoded the two-dimensional bar code coding value that each Chinese character shines upon, and be combined to form successively two-dimensional bar code coding stream;
Wherein, after described calculating grouping, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially: to the arbitrary group of Hanzi internal code of telling, arbitrary byte of arbitrary Hanzi internal code is wherein deducted the corresponding byte of the initial Hanzi internal code of this group, and with the byte difference addition of described Hanzi internal code, be converted to the binary string that limits bit as the two-dimensional bar code coding value of described Hanzi internal code;
The described two-dimensional bar code coding stream that is combined to form is specially: after the current two-dimensional bar code coding value that needs encoding Chinese characters of combination, judge next needs encoding Chinese characters whether to belong to same group with the described current encoding Chinese characters that needs, be continue to make up described next need the two-dimensional bar code coding value of encoding Chinese characters, otherwise first make up predefined pattern end mark and pattern conversion symbol, then continue combination described next need the two-dimensional bar code coding value of encoding Chinese characters.
2. method according to claim 1, is characterized in that described restriction bit is 12 bits.
3. method according to claim 1, is characterized in that described pattern end mark is (111111111111) bin, described pattern conversion symbol is (111111111110) bin
4. method according to claim 1 is characterized in that described Hanzi internal code is selected to be specially: select the Chinese characters in common use in CNS, its ISN scope is (B0A1) hex-(F7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hex
5. method according to claim 4, it is characterized in that described Hanzi internal code grouping is specially: described Hanzi internal code is divided into two groups, and described first group of Hanzi internal code scope is (B0A1) hex-(D7FE) hex, (A1A1) hex-(A3FE) hexAnd (A8A1) hex-(A8C0) hexDescribed second group of Hanzi internal code scope is (D8A1) hex-(F7FE) hex
6. method according to claim 5 is characterized in that:
When the ISN scope is (B0A1) hex-(D7FE) hexThe time, after arbitrary byte of described arbitrary Hanzi internal code is deducted the corresponding byte of the initial Hanzi internal code of this group, also comprise: at least one byte difference is wherein carried out the computing of multiplication factor, the byte difference after obtaining to process;
When the ISN scope is (A1A1) hex-(A3FE) hexThe time, after arbitrary byte of described arbitrary Hanzi internal code is deducted the corresponding byte of the initial Hanzi internal code of this group, also comprise: at least one byte difference is wherein carried out the computing of multiplication factor, the byte difference after obtaining to process; After byte difference addition with described Hanzi internal code, and described be converted to the two-dimensional bar code coding value of binary string as described Hanzi internal code that limits bit before, also comprise the computing of the result of described addition being carried out additive factor;
When the ISN scope is (A8A1) hex-(A8C0) hexThe time, after the byte difference addition with described Hanzi internal code, and described be converted to the two-dimensional bar code coding value of binary string as described Hanzi internal code that limits bit before, also comprise the computing of the result of described addition being carried out additive factor;
When the ISN scope is (D8A1) hex-(F7FE) hexThe time, after arbitrary byte of described arbitrary Hanzi internal code is deducted the corresponding byte of the initial Hanzi internal code of this group, also comprise: at least one byte difference is wherein carried out the computing of multiplication factor, the byte difference after obtaining to process; Be specially:
When the ISN scope is (B0A1) hex-(D7FE) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
Step 1: the first byte of Hanzi internal code is deducted (B0) hex
Step 2: with result and the multiplication factor (5E) of described step 1 hexMultiply each other;
Step 3: the second byte of Hanzi internal code is deducted (A1) hex
Step 4: with the result of described step 2 and the results added of described step 3;
Step 5: be that 12 binary strings are as the two-dimensional bar code coding value of described Hanzi internal code with the results conversion of described step 4;
When the ISN scope is (A1A1) hex-(A3FE) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
Step 6: the first byte of Hanzi internal code is deducted (A1) hex
Step 7: with result and the multiplication factor (5E) of described step 6 hexMultiply each other;
Step 8: the second byte of Hanzi internal code is deducted (A1) hex
Step 9: with the result of described step 7 and the results added of described step 8, obtain and value;
Step 10: with result and the additive factor (EB0) of described step 9 hexAddition;
Step 11: be that 12 binary strings are as the two-dimensional bar code coding value of described Hanzi internal code with the results conversion of described step 10;
When the ISN scope is (A8A1) hex-(A8C0) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
Step 12: the first byte of Hanzi internal code is deducted (A8) hex
Step 13: the second byte of Hanzi internal code is deducted (A1) hex
Step 14: with the result of described step 12 and the results added of described step 13, obtain and value;
Step 15: with result and the additive factor (FCA) of described step 14 hexAddition;
Step 16: be that 12 binary strings are as the two-dimensional bar code coding value of described Hanzi internal code with the results conversion of described step 15;
When the ISN scope is (D8A1) hex-(F7FE) hexThe time, calculating wherein, the two-dimensional bar code coding value of arbitrary Hanzi internal code is specially:
Step 17: the first byte of Hanzi internal code is deducted (D8) hex
Step 18: with result and the multiplication factor (5E) of described step 17 hexMultiply each other;
Step 19: the second byte of Hanzi internal code is deducted (A1) hex
Step 20: with the result of described step 18 and the results added of described step 19;
Step 21: be that 12 binary strings are as the two-dimensional bar code coding value of described Hanzi internal code with the results conversion of described step 20.
CN200610098451.9A 2006-07-07 2006-07-07 Chinese character compression method of two-dimensional bar code coding Active CN101101628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610098451.9A CN101101628B (en) 2006-07-07 2006-07-07 Chinese character compression method of two-dimensional bar code coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610098451.9A CN101101628B (en) 2006-07-07 2006-07-07 Chinese character compression method of two-dimensional bar code coding

Publications (2)

Publication Number Publication Date
CN101101628A CN101101628A (en) 2008-01-09
CN101101628B true CN101101628B (en) 2013-06-19

Family

ID=39035900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610098451.9A Active CN101101628B (en) 2006-07-07 2006-07-07 Chinese character compression method of two-dimensional bar code coding

Country Status (1)

Country Link
CN (1) CN101101628B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639899B (en) * 2008-07-30 2013-08-28 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal
CN102664634B (en) * 2012-04-16 2016-02-17 中国航空无线电电子研究所 A kind of for data compression method during dipper system transmitting-receiving Chinese-character text message

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385823A (en) * 2002-04-01 2002-12-18 谭寅生 Ticket and security ciphering and identifying method based on identified fibre random distribution
CN1516059A (en) * 2003-01-02 2004-07-28 Anti-false logistics method
CN1567340A (en) * 2003-06-23 2005-01-19 中国科学院研究生院 False proof bill, false proof method of bill and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385823A (en) * 2002-04-01 2002-12-18 谭寅生 Ticket and security ciphering and identifying method based on identified fibre random distribution
CN1516059A (en) * 2003-01-02 2004-07-28 Anti-false logistics method
CN1567340A (en) * 2003-06-23 2005-01-19 中国科学院研究生院 False proof bill, false proof method of bill and system thereof

Also Published As

Publication number Publication date
CN101101628A (en) 2008-01-09

Similar Documents

Publication Publication Date Title
CN102592160B (en) Character two-dimension code encoding and decoding method for short message
CN102508824B (en) Compression coding and decoding method and device for microblog information
US7663511B2 (en) Dynamic character encoding
CN101515335A (en) Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method
CN105450232A (en) Encoding method, decoding method, encoding device and decoding device
US6737994B2 (en) Binary-ordered compression for unicode
CN101655944A (en) Method and system for coding service receipt
US7302106B2 (en) System and method for ink or handwriting compression
CN106919882A (en) A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding
JP6070568B2 (en) Feature coding apparatus, feature coding method, and program
CN112948776A (en) Digital watermark adding method and device, electronic equipment and storage medium
CN101101628B (en) Chinese character compression method of two-dimensional bar code coding
CN106651972A (en) Binary image coding and decoding methods and devices
CN102223149A (en) Arithmetic encoder based on probability polymerization
JP2006351001A (en) Content characteristic quantity extraction method and device, and content identity determination method and device
CN101325418A (en) Haffman quick decoding method based on probability table look-up
CN106406560B (en) Mechanical engineering character vector fonts output method and system in desktop operating system
CN106484661A (en) A kind of method of EBCDIC coding extension
CN101303742A (en) Microminiature Hanxin code and method for generating symbol thereof
US9235610B2 (en) Short string compression
CN104573782B (en) A kind of bar code encoding and decoding method
CN114070470A (en) Encoding and decoding method and device
CN101201829A (en) Chinese character library system as well as character code display method thereof
CN112016270A (en) Chinese-sensible code logistics information coding method, device and equipment
CN108846083B (en) Frequent pattern mining method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant