CN106919882A - A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding - Google Patents

A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding Download PDF

Info

Publication number
CN106919882A
CN106919882A CN201511001065.9A CN201511001065A CN106919882A CN 106919882 A CN106919882 A CN 106919882A CN 201511001065 A CN201511001065 A CN 201511001065A CN 106919882 A CN106919882 A CN 106919882A
Authority
CN
China
Prior art keywords
byte
group
numeral
numerical value
defaulted
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.)
Pending
Application number
CN201511001065.9A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201511001065.9A priority Critical patent/CN106919882A/en
Publication of CN106919882A publication Critical patent/CN106919882A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides a kind of method that two-dimentional digital content and pure digi-tal symbolic coding are mutually changed.The method includes:The binary data that will be encoded in Quick Response Code save as byte arrays;Divided as one group with two bytes, if a last remaining byte, last byte is independent one group;According to packet, low address byte in each group is defaulted as the high-value byte of numeral, high address byte in each group is defaulted as the low level numerical value byte of numeral, each group of byte is switched into decimal system Arabic numerals, transformation result is combined into a string of Arabic characters.The mode of first transcoding re-encoding proposed by the present invention, it is to avoid be easily caused collapse or show disagreeableness problem during Versatile two-dimension code scanning device scanning Quick Response Code, the binary content that will visually distinguish switchs to common Arabic numerals.Format code transferring is carried out to legacy data, and transcoding rule has been determined, the increase that taken up room after transcoding is little.

Description

