CN104992207A - Mobile phone two-dimensional bar code coding and decoding method - Google Patents

Mobile phone two-dimensional bar code coding and decoding method Download PDF

Info

Publication number
CN104992207A
CN104992207A CN201510333377.3A CN201510333377A CN104992207A CN 104992207 A CN104992207 A CN 104992207A CN 201510333377 A CN201510333377 A CN 201510333377A CN 104992207 A CN104992207 A CN 104992207A
Authority
CN
China
Prior art keywords
coding
decoding
bar code
mobile phone
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.)
Granted
Application number
CN201510333377.3A
Other languages
Chinese (zh)
Other versions
CN104992207B (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.)
Shenzhen Agenew Intelligent Software Technology Co ltd
Original Assignee
WUXI JIUYUAN SOFTWARE TECHNOLOGY Co 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 WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd filed Critical WUXI JIUYUAN SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201510333377.3A priority Critical patent/CN104992207B/en
Publication of CN104992207A publication Critical patent/CN104992207A/en
Application granted granted Critical
Publication of CN104992207B publication Critical patent/CN104992207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Error Detection And Correction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile phone two-dimensional bar code coding and decoding method. The method comprises coding and decoding; the coding comprises data analyses, data coding, error correction coding, final information construction, arrangement codes, mask layer, a generated format and version information; and the decoding comprises determining an image threshold, determining a position detection figure, analyzing a center coordinate of the position detection image, calculating a rotating angle of a two-dimensional code, correcting the rotating angle of the two-dimensional code, calculating a module width according to a difference between any two center coordinates, determining a version number, finding a positioning figure and a correction image and establishing a sampling network, sampling, decoding format information, performing XOR processing on a coding zone of a sign by utilizing a mask layer picture, re-arranging a code word sequence based on modules according to an inverted sequence of the arrangement codes while the coding, correcting data of the sign coding region and replacing an error and a reading rejection error, recovering a binary system bit stream of original information, and decoding according to different modes selected and used in the coding. The method improves the success rate of the mobile phone two-dimensional bar code decoding, and reduces the computation amount.

Description

