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

Claim 0:
1. A method for translating words in a picture, comprising:
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 after obtaining the at least one text line, the method further comprises:
acquiring position information of words corresponding to each of the at least one text line;
wherein after obtaining the at least one text paragraph, the method further comprises:
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 replacing the words in the target picture with the at least one target text paragraph comprises:
erasing the words in the target picture, for the at least one text paragraph, typesetting a translation result of the at least one text paragraph according to position information of words corresponding to the at least one text paragraph, and embedding a typesetting result in the target picture according to the position information of words corresponding to the at least one text Paragraph.