A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding
Technical field
It is the method for symbol of numeral code the present invention relates to Quick Response Code field, especially Quick Response Code Content Transformation.
Background technology
With the development of science and technology, in the urgent need to bar code expresses more information in limited space, with Meet the demand of various information transmissions, Quick Response Code arises at the historic moment.Planar bar code technology is pressed using specific geometric figure Arrange to form special pattern identification in the two-dimensional direction according to certain rule, to realize the transmission of information.Two dimension Code is the Large Copacity Quick Response Code grown up based on bar code and image processing techniques, and two-dimentional digital content can be deposited Put various characters and data, such as picture, video.With the rise of intelligent hand-held terminal, Quick Response Code was in recent years To be widely used, such as url connection, storage checking information, for food safety trace back.
In numerous Quick Response Code applications, it is, in the binary data of Quick Response Code internal storage, have to have a class application Be form needs, such as digital certificate, picture;Has plenty of the result of storage encryption data.And this binary system Data, when our general end of scan are scanned, it is possible to cause scanning software to collapse, even if scan decoder Success shows, is also some chaotic unrecognizable characters, and display interface is very unfriendly.
The content of the invention
Weak point present in regarding to the issue above, pure digi-tal is switched to the invention provides a kind of two-dimentional digital content The method of symbolic coding, efficiently solves scanning software collapse or shows disagreeableness problem.
To achieve the above object, technical scheme proposed by the present invention is as follows:
Step (a), the binary data that will be encoded in Quick Response Code save as byte arrays.
Step (b), is divided with two bytes as one group, if a last remaining byte, last byte It is independent one group.
Step (c), according to the packet of step (b), numeral is defaulted as by the low address byte in each group High-value byte, the high address byte in each group is defaulted as the low level numerical value byte of numeral, by each group of word Section switchs to decimal system Arabic numerals.Wherein, for one group of two byte, transformation result standard is entered for 5 ten Arabic numerals processed;For the group of only one of which byte, switch to 3 decimal system Arabic numerals.
Step (d), a string of Arabic characters are combined into by the result of step (c).
Step (e), EOC.
Further, in step (c), for one group of two byte, transformation result standard is entered for 5 ten Arabic numerals processed;For the group of only one of which byte, switch to 3 decimal system Arabic numerals.
Further, the step (c) can be replaced:Low address byte in each group is defaulted as numeral Low-value byte, by the high address byte in each group be defaulted as numeral high-order numerical value byte, by each group Byte switchs to decimal system Arabic numerals.
Handling process when Quick Response Code is decoded, if common software scanning then uses standard decoding process, Decoded result is a string of Arabic numerals.If special-purpose software is decoded, the binary system to be stored using Quick Response Code Data, then must first restore binary data.Reconstitution steps are as follows:
The first step, Arabic character string is grouped with 5 numerals as one group, if last group has 3 Individual numeral, then be individually for one group.
Second step, if set of number is 5, by group numeral, to 256 complementations, obtains numerical value storage Low byte;Numerical value storage to being obtained divided by 256 is high byte.If set of number is 3, it is directly stored in One byte.
3rd step, a big byte arrays are connected to by the byte that second step is generated.
4th step, information-reply is completed.
According to the another aspect of invention, the low byte processing mode high of the step of flow the 3rd is encoded, it is also possible in turn, Low address byte that will be in each group is defaulted as the low-value byte of numeral, by the high address byte in each group The high-order numerical value byte of numeral is defaulted as, each group of byte is switched into decimal system Arabic numerals, it is only necessary to compiled Processing mode matching when code and decoding.
According to the another aspect of invention, a kind of side that pure digi-tal symbolic coding is converted to two-dimentional digital content is also provided Method, including:
Step (a), Arabic character string is grouped with 5 numerals as one group, if last group has 3 Individual numeral, then be individually for one group;
Step (b), if set of number is 5, by group numeral, to 256 complementations, obtains numerical value storage Low byte;Numerical value storage to being obtained divided by 256 is high byte, if set of number is 3, is directly deposited Enter a byte;
Step (c), a big byte arrays are connected to by the byte that step (b) is generated;
Step (d), information-reply is completed.
Further, the step (b) could alternatively be:If set of number is 5, by group numeral, To 256 complementations, the high byte of numerical value storage is obtained;Numerical value storage to being obtained divided by 256 is low byte, if Set of number is 3, then be directly stored in a byte.
The mode of first transcoding re-encoding proposed by the present invention, it is to avoid Versatile two-dimension code scanning device scanning Quick Response Code When be easily caused collapse or show disagreeableness problem, the binary content that will visually distinguish switchs to often The Arabic numerals seen.Format code transferring is carried out to legacy data, and transcoding rule has been determined, taken after transcoding Space increases little.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to wanting needed for embodiment description The accompanying drawing for using briefly is introduced, and drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow path switch figure of the embodiment of the present invention.
Specific embodiment
For ease of the understanding to the embodiment of the present invention, below in conjunction with being done as a example by accompanying drawing and several specific embodiments Further explanation and explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
Embodiment one:
Data expression directly can be carried out using hexadecimal, but which directly makes data take Quick Response Code deposits Put and be twice in storage space.In embodiment one, coded system of the invention takes up room and is slightly increased.
, it is necessary to deposit a string of encryption datas to Quick Response Code in the application of certain certification, for certification:Its ciphertext (ten Senary is represented) it is as follows:
96D36CA38854D4A1BC3E995ABFB620704BA06E3D8FC9D1E5E198C091035946 BB01A83A6A91B9B06C
Above-mentioned to have 40 bytes, 80 characters are grouped as follows:
96D3 6CA3 8854 D4A1 BC3E 995A BFB6 2070 4BA0
6E3D 8FC9 D1E5 E198 C091 0359 46BB 01A8 3A6A
91B9 B06C
It is as follows that correspondence switchs to ten's digit:
38611 27811 34900 54433 48190 39258 49078 08304 19360
28221 36809 53733 57752 49297 00857 18107 00424 14954
37305 45164。
Spell the result after as being changed for a string, 100 Arabic numerals:
38611278113490054433481903925849078083041936028221368095373357752492 97008571810700424149543730545164
By version below 9 QR yards coding as a example by, to it is above-mentioned carry out respectively initial data, hexadecimal character with Arabic numeric characters are encoded, and take up room calculating:
Data to be encoded representation The coding mode of Quick Response Code Take up room (bit)
Binary numeral Eight bit byte pattern 332
Hexadecimal character Eight bit byte pattern 652
Transcoding of the present invention Numeral 348
As can be seen from the above table, data expression directly is carried out, it is necessary to take 652bit's using hexadecimal Two-dimentional code space directly makes data occupancy Quick Response Code memory space ratio use binary numeral representation to amplify one Times, coded system of the invention takes up room and be simply slightly increased.
In addition, using one group of two byte to carry out the maximum that the foundation that Arabic numerals change can be represented into byte group The ratio between the decimal system maximum represented with transformation result digit maximum, the utilization rate highest of Arabic numerals digit. Comparing calculation is as follows:
Byte number Maximum Correspondence decimal system maximum Decimal system space availability ratio Sequence
1 255 999 25.53% 3
2 65535 99999 65.54% 1
3 16777215 99999999 16.78% 4
4 4294967295 9999999999 42.95% 2
As seen through the above description of the embodiments, those skilled in the art can be understood that this hair It is bright to add the mode of required general hardware platform by software to realize.It is of the invention based on such understanding The part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product Out, the computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD Deng, including some instructions are used to so that computer equipment (can be personal computer, server, or Network equipment etc.) perform method described in some parts of each embodiment of the invention or embodiment.This explanation Each embodiment in book is described by the way of progressive, and identical similar part is mutual between each embodiment Referring to what each embodiment was stressed is the difference with other embodiment.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited to In this, any one skilled in the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should Should be defined by scope of the claims.