A kind of mobile phone two-dimensional bar code decoding method
Technical field
The present invention relates to 2D bar code technology field, particularly relate to a kind of mobile phone two-dimensional bar code decoding method.
Background technology
Along with the development of new and high technology, people wish to represent more information by bar code in limited geometric space, so two-dimensional bar code is just applied and gives birth to.The information density of two-dimensional bar code is higher, and especially for QR code, its recognition technology is relatively complicated, more to the quick detection and Identification research of two-dimensional bar code in the last few years.Along with the communications industry develops rapidly, the combination of mobile phone and two-dimensional bar code recognition technology defines a new field and mobile phone two-dimensional bar code.But owing to gathering the quality problems of image in bar code process itself, two-dimensional bar code is after treatment easy to the mistake or the disappearance that cause partial data, seriously reduces the accuracy of two-dimensional bar code decoding.
Summary of the invention
The object of the invention is to, by a kind of mobile phone two-dimensional bar code decoding method, solve the problem that above background technology part is mentioned.
For reaching this object, the present invention by the following technical solutions:
A kind of mobile phone two-dimensional bar code decoding method, it comprises the steps:
S101, coding: data analysis, data encoding, Error Correction of Coding, the final information of structure, arrangement numeral, mask, production form and version information;
S102, decoding: the threshold value determining input picture, be converted into dark color and light module by image; According to preset ratio determination position sensing figure; The centre coordinate of analysis position detection image, calculates the Quick Response Code anglec of rotation and corrects; According to the difference calculating module width between any two centre coordinates, and determine version number; Find positioning pattern and correcting image and set up sampling microwave network; To the pixel sampling in sampling microwave network, and construct 0 and 1 bitmap thus, represent dark pixels with 1, represent light pixel with 0; To form decoding of information, obtain error-correction level and the mask pattern of symbol; With mask pattern, XOR process is carried out to the code area of symbol; According to symbol version and error correction demand, again codeword sequence is pressed module array according to the backward of arrangement numeral during coding; Mistake is substituted to symbolic coding district data correction and refuses read error; By reconfiguration data block sequence again, recover the bit stream of raw information; Different mode rule according to selecting during coding carries out decoding; Export decoded result.
Especially, in described step S101, data analysis specifically comprises: the data stream analyzing input, determines the character types that will carry out encoding; Error Correction of Coding specifically comprises: mobile phone two-dimensional bar code adopts RS error correction algorithm, and call sign is correctly decoded.
The mobile phone two-dimensional bar code decoding method that the present invention proposes can control and correct mistake, not only increases the success ratio of mobile phone two-dimensional bar code decoding, and decreases operand.
Accompanying drawing explanation
The mobile phone two-dimensional bar code decoding method process flow diagram that Fig. 1 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content, unless otherwise defined, all technology used herein and scientific terminology are identical with belonging to the implication that those skilled in the art of the present invention understand usually.Term used herein, just in order to describe specific embodiment, is not intended to be restriction the present invention.
Please refer to shown in Fig. 1, the mobile phone two-dimensional bar code decoding method process flow diagram that Fig. 1 provides for the embodiment of the present invention.
In the present embodiment, mobile phone two-dimensional bar code decoding method specifically comprises the steps:
S101, coding: data analysis, data encoding, Error Correction of Coding, the final information of structure, arrangement numeral, mask, production form and version information.Data analysis specifically comprises: the data stream analyzing input, determines the character types that will carry out encoding; Error Correction of Coding specifically comprises: mobile phone two-dimensional bar code adopts RS error correction algorithm, and call sign is correctly decoded.
S102, decoding: the threshold value determining input picture, be converted into dark color and light module by image; According to preset ratio determination position sensing figure; The centre coordinate of analysis position detection image, calculates the Quick Response Code anglec of rotation and corrects; According to the difference calculating module width between any two centre coordinates, and determine version number; Find positioning pattern and correcting image and set up sampling microwave network; To the pixel sampling in sampling microwave network, and construct 0 and 1 bitmap thus, represent dark pixels with 1, represent light pixel with 0; To form decoding of information, obtain error-correction level and the mask pattern of symbol; With mask pattern, XOR process is carried out to the code area of symbol; According to symbol version and error correction demand, again codeword sequence is pressed module array according to the backward of arrangement numeral during coding; Mistake is substituted to symbolic coding district data correction and refuses read error; By reconfiguration data block sequence again, recover the bit stream of raw information; Different mode rule according to selecting during coding carries out decoding; Export decoded result.
Technical scheme of the present invention can control and correct mistake, not only increases the success ratio of mobile phone two-dimensional bar code decoding, and decreases operand.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (2)

1. a mobile phone two-dimensional bar code decoding method, is characterized in that, comprises the steps:
S101, coding: data analysis, data encoding, Error Correction of Coding, the final information of structure, arrangement numeral, mask, production form and version information;
S102, decoding: the threshold value determining input picture, be converted into dark color and light module by image; According to preset ratio determination position sensing figure; The centre coordinate of analysis position detection image, calculates the Quick Response Code anglec of rotation and corrects; According to the difference calculating module width between any two centre coordinates, and determine version number; Find positioning pattern and correcting image and set up sampling microwave network; To the pixel sampling in sampling microwave network, and construct 0 and 1 bitmap thus, represent dark pixels with 1, represent light pixel with 0; To form decoding of information, obtain error-correction level and the mask pattern of symbol; With mask pattern, XOR process is carried out to the code area of symbol; According to symbol version and error correction demand, again codeword sequence is pressed module array according to the backward of arrangement numeral during coding; Mistake is substituted to symbolic coding district data correction and refuses read error; By reconfiguration data block sequence again, recover the bit stream of raw information; Different mode rule according to selecting during coding carries out decoding; Export decoded result.
2. mobile phone two-dimensional bar code decoding method according to claim 1, it is characterized in that, in described step S101, data analysis specifically comprises: the data stream analyzing input, determines the character types that will carry out encoding; Error Correction of Coding specifically comprises: mobile phone two-dimensional bar code adopts RS error correction algorithm, and call sign is correctly decoded.
CN201510333377.3A 2015-06-16 2015-06-16 A kind of mobile phone two-dimensional bar code decoding method Active CN104992207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510333377.3A CN104992207B (en) 2015-06-16 2015-06-16 A kind of mobile phone two-dimensional bar code decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510333377.3A CN104992207B (en) 2015-06-16 2015-06-16 A kind of mobile phone two-dimensional bar code decoding method

