Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Two-dimensional code decoding system and method

一种解码方法、二维码的技术,应用在电磁辐射感应、仪器、感应记录载体等方向,能够解决无法获得二值化效果、加大运算量、加大解码的难度等问题

Inactive Publication Date: 2015-04-15
PEKING UNIV FOUNDER GRP CO LTD +1
View PDF7 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, due to the different media attached to the two-dimensional code, the different lighting environments, and the different imaging systems, the two-dimensional code image captured by the two-dimensional code reading device will vary greatly, and the influence of noise, image lighting, etc. Unevenness, too large or too small contrast, etc. will make the conversion of the two-dimensional code image into a binary image very complicated, and the effect of the image binarization process is directly related to the reading effect of the two-dimensional code
The binarization method in the prior art has some shortcomings when dealing with complex backgrounds, and cannot handle problems such as dark, uneven illumination, excessive or small contrast, etc., and cannot obtain a good binarization effect
If the effect of the obtained binarized image is not good, it will increase the difficulty of subsequent decoding, or need to increase the amount of calculation, or reduce the accuracy of decoding, or even cause the decoding step to fail to proceed smoothly.
And with the advancement of technology, the existing decoding technology may not be able to meet the user's increasingly high demand for QR code decoding speed and accuracy.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Two-dimensional code decoding system and method
  • Two-dimensional code decoding system and method
  • Two-dimensional code decoding system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0119] This embodiment provides a two-dimensional code decoding method, such as figure 1 shown, including the following steps:

[0120] The two-dimensional code image is subjected to binarization processing to obtain a binarized image, and the binarization processing includes:

[0121] The two-dimensional code image is cut to obtain several block regions.

[0122] Obtain the grayscale values ​​of all pixels in each block area, and obtain the grayscale values ​​of each block area according to the grayscale values ​​of all the pixels.

[0123] According to the average gray value of the predetermined range in which each sub-block region is located, the gray-scale threshold value of the sub-block region is determined.

[0124] Perform binarization processing on the pixels in the block area according to the grayscale threshold corresponding to each block area to obtain a binarized image.

[0125] The binarized image is decoded to obtain the information content contained in the t...

Embodiment 2

[0151] This embodiment makes the following improvements on the basis of Embodiment 1:

[0152] The process of decoding the binarized image to obtain the decoding information contained in the two-dimensional code includes:

[0153] Determine the original image coordinate system and the corrected coordinate system where the corrected image is located, each point in the corrected coordinate system corresponds to a point in the original image coordinate system; and respectively determine the center point of the detection pattern and the center point of the corrected image The coordinates under the original image coordinate system and the coordinates under the corrected coordinate system; the detection pattern includes a first detection pattern, a second detection pattern and a third detection pattern;

[0154] Correct the binarized image according to the coordinates of the center point of each detection pattern and the center point of the correction pattern in the original image c...

Embodiment 3

[0180] This embodiment makes the following improvements on the basis of Embodiment 2:

[0181] The process of determining the coordinates of the center point of the calibration graph in the original graph coordinate system includes:

[0182] Obtain the reference coordinates according to the relative positional relationship between the center point of the calibration pattern and the center point of the detection pattern;

[0183] Accurately position the correction figure within the predetermined range of the reference coordinates, and obtain the coordinates of the center point of the correction figure.

[0184] like Image 6 As shown, the first detection pattern 3 is a detection pattern located at the upper left corner of the entire two-dimensional code image. The second detection pattern 4 and the third detection pattern 5 may be detection patterns at the upper right corner and lower left corner of the entire two-dimensional code image, respectively, or may be detection patt...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Method and system for decoding a two dimensional code is disclosed. In the binarization process of a two dimensional code image, through performing a dividing operation on the two dimensional code image, each block region has a different grayscale threshold. For each block region, whether a pixel in the block region is determined as black or white is not solely based on the grayscale value of the pixel itself, but also an average grayscale value of a predetermined area set for the block region where the pixel locates. When the predetermined area in which the block region locates has a larger grayscale value as a whole, the grayscale threshold corresponding to the block region may become larger, and vice versa.

Description

technical field [0001] The invention belongs to the technical field of two-dimensional codes, in particular to a two-dimensional code decoding system and a method thereof. Background technique [0002] The two-dimensional code decoding algorithm based on image processing can be roughly divided into five steps: image preprocessing, positioning and correction, reading data, error correction and decoding. The basic steps of image preprocessing are grayscale transformation, image filtering, threshold segmentation, edge detection, and binarization is included in threshold segmentation. After the obtained grayscale image is subjected to enhancement algorithms such as contrast adaptation and brightness adjustment, the binarization algorithm is used to achieve the segmentation of the background and the target in the image, and the image is converted into an image with only two colors of black and white for decoding. [0003] However, due to different media attached to the QR code, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06K7/10
CPCG06K7/10722G06K7/1417G06K7/1478
Inventor 张玲关超刘振华刘革章车万毅
Owner PEKING UNIV FOUNDER GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products