Claims (5)

1. a kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding, it is characterised in that:
Step(a), the binary data that will be encoded in Quick Response Code save as byte arrays;
Step(b), divided as one group with two bytes, if a last remaining byte, last byte is independent one group;
Step(c), according to the step(b)Packet, by the low address byte in each group be defaulted as numeral high-value byte, by the high address byte in each group be defaulted as numeral low level numerical value byte, each group of byte is switched into decimal system Arabic numerals;
Step(d), by the step(c)Result be combined into a string of arabic numeric characters;
Step(e), EOC.
2. method according to claim 1, it is characterised in that:The step(c)In, for one group of two byte, transformation result standard is 5 decimal system Arabic numerals;For the group of only one of which byte, switch to 3 decimal system Arabic numerals.
3. method according to claim 1, it is characterised in that:Wherein described step(c)It is replaced by step(c’):Low address byte in each group is defaulted as the low-value byte of numeral, the high address byte in each group is defaulted as the high-order numerical value byte of numeral, each group of byte is switched into decimal system Arabic numerals.
4. a kind of method that pure digi-tal symbolic coding is converted to two-dimentional digital content, it is characterised in that:
Step(a), Arabic character string is grouped with 5 numerals as one group, if last group there are 3 numerals, it is individually for one group;
Step(b)If set of number is 5, by group numeral, to 256 complementations, the low byte of numerical value storage is obtained;Numerical value storage to being obtained divided by 256 is high byte, if set of number is 3, is directly stored in a byte;
Step(c), by step(b)The byte of generation is connected to a big byte arrays;
Step(d), information-reply completion.
5. method according to claim 4, it is characterised in that:Wherein described step(b)It is replaced by step(b’):If set of number is 5, by group numeral, to 256 complementations, the high byte of numerical value storage is obtained;Numerical value storage to being obtained divided by 256 is low byte, if set of number is 3, is directly stored in a byte.
CN201511001065.9A 2015-12-28 2015-12-28 A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding Pending CN106919882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001065.9A CN106919882A (en) 2015-12-28 2015-12-28 A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001065.9A CN106919882A (en) 2015-12-28 2015-12-28 A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding

Publications (1)

Publication Number Publication Date
CN106919882A true CN106919882A (en) 2017-07-04

Family

ID=59455084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001065.9A Pending CN106919882A (en) 2015-12-28 2015-12-28 A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding

Country Status (1)

