Image text broadcasting
AssigneeNextvpu (Shanghai) Co., Ltd.
InventorsXuanyang Feng, Haijiao Cai, Xinpeng Feng, Ji Zhou
Life of this patent
Estimating the term…
Abstract
An image text broadcasting method, an electronic device, and a storage medium are provided. The image text broadcasting method includes: receiving a specified broadcast indication; determining a current broadcast progress about broadcast data in response to the specified broadcast indication; acquiring a next piece of broadcast data from a first text according to the current broadcast progress and the specified broadcast indication, in which the first text is composed of text data recognized and stored for a text in a text area of an image.
Claims16
An image text broadcasting method, comprising:
- receiving a specified broadcast indication, wherein the specified broadcast indication is used for indicating that a user requires a broadcasting apparatus to broadcast specified data;
- determining a current broadcast progress about broadcast data in response to the specified broadcast indication;
- and
- acquiring a next piece of broadcast data from a first text according to the current broadcast progress and the specified broadcast indication, wherein the first text is composed of text data recognized and stored for a text in a text area of an image;
- the method further comprises:
- performing character recognition on a text line to be recognized in the text area of the image to obtain text data, and storing the text data of the text line in a first storage space as a line of data in the first text;
- storing the broadcast data in a third storage space;
- and
- storing association information for the broadcast data in a second storage space, wherein the association information is used for making the broadcast data in the third storage space positionally correspond to corresponding data in the first text in the first storage space,
- wherein the association information for the broadcast data comprises at least:
- a position, in the first text, of each line of data in the corresponding data positionally corresponding to the broadcast data;
- and
- a cut-off proportion in the corresponding data for each line of data in the corresponding data,
- wherein the cut-off proportion in the corresponding data for each line of data in the corresponding data is determined based on a proportion of a number of characters from a start line of data in the corresponding data to the line of data to a total number of characters of the corresponding data.
An electronic device, comprising:
- a processor;
- and
- a memory storing a program, the program comprising instructions that, when executed by the processor, cause the electronic device to:
- receive a specified broadcast indication, wherein the specified broadcast indication is used for indicating that a user requires the electronic device to broadcast specified data;
- determine a current broadcast progress about broadcast data in response to the specified broadcast indication;
- and
- acquire a next piece of broadcast data from a first text according to the current broadcast progress and the specified broadcast indication, wherein the first text is composed of text data recognized and stored for a text in a text area of an image;
- the instructions, when executed by the processor, further cause the electronic device to:
- perform character recognition on a text line to be recognized in the text area of the image to obtain text data, and store the text data of the text line in a first storage space as a line of data in the first text;
- store the broadcast data in a third storage space;
- and
- store association information for the broadcast data in a second storage space, wherein the association information is used for making the broadcast data in the third storage space positionally correspond to corresponding data in the first text in the first storage space,
- wherein the association information for the broadcast data comprises at least:
- a position, in the first text, of each line of data in the corresponding data positionally corresponding to the broadcast data;
- and
- a cut-off proportion in the corresponding data for each line of data in the corresponding data,
- wherein the cut-off proportion in the corresponding data for each line of data in the corresponding data is determined based on a proportion of a number of characters from a start line of data in the corresponding data to the line of data to a total number of characters of the corresponding data.
A non-transitory computer-readable storage medium storing a program, the program comprising instructions that, when executed by a processor of an electronic device, cause the electronic device to:
- receive a specified broadcast indication, wherein the specified broadcast indication is used for indicating that a user requires the electronic device to broadcast specified data;
- determine a current broadcast progress about broadcast data in response to the specified broadcast indication;
- and
- acquire a next piece of broadcast data from a first text according to the current broadcast progress and the specified broadcast indication, wherein the first text is composed of text data recognized and stored for a text in a text area of an image;
- the instructions, when executed by the processor, further cause the electronic device to:
- perform character recognition on a text line to be recognized in the text area of the image to obtain text data, and store the text data of the text line in a first storage space as a line of data in the first text;
- store the broadcast data in a third storage space;
- and
- store association information for the broadcast data in a second storage space, wherein the association information is used for making the broadcast data in the third storage space positionally correspond to corresponding data in the first text in the first storage space,
- wherein the association information for the broadcast data comprises at least:
- a position, in the first text, of each line of data in the corresponding data positionally corresponding to the broadcast data;
- and
- a cut-off proportion in the corresponding data for each line of data in the corresponding data,
- wherein the cut-off proportion in the corresponding data for each line of data in the corresponding data is determined based on a proportion of a number of characters from a start line of data in the corresponding data to the line of data to a total number of characters of the corresponding data.
Dependencies are inferred from the claim text.