CN103530669A - Data information two-dimensional code encoding method - Google Patents

Data information two-dimensional code encoding method Download PDF

Info

Publication number
CN103530669A
CN103530669A CN201310554786.7A CN201310554786A CN103530669A CN 103530669 A CN103530669 A CN 103530669A CN 201310554786 A CN201310554786 A CN 201310554786A CN 103530669 A CN103530669 A CN 103530669A
Authority
CN
China
Prior art keywords
quick response
response code
data
information
code
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
CN201310554786.7A
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.)
Chengdu Bo Ge Science And Technology Ltd
Original Assignee
Chengdu Bo Ge Science And Technology Ltd
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 Chengdu Bo Ge Science And Technology Ltd filed Critical Chengdu Bo Ge Science And Technology Ltd
Priority to CN201310554786.7A priority Critical patent/CN103530669A/en
Publication of CN103530669A publication Critical patent/CN103530669A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention relates to a two-dimensional encoding technique. The invention discloses a data information two-dimensional code encoding method. According to the technical scheme, the method comprises the following steps: a, identifying data information required to be encoded, and determining the information amount M; b, selecting a two-dimensional code encoding format, and determining data capacity K of a two-dimensional code; c, comparing the information amount M with the data capacity K, if M is greater than K, block partitioning according to the information amount, partitioning the data information with the size of M into N data blocks, wherein N is greater than or equal to 2, the capacity Ri of each block is less than or equal to K, and i is equal to 1, 2,...N, entering a step d, and if M is less than or equal to K, encoding the data information according to the two-dimensional encoding format selected in the step b; d, carrying out two-dimensional encoding on each data block in sequence according to the two-dimensional encoding format selected in the step b, setting a preorder code only in the two-dimensional code of a first data block and setting no preorder in two-dimensional codes of other data blocks. The information capacity of the two-dimensional code is increased through the adoption of the method, and the method is particularly applicable to large data information, such as two-dimensional encoding of contexts and images.

Description

