CN-121999083-A - Text display method and device
Abstract
The application discloses a text display method and a text display device, which belong to the technical field of image processing, wherein the method comprises the steps of displaying a first editing interface under the condition that at least one first image is acquired, wherein the first editing interface comprises at least one first image; and displaying the text generation content corresponding to at least one first image in a text format corresponding to each first image in response to the first input, wherein the text format is obtained based on at least one of the structural relationship of the text content of the first image and the display format of the text content of the first image.
Inventors
- JI XINGJIAN
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260116
Claims (10)
- 1. A text display method, characterized by being applied to a first electronic device, the method comprising: Displaying a first editing interface under the condition that at least one first image is acquired, wherein the first editing interface comprises the at least one first image; Receiving a first input to the first editing interface; And responding to the first input, displaying text generation content corresponding to the at least one first image by adopting a text format corresponding to each first image, wherein the text format is obtained based on at least one of the structural relation of the text content of the first image and the display format of the text content of the first image.
- 2. The method of claim 1, wherein the receiving a first input to the first editing interface comprises: receiving editing input to the at least one first image, the editing input comprising at least one of an image deletion input, a sequence adjustment input, an image addition input, a content modification input; The responding to the first input, adopting a text format corresponding to each first image, displaying text generation content corresponding to at least one first image, and comprising the following steps: Responding to the editing input, performing editing operation on the at least one first image according to the mode corresponding to the editing input, and displaying text generation content corresponding to the at least one first image after editing by adopting a text format corresponding to each first image.
- 3. The method of claim 2, wherein the editing input comprises a content modification input, the editing input comprising a first sub-input, a second sub-input, and a third sub-input; the receiving edit input to the at least one first image comprises: receiving the first sub-input to a second image of the at least one first image; Responding to the first sub-input, displaying a second editing interface, wherein the second editing interface comprises the second image and a content comparison control, and the content comparison control comprises at least one of an overlapping comparison control and a split screen comparison control; receiving the second sub-input to the content comparison control; responding to the second sub-input, and displaying text generation content of the second image according to a display mode corresponding to the content comparison control selected by the second sub-input; Receiving the third sub-input of text-generating content for the second image; the responding to the editing input carries out editing operation on the at least one first image according to the mode corresponding to the editing input, and the method comprises the following steps: and in response to the third sub-input, performing a content modification operation on the text generation content of the second image.
- 4. The method according to claim 1, wherein the method further comprises: Shooting to obtain the at least one first image through the shooting preview interface under the condition of displaying the shooting preview interface; Or alternatively And receiving a text generation instruction from the second electronic device, wherein the text generation instruction comprises the at least one first image, and the text generation instruction is used for indicating text generation content of the generated image.
- 5. The method of claim 4, wherein displaying the first editing interface if at least one first image is acquired comprises: Displaying a thumbnail image identifier corresponding to the at least one first image under the condition that the at least one first image is obtained through shooting; receiving a second input of the thumbnail image identification; The first editing interface is displayed in response to the second input.
- 6. A text display device is characterized by comprising a display module and a receiving module; the display module is used for displaying a first editing interface under the condition that at least one first image is acquired, wherein the first editing interface comprises the at least one first image; The receiving module is used for receiving a first input of the first editing interface displayed by the display module; The display module is further configured to display text generation content corresponding to the at least one first image in a text format corresponding to each first image in response to the first input received by the receiving module, where the text format is obtained based on at least one of a structural relationship of text content of the first image and a display format of text content of the first image.
- 7. The apparatus of claim 6, wherein the receiving module is configured to receive editing input for the at least one first image, the editing input including at least one of an image deletion input, a sequence adjustment input, an image addition input, a content modification input; the device also comprises an editing module; the editing module is used for responding to the editing input received by the receiving module and editing the at least one first image in a mode corresponding to the editing input; The display module is specifically configured to display the text generated content corresponding to the at least one first image after editing, which is obtained by the editing module, in a text format corresponding to each first image.
- 8. The apparatus of claim 7, wherein the edit input comprises a content modification input, the edit input comprising a first sub-input, a second sub-input, and a third sub-input; The receiving module is specifically configured to receive the first sub-input of a second image in the at least one first image; The display module is specifically configured to respond to the first sub-input received by the receiving module, and display a second editing interface, where the second editing interface includes the second image and a content comparison control, and the content comparison control includes at least one of an overlap comparison control and a split screen comparison control; The receiving module is further configured to receive the second sub-input of the content comparison control displayed by the display module; The display module is further configured to display text generation content of the second image according to a display mode corresponding to the content comparison control selected by the second sub-input in response to the second sub-input received by the receiving module; The receiving module is further configured to receive the third sub-input of text generation content of the second image displayed by the display module; The editing module is specifically configured to perform a content modification operation on the text generation content of the second image in response to the third sub-input received by the receiving module.
- 9. The apparatus of claim 6, further comprising a camera module; the shooting module is used for shooting through the shooting preview interface to obtain the at least one first image under the condition that the shooting preview interface is displayed; Or alternatively The receiving module is further configured to receive a text generation instruction from the second electronic device, where the text generation instruction includes the at least one first image, and the text generation instruction is used to instruct generation of text generation content of the image.
- 10. The device according to claim 9, wherein the display module is specifically configured to display a thumbnail image identifier corresponding to the at least one first image when the at least one first image is obtained by capturing; the receiving module is specifically configured to receive a second input of the thumbnail image identifier displayed by the display module; The display module is further configured to display the first editing interface in response to the second input received by the receiving module.
Description
Text display method and device Technical Field The application belongs to the technical field of image processing, and particularly relates to a text display method and device. Background In general, when a user needs to acquire text contained in an image, for example, in a case where the user needs to edit a corresponding document according to a handwritten work record, the user may photograph the paper work record through an electronic device, so that the electronic device may perform processing based on the photographed image to acquire text content contained in the image. In particular, the electronic device may scan text outlines in the image, analyze font structures, through optical character recognition (Optical Character Recognition, OCR) techniques, to determine text content contained in the image, and convert it to editable text. However, in the above method, the electronic device generally simply extracts text from the image, that is, the text acquired and displayed by the electronic device may not meet the actual needs of the user. The user still needs to manually edit the text generated by the extraction. The electronic device is low in efficiency and flexibility in generating and displaying text according to the image. Disclosure of Invention The embodiment of the application aims to provide a text display method and a text display device, which can improve the efficiency and flexibility of generating and displaying texts according to images by electronic equipment. In a first aspect, an embodiment of the application provides a text display method, which comprises the steps of displaying a first editing interface under the condition that at least one first image is acquired, wherein the first editing interface comprises at least one first image, receiving first input of the first editing interface, responding to the first input, and displaying text generation content corresponding to at least one first image in a text format corresponding to each first image, wherein the text format is obtained based on at least one of the structural relation of the text content of the first image and the display format of the text content of the first image. In a second aspect, an embodiment of the application provides a text display device, which comprises a display module and a receiving module, wherein the display module is used for displaying a first editing interface when at least one first image is acquired, the first editing interface comprises at least one first image, the receiving module is used for receiving first input of the first editing interface displayed by the display module, and the display module is further used for responding to the first input received by the receiving module and displaying text generation content corresponding to at least one first image in a text format corresponding to each first image, wherein the text format is obtained based on at least one of structural relation of the text content of the first image and the display format of the text content of the first image. In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect. In a sixth aspect, embodiments of the present application provide a computer program/program product stored in a storage medium, the program/program product being executable by at least one processor to implement the method according to the first aspect. In the embodiment of the application, under the condition that at least one first image is acquired, a first editing interface is displayed, the first editing interface comprises at least one first image, first input to the first editing interface is received, text generated content corresponding to at least one first image is displayed by adopting a text format corresponding to each first image in response to the first input, and the text format is obtained based on at least one of the structural relation of the text content of the first image and the display format of the text content of the first image. In the scheme, the first electronic device can display the text in at least one first image by adopting the text format corresponding to each first image, namely, the first electronic device can displa