Country Link
CN (1) CN106919882A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944525A (en) * 2017-10-18 2018-04-20 浙江工商大学 A kind of method and system of the expansion Quick Response Code capacity based on data segmentation
CN109213973A (en) * 2018-07-04 2019-01-15 珠海市特车网络科技有限公司 VIN code transcoding storage method and device and corresponding read method and device
WO2019205357A1 (en) * 2018-04-26 2019-10-31 上海德必创新科技发展有限公司 Two-dimensional code encryption method, two-dimensional code transmission system and storage medium
CN112686072A (en) * 2020-12-28 2021-04-20 重庆医药高等专科学校 Control method for human resource equipment device
WO2021103515A1 (en) * 2019-11-26 2021-06-03 苏州长光华医生物医学工程有限公司 Method for encrypting reagent two-dimensional code information of medical instrument, system, and storage medium
CN115169289A (en) * 2022-09-05 2022-10-11 南京理工科技园股份有限公司 Information compression coding and decoding method and device for security entrance guard

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818935A (en) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 Two-dimensional code construction based on hexadecimal coding
CN102254204A (en) * 2011-06-03 2011-11-23 吴林 Coding and decoding method for graphemic code
CN102799795A (en) * 2011-05-25 2012-11-28 中国医学科学院药用植物研究所 Species movable identification system, terminal, server and method
CN104392197A (en) * 2014-11-24 2015-03-04 深圳市通用条码技术开发中心 Method for increasing reading rate and encryption of website two-dimensional code tags

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818935A (en) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 Two-dimensional code construction based on hexadecimal coding
CN102799795A (en) * 2011-05-25 2012-11-28 中国医学科学院药用植物研究所 Species movable identification system, terminal, server and method
CN102254204A (en) * 2011-06-03 2011-11-23 吴林 Coding and decoding method for graphemic code
CN104392197A (en) * 2014-11-24 2015-03-04 深圳市通用条码技术开发中心 Method for increasing reading rate and encryption of website two-dimensional code tags

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944525A (en) * 2017-10-18 2018-04-20 浙江工商大学 A kind of method and system of the expansion Quick Response Code capacity based on data segmentation
WO2019205357A1 (en) * 2018-04-26 2019-10-31 上海德必创新科技发展有限公司 Two-dimensional code encryption method, two-dimensional code transmission system and storage medium
CN109213973A (en) * 2018-07-04 2019-01-15 珠海市特车网络科技有限公司 VIN code transcoding storage method and device and corresponding read method and device
CN109213973B (en) * 2018-07-04 2023-05-16 珠海市特车网络科技有限公司 VIN code transcoding storage method and device and corresponding reading method and device
WO2021103515A1 (en) * 2019-11-26 2021-06-03 苏州长光华医生物医学工程有限公司 Method for encrypting reagent two-dimensional code information of medical instrument, system, and storage medium
CN112686072A (en) * 2020-12-28 2021-04-20 重庆医药高等专科学校 Control method for human resource equipment device
CN115169289A (en) * 2022-09-05 2022-10-11 南京理工科技园股份有限公司 Information compression coding and decoding method and device for security entrance guard

Similar Documents

Publication Publication Date Title
CN106919882A (en) A kind of method that two-dimentional digital content switchs to pure digi-tal symbolic coding
CN104199927B (en) Data processing method and data processing equipment
CN103400174B (en) The coded method of a kind of Quick Response Code, coding/decoding method and system
CN104579360B (en) A kind of method and apparatus of data processing
CN105450232A (en) Encoding method, decoding method, encoding device and decoding device
CN104268615A (en) Encoding method and decoding method for color two-dimensional code
CN103995887A (en) Bitmap index compressing method and bitmap index decompressing method
CN102930192A (en) Method for generating and acquiring safety information and relevant devices
CN1937582B (en) Method for preprocessing data to be compressed and compressed data transmission method
CN103632179B (en) Code And Decode method and the device of Three-Dimensional Bar Code
CN101729075A (en) Data compression method, data compression device, data decompression method and data decompression device
CN104424498A (en) Method and device for transforming two-dimensional codes at high speed
CN101655944A (en) Method and system for coding service receipt
CN112035706A (en) Encoding method, decoding method, computer device, and readable storage medium
US20180219964A1 (en) Method and system to convert globally unique identifiers to electronic data interchange document identifiers
CN104424192A (en) Method and device for forming multi-font font library and method and device for displaying different fonts
JP2014197844A (en) Encoder for encoding text on matrix code symbol and decoder for decoding matrix code symbol
CN112200286A (en) Method and device for character string coding
CN109871520A (en) A kind of binary data decoding method embedded suitable for HTTP content
CN108256610A (en) A kind of word is around the generation system and generation method of Quick Response Code
CN104408503A (en) Processing method and system for two-dimensional code
CN111708574A (en) Instruction stream compression and decompression method and device
Pan et al. New reversible full‐embeddable information hiding method for vector quantisation indices based on locally adaptive complete coding list
CN113298687B (en) Watermark image adding method and device
CN105139058A (en) Method for coding two-dimensional code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704

RJ01 Rejection of invention patent application after publication