A kind of Quick Response Code coding method of data message
Technical field
The present invention relates to Quick Response Code coding techniques, particularly the method for data message block encoding.
Background technology
Along with the development of infotech, people need to represent more information in limited geometric space, and bar codes technique is from one-dimensional bar code development two-dimensional bar code later on.It is the chequered with black and white graphic recording data symbol information that distributes in plane (two-dimensional space) according to certain rules with certain specific geometric figure that two-dimensional bar code is called again Quick Response Code (two-dimensional bar code).Quick Response Code utilizes dexterously " 0 ", the concept of " 1 " bit stream that forms computer-internal logical foundations on coding, with several geometrical bodies corresponding with scale-of-two, represent data message, by image input device or photoelectric scanning device automatically identifying and reading, to realize information, automatically process.Quick Response Code has some general character of barcode technology: every kind of coded format (or code system) has its specific character set; Each character occupies certain space; There is certain verifying function etc.Quick Response Code also has features such as the information automatic identification function of different rows and processing graphics rotation variations simultaneously.Quick Response Code can be in horizontal and vertical two orientation while expressing information, therefore can in very little area, express a large amount of information, there is the features such as high density, large capacity, so can represent data file (comprising Chinese character, numeral, symbol), picture etc. with Quick Response Code.Quick Response Code is the large capacity such as various certificates and card, the storage of highly reliable information, carries the also Perfected process of automatically identifying and reading.In at present conventional Quick Response Code, code system mainly contains: Data Matrix, MaxiCode, Aztec, QR Code, Vericode, PDF417, Ultracode, Code49, Code16K etc.QR Code code is by Japanese DW company, to be invented for 1994.QR Code code is to use at present commonplace Quick Response Code, is applicable to very much the coding of text message.In some code systems, also comprise different versions, as QR Code code just comprises version 1~40.
Although prior art Quick Response Code can record the information more much more than one-dimensional bar code in the plane of limited area, but a Quick Response Code is removed for functional graphic districts such as position sensing, location, corrections with for expressing the preamble of coded format, version, version information etc., and the capacity that is actually used in recording data information is also very limited.As the QR Code code of a version 20, number of modules is 97*97, and functional graphic accounts for 659 modules, and preamble takies 67 modules, for the number of modules of recording data information, only has 8683 modules, and data capacity is 1085 code words, wherein also comprises error correction code word.Visible its information capacity is also very limited, and prior art Quick Response Code is not suitable for quantity of information to hand over coding and the record of large text, image etc.Its application is also usually limited in the carrier as the network address, for interconnection network entrance.When needing information, user can only obtain from network wanted information, the situation that just there will be data not ask for when user present position does not have network by scanning Quick Response Code address.Prior art Quick Response Code range of application has been received greatly restriction.
Summary of the invention
Technical matters to be solved by this invention, is just to provide a kind of Quick Response Code coding method of data message, for the larger data message of quantity of information is carried out to Quick Response Code coding, improves the range of application of Quick Response Code.
The present invention solve the technical problem, and the technical scheme of employing is that a kind of Quick Response Code coding method of data message, comprises step:
A, needs encoded digital information is identified, determined the size of its quantity of information M;
B, selected Quick Response Code coded format, determine the data capacity K of Quick Response Code;
The size of c, comparison information amount M and data capacity K; If M > is K, according to quantity of information M, carry out piecemeal, the data message that is M by size is divided into N data block, and N >=2 make the capacity Ri≤K of every, i=1,2 ... N, enters steps d; If M≤K, encodes to data message according to the selected Quick Response Code coded format of step b;
D, according to the selected Quick Response Code coded format of step b, each data block is carried out to Quick Response Code coding in order, only in the Quick Response Code of first data block, preamble is set, in the Quick Response Code of other data blocks, do not establish preamble.
Concrete, described preamble is the selected common coding of Quick Response Code coded format, its effect is for expressing coded format, version, version information.
Further, in steps d, in the Quick Response Code of each data block, be provided with data block sequence number.
Preferably, in step c, have the quantity of information of N-1 data block to equal K, a remaining data block information amount is less than K.
Concrete, in step b, selected Quick Response Code coded format is QR Code code.
Concrete, in step a, the described encoded digital information that needs is text message.
The invention has the beneficial effects as follows, can, to larger data message, as text, image etc. enters Quick Response Code coding, improve the information capacity of Quick Response Code.Quick Response Code identification terminal is obtaining information from Quick Response Code directly, and does not need interconnection network, can greatly improve the range of application of Quick Response Code.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention.
Embodiment
Below in conjunction with accompanying drawing, describe technical scheme of the present invention in detail.
Technical scheme of the present invention, according to the size of data message and selected coded format data capacity, carry out piecemeal, then order is carried out Quick Response Code coding to each data block, and only in first data block in belonging to a data message integral body, preamble is set in cataloged procedure, for other data blocks in this data message, do not need to arrange preamble, thereby can save space, be used for recording valid data, increase the data capacity of Quick Response Code.
The Quick Response Code coding method flow process of data message of the present invention as shown in Figure 1, comprises the steps:
Step S101, identifies needs encoded digital information, determines the size of its quantity of information M.
In the present invention, needing the information of coding can be the larger information of quantity of information such as text, image, can identify by technology such as character recognition, image scannings, determines the size of its quantity of information M.
Step S102, selected Quick Response Code coded format, determine the data capacity K of Quick Response Code.
In this step, can select Quick Response Code code system (or coded format) according to concrete application or customer requirements, determine the data capacity of Quick Response Code.Different Quick Response Code code systems, data capacity is different.Same code system version is different, and data capacity is not identical yet, and as the QR Code code data capacity K=1085 code word of version 20, and the QR Code code data capacity K=3706 code word of edition 40 differs more than 3 times.
The size of step S103, comparison information amount M and data capacity K.
If M > is K, enter step S104, according to quantity of information M, carry out piecemeal, the data message that is M by size is divided into N data block, and N >=2 make the capacity Ri≤K of every, i=1,2 ... N, enters step S105.
In step S104, while carrying out the piecemeal of data message, the quantity of information of N-1 data block can be cut apart by Quick Response Code data capacity K, be made the quantity of information of this N-1 data block equal K, a remaining data block information amount is less than K.Also can adopt the mode of average piecemeal, as long as guarantee that the capacity Ri of each data block has been less than or equal to K.
Step S105, according to the selected Quick Response Code coded format of step S102, N data block carried out to Quick Response Code coding in order, only in the Quick Response Code of first data block, preamble is set, in the Quick Response Code of other data blocks, do not establish preamble.
Two-dimensional code symbol structure generally includes functional graphic and code area.Functional graphic is generally used for Scan orientation, figure detection etc., and code area is mainly used in record data, except valid data, also comprises for expressing the preamble of coded format, version, version information etc.The present invention is when carrying out block encoding, only in the Quick Response Code of first data block, preamble is set, identification terminal can obtain for information about accordingly, and identify for the Quick Response Code of other data blocks, and preamble is no longer set in the Quick Response Code of other data blocks, to save space, be used for recording valid data.The QR Code code of take is example, and in different editions, the number of modules occupying for expressing the preamble of coded format, version, version information etc., can reach 7% of a Quick Response Code total number of modules, uses it for that to record valid data still very considerable.
In step S105, for the ease of identification terminal scanning restoring data information, can in the Quick Response Code of each data block, data block sequence number be set, though identification terminal not according to sequential scanning, also correct restoring data information.Certainly, if data block sequence number is not set in the Quick Response Code of each data block, need identification terminal to carry out in order scanning recognition, otherwise correct restoring data information.For piecemeal quantity larger (N >=5), the present invention is recommended in the Quick Response Code of each data block data block sequence number is set.
If M≤K, enters step S106, according to the Quick Response Code coded format that step S102 is selected, data message is encoded.
In step S106, need encoded digital information quantity of information M≤K, can directly carry out Quick Response Code coding.
The preferred Quick Response Code coded format of the present invention is QR Code code.The features such as this code system is applicable to the text message coding of Chinese version very much, has data capacity large, and identification response is fast.

