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

Claim 10:
11. A non-transitory computer-readable storage medium storing therein a computer instruction, wherein the computer instruction is executed by a computer so as to implement a text recognition method, comprising:
acquiring an image comprising text information, the text information comprising M characters, M being a positive integer greater than 1;
performing text recognition on the image to acquire character information about the M characters;
recognizing reading direction information about each character in accordance with the character information about the M characters by using a Graph Neural Network, the reading direction information being used to indicate a next character corresponding to a current character in a semantic reading order, wherein the semantic reading order refers to a reading order in accordance with text semantics; and
ranking the M characters in accordance with the reading direction information about the M characters to acquire a text recognition result of the text information,
wherein the character information comprises character position information, wherein prior to recognizing the reading direction information about each character in accordance with the character information about the M characters, the text recognition method further comprises:
dividing the image into at least two image blocks in accordance with the character position information about the M characters, and the at least two image blocks comprise the M characters,
wherein the recognizing the reading direction information about each character in accordance with the character information about the M character comprises:
determining the reading direction information about a target character in a target image block in accordance with character information about the target character in the target image block, and the target image block is an image block comprising at least two characters in the at least two image blocks,
wherein the determining the reading direction information about the target character in the target image block in accordance with the character information about the target character in the target image block comprise:
creating a node corresponding to each target character in the target image block, and acquiring node information about each target character, wherein the node information comprises the character information;
acquiring edge connection information about each node, the edge connection information representing a connection relation between the nodes; and
determining the reading direction information about the target character in the target image block in accordance with the acquired node information and the acquired edge connection information.