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

Two-dimensional code partitioning decoding method and system

A decoding method and two-dimensional code technology, which are applied in the field of two-dimensional code block decoding methods and systems, can solve the problems of complexity and no block, and achieve the effects of high speed, improved accuracy, and high division accuracy.

Active Publication Date: 2015-11-18
FUJIAN LANDI COMML EQUIP CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When performing binarization processing on the code image, by performing a block operation on the code image, whether the pixel in each block area is judged to be black or white in the process of restoring the code image is considered. The average gray value of the predetermined range of the block area where the point is located can eliminate the interference of the external environment, but the block of the two-dimensional code image only includes n*n block areas, where n>1, not according to the two-dimensional The function module of the code is divided into blocks, and the information in the function module of the two-dimensional code cannot be quickly and accurately decoded. After calculating the gray threshold value of each block area, the pixels in the block area are binary Value to decode the two-dimensional code image, one pixel is not equal to one two-dimensional code image data bit, the process of decoding the two-dimensional code through pixel binarization is more complicated

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 partitioning decoding method and system
  • Two-dimensional code partitioning decoding method and system
  • Two-dimensional code partitioning decoding method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0134] Please refer to Figure 1 to Figure 3 , Embodiment 1 of the present invention is:

[0135] A two-dimensional code block decoding method,

[0136] Please refer to figure 2 , storing the received two-dimensional code image in the image data backup register, the received two-dimensional code is Chinese Sensible code, and the position detection pattern 10 and correction pattern 11 of the Chinese Sensible code are shown in figure 2 shown;

[0137] Binarize the received QR code image according to the gray value of the pixel, specifically:

[0138] According to the gray value of the pixel, the gray threshold value is calculated by the average method;

[0139] Binarize the received QR code image according to the grayscale threshold;

[0140] Find the boundary line of the two-dimensional code image according to the position detection pattern 10;

[0141] Find the version number and correction figure 11 in the QR code image, specifically:

[0142] According to the bounda...

Embodiment 2

[0158] Please refer to Figure 4 to Figure 7 , the second embodiment of the present invention is:

[0159] A two-dimensional code block decoding method,

[0160] See Figure 5 , storing the received two-dimensional code image in the image data backup register, the received two-dimensional code is a QR code, and the position detection pattern 12 of the QR code is shown in Figure 5 as shown, Figure 5 The QR code in has no correction graphics;

[0161] Binarize the received QR code image according to the gray value of the pixel, specifically:

[0162] According to the gray value of the pixel point, the gray threshold value is calculated by the method of maximum variance between classes;

[0163] Binarize the received QR code image according to the grayscale threshold;

[0164] Please refer to Figure 6 , find the boundary line of the two-dimensional code image according to the position detection figure 12, specifically:

[0165] Two adjacent boundary lines u and l in th...

Embodiment 3

[0201] A two-dimensional code block decoding system, comprising:

[0202] A storage module stores the received two-dimensional code image in the image data backup register;

[0203] The first binarization module binarizes the received two-dimensional code image according to the gray value of the pixel;

[0204] The first searching module searches for the boundary line of the two-dimensional code image according to the position detection pattern;

[0205] The second search module is used to find the version number and correction graphics in the two-dimensional code image;

[0206] The first division module divides the two-dimensional code image into regions by the boundary line of the two-dimensional code image, the straight line where the boundary line of the position detection graphic is located, and the straight line where the boundary line of the correction graphic is located;

[0207] The first computing module calculates the number of bits in each region according to th...

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

The invention provides a two-dimensional code partitioning decoding method and system. The method comprises that a received two-dimensional code image is stored in an image data backup dwell vessel; binarization is carried on the received two-dimensional code image according to gray values of pixel points; the border line of the two-dimensional code image is searched according to a position detection figure; the two-dimensional code image is further searched form the version number and a correction figure; the two-dimensional code image is partitioned into areas according to the position detection figure and the correction figure, and the bit of each area is calculated; each area is divided into bit areas according to the deflection of the position detection figure and the deflection of the correction figure; the two-dimensional code image in the image data backup dwell vessel is obtained again; the average gray value of all the pixel points in the bit areas is calculated and serves as the gray value of the bit areas; and binarization is carried out on the area according to the gray value of each bit area, and a binary two-dimensional code image is obtained; and the binary two-dimensional code image is decoded. The system is accurate in partitioning and rapid and accurate in decoding.

Description

technical field [0001] The invention relates to the technical field of two-dimensional codes, in particular to a two-dimensional code block decoding method and system. Background technique [0002] The two-dimensional code decoding algorithm based on image processing can be roughly divided into six steps: image acquisition, 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 realize the segmentation of the background and the target object in the image, and the image is converted into an image with only black and white colors for decoding. [0003] However, due to the different media attach...

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/1478G06K19/06037
Inventor 蒋声障吴卫东
Owner FUJIAN LANDI COMML EQUIP 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