US 12,236,697 B2
Method of identifying characters in images, electronic device, and storage medium
Cheng-Feng Wang, Kaohsiung (TW); Li-Che Lin, Kaohsiung (TW); and Hui-Xian Yang, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on May 18, 2022, as Appl. No. 17/747,136.
Claims priority of application No. 202110833297.X (CN), filed on Jul. 22, 2021.
Prior Publication US 2023/0023611 A1, Jan. 26, 2023
Int. Cl. G06V 30/12 (2022.01); G06T 5/70 (2024.01); G06V 30/148 (2022.01); G06V 30/18 (2022.01)
CPC G06V 30/1801 (2022.01) [G06T 5/70 (2024.01); G06V 30/12 (2022.01); G06V 30/15 (2022.01)] 17 Claims
OG exemplary drawing
 
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.