Patent ID: 11954455
Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
6. An electronic device, comprising:
at least one processor, and
a memory, which is configured to store an executable instruction which, when executed by the at least one processor, causes the electronic device to implement:
recognizing words embedded in a target picture to obtain at least one text line, wherein each of at least one text line corresponds to one line of words;
performing paragraph combination on the at least one text line to obtain at least one text paragraph;
translating the at least one text paragraph into at least one target text paragraph in a specified language; and
replacing the words in the target picture with the at least one target text paragraph;
wherein the executable instruction causes the electronic device to further implement:
acquiring position information of words corresponding to each of the at least one text line;
wherein the executable instruction causes the electronic device to further implement:
after obtaining the at least one text paragraph, for any text paragraph of the at least one text paragraph, determining position information of words corresponding to the text paragraph in the picture according to position information of words corresponding to text lines corresponding to the text paragraph in the picture; and
wherein the executable instruction causes the electronic device to implement replacing the words in the target picture with the at least one target text paragraph by:
erasing the words in the target picture, typesetting the at least one target text paragraph according to position information of words corresponding to each of the at least one text paragraph, and embedding the typeset at least one target text paragraph in the target picture according to the position information of words corresponding to each of the at least one text paragraph.