US 11,810,384 B2
Method and apparatus for recognizing text content and electronic device
Shanshan Liu, Beijing (CN); Chengquan Zhang, Beijing (CN); Xuan Li, Beijing (CN); Mengyi En, Beijing (CN); Hailun Xu, Beijing (CN); and Xiaoqiang Zhang, Beijing (CN)
Assigned to Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed by Beijing Baidu Netcom Science and Technology Co., Ltd., Beijing (CN)
Filed on Feb. 9, 2021, as Appl. No. 17/172,031.
Claims priority of application No. 202010349150.9 (CN), filed on Apr. 28, 2020.
Prior Publication US 2021/0334602 A1, Oct. 28, 2021
Int. Cl. G06V 30/414 (2022.01); G06V 30/24 (2022.01); G06F 18/21 (2023.01); G06F 18/214 (2023.01)
CPC G06V 30/414 (2022.01) [G06F 18/214 (2023.01); G06F 18/2178 (2023.01); G06V 30/2504 (2022.01); G06V 2201/02 (2022.01)] 17 Claims
OG exemplary drawing
 
1. A method for recognizing a text content, applied to an electronic device, comprising:
acquiring a dial picture;
detecting at least one text centerline and a bounding box corresponding to each text centerline in the dial picture; and
recognizing a text content in each line of text in the dial picture based on the at least one text centerline and the bounding box corresponding to each text centerline;
wherein before the detection of the at least one text centerline and the bounding box corresponding to each text centerline in the dial picture, the method further comprises:
pre-processing the dial picture, which comprises cropping the dial picture to a preset size, and performing mean subtraction processing on the dial picture.