CPC G06V 30/1801 (2022.01) [G06T 5/70 (2024.01); G06V 30/12 (2022.01); G06V 30/15 (2022.01)] | 17 Claims |
1. A method of identifying characters in images, comprising:
extracting features of an image;
performing enhancement processing on the image according to the extracted features to obtain an enhanced image;
detecting closed edges of characters in the enhanced image;
determining first rectangular outlines of the characters in the enhanced image according to the detected closed edges;
correcting the first rectangular outlines to obtain second rectangular outlines, comprising: calculating an average area of the first rectangular outlines, an average horizontal spacing of the first rectangular outlines, and an average vertical spacing of the first rectangular outlines; correcting the first rectangular outlines according to the average area, the average horizontal spacing, and the average vertical spacing to obtain the second rectangular outlines; and
cropping characters from the image according to the second rectangular outlines.
|