CPC G06F 40/58 (2020.01) [G06F 40/166 (2020.01); G06F 40/47 (2020.01); G06N 20/00 (2019.01); G06T 7/70 (2017.01); G06T 11/60 (2013.01); G06V 30/19173 (2022.01); G06V 30/40 (2022.01); G06V 30/413 (2022.01); G06N 3/08 (2013.01); G06T 2207/30176 (2013.01); G06V 30/10 (2022.01)] | 15 Claims |
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.
|