Claims (6)

1. a Quick Response Code coding method for data message, comprises step:
A, needs encoded digital information is identified, determined the size of its quantity of information M;
B, selected Quick Response Code coded format, determine the data capacity K of Quick Response Code;
The size of c, comparison information amount M and data capacity K; If M > is K, according to quantity of information M, carry out piecemeal, the data message that is M by size is divided into N data block, and N >=2 make the capacity Ri≤K of every, i=1,2 ... N, enters steps d; If M≤K, encodes to data message according to the selected Quick Response Code coded format of step b;
D, according to the selected Quick Response Code coded format of step b, each data block is carried out to Quick Response Code coding in order, only in the Quick Response Code of first data block, preamble is set, in the Quick Response Code of other data blocks, do not establish preamble.
2. the Quick Response Code coding method of a kind of data message according to claim 1, is characterized in that, described preamble is the selected common coding of Quick Response Code coded format, and its effect is for expressing coded format, version, version information.
3. the Quick Response Code coding method of a kind of data message according to claim 1, is characterized in that, in steps d, in the Quick Response Code of each data block, is provided with data block sequence number.
4. the Quick Response Code coding method of a kind of data message according to claim 1, is characterized in that, in step c, has the quantity of information of N-1 data block to equal K, and a remaining data block information amount is less than K.
5. the Quick Response Code coding method of a kind of data message according to claim 1, is characterized in that, in step b, selected Quick Response Code coded format is QR Code code.
6. the Quick Response Code coding method of a kind of data message according to claim 1, is characterized in that, in step a, the described encoded digital information that needs is text message.
CN201310554786.7A 2013-11-08 2013-11-08 Data information two-dimensional code encoding method Pending CN103530669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310554786.7A CN103530669A (en) 2013-11-08 2013-11-08 Data information two-dimensional code encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310554786.7A CN103530669A (en) 2013-11-08 2013-11-08 Data information two-dimensional code encoding method

Publications (1)

Publication Number Publication Date
CN103530669A true CN103530669A (en) 2014-01-22

Family

ID=49932664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310554786.7A Pending CN103530669A (en) 2013-11-08 2013-11-08 Data information two-dimensional code encoding method

Country Status (1)

