Image binarization method and device

An image binarization and binarization threshold technology, applied in the field of image processing, can solve problems such as no solution proposed, and achieve the effect of saving calculation time, improving binarization efficiency and simple method

Active Publication Date: 2017-07-28
SHENZHEN YIHUA COMP +2
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For the above problems, no effective solutions have been proposed so far

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
  • Image binarization method and device
  • Image binarization method and device
  • Image binarization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] figure 1 It is a flow chart of the image binarization method provided by Embodiment 1 of the present invention. This embodiment is applicable to image processing, for example, banknote serial number recognition. The method can be executed by an image binarization device, and the method is mainly aimed at grayscale images, and especially has a good binarization effect on gradient grayscale images. Such as figure 1 As shown, the method includes the following steps:

[0060] Step S110, dividing the grayscale image to be processed into a plurality of image blocks, and calculating the binarization thresholds of the plurality of image blocks respectively. That is, the binarization threshold of each image block is calculated.

[0061] Preferably, according to the size of the grayscale image to be processed, the grayscale image to be processed can be divided vertically or horizontally into multiple image blocks of the same size, which can be regular shaped image blocks, for ...

Embodiment 2

[0071] On the basis of the first embodiment above, this embodiment provides a preferred implementation manner of calculating the binarization threshold of each column or each row through interpolation. Specifically, the interpolation calculation is performed on the binarization threshold of the image block to which the current pixel belongs and the binarization threshold of adjacent image blocks according to the preset interpolation formula, including the following situations:

[0072] A. If the current pixel point P(i,j) is between n×w and area, the following formula (1) is used for interpolation calculation:

[0073]

[0074] Among them, T represents the binarization threshold of the current pixel, T n Indicates the binarization threshold of the image block to which the current pixel belongs, n indicates the number of the image block, n=1,2,...N-1, the grayscale image to be processed is divided into N image blocks of the same size, N is a positive integer ,T n-1 Repre...

Embodiment 3

[0083] This embodiment provides an image binarization device, which can be used in image processing, for example, banknote serial number recognition. figure 2 is a structural block diagram of an image binarization device provided in Embodiment 3 of the present invention, as figure 2 As shown, the device includes: a binarization threshold calculation module 21 , an interpolation calculation module 22 and an image binarization module 23 .

[0084] The binarization threshold calculation module 21 is used to divide the grayscale image to be processed into a plurality of image blocks, and calculates the binarization thresholds of a plurality of the image blocks respectively; the interpolation calculation module 22 is used to calculate according to a preset interpolation formula Perform interpolation calculations on the binarization thresholds of a plurality of the image blocks respectively to obtain the binarization thresholds of each column or the binarization thresholds of each...

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

An embodiment of the invention discloses an image binarization method and device. The method comprises the following steps: segmenting a grayscale image to be processed into a plurality of image blocks, and calculating binarization threshold values of the plurality of image blocks respectively; carrying out interpolation calculation on the binarization threshold values of the plurality of image blocks respectively through a preset interpolation formula to obtain a binarization threshold value of each row or a binarization threshold value of each line of the plurality of image blocks; and carrying out binarization on the image blocks according to the binarization threshold value of each row or the binarization threshold value of each line of the plurality of image blocks to obtain corresponding binary images. According to the technical scheme, the binarization threshold value is set for each line or each row according to the preset interpolation formula, and pixel points are subjected to binarization according to the binarization threshold value of the line or row, so that a better binarization effect can be ensured; and meanwhile, the binarization threshold values cannot be calculated pixel point by pixel point, thereby reducing calculation amount, saving calculation time and improving binarization efficiency.

Description

technical field [0001] Embodiments of the present invention relate to image processing technologies, and in particular to an image binarization method and device. Background technique [0002] Banknote identification or counterfeiting generally adopts optical character recognition technology, and image binarization is an important step in optical character recognition. To perform image binarization, it is necessary to calculate the binarization threshold, and set the pixel gray value in the image to 0 or 255 according to the threshold, so as to obtain an image with only black and white visual effects. At present, there are many methods for calculating the binarization threshold, which can be divided into global binarization methods and local binarization methods. [0003] The global method determines a threshold according to the image histogram and gray space distribution. Commonly used global methods include average gray level method, maximum inter-class variance method (a...

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): G07D7/20G06K9/38
CPCG07D7/2016G06V10/28
Inventor 唐辉平
Owner SHENZHEN YIHUA COMP
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