Character boundary determining method and apparatus
A character boundary and determining method technology, applied in the field of character recognition, can solve problems such as low time complexity, and achieve the effects of low time complexity, solving the influence of boundary positioning, and simple method
- 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 flow chart of the character boundary determination method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where there is a small piece of stain on the character picture and the stain does not affect character recognition. The method can be determined by the character boundary determination device For execution, the character boundary determination device may be an electronic device with calculation function and image processing function. Such as figure 1 As shown, the character boundary determination method includes the following steps S110 to S130.
[0022] Step S110, for the character grayscale image, calculate the grayscale difference between adjacent rows and 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 a serial number of a banknote, a grayscale image of a license plate, a...
Embodiment 2
[0033] On the basis of the first embodiment above, this embodiment provides a preferred implementation manner of calculating the grayscale difference of adjacent lines, and determining the upper boundary and lower boundary of a character according to the grayscale difference of adjacent lines and the preset character height.
[0034] In this embodiment, the adjacent row grayscale difference can be calculated in the following ways:
[0035] (1) Calculate the gray level difference between the next line and the current line line by line. Wherein, gray scale difference values may be calculated line by line from top to bottom. The grayscale difference between the next row and the current row refers to the grayscale value of the next row minus the grayscale value of the current row.
[0036] (2) Calculate the gray level difference between the current line and the next line line by line. Wherein, gray scale difference values may be calculated line by line from top to bottom. T...
Embodiment 3
[0049] On the basis of the first and second embodiments above, this embodiment provides a preferred implementation method for calculating the grayscale difference between adjacent columns and determining the left boundary and right boundary of a character according to the grayscale difference between adjacent columns and the preset character width .
[0050] In this embodiment, the gray value difference between adjacent columns can be calculated in the following ways:
[0051] (1) Calculate the gray level difference between the next column and the current column column by column. Wherein, the gray difference values may be calculated column by column from front to back. The grayscale difference between the next column and the current column refers to the grayscale value of the next column minus the grayscale value of the current column.
[0052] (2) Calculate the gray level difference between the current column and the next column column by column. Wherein, the gray differ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