Country Link
CN (1) CN103530669A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408503A (en) * 2014-10-30 2015-03-11 厦门市美亚柏科信息股份有限公司 Processing method and system for two-dimensional code
CN104615791A (en) * 2015-03-09 2015-05-13 浪潮集团有限公司 Three-dimensional code generating and parsing method and device
CN104794518A (en) * 2015-05-06 2015-07-22 矽照光电(厦门)有限公司 Color two-dimension code generating method and device
CN106022433A (en) * 2016-06-23 2016-10-12 天津众阳科技有限公司 Novel QR code and generation and code scanning method thereof
CN106874979A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of bar code treatment, display, read method and device
CN107704911A (en) * 2017-10-17 2018-02-16 北京小米移动软件有限公司 Generation, read method and the device of Quick Response Code
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
CN107948461A (en) * 2017-12-04 2018-04-20 四川大学 More images hiding in QR codes is realized based on compressed sensing and orthogonal modulation
CN109885048A (en) * 2019-01-30 2019-06-14 成都飞机工业(集团)有限责任公司 AGV trolley information automatic interaction device and control method under a kind of secure environment
CN109919279A (en) * 2019-02-28 2019-06-21 尤尼泰克(嘉兴)信息技术有限公司 A kind of extended method of two dimensional code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0962883A2 (en) * 1998-06-01 1999-12-08 Matsushita Electric Industrial Co., Ltd. A border-less clock free two-dimensional barcode and method for printing and reading the same
US20060262328A1 (en) * 2005-05-20 2006-11-23 Brother Kogyo Kabushiki Kaisha Editing program stored in computer-readable storage medium
CN101093553A (en) * 2007-07-19 2007-12-26 成都博古天博科技有限公司 2D code system, and identification method
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0962883A2 (en) * 1998-06-01 1999-12-08 Matsushita Electric Industrial Co., Ltd. A border-less clock free two-dimensional barcode and method for printing and reading the same
US20060262328A1 (en) * 2005-05-20 2006-11-23 Brother Kogyo Kabushiki Kaisha Editing program stored in computer-readable storage medium
CN101093553A (en) * 2007-07-19 2007-12-26 成都博古天博科技有限公司 2D code system, and identification method
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408503B (en) * 2014-10-30 2017-08-01 厦门市美亚柏科信息股份有限公司 The processing method and system of Quick Response Code
CN104408503A (en) * 2014-10-30 2015-03-11 厦门市美亚柏科信息股份有限公司 Processing method and system for two-dimensional code
CN104615791A (en) * 2015-03-09 2015-05-13 浪潮集团有限公司 Three-dimensional code generating and parsing method and device
CN104794518A (en) * 2015-05-06 2015-07-22 矽照光电(厦门)有限公司 Color two-dimension code generating method and device
CN104794518B (en) * 2015-05-06 2018-01-12 矽图(厦门)科技有限公司 The generation method of color 2 D code
CN106874979B (en) * 2015-12-14 2020-04-07 阿里巴巴集团控股有限公司 Bar code processing, displaying and reading method and device
CN106874979A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of bar code treatment, display, read method and device
WO2017101702A1 (en) * 2015-12-14 2017-06-22 阿里巴巴集团控股有限公司 Method and device for processing, displaying and reading barcode
CN106022433A (en) * 2016-06-23 2016-10-12 天津众阳科技有限公司 Novel QR code and generation and code scanning method thereof
CN107704911A (en) * 2017-10-17 2018-02-16 北京小米移动软件有限公司 Generation, read method and the device of Quick Response Code
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
CN107948461A (en) * 2017-12-04 2018-04-20 四川大学 More images hiding in QR codes is realized based on compressed sensing and orthogonal modulation
CN109885048A (en) * 2019-01-30 2019-06-14 成都飞机工业(集团)有限责任公司 AGV trolley information automatic interaction device and control method under a kind of secure environment
CN109919279A (en) * 2019-02-28 2019-06-21 尤尼泰克(嘉兴)信息技术有限公司 A kind of extended method of two dimensional code
WO2020173368A1 (en) * 2019-02-28 2020-09-03 尤尼泰克(嘉兴)信息技术有限公司 Qr code extension method
CN109919279B (en) * 2019-02-28 2020-12-08 尤尼泰克(嘉兴)信息技术有限公司 Two-dimensional code expansion method
US11809931B2 (en) 2019-02-28 2023-11-07 UNI2K Information Technology Co., Ltd. QR code extension method

Similar Documents

Publication Publication Date Title
CN103530669A (en) Data information two-dimensional code encoding method
CN101639899B (en) Methods and devices for encoding and decoding two-dimension code and terminal
CN101645140B (en) Two-dimensional code generation method, coding/decoding method and device
US20120024956A1 (en) Qr code having hidden codes and methods of forming and identifying the hidden codes
CN102129585B (en) Method and system for transmitting information, device for displaying bar code and device for reading bar code
CN106096488B (en) A kind of recognition methods of horizontal and vertical parity check code
CN101093553A (en) 2D code system, and identification method
CN111539502B (en) Anti-counterfeiting two-dimensional code generation method and device, server and storage medium
CN104281830A (en) Two-dimension code identification method and device
GB2446424A (en) Two dimensional bar code with locating symbols
EP2482231B1 (en) Method for encoding and decoding data on a matrix code symbol
CN202632311U (en) Two-dimension code reading device based on video stream
CN105718980A (en) Method for generating two-dimensional code picture
CN101159028B (en) Multiple graphics matrix type two-dimension bar code implementing method and device
CN107944525A (en) A kind of method and system of the expansion Quick Response Code capacity based on data segmentation
CN110991589A (en) Two-dimensional code and encryption method thereof
CN104715222A (en) Method and device for identifying gray two-dimension code
CN101923632B (en) Maxi Code bar code decoding chip and decoding method thereof
CN101303742B (en) Microminiature Hanxin code and method for generating symbol thereof
CN101042726B (en) Method for implementing continuance recognizing bar-code in terminal
CN101908133B (en) Method and device for decoding bar code
CN109977715A (en) Two-dimensional code identification method and two dimensional code based on outline identification
CN103699867B (en) Wedge-shaped bar code recognition method
CN102254204B (en) Coding method for graphemic code
CN101667249B (en) Two-dimensional code based on alphageometric characteristics and recognition method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20170315

C20 Patent right or utility model deemed to be abandoned or is abandoned