Binaryzation method of two-dimension code image

A two-dimensional code, binarization technology, applied in the field of image conversion, can solve the problem of affecting two-dimensional code reading and so on

Active Publication Date: 2013-05-08
WUHAN SYSCAN TECH CO LTD
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When using the Otsu algorithm, the Otsu algorithm also fails when the proportion of the target and the background is out of balance, so the obtained binarized image is also distorted, and the binarized image is distorted, which naturally affects the reading of the two-dimensional code.

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
  • Binaryzation method of two-dimension code image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Below, the present invention will be described in detail with reference to the accompanying drawings.

[0041] Such as figure 1 As shown, the present embodiment provides a binarization method of a two-dimensional code image, including:

[0042] Step 1: Determine the block area size of the grayscale image according to the specifications of the grayscale image of the two-dimensional code. This process is automatically completed by the system, so we also call this process adaptive block process. The determination of the size of the block region of the grayscale image according to the specifications of the two-dimensional code grayscale image includes adaptively determining the size of the block region by the product of the width and height of the grayscale image, for example: two-dimensional code grayscale High-resolution images have various specifications, such as 640 pixels * 480 pixels, 752 pixels * 480 pixels, 1280 pixels * 720 pixels, etc., because the proportion of...

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 binaryzation method of a two dimension code image. The binaryzation method comprises the following steps: identifying the magnitude of a block area of a gray level image based on the specification of the two-dimension code image, calculating the contract ratio of each block area and judging high and low of the contract ratio, arranging the threshold of the block area that the contract ratio is low and the average gray value is lower than the whole image average gray value at 255, arranging the threshold of the block area that the contract ratio is low and the average gray value is higher than the image average grey value at 0; calculating the threshold of the block area which the contract ratio is high; smoothly processing the threshold in all block areas by calculation, and comparing the relative threshold of the block area after the smooth process with each pixel of the two-dimension gray value image, and obtaining the binaryzation image. By using the method to obtain the binaryzation image of the two-dimension code image, not only speed is fast, but also the image is distortionless, so that recognition and reading of the two-dimension code is favorable.

Description

technical field [0001] The invention relates to the technical field of image conversion, in particular to a method for binarizing a two-dimensional code image. Background technique [0002] The reading process of the two-dimensional code is: capture the image of the two-dimensional code by the image sensor in the two-dimensional code reading device, and the image captured here is generally an 8-bit grayscale image. After the reading device captures the grayscale image, the two-dimensional code reading algorithm needs to convert the 8-bit grayscale image into black and white binary images pixel by pixel, and then obtain the two-dimensional code according to the corresponding two-dimensional code system Binary code stream, for example, "black" represents 1, "white" represents 0; or "black" represents 0, "white" represents 1. Afterwards, the two-dimensional code is decoded according to the two-dimensional code coding rules and the error correction algorithm to complete the rea...

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): G06K9/38
Inventor 丁伟军
Owner WUHAN SYSCAN TECH CO LTD
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