Publications (2)

Publication Number Publication Date
CN104992207A true CN104992207A (en) 2015-10-21
CN104992207B CN104992207B (en) 2018-08-14

Family

ID=54304020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510333377.3A Active CN104992207B (en) 2015-06-16 2015-06-16 A kind of mobile phone two-dimensional bar code decoding method

Country Status (1)

Country Link
CN (1) CN104992207B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734048A (en) * 2018-05-29 2018-11-02 西安理工大学 Various dimensions Quick Response Code based on proprietary code generates and interpretation method
CN109902528A (en) * 2019-02-28 2019-06-18 尤尼泰克(嘉兴)信息技术有限公司 A kind of decoding method of two dimensional code
CN110889304A (en) * 2018-09-11 2020-03-17 杭州海康威视数字技术股份有限公司 Two-dimensional code quality evaluation method and device, storage medium, electronic device and system
CN111046996A (en) * 2019-11-27 2020-04-21 湖南省科腾信安智能科技有限公司 Color QR code generation and identification method
CN113557529A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional bar code reader
CN117350317A (en) * 2023-12-05 2024-01-05 北京紫光青藤微系统有限公司 Decoding method and device for bar code image and electronic equipment
WO2024032379A1 (en) * 2022-08-11 2024-02-15 无锡盈达聚力科技有限公司 Optical information collector and method therefor
CN113557529B (en) * 2019-03-12 2024-05-24 微软技术许可有限责任公司 Mixed two-dimensional bar code reader

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070114285A1 (en) * 2004-03-15 2007-05-24 Shenzhen Syscan Technology Co., Ltd. 2D coding and decoding barcode and its method thereof
CN101197004A (en) * 2007-12-25 2008-06-11 深圳矽感科技有限公司 Two-dimension bar code and its coding and decoding method
CN103778452A (en) * 2014-01-10 2014-05-07 惠州Tcl移动通信有限公司 Two-dimension code encoding method, two-dimension code decoding method, two-dimension code encoding system and two-dimension code decoding method based on mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070114285A1 (en) * 2004-03-15 2007-05-24 Shenzhen Syscan Technology Co., Ltd. 2D coding and decoding barcode and its method thereof
CN101197004A (en) * 2007-12-25 2008-06-11 深圳矽感科技有限公司 Two-dimension bar code and its coding and decoding method
CN103778452A (en) * 2014-01-10 2014-05-07 惠州Tcl移动通信有限公司 Two-dimension code encoding method, two-dimension code decoding method, two-dimension code encoding system and two-dimension code decoding method based on mobile phone

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734048A (en) * 2018-05-29 2018-11-02 西安理工大学 Various dimensions Quick Response Code based on proprietary code generates and interpretation method
CN110889304A (en) * 2018-09-11 2020-03-17 杭州海康威视数字技术股份有限公司 Two-dimensional code quality evaluation method and device, storage medium, electronic device and system
CN110889304B (en) * 2018-09-11 2023-04-28 杭州海康威视数字技术股份有限公司 Two-dimensional code quality evaluation method and device, storage medium, electronic equipment and system
CN109902528A (en) * 2019-02-28 2019-06-18 尤尼泰克(嘉兴)信息技术有限公司 A kind of decoding method of two dimensional code
CN109902528B (en) * 2019-02-28 2023-10-20 尤尼泰克(嘉兴)信息技术有限公司 Encoding and decoding method of two-dimension code
CN113557529A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional bar code reader
CN113557529B (en) * 2019-03-12 2024-05-24 微软技术许可有限责任公司 Mixed two-dimensional bar code reader
CN111046996A (en) * 2019-11-27 2020-04-21 湖南省科腾信安智能科技有限公司 Color QR code generation and identification method
CN111046996B (en) * 2019-11-27 2023-08-04 湖南省科腾信安智能科技有限公司 Color QR code generation and identification method
WO2024032379A1 (en) * 2022-08-11 2024-02-15 无锡盈达聚力科技有限公司 Optical information collector and method therefor
CN117350317A (en) * 2023-12-05 2024-01-05 北京紫光青藤微系统有限公司 Decoding method and device for bar code image and electronic equipment
CN117350317B (en) * 2023-12-05 2024-03-26 北京紫光青藤微系统有限公司 Decoding method and device for bar code image and electronic equipment

