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

QR two-dimensional code binarization method and system

A binarization, two-dimensional code technology, applied in the field of communication, can solve the problems of poor, QR two-dimensional code image light and dark reading effect, QR two-dimensional code image effect is not good, etc., to improve the binarization effect. Effect

Active Publication Date: 2017-05-24
AEROSPACE INFORMATION
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

QR two-dimensional code is currently the most widely used QR two-dimensional code because of its large information capacity, offline readability, rich categories, and adaptability to different media. In terms of material, when scanning the QR code to obtain information, the QR code image usually has obvious light and shade due to uneven lighting and other reasons, resulting in poor reading effect
[0003] The important step before reading the QR two-dimensional code image is to binarize the QR two-dimensional code image, which is mainly divided into a global method and a local binarization method. The global binarization method uses a single threshold to convert the QR two-dimensional code The image is divided into target and foreground, which is not suitable for the situation where the image contains multiple targets with different gray values
Therefore, local binarization is the main method to solve the binarization of QR two-dimensional code images. It is necessary to study the method of adaptively selecting thresholds or partitioning QR two-dimensional code images to determine multiple thresholds. The selection of thresholds usually uses the largest Entropy, maximum difference and other methods, these methods are effective for some images, but not effective for QR two-dimensional code images with complex grayscale distribution

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
  • QR two-dimensional code binarization method and system
  • QR two-dimensional code binarization method and system
  • QR two-dimensional code binarization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] This embodiment provides a processing flow of a QR two-dimension code binarization method such as figure 1 As shown, the following processing steps are included:

[0041] Step 11, obtaining the grayscale image of the QR two-dimensional code, and obtaining the grayscale range of the grayscale image;

[0042] Specifically, grayscale the QR two-dimensional code image, calculate the grayscale, and the calculation process:

[0043] f(x,y)=0.299×R(x,y)+0.5866×G(x,y)+0.1145×B(x,y)

[0044] Assume that the gray value of the pixel in the gray image of the QR code is expressed as a i , the gray range is [0,l-][0l].

[0045] Step 12, dividing the grayscale image into several grayscale fuzzy areas according to the grayscale range;

[0046] Preferably, K-1 grayscale values ​​are randomly selected within the grayscale range and expressed as a 1 ,a 2 ,...,a k-1 , and satisfy a 1 2 k-1 ;

[0047] Wherein, K-1 grayscale values ​​divide the grayscale image into K grayscale fuzzy...

Embodiment 2

[0061] This embodiment provides a kind of QR two-dimension code binarization system, and its concrete realization module is as follows figure 2 As shown, it can specifically include the following modules:

[0062] Obtaining module 21: it is used for obtaining the grayscale image of the QR two-dimensional code, and obtains the grayscale range of the grayscale image;

[0063] Division module 22: it is used to divide the grayscale image into several grayscale fuzzy areas according to the grayscale range;

[0064] Threshold value module 23: it is used for respectively obtaining the corresponding gray scale threshold value of each gray scale fuzzy area;

[0065] Binarization module 24: perform area binarization on each grayscale blurred area according to the corresponding threshold value of each grayscale blurred area.

[0066] A kind of QR two-dimension code binarization system, divides module 22, comprises:

[0067] A division unit 221, which is used to randomly select K-1 gr...

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

Embodiments of the invention provide a QR (Quick Response) two-dimensional code binarization method and system. The method comprises the steps of obtaining a grayscale image of a QR two-dimensional code, and obtaining a grayscale range of the grayscale image; dividing the grayscale image into a plurality of grayscale fuzzy regions according to the grayscale range; obtaining grayscale thresholds corresponding to the grayscale fuzzy regions respectively; and performing region binarization on the grayscale fuzzy regions according to the thresholds corresponding to the grayscale fuzzy regions. According to the method, a plurality of thresholds are selected for a grayscale entropy of the QR two-dimensional code image with wide grayscale, and the QR two-dimensional code image is binarized; and the binarization problem of the QR two-dimensional code under the condition of uneven illumination, illumination overexposure or the like is solved, a grayscale maximum entropy algorithm is improved, and a multi-threshold method is proposed for performing binarization, so that the binarization effect is improved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and system for binarizing a QR two-dimensional code. Background technique [0002] In recent years, the rapid development and popularization of mobile terminals has made the way to obtain information faster, and the QR (Quick Response) two-dimensional code has played an important role. Whether in the field of the Internet of Things or social networks, people can quickly obtain product information and download applications by scanning QR code images. QR two-dimensional code is currently the most widely used QR two-dimensional code because of its large information capacity, offline readability, rich categories, and adaptability to different media. It can be attached to different media by printing, printing, and engraving. In terms of material, when scanning the QR code to obtain information, it is usually due to uneven lighting and other reasons that the QR code im...

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/14
CPCG06K7/1417G06K7/1473
Inventor 孙科武于志强王芳
Owner AEROSPACE INFORMATION
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