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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com