Also Published As

Publication number Publication date
CN104992207B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN104992207A (en) Mobile phone two-dimensional bar code coding and decoding method
US10438038B2 (en) Decoding method and system for QR code with one damaged position detection pattern
US10817971B2 (en) System and method for embedding of a two dimensional code with an image
US8550351B2 (en) Matrix type two-dimensional barcode decoding chip and decoding method thereof
EP2393035B1 (en) QR barcode decoding chip and decoding method thereof
EP2393037B1 (en) Data matrix decoding chip and decoding method thereof
CN102880850B (en) A kind of method of Quick Response Code batch scanning and scanning device
CN103793735B (en) Circular two-dimensional bar code and encoding and decoding method thereof
US8515162B2 (en) QR code processing method and apparatus thereof
US9177188B2 (en) Method and system for detecting detection patterns of QR code
CN105069394A (en) Two-dimension code weighted average gray level method decoding method and system
JP2007317184A (en) Two-dimensional bar code, and encoding and decoding method thereof
WO2022199471A1 (en) Quick response code generation method and apparatus, quick response code decoding method and apparatus, and device
WO2010031110A1 (en) Data storage device and encoding/decoding methods
CA3045391C (en) Method for detection and recognition of long-range high-density visual markers
CN111241860A (en) Positioning and decoding method for arbitrary material annular code
CN101908128A (en) Aztec Code bar code decoding chip and decoding method thereof
CN116978011A (en) Image semantic communication method and system for intelligent target recognition
CN104346596A (en) Identification method and identification device for QR (Quick Response) code
CN111291846B (en) Two-dimensional code generation, decoding and identification method, device and equipment
CN109977715B (en) Two-dimensional code identification method based on contour identification and two-dimensional code
US20140231526A1 (en) Code reading device and code reading method
CN109635613B (en) Two-dimensional code generation method, system and device for sphere surface
CN110866578B (en) Two-dimensional texture code and encoding and decoding methods thereof
EP4044065A1 (en) Visual code and method for encoding and decoding a two-dimensional image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 214000 room 2201, 1 gate, Ming Du mansion, 88 Huishan Avenue, Huishan District, Wuxi, Jiangsu.

Applicant after: WUXI JIUYUAN SOFTWARE CO.,LTD.

Address before: 214174 room 2201, 1 gate, Ming Du mansion, 88 Huishan Avenue, Huishan District, Wuxi, Jiangsu.

Applicant before: WUXI JIUYUAN SOFTWARE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20180613

Address after: 214000 No. 311, Yan Xin Road, Wuxi Huishan Economic Development Zone, Wuxi, Jiangsu

Applicant after: WUXI YUNING INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 214000 room 2201, 1 gate, Ming Du mansion, 88 Huishan Avenue, Huishan District, Wuxi, Jiangsu.

Applicant before: WUXI JIUYUAN SOFTWARE CO.,LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180928

Address after: 518000 Nanshan District District, Shenzhen, Guangdong, Guangdong Province, new high tech park, Guangdong Province, M-6 1, 1

Patentee after: SHENZHEN AGENEW INTELLIGENT SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: 214000 No. 311, Yan Xin Road, Wuxi Huishan Economic Development Zone, Wuxi, Jiangsu

Patentee before: WUXI YUNING INTELLIGENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right