Patent ID: 11908219
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory is configured to store instructions executable by the at least one processor, when the instructions are executed by the at least one processor, the at least one processor is configured to:
recognize text items in an image through an optical character recognition (OCR) technology or through a text recognition model based on a convolutional neural network;
classify the text items into a first set of name text items and a second set of content text items based on semantics of the text items;
perform a matching operation between the first set and the second set based on a layout of the text items in the image, and determine matched name-content text items, wherein the matched name-content text items comprise a name text item in the first set and a content text item matching the name text item and in the second set; and
output the matched name-content text items;
wherein the at least one processor is further configured to:
determine a candidate set comprising content text items to be matched with a name text item to be matched in the first set;
determine a candidate content text item nearest the name text item to be matched from the candidate set; and
determine that the candidate content text item satisfying a matching condition matches the name text item to be matched;
wherein the matching condition comprises at least one of:
a positional relationship between the candidate content text item and the name text item to be matched conforming to an information arrangement of the image;
a distance between the candidate content text item and the name text item to be matched being less than a distance threshold; or
a difference between a reference angle and an intersection angle between a reference direction and a line connecting center points of the candidate content text item and the name text item to be matched being less than an angle threshold.