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

Adaptive threshold binarization method for two-dimensional barcode

An adaptive threshold, two-dimensional barcode technology, used in instruments, character and pattern recognition, computer parts and other directions, can solve the problems of uneven illumination and slow algorithm speed.

Inactive Publication Date: 2013-08-07
SUN YAT SEN UNIV
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the final result is still unsatisfactory. For some images with obvious uneven illumination, this technology cannot completely eliminate the influence of uneven illumination, and the final algorithm is still slow.

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
  • Adaptive threshold binarization method for two-dimensional barcode
  • Adaptive threshold binarization method for two-dimensional barcode
  • Adaptive threshold binarization method for two-dimensional barcode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further described below in conjunction with specific examples.

[0035] by image size , the area size is 20×20 as an example, refer to figure 1 , the binarization steps of the two-dimensional barcode are as follows:

[0036] Step 1: Input the two-dimensional barcode grayscale image ,Such as figure 2 As shown, will data stored in middle, Used for threshold judgment before binarization.

[0037] Step 2: Put The edge of is extended by 20 pixels, the extension method is , The size becomes 680×520, and the image is divided into such as image 3 34 x 26 regions shown.

[0038] Step 3: Set all 1 matrix , with a size of 480×640, for the last step of binarization; set an empty matrix , with a size of 26×34, used to store the average gray value of each region; set an empty matrix , with a size of 26×34, used to store the difference between the maximum and minimum gray value of each region.

[0039] Step 4: Traversing each a...

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 belongs to an image binarization processing method and relates to an adaptive threshold binarization method for two-dimensional barcodes. The adaptive threshold binarization method for the two-dimensional barcodes comprises the steps of 1.1) dividing a barcode image into a plurality of areas with the same size and calculating the average gray value of each area; 1.2) calculating the harmonic factor of each area and calculating the corresponding threshold by using the harmonic factor of each area; and 1.3) binarizing pixels in each area by using the corresponding threshold. The adaptive threshold binarization method for the two-dimensional barcodes has the advantages that not only can the speed of a local threshold binarization algorithm be improved, but also the threshold of each area can be dynamically and adaptively calculated, the blocking effect is enabled to disappear, the boundaries among areas can be well fused by using the harmonic factor of each area and the pseudo-boundary is well degenerated.

Description

technical field [0001] The invention belongs to an image binarization processing method, in particular to an adaptive threshold binarization method of a two-dimensional barcode. Background technique [0002] The binarization of two-dimensional barcode is a very important link in the process of two-dimensional code recognition, and the result of binarization directly affects the result of recognition. Because the application environment of the two-dimensional code is complex and changeable, and the image quality of the two-dimensional code obtained from the imaging device is different, it often encounters the situation of uneven illumination. Traditional binarization methods such as the Otsu method belong to the binarization method of the global threshold. While using a single global threshold, although the algorithm is fast, the effect of binarizing images with uneven illumination is generally not good. And the binarization method with local thresholding such as When the...

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): G06K9/38
Inventor 谭洪舟陈荣军罗招华朱雄泳
Owner SUN YAT SEN UNIV
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