A character boundary determination method and device
A character boundary and determination method technology, applied in the field of character recognition, can solve the problem of low time complexity, achieve low time complexity, simple method, and solve the effect of boundary positioning
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] figure 1 It is a flowchart of the character boundary determination method provided by the first embodiment of the present invention. This embodiment can be applied to the situation where there is a small smudge on the character picture and the smudge does not affect the character recognition. The method can be implemented by the character boundary determination device Execution, the character boundary determination device may be an electronic device with computing function and image processing function. Such as figure 1 As shown, the method for determining the character boundary includes the following steps S110 to S130.
[0022] Step S110, for the character grayscale image, calculate the grayscale difference of adjacent rows and the grayscale difference of adjacent columns.
[0023] In this step, the character grayscale image can be obtained by converting a color image into a grayscale image, for example, a grayscale image of the serial number of a banknote, a grayscale ima...
Embodiment 2
[0033] On the basis of the first embodiment above, this embodiment provides a preferred embodiment for calculating the grayscale difference of adjacent lines, and determining the upper boundary and the lower boundary of the character according to the grayscale difference of adjacent lines and the preset character height.
[0034] In this embodiment, the grayscale difference of adjacent rows can be calculated in the following ways:
[0035] (1) Calculate the gray difference between the next line and the current line line by line. Among them, the grayscale difference can be calculated row by row from top to bottom. The gray value difference between the next line and the current line refers to the gray value of the next line minus the gray value of the current line.
[0036] (2) Calculate the gray difference between the current line and the next line line by line. Among them, the grayscale difference can be calculated row by row from top to bottom. The gray value difference between t...
Embodiment 3
[0049] On the basis of the first and second embodiments above, this embodiment provides a preferred embodiment for calculating the gray difference of neighboring columns, and determining the left and right boundaries of characters according to the gray difference of neighbors and the preset character width. .
[0050] In this embodiment, the grayscale difference of neighboring columns can be calculated in the following ways:
[0051] (1) Calculate the gray difference between the next column and the current column column by column. Among them, the grayscale difference can be calculated column by column from the front to the back. The gray value difference between the next column and the current column refers to the gray value of the next column minus the gray value of the current column.
[0052] (2) Calculate the gray difference between the current column and the next column column by column. Among them, the grayscale difference can be calculated column by column from the front to...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


