QR two-dimensional code self-adaptation binarization processing method and device based on light balance

A processing method and two-dimensional code technology, which are applied in the field of adaptive binarization processing of QR two-dimensional codes based on light balance, can solve the problem that the difference between the gray value of the foreground color and the background color becomes smaller, the ratio increases, and the binary value becomes smaller. Inaccuracies, etc.

Active Publication Date: 2015-05-20
AEROSPACE INFORMATION
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The disadvantages of the above globalization and localization methods for QR (Quick Response) two-dimensional code binarization are: if the QR two-dimensional code has a large amount of information, the image size is large, and the light is too dark or the light is too dark. In the case of overexposure, the above globalization and localization methods will greatly reduce the efficiency and speed of image recognition
Overexposure of light will lead to loss of information. Insufficient light will cause the gray value difference between the foreground color and the background color to become smaller, resulting in inaccurate binarization. Compensating the background light will increase the contrast of the place where the original gray level is relatively concentrated.

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 self-adaptation binarization processing method and device based on light balance
  • QR two-dimensional code self-adaptation binarization processing method and device based on light balance
  • QR two-dimensional code self-adaptation binarization processing method and device based on light balance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] The embodiments of the present invention aim at the problem of binarization of QR two-dimensional code images with over- or under-illumination, and propose a local adaptive binarization method based on light balance.

[0066] In the embodiment of the present invention, the image information of the QR two-dimensional code is collected, and the image information of the QR two-dimensional code is converted into a grayscale image. Light detection is performed on the grayscale image, and light balance processing is performed on the grayscale image of the QR two-dimensional code according to the light detection result. Then, group the pixels of each row of the grayscale image after light balance processing according to the set image grayscale transition threshold, and determine the grayscale of each grouped pixel point in each row according to the method of maximum inter-class variance. A binarization threshold, performing binarization processing on the grayscale of each pixe...

Embodiment 2

[0105] This embodiment provides a QR two-dimensional code adaptive binarization processing device based on light balance, and its specific implementation structure is as follows Figure 4 As shown, it can specifically include the following modules:

[0106] An image acquisition module 410, configured to acquire image information of a QR two-dimensional code, and convert the image information of the QR two-dimensional code into a grayscale image;

[0107] An optical balance processing module 420, configured to perform illumination detection on the grayscale image, and perform optical balance processing on the grayscale image of the QR two-dimensional code according to the illumination detection result;

[0108] The binarization processing module 430 is used to group pixels in each row of the grayscale image after light balance processing according to the set image grayscale jump threshold, and determine each grouping of each row according to the method of maximum inter-class va...

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 QR two-dimensional code self-adaptation binarization processing method and device based on light balance. The method mainly comprises the steps that image information of a QR two-dimensional code is collected, and the image information of the QR two-dimensional code is transformed into a gray level image; light balance processing is conducted on the gray level image of the QR two-dimensional code according to an illumination detection result; each row of pixel points in the gray level image after light balance processing is conducted are grouped according to an image gray level jumping threshold value, and the binarization threshold value of the gray levels of the pixel points of each group of each row is determined according to the maximum between-cluster variance method, and binarization processing is conducted on the gray levels of the pixel points in each group of each row according to the binarization threshold value. According to the QR two-dimensional code self-adaptation binarization processing method and device based on light balance, pre-recognition is conducted on the gray level distribution of the QR two-dimensional image, light balance processing is conducted on the QR two-dimensional image, the binarization threshold value is determined through the maximum between-cluster variance method, redundant calculations can be avoided, the binarization efficiency of the QR two-dimensional code is improved, and meanwhile the recognition accuracy of the QR two-dimensional code is ensured.

Description

technical field [0001] The invention relates to the technical field of two-dimensional code images, in particular to a method and device for adaptive binarization of QR two-dimensional codes based on light balance. Background technique [0002] QR codes are more and more widely used in the Internet of Things because of their advantages of large amount of information, rich categories, and offline readability. QR codes are used in everything from item information display to commodity circulation and recycling. However, because the two-dimensional code is usually exposed to the external environment, and is often printed or printed on different materials, the difference in the light of the external environment has greatly interfered with the recognition of the two-dimensional code image. Accurate recognition of QR code images is crucial in this situation. [0003] At present, methods for binarizing QR (Quick Response) two-dimensional codes are mainly divided into two categories...

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
IPC IPC(8): G06F9/38
Inventor 孙科武于志强王启刚肖天柱王芳吴渊
Owner AEROSPACE INFORMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products