CN113377271A - Text acquisition method and device, computer equipment and medium - Google Patents

Text acquisition method and device, computer equipment and medium Download PDF

Info

Publication number
CN113377271A
CN113377271A CN202110604646.0A CN202110604646A CN113377271A CN 113377271 A CN113377271 A CN 113377271A CN 202110604646 A CN202110604646 A CN 202110604646A CN 113377271 A CN113377271 A CN 113377271A
Authority
CN
China
Prior art keywords
text
target
comment
picture
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110604646.0A
Other languages
Chinese (zh)
Inventor
宋歌
杨秋
李龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110604646.0A priority Critical patent/CN113377271A/en
Publication of CN113377271A publication Critical patent/CN113377271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5846Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a text acquisition method, a text acquisition device, computer equipment and a medium, belonging to the technical field of internet, wherein the method comprises the following steps: and in response to the triggering operation of the region where the target text in the target picture is located, displaying the target text comment on the target picture, and in response to the copying operation of the target text comment, copying the target text comment. In the embodiment of the disclosure, the target text comment including the target text can be triggered and displayed by triggering the text region in the picture, and then the text comment is copied based on the target text comment, so that the text in the picture can be acquired without searching in multiple comments by a user, an operation path for acquiring the text is shortened, and efficiency for acquiring the text in the picture is improved.

Description

Text acquisition method and device, computer equipment and medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a text acquisition method and apparatus, a computer device, and a medium.
Background
In the internet, a user can browse a picture work published by a publisher, and the picture work is a picture work containing text. The picture works are provided with a comment function, part of publishers or users can actively extract texts in the picture works and publish the extracted texts as comments of the picture works, and at the moment, text comments are displayed in a comment list of the picture works. Furthermore, when other users want to acquire the text in the picture, the comments corresponding to the text in the picture can be found in the comment list of the picture, and when the comments corresponding to the text in the picture are found, the comments are copied through copying operation, that is, the text in the picture is acquired.
In the above technology, when the comment list includes a plurality of comments, the user needs to perform multiple operations in the comment list to find the corresponding comment, the operation path for text acquisition is long, and the efficiency for acquiring the text in the picture is reduced.
Disclosure of Invention
The present disclosure provides a text acquisition method, apparatus, computer device, and medium, which can improve efficiency of acquiring a text in a picture. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a text acquisition method, including:
displaying a target picture, wherein the target picture is a picture containing a target text;
responding to a trigger operation of a region where the target text is located, and displaying a text display layer on the upper layer of the target picture, wherein the text display layer is used for displaying a target text comment, and the target text comment comprises the target text;
in response to a copy operation on the target text comment, the target text comment is copied.
In the embodiment of the disclosure, the target text comment including the target text can be triggered and displayed by triggering the text region in the picture, and then the text comment is copied based on the target text comment, so that the text in the picture can be acquired without searching in multiple comments by a user, an operation path for acquiring the text is shortened, and efficiency for acquiring the text in the picture is improved.
In some embodiments, displaying a text display layer on top of the target picture, the text display layer for displaying target text comments comprises:
displaying a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment;
or the like, or, alternatively,
and displaying a target popup on the upper layer of the target picture, wherein the target popup is used for displaying the target text comment.
In the embodiment of the disclosure, a display mode of floating layer display or pop-up window display is provided, the display style of the target text comment is enriched, and the display effect of the target text comment can be ensured.
In some embodiments, in response to a trigger operation on the area where the target text is located, presenting a text display layer on an upper layer of the target picture includes:
responding to a trigger operation of the region where the target text is located, obtaining a text comment carrying a target label from at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture, wherein the target label is used for indicating that the text comment comprises the target text.
In the embodiment of the disclosure, the text comment can be quickly acquired by acquiring the text comment carrying the target tag, and the efficiency of acquiring the text is improved.
In some embodiments, the text comment carrying the target tag is a target text comment generated after an editing operation is performed on the text recognition result of the target picture by any account, where the editing operation is used to enable the target text comment generated after editing to include the target text.
In the embodiment of the disclosure, the text with high accuracy can be obtained by obtaining the text comment carrying the target tag, and the accuracy of obtaining the text is improved.
In some embodiments, displaying a text display layer on the upper layer of the target picture comprises:
and displaying the target text comment in a text display layer on the upper layer of the target picture, and displaying the account information of any account and the target label.
In the embodiment of the disclosure, the amount of information displayed on the text display layer is increased by displaying the account information and the target label, so that a user can timely obtain the relevant information of the target text comment.
In some embodiments, in response to a copy operation on the target text comment, the method further comprises:
and receiving and displaying praise prompt information, wherein the praise prompt information is used for prompting that the target text comment is copied and praise.
In the embodiment of the disclosure, the amount of the displayed information is increased by displaying the praise prompt information, so that the user can timely know the copy condition and the praise condition of the text.
In some embodiments, after receiving and presenting the praise notification, the method further comprises:
generating a first message corresponding to the praise prompt message;
and sending the first message to any account for editing the text recognition result of the target picture, wherein the first message is used for informing any account of the target text comment triggering approval operation.
In the embodiment of the disclosure, after the text is copied, a first message is sent to any account for editing the text recognition result of the target picture, that is, the first message is sent to the publisher of the target text comment to prompt that the target text comment is praised, so that the enthusiasm of the user for editing the text and then publishing the comment is improved.
In some embodiments, presenting the target picture includes any one of:
responding to the searching operation of the target picture, and displaying the target picture;
and displaying the target picture in response to the viewing operation of the target picture.
According to the embodiment of the disclosure, the display target picture can be rapidly triggered through searching operation or viewing operation, and the human-computer interaction efficiency is improved.
In some embodiments, the method further comprises:
if the target text comment does not exist, displaying a text layer on the upper layer of the target picture, wherein the text layer is used for displaying a first text, and the first text is a text recognition result of the target picture;
in response to an editing operation on the first text in the text proof layer, displaying a second text, wherein the second text comprises the target text;
based on the second text, a step of copying the text based on the copy operation is performed.
In the embodiment of the disclosure, when no target text in the target picture exists in the comment, the text proofreading layer is displayed, so that the user is guided to proofread and edit the text recognized by the text, the user can proofread the text recognized by the text through editing operation to obtain the proofread text, and then the text is copied based on the proofread text, and the accuracy of text acquisition can be ensured to a greater extent through manual proofreading.
In some embodiments, presenting the second text in response to the editing operation on the first text in the text proof layer comprises:
responding to a trigger operation of a first text in the text proofreading layer, and displaying an editing panel;
and displaying the second text in response to the editing operation based on the editing panel.
In the embodiment of the disclosure, the editing panel is displayed, so that a user can conveniently correct the first text based on the editing panel, thereby obtaining a manually corrected text, and ensuring the accuracy of the obtained text to a greater extent.
In some embodiments, the second text corresponds to a first control, and the first control is used for triggering the copying of the second text;
the step of executing copy of the text based on the copy operation based on the second text comprises:
and copying the second text in response to the triggering operation of the first control.
In the embodiment of the disclosure, by setting the control with the copy function, the user can copy the text by triggering the control, and the man-machine interaction efficiency is improved.
In some embodiments, the first control is further configured to trigger the publishing of the second text;
the method further comprises the following steps:
and in response to the triggering operation of the first control, publishing the second text as the text comment of the target picture.
In the embodiment of the disclosure, text comments can be published while text is copied, and the flexibility of interaction is improved.
In some embodiments, after posting the second text as a text comment of the target picture, the method further comprises:
and displaying comment success information, wherein the comment success information is used for prompting that the second text is published.
In the embodiment of the disclosure, the displayed information amount is increased, so that a user can timely know the publishing condition of the comment.
In some embodiments, after posting the second text as a text comment of the target picture, the method further comprises:
and receiving and displaying a second message, wherein the second message is used for informing the terminal that the account is logged in that the second text triggers the operation of praise.
In the embodiment of the disclosure, after the text published by the account is copied by other accounts, a second message is sent to the account to prompt that the text comments published by the other accounts are praised, so that the enthusiasm of a user for editing the text and then publishing the comments is improved.
In some embodiments, presenting the text proof layer on the upper layer of the target picture comprises:
and displaying the first text in a text layer of the upper layer of the target picture, and displaying editing prompt information and account information of a terminal logged account, wherein the editing prompt information is used for prompting editing based on the first text to obtain the second text.
In the embodiment of the disclosure, the information amount displayed by the text proof layer is increased by displaying the editing prompt information and the account information.
In some embodiments, the target text comment corresponds to a second control, and the second control is used for triggering the target text comment to be copied;
in response to the copy operation on the target text comment, copying the target text comment includes:
and copying the target text comment in response to the triggering operation of the second control.
In the embodiment of the disclosure, by setting the control with the copy function, the user can copy the text by triggering the control, and the man-machine interaction efficiency is improved.
In some embodiments, the second control is further configured to trigger praise on the target text comment;
the method further comprises the following steps:
and in response to the triggering operation of the second control, showing an approval control of the target text comment as a target state, wherein the target state is used for indicating that the target text comment is copied and approved.
In the embodiment of the disclosure, praise can be given to the user corresponding to the text comment while the text is copied, the interaction and emotional communication between the text creator and the text acquirer are enhanced, and the social ecology and the circle-level culture based on the picture works are protected.
In some embodiments, the method further comprises:
and in response to the triggering operation of the second control, displaying a target animation, wherein the target animation is used for indicating that the target text comment is copied and is approved.
In the embodiment of the disclosure, the information amount displayed on the interface is increased by displaying the praise action, and the interaction of the user can be promoted.
In some embodiments, the target picture is any one of a plurality of pictures included in the picture work, the plurality of pictures are all pictures containing texts, and an interface where the target picture is located includes a comment viewing control;
the method further comprises the following steps:
responding to the trigger operation of the comment viewing control, and displaying a comment list page, wherein the comment list page comprises a full-selection control and target text comments corresponding to the multiple pictures;
and in response to the triggering operation of the full selection control, copying the target text comments corresponding to the plurality of pictures.
In the embodiment of the disclosure, by setting the full selection control, a user can copy texts contained in a plurality of target text comments by triggering the full selection control, and thus texts in a plurality of pictures can be obtained, and the human-computer interaction efficiency is improved.
In some embodiments, presenting the comment list page includes:
and displaying the target text comment corresponding to the target picture as a selected state in the comment list page.
In the embodiment of the disclosure, the target text comment corresponding to the currently displayed picture is preferentially selected, so that the selected text comment is a text comment which is interested by the user, and the user can be effectively promoted to perform a subsequent text acquisition process.
In some embodiments, in response to a trigger operation on the area where the target text is located, presenting a text display layer on an upper layer of the target picture includes:
responding to a trigger operation of a region where the target text is located, performing text recognition on the target picture to obtain a first text, taking a text comment matched with the first text in at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture;
and responding to a triggering operation of the area where the target text is located, acquiring the target text comment which is successfully matched in advance, and displaying a text display layer on the upper layer of the target picture, wherein the target text comment which is successfully matched in advance refers to a text comment which is matched with the first text in at least one text comment of the target picture, and the first text is a text recognition result of the target picture.
In the embodiment of the disclosure, when a user triggers a text region in a picture, the terminal is triggered to execute the processes of text recognition and text comparison, so that a target text comment can be quickly determined, and the efficiency of obtaining the target text comment is improved; when a user triggers a text area in a picture, the triggering terminal executes a process of judging whether a text comment which is successfully matched in advance exists, so that a target text comment can be further quickly determined, and the efficiency of obtaining the target text comment is improved.
In some embodiments, regarding a text comment matching the first text in the at least one text comment of the target picture as the target text comment includes:
respectively acquiring the similarity between the first text and the text contained in the at least one text comment;
and determining the target text comment based on the text comment of which the similarity meets the target condition.
In the embodiment of the disclosure, whether the similarity meets the target condition is judged based on the similarity between the texts, the text comment matched with the first text can be quickly obtained, and the efficiency of obtaining the target text comment is improved.
In some embodiments, the target text comment is determined based on the text comments whose similarity satisfies the target condition, including any one of:
in response to the existence of one text comment of which the similarity meets the target condition, determining the target text comment according to the text comment of which the similarity meets the target condition;
and in response to the existence of a plurality of text comments with similarity meeting the target condition, determining the text comment with the highest praise number as the target text comment.
In the embodiment of the disclosure, when a successfully matched text comment exists, the successfully matched text comment is directly used as a target text comment; when a plurality of successfully matched text comments exist, the text comment with the most praise is preferentially selected, and the praise number can reflect the popularity of the text comment, and the popularity of the text comment is possibly related to whether the text matching is successful or not, so that the text comment with the most praise is selected, and the accuracy of the text matching can be ensured to a greater extent.
According to a second aspect of the embodiments of the present disclosure, there is provided a text acquisition apparatus including:
the picture display unit is configured to display a target picture, wherein the target picture is a picture containing a target text;
the comment display unit is configured to execute a triggering operation on the area where the target text is located, and display a text display layer on the upper layer of the target picture, wherein the text display layer is used for displaying a target text comment, and the target text comment comprises the target text;
a copying unit configured to perform copying of the target text comment in response to a copy operation on the target text comment.
In some embodiments, the comment presenting unit is configured to perform:
displaying a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment;
or the like, or, alternatively,
and displaying a target popup on the upper layer of the target picture, wherein the target popup is used for displaying the target text comment.
In some embodiments, the comment presenting unit is configured to perform:
responding to a trigger operation of the region where the target text is located, obtaining a text comment carrying a target label from at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture, wherein the target label is used for indicating that the text comment comprises the target text.
In some embodiments, the text comment carrying the target tag is a target text comment generated after an editing operation is performed on the text recognition result of the target picture by any account, where the editing operation is used to enable the target text comment generated after editing to include the target text.
In some embodiments, the comment presenting unit is configured to perform:
and displaying the target text comment in a text display layer on the upper layer of the target picture, and displaying the account information of any account and the target label.
In some embodiments, the apparatus further comprises:
and the information presentation unit is configured to receive and present praise prompt information, and the praise prompt information is used for prompting that the target text comment is copied and praise.
In some embodiments, the apparatus further comprises:
a generating unit configured to perform generating a first message corresponding to the approval prompt information;
and the sending unit is configured to execute sending the first message to any account which performs editing operation on the text recognition result of the target picture, wherein the first message is used for informing the any account of the target text comment trigger praise operation.
In some embodiments, the picture presentation unit is configured to perform any one of:
responding to the searching operation of the target picture, and displaying the target picture;
and displaying the target picture in response to the viewing operation of the target picture.
In some embodiments, the apparatus further comprises:
the layer display unit is configured to display a text proof layer on the upper layer of the target picture if the target text comment does not exist, wherein the text proof layer is used for displaying a first text, and the first text is a text recognition result of the target picture;
a text presentation unit configured to perform a presentation of a second text in response to an editing operation on the first text in the text proof layer, the second text including the target text;
the copying unit is further configured to perform the step of copying the text based on the copying operation based on the second text.
In some embodiments, the text presentation unit is configured to perform:
responding to a trigger operation of a first text in the text proofreading layer, and displaying an editing panel;
and displaying the second text in response to the editing operation based on the editing panel.
In some embodiments, the second text corresponds to a first control, and the first control is used for triggering the copying of the second text;
the copying unit is also configured to execute copying of the second text in response to a triggering operation of the first control.
In some embodiments, the first control is further configured to trigger the publishing of the second text;
the apparatus also includes a publication unit configured to perform:
and in response to the triggering operation of the first control, publishing the second text as the text comment of the target picture.
In some embodiments, the apparatus further comprises:
and the information display unit is configured to display comment success information, and the comment success information is used for prompting that the second text is published.
In some embodiments, the apparatus further comprises:
and the information display unit is configured to receive and display a second message, wherein the second message is used for informing the terminal that the account is logged in that the second text triggers the operation of approval.
In some embodiments, the layer presentation unit is configured to perform:
and displaying the first text in a text layer of the upper layer of the target picture, and displaying editing prompt information and account information of a terminal logged account, wherein the editing prompt information is used for prompting editing based on the first text to obtain the second text.
In some embodiments, the target text comment corresponds to a second control, and the second control is used for triggering the target text comment to be copied;
the copying unit is configured to execute a triggering operation of the second control and copy the target text comment.
In some embodiments, the second control is further configured to trigger praise on the target text comment;
the device further comprises a control showing unit, configured to perform, in response to a triggering operation on the second control, showing an approval control of the target text comment as a target state, where the target state is used to indicate that the target text comment has been copied and approved.
In some embodiments, the apparatus further comprises:
and the animation display unit is configured to execute a triggering operation responding to the second control, and display a target animation, wherein the target animation is used for indicating that the target text comment is copied and approved.
In some embodiments, the target picture is any one of a plurality of pictures included in the picture work, the plurality of pictures are all pictures containing texts, and an interface where the target picture is located includes a comment viewing control;
the device further comprises a page display unit, wherein the page display unit is configured to execute a triggering operation responding to the comment viewing control and display a comment list page, and the comment list page comprises a full-selection control and target text comments corresponding to the multiple pictures;
the copying unit is further configured to execute, in response to a triggering operation on the all-selection control, copying the target text comments corresponding to the plurality of pictures.
In some embodiments, the page presentation unit is configured to perform:
and displaying the target text comment corresponding to the target picture as a selected state in the comment list page.
In some embodiments, the comment presenting unit includes:
the first comment displaying subunit is configured to execute a triggering operation responding to the area where the target text is located, perform text recognition on the target picture to obtain a first text, use a text comment matched with the first text in at least one text comment of the target picture as the target text comment, and display a text display layer on the upper layer of the target picture;
and the second comment displaying subunit is configured to execute a triggering operation in response to the region where the target text is located, acquire the target text comment which is successfully matched in advance, and display a text display layer on the upper layer of the target picture, wherein the target text comment which is successfully matched in advance refers to a text comment which is matched with the first text in at least one text comment of the target picture, and the first text is a text recognition result of the target picture.
In some embodiments, the first comment presenting subunit includes:
an obtaining subunit, configured to perform obtaining similarities between the first text and texts included in the at least one text comment respectively;
and the determining subunit is configured to execute text comments with the similarity meeting the target condition, and determine the target text comment.
In some embodiments, the determining subunit is configured to perform any one of:
in response to the existence of one text comment of which the similarity meets the target condition, determining the target text comment according to the text comment of which the similarity meets the target condition;
and in response to the existence of a plurality of text comments with similarity meeting the target condition, determining the text comment with the highest praise number as the target text comment.
According to a third aspect of embodiments of the present disclosure, there is provided a computer apparatus comprising:
one or more processors;
a memory for storing the processor executable program code;
wherein the processor is configured to execute the program code to implement the text acquisition method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium including: the program code in the computer readable storage medium, when executed by a processor of a computer device, enables the computer device to perform the text acquisition method described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the text acquisition method described above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a diagram illustrating an implementation environment for a method for text retrieval in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a method of text acquisition in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of text acquisition in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating a target picture in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a target picture in accordance with an exemplary embodiment;
FIG. 6 is a diagram illustrating a target text comment, according to an illustrative embodiment;
FIG. 7 is a diagram illustrating a target animation according to an exemplary embodiment;
FIG. 8 is a diagram illustrating a text proof layer in accordance with an illustrative embodiment;
FIG. 9 is a schematic diagram illustrating an editing panel in accordance with an exemplary embodiment;
FIG. 10 is a schematic illustration of a review success information shown in accordance with an exemplary embodiment;
FIG. 11 is a schematic diagram illustrating a comment list page in accordance with an illustrative embodiment;
FIG. 12 is a diagram illustrating a copy success information, according to an example embodiment;
FIG. 13 is a block diagram illustrating a text acquisition device in accordance with an exemplary embodiment;
fig. 14 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The data to which the present disclosure relates may be data that is authorized by a user or sufficiently authorized by parties.
Fig. 1 is a schematic diagram of an implementation environment of a text acquisition method provided in an embodiment of the present disclosure, and referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 may be at least one of a smartphone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, a laptop portable computer, and the like. The terminal 101 has a communication function and can access a wired network or a wireless network. The terminal 101 may be generally referred to as one of a plurality of terminals, and the embodiment is only illustrated by the terminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer.
The terminal 101 may run various different types of applications, such as a live application, a social application, and the like. In some embodiments, the terminal 101 is configured to, in response to a trigger operation on an area where a target text in a target picture is located, present a target text comment on the target picture, and in response to a copy operation on the target text comment, copy the target text comment.
The server 102 may be an independent physical server, a server cluster or a distributed file system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like. The server 102 and the terminal 101 may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiment of the present disclosure. Alternatively, the number of the servers 102 may be more or less, and the embodiment of the disclosure does not limit this. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services.
The server 102 may be a background server for the application program run by the terminal 101. In some embodiments, the server 102 is configured to obtain a target text comment matched with a target text in a target picture based on a text comment display request of the terminal 101, and send the obtained target text comment to the terminal 101, so as to trigger the terminal 101 to display the target text comment.
Fig. 2 is a flowchart illustrating a text acquisition method according to an exemplary embodiment, which is performed by a terminal, as shown in fig. 2, and includes the following steps:
in step 201, the terminal displays a target picture, where the target picture is a picture containing a target text.
In step 202, in response to a trigger operation on a region where the target text is located, the terminal displays a text display layer on an upper layer of the target picture, where the text display layer is used to display a target text comment, and the target text comment includes the target text.
In step 203, the terminal copies the target text comment in response to a copy operation on the target text comment.
According to the technical scheme provided by the embodiment of the disclosure, the target text comment comprising the target text can be triggered and displayed through triggering operation on the text region in the picture, and then the text comment is copied based on the target text comment, so that the text in the picture can be acquired without searching in multiple comments by a user, the operation path for acquiring the text is shortened, and the efficiency for acquiring the text in the picture is improved.
In some embodiments, displaying a text display layer on top of the target picture, the text display layer for displaying target text comments comprises:
displaying a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment;
or the like, or, alternatively,
and displaying a target popup on the upper layer of the target picture, wherein the target popup is used for displaying the target text comment.
In some embodiments, in response to a trigger operation on the area where the target text is located, presenting a text display layer on an upper layer of the target picture includes:
responding to a trigger operation of the region where the target text is located, obtaining a text comment carrying a target label from at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture, wherein the target label is used for indicating that the text comment comprises the target text.
In some embodiments, the text comment carrying the target tag is a target text comment generated after an editing operation is performed on the text recognition result of the target picture by any account, where the editing operation is used to enable the target text comment generated after editing to include the target text.
In some embodiments, displaying a text display layer on the upper layer of the target picture comprises:
and displaying the target text comment in a text display layer on the upper layer of the target picture, and displaying the account information of any account and the target label.
In some embodiments, in response to a copy operation on the target text comment, the method further comprises:
and receiving and displaying praise prompt information, wherein the praise prompt information is used for prompting that the target text comment is copied and praise.
In some embodiments, after receiving and presenting the praise notification, the method further comprises:
generating a first message corresponding to the praise prompt message;
and sending the first message to any account for editing the text recognition result of the target picture, wherein the first message is used for informing any account of the target text comment triggering approval operation.
In some embodiments, presenting the target picture includes any one of:
responding to the searching operation of the target picture, and displaying the target picture;
and displaying the target picture in response to the viewing operation of the target picture.
In some embodiments, the method further comprises:
if the target text comment does not exist, displaying a text layer on the upper layer of the target picture, wherein the text layer is used for displaying a first text, and the first text is a text recognition result of the target picture;
in response to an editing operation on the first text in the text proof layer, displaying a second text, wherein the second text comprises the target text;
based on the second text, a step of copying the text based on the copy operation is performed.
In some embodiments, presenting the second text in response to the editing operation on the first text in the text proof layer comprises:
responding to a trigger operation of a first text in the text proofreading layer, and displaying an editing panel;
and displaying the second text in response to the editing operation based on the editing panel.
In some embodiments, the second text corresponds to a first control, and the first control is used for triggering the copying of the second text;
the step of executing copy of the text based on the copy operation based on the second text comprises:
and copying the second text in response to the triggering operation of the first control.
In some embodiments, the first control is further configured to trigger the publishing of the second text;
the method further comprises the following steps:
and in response to the triggering operation of the first control, publishing the second text as the text comment of the target picture.
In some embodiments, after posting the second text as a text comment of the target picture, the method further comprises:
and displaying comment success information, wherein the comment success information is used for prompting that the second text is published.
In some embodiments, after posting the second text as a text comment of the target picture, the method further comprises:
and receiving and displaying a second message, wherein the second message is used for informing the terminal that the account is logged in that the second text triggers the operation of praise.
In some embodiments, presenting the text proof layer on the upper layer of the target picture comprises:
and displaying the first text in a text layer of the upper layer of the target picture, and displaying editing prompt information and account information of a terminal logged account, wherein the editing prompt information is used for prompting editing based on the first text to obtain the second text.
In some embodiments, the target text comment corresponds to a second control, and the second control is used for triggering the target text comment to be copied;
in response to the copy operation on the target text comment, copying the target text comment includes:
and copying the target text comment in response to the triggering operation of the second control.
In some embodiments, the second control is further configured to trigger praise on the target text comment;
the method further comprises the following steps:
and in response to the triggering operation of the second control, showing an approval control of the target text comment as a target state, wherein the target state is used for indicating that the target text comment is copied and approved.
In some embodiments, the method further comprises:
and in response to the triggering operation of the second control, displaying a target animation, wherein the target animation is used for indicating that the target text comment is copied and is approved.
In some embodiments, the target picture is any one of a plurality of pictures included in the picture work, the plurality of pictures are all pictures containing texts, and an interface where the target picture is located includes a comment viewing control;
the method further comprises the following steps:
responding to the trigger operation of the comment viewing control, and displaying a comment list page, wherein the comment list page comprises a full-selection control and target text comments corresponding to the multiple pictures;
and in response to the triggering operation of the full selection control, copying the target text comments corresponding to the plurality of pictures.
In some embodiments, presenting the comment list page includes:
and displaying the target text comment corresponding to the target picture as a selected state in the comment list page.
In some embodiments, in response to a trigger operation on the area where the target text is located, presenting a text display layer on an upper layer of the target picture includes:
responding to a trigger operation of a region where the target text is located, performing text recognition on the target picture to obtain a first text, taking a text comment matched with the first text in at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture;
and responding to a triggering operation of the area where the target text is located, acquiring the target text comment which is successfully matched in advance, and displaying a text display layer on the upper layer of the target picture, wherein the target text comment which is successfully matched in advance refers to a text comment which is matched with the first text in at least one text comment of the target picture, and the first text is a text recognition result of the target picture.
In some embodiments, regarding a text comment matching the first text in the at least one text comment of the target picture as the target text comment includes:
respectively acquiring the similarity between the first text and the text contained in the at least one text comment;
and determining the target text comment based on the text comment of which the similarity meets the target condition.
In some embodiments, the target text comment is determined based on the text comments whose similarity satisfies the target condition, including any one of:
in response to the existence of one text comment of which the similarity meets the target condition, determining the target text comment according to the text comment of which the similarity meets the target condition;
and in response to the existence of a plurality of text comments with similarity meeting the target condition, determining the text comment with the highest praise number as the target text comment.
Fig. 2 is a basic flow chart of the present disclosure, and the following further explains the scheme provided by the present disclosure based on a specific implementation, and fig. 3 is a flow chart of a text acquisition method according to an exemplary embodiment, and referring to fig. 3, the method includes:
in step 301, the terminal displays a target picture, where the target picture is a picture containing a target text.
And the target picture is used for referring to a picture currently displayed by the terminal. Target text is used to refer to the text that the target picture contains. In the embodiment of the disclosure, the target picture is a picture with text. For example, the target picture may be a picture with text such as "new year pattern", "injury pattern", or "blessing words". In some embodiments, the target picture is in the form of a picture work. Optionally, the target picture is any one of a plurality of pictures included in the picture work.
In some embodiments, the terminal presents the target picture on a multimedia interface. Optionally, the multimedia interface is a work push page or a personal work page, where the work push page is used to display the pushed work, and the personal work page is used to display the work issued by the corresponding account.
Illustratively, fig. 4 is a schematic diagram illustrating a target picture according to an exemplary embodiment, referring to fig. 4, the target picture is shown on the multimedia interface illustrated in fig. 4, and the target picture contains target text. For example, the target text included in the target picture may be "all enthusiasm disappears in waiting and disappointment, without exception".
In an optional embodiment, the terminal presents the target picture in response to a search operation on the target picture. Illustratively, the terminal is provided with a picture search box (which may be understood as a production search box) in which the terminal presents a target picture in response to entering a keyword for the target picture. In another optional embodiment, the terminal responds to the viewing operation of the target picture and displays the target picture. Illustratively, the terminal displays thumbnails of a plurality of pictures in a work push page or a personal work page, and displays the target picture in response to a viewing operation of the thumbnail of the target picture. In the embodiment, the display target picture can be rapidly triggered through searching operation or viewing operation, so that the man-machine interaction efficiency is improved.
In an optional embodiment, the multimedia interface further displays associated information of the picture works to which the target picture belongs. Optionally, the associated information includes publisher information (such as an account number or a nickname) of the picture work, a publication scheme of the picture work, and the like. In an alternative embodiment, the multimedia interface further exhibits at least one interactive control for the pictorial work. Optionally, the at least one interaction control includes at least one of a focus control, a like control, a comment control, and a share control.
In some embodiments, the multimedia interface further displays a full screen control, and accordingly, the terminal responds to a trigger operation of the full screen control to display the target picture in a full screen display mode. Exemplarily, fig. 5 is a schematic diagram illustrating a target picture according to an exemplary embodiment, referring to fig. 5, fig. 5 shows the target picture in a full screen display.
In some embodiments, taking the example that the picture work includes a plurality of pictures, in the full-screen display mode, the terminal responds to the sliding operation based on the target picture to display the picture corresponding to the sliding operation. Alternatively, the sliding operation includes a left sliding operation and a right sliding operation, or the sliding operation includes an up sliding operation and a down sliding operation. For example, the terminal responds to a left slide operation (or a slide operation) based on the target picture, and shows a last picture of the target picture; and the terminal responds to the right sliding operation (or the sliding operation) based on the target picture and shows the next picture of the target picture.
Optionally, the terminal stops displaying the associated information of the target picture and the at least one interactive control in response to the triggering operation of the full-screen control. Referring to fig. 5, by stopping displaying the associated information and the interactive control, a clear and clean display interface can be provided for the user, and the influence on the viewing experience of the user due to the fact that other display information blocks the picture is avoided.
In step 302, the terminal determines whether a target text comment exists in at least one text comment of the target picture in response to a trigger operation on a region where the target text is located, where the target text comment includes the target text.
In the embodiment of the disclosure, the terminal is provided with a comment function for the target picture. For example, referring to fig. 4, a comment on the target picture can be published through a comment control in the multimedia interface. The target text comment is also a text comment matched with the target text in at least one text comment of the target picture.
In some embodiments, when a user wants to acquire a target text in a target picture, a click operation may be performed on an area where the target text is located, and the terminal performs a determination process of a comment of the target text in response to the click operation on the area where the target text is located.
In some embodiments, the terminal responds to the trigger operation of the area where the target text is located, and displays the text selection box. Referring to FIG. 4, the text checkbox may be the "rectangle box" shown in FIG. 4.
In step 303, if there is a target text comment, the terminal executes steps 304 to 305.
The following describes a process of determining whether there is a target text comment in the above-described step 302 to step 303, based on (303A) and (303B):
(303A) in some embodiments, the terminal responds to a trigger operation on a region where the target text is located, determines whether a text comment carrying a target tag exists in at least one text comment of the target picture, and if so, obtains the text comment carrying the target tag from the at least one text comment of the target picture as the target text comment, and further displays a text display layer on an upper layer of the target picture, displays the target text comment in the text display layer, where the target tag is used for indicating that the text comment includes the target text.
The text comment carrying the target label is a target text comment generated after any account carries out editing operation on a text recognition result of the target picture, and the editing operation is used for enabling the target text comment generated after editing to comprise the target text.
In the embodiment, the text with high accuracy can be obtained by selecting the text comment carrying the target tag, so that the accuracy of obtaining the text is improved.
(303B) In some embodiments, the terminal, in response to a trigger operation on a region where the target text is located, determines whether a text comment matched with the first text exists in at least one text comment of the target picture, and if so, takes the text comment matched with the first text as the target text comment, and further displays a text display layer on an upper layer of the target picture, and displays the target text comment in the text display layer. And the first text is a text recognition result of the target picture.
Optionally, the process performed (303B) by the terminal includes any one of:
(1) in an optional embodiment, in response to a trigger operation on a region where the target text is located, the terminal performs text recognition on the target picture to obtain a first text, takes a text comment matched with the first text in at least one text comment of the target picture as the target text comment, further displays a text display layer on an upper layer of the target picture, and displays the target text comment in the text display layer. In the embodiment, when the user triggers the text area in the picture, the terminal is triggered to execute the processes of text recognition and text comparison, so that the target text comment can be quickly determined, and the efficiency of obtaining the target text comment is improved.
Optionally, the process of the terminal taking the text comment matched with the first text in the at least one text comment of the target picture as the target text comment includes: the terminal respectively obtains the similarity between the first text and the text contained in the at least one text comment, and determines the target text comment based on the text comment of which the similarity meets the target condition.
Optionally, the similarity is expressed in terms of a distance between the first text and any of the text comments. Correspondingly, the process of acquiring the similarity by the terminal comprises the following steps: for any text comment in the at least one text comment, calculating a distance between the first text and the text contained in the any text comment, and determining the calculated distance as the similarity between the first text and the any text comment. Optionally, the distance is any one of a cosine distance, an euclidean distance, a manhattan distance, a chebyshev distance, a chi-square distance, and a hamming distance, and the embodiment of the disclosure does not limit what kind of distance is selected. It should be understood that the smaller the distance, the greater the similarity, and the larger the distance, the lesser the similarity. The target condition is a preset similarity condition. Optionally, the target condition is that the similarity reaches a similarity threshold. The similarity threshold is a predetermined fixed threshold, such as 0.8.
In the embodiment, whether the similarity meets the target condition is judged based on the similarity between the texts, the text comment matched with the first text can be quickly acquired, and the efficiency of acquiring the target text comment is improved.
Optionally, the terminal determines, based on the text comment whose similarity satisfies the target condition, that the target text comment includes any one of:
in some embodiments, the terminal determines the target text comment by responding to the existence of a text comment with the similarity meeting the target condition. In this embodiment, when there is one text comment that is successfully matched, it is sufficient to directly take it as a target text comment.
In some embodiments, in response to the existence of a plurality of text comments with similarity satisfying the target condition, the terminal determines the text comment with the highest praise number as the target text comment. In this embodiment, when there are multiple text comments successfully matched, the text comment with the most praise is preferentially selected, and since the number of praise can reflect the popularity of the text comment, and the popularity of the text comment may be related to whether the text matching is successful, the text comment with the most praise is selected, so that the accuracy of text matching can be ensured.
In the above process, for example, the terminal determines whether the target text comment exists, in another embodiment, the above (1) may be executed by the terminal and the server together, and the corresponding process is as follows: the method comprises the steps that a terminal responds to triggering operation of a region where a target text is located, a text comment display request is sent to a server, the server receives the text comment display request, text recognition is conducted on the target picture to obtain a first text, at least one text comment of the target picture is compared with the first text to obtain a text comment matched with the first text, the obtained text comment is used as the target text comment, and then the target text comment is sent to the terminal.
(2) In another optional embodiment, in response to a trigger operation on a region where the target text is located, the terminal determines whether a target text comment which is successfully matched in advance exists in at least one text comment of the target picture, and if so, obtains the target text comment which is successfully matched in advance, further displays a text display layer on an upper layer of the target picture, and displays the target text comment in the text display layer, wherein the target text comment which is successfully matched in advance refers to a text comment which is matched with the first text in the at least one text comment of the target picture. In the embodiment, when the user triggers the text area in the picture, the triggering terminal executes the process of judging whether the text comment which is successfully matched in advance exists, so that the target text comment can be further quickly determined, and the efficiency of obtaining the target text comment is improved.
In some embodiments, the server is associated with a target correspondence, where the target correspondence includes identifications of multiple pictures and target text comments corresponding to the multiple identifications. Accordingly, the process of determining whether the target text comment exists in the above step (2) may be executed by the terminal and the server together, and the corresponding process is as follows: the terminal responds to a triggering operation of the region where the target text is located, sends a text display request to the server, the server receives the text display request, inquires in the target corresponding relation based on the identification of the target picture carried by the text display request, judges whether a text comment corresponding to the identification of the target picture exists in the target corresponding relation, determines the inquired text comment as the target text comment if the text comment exists, and sends the target text comment to the terminal so as to trigger the terminal to display the target text comment.
Before the scheme is implemented, the server performs text recognition on the published picture to obtain a first text of the picture, and records the corresponding relation between the picture and the first text. In an optional embodiment, the server responds to a publishing request for the picture, and performs text recognition on the picture based on the publishing request to obtain the first text. In another optional embodiment, the server triggers and executes processes of text recognition of the published pictures and recording of the first text according to the first period. The first period is a preset period, such as 1 hour.
Further, before implementing the scheme, under the condition that the published picture has text comments, the server further selects the text comment matched with the first text from the text comments of the picture, determines the text comment as a target text comment, and records the corresponding relationship between the picture and the target text comment. In an optional embodiment, the server responds to a posting request for the comment, judges whether a text contained in the comment is matched with the first text or not based on the posting request, and records the corresponding relation between the picture and the comment if the text contained in the comment is matched with the first text. In another optional embodiment, the server triggers and executes the process of determining whether the published comments are matched or not and recording the comments successfully matched according to the second period. The second period is a preset period, such as 2 hours.
In the embodiment, the server performs the processes of text recognition, text matching and text recording in advance based on the image, and then when the target text comment is obtained, the query is directly performed based on the recorded text, so that the processing content of the server is greatly reduced, and the processing efficiency of the server is improved.
For step (303B), in some embodiments, after the text comment matching the first text is obtained, text proofreading is performed on the first text with reference to the obtained text comment, so as to obtain a proofread first text. Further, the server updates the first text in the target corresponding relation based on the corrected first text. Therefore, the unreliability of machine recognition is considered, the obtained text comments are taken as references, and the accuracy of text recognition can be ensured to a greater extent.
In some embodiments, the terminal may determine whether a target text comment exists based on any one of (303A) and (303B), and if so, obtain the target text comment.
The target text comment specified in (303A) above is specified based on the target tag, and the target text comment specified in (303B) above is obtained by performing text matching based on the first text. The embodiment of the disclosure subsequently adopts the first type of target text comment to refer to the target text comment obtained by text matching based on the first text, and adopts the second type of target text comment to refer to the target text comment determined based on the target label.
In some embodiments, for the two types of target text comments, the terminal can further obtain the target text comment with high priority based on the priority of the text type. Specifically, taking the example that the priority of a first type of target text comment is greater than that of a second type of target text comment, in response to a trigger operation on an area where the target text is located, a terminal first judges whether a text comment carrying a target tag exists in at least one text comment of the target picture, and if the text comment carrying the target tag exists, obtains the text comment carrying the target tag from the at least one text comment of the target picture as the target text comment; if not, judging whether a text comment matched with the first text exists in at least one text comment of the target picture, and if so, acquiring a successfully matched text comment.
In step 304, the terminal displays a text display layer on the upper layer of the target picture, wherein the text display layer is used for displaying the target text comment.
In an optional embodiment, the terminal displays a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment; in another optional embodiment, the terminal displays a target popup on the upper layer of the target picture, and the target popup is used for displaying the target text comment. It should be understood that either the target float or the target pop-up may include a target text comment. In the embodiment, a display mode of floating layer display or pop-up window display is provided, the display style of the target text comment is enriched, and the display effect of the target text comment can be ensured.
Illustratively, fig. 6 is a schematic diagram of a target text comment according to an exemplary embodiment, and referring to fig. 6, taking a floating-layer display as an example, the target text comment may be located in the floating layer of comments shown in fig. 6, and the target text comment may be "all enthusiasm disappears without exception" shown in fig. 6.
In some embodiments, taking a target text comment as a first type of target text comment as an example, the terminal displays the target text comment in a text display layer on an upper layer of the target picture, and displays account information of the any account and the target label for editing a text recognition result of the target picture. By displaying the account information and the target label, the information quantity displayed by the text display layer is increased, so that the user can timely obtain the related information of the target text comment. It should be understood that any account is also an account of a publisher to which the target text comment belongs, and the publisher to which the target text comment belongs is also a user who actively extracts text. Optionally, the account information is an avatar or a nickname of the publisher to which the target text comment belongs. Optionally, the terminal presents a "class representative" label in the area where the target text comment is located. Through showing the 'class representative' label, the 'class representative' identity is used for carrying out excitation, the subsequent interaction of the user is promoted, and the interaction amount of the user based on the target picture is improved. In some embodiments, the terminal also exposes at least one interaction control. Optionally, the at least one interaction control includes a likes control, a reviews viewing control, and the like.
In step 305, the terminal copies the target text comment in response to a copy operation on the target text comment.
In some embodiments, the target text comment corresponds to a second control for triggering the copying of the target text comment. In some embodiments, the terminal exposes the second control in a text display layer on the upper layer of the target picture. Illustratively, referring to FIG. 6, the second control may be the "copy text" control illustrated in FIG. 6.
Accordingly, the process of the terminal copying the text based on the copying operation includes: and copying the target text comment in response to the triggering operation of the second control. By setting the control with the copy function, the user can copy the text by triggering the control, and the man-machine interaction efficiency is improved.
Further optionally, the second control is further configured to trigger approval of the target text comment, and accordingly, the method further includes: and in response to the triggering operation of the second control, showing an approval control of the target text comment as a target state, wherein the target state is used for indicating that the target text comment is copied and approved. Alternatively, the target state is any one of a red display state, a lighting state, a blinking state, and a dithering state.
Optionally, the terminal responds to the triggering operation of the second control and displays a target animation, and the target animation is used for indicating that the target text comment is copied and approved. For example, fig. 7 is a schematic diagram of a target animation according to an exemplary embodiment, referring to fig. 7, when the "copy text" control is clicked, a praise effect that multiple elements fly appears above the comment floating layer, and by displaying the praise effect, the amount of information displayed on the interface is increased, and the user interaction can be further facilitated. Optionally, in response to the presentation duration of the target animation reaching the target duration, presentation of the target animation is stopped.
Optionally, after copying the text included in the target text comment, the terminal receives and displays praise prompt information, where the praise prompt information is used to prompt that the target text comment is copied and praise. For example, referring to fig. 7, the content of the like-pointing hint information may be "copied and like". By displaying the praise prompt information, the displayed information amount is increased, so that the user can timely know the copy condition and praise condition of the text.
Further optionally, after copying the text included in the target text comment, the terminal further generates a first message corresponding to the approval prompt information, and sends the first message to any account that performs editing operation on the text recognition result of the target picture, where the first message is used to inform any account that the target text comment triggers approval operation. In this embodiment, after the text is copied, a first message is also sent to the any account which performs editing operation on the text recognition result of the target picture, that is, the first message is sent to the publisher of the target text comment to prompt that the target text comment is praised, so that the enthusiasm of the user for editing the text and then publishing the comment is improved.
In the embodiment, the text can be copied and praise to the user corresponding to the text comment, so that the interaction and emotional communication between the text creator and the text acquirer are enhanced, and the social ecology and the circle-level culture based on the picture works are protected.
In step 306, if there is no target text comment, the terminal executes steps 307 to 309.
In the embodiment of the present disclosure, the absence of the target text comment means that neither the first type of target text comment nor the second type of target text comment exists.
In some embodiments, if there is no text comment terminal carrying a target tag in the at least one text comment of the target image and there is no text comment matching the first text in the at least one text comment of the target image, the terminal performs steps 307 to 309.
In step 307, the terminal displays a text layer on the upper layer of the target picture, where the text layer is used to display a first text, and the first text is a text recognition result of the target picture.
Illustratively, fig. 8 is a schematic diagram of a text proof layer according to an exemplary embodiment, referring to fig. 8, the text proof layer may be a prompt floating layer shown in fig. 8, and the first text may be "all enthusiasm disappears without exception" in waiting and disappointment shown in fig. 8.
In some embodiments, the terminal displays the first text in a text layer on the upper layer of the target picture, and displays editing prompt information and account information of a terminal logged account, wherein the editing prompt information is used for prompting editing based on the first text to obtain the second text. The account information of the account registered by the terminal may be a head portrait or a nickname of the account registered by the terminal. Referring to fig. 8, the content of the edit prompt may be "the text has not been corrected, which represents an assistant bar". Therefore, when the comment does not contain the target text in the target picture, the user is guided to correct and edit the text identified by the text by displaying the editing prompt information. By displaying and editing the prompt information and the account information, the information quantity displayed by the text proof layer is increased.
In step 308, the terminal presents a second text in response to the editing operation on the first text in the text proof layer, wherein the second text comprises the target text.
In some embodiments, the terminal presents the editing panel in response to a triggering operation on the first text in the text proof layer, and presents the second text in response to an editing operation based on the editing panel. Therefore, the editing panel is displayed, so that a user can conveniently correct the first text based on the editing panel, the manually corrected text is obtained, and the accuracy of the obtained text can be greatly ensured.
Illustratively, fig. 9 is a schematic diagram illustrating an editing panel, which may be the "system keyboard" panel illustrated in fig. 9, with at least one text entry key displayed in the editing panel, according to an exemplary embodiment, and referring to fig. 9.
In step 309, the terminal performs a step of copying the text based on the copy operation based on the second text.
In some embodiments, the second text corresponds to a first control for triggering copying of the second text. In some embodiments, the terminal displays the second control in the area where the second text is located. For example, referring to FIG. 8, the first control may be the "copy and comment" control illustrated in FIG. 8.
Accordingly, the process of the terminal copying the text based on the copying operation includes: and copying the second text in response to the triggering operation of the first control. By setting the control with the copy function, the user can copy the text by triggering the control, and the man-machine interaction efficiency is improved.
Further optionally, the first control is further configured to trigger the publishing of the second text, and accordingly, the method further includes: and in response to the triggering operation of the first control, publishing the second text as the text comment of the target picture.
Optionally, after the second text is published as the text comment of the target picture, the method further includes: and displaying comment success information, wherein the comment success information is used for prompting that the second text is published. Illustratively, fig. 10 is a schematic diagram illustrating a review success information according to an exemplary embodiment, and referring to fig. 10, the content of the review success information may be "copy and review success painfully lessons representative". Therefore, the displayed information amount is increased, so that the user can timely know the publishing condition of the comments.
Optionally, after the second text is published as the text comment of the target picture, the method further includes: and receiving and displaying a second message, wherein the second message is used for informing the terminal that the account is logged in that the second text triggers the operation of praise. For example, when another account performs a praise operation on a second text issued by a terminal logged in by the account, the terminal corresponding to the other account sends a second message to the server, and the server receives the second message and then sends the second message to the terminal. In this embodiment, after there is another account that copies the text posted by the account, a second message is also sent to the account to prompt that the text comments posted by the account are praised, so that the enthusiasm of the user for editing the text and then posting the comments is improved.
In the above steps 306 to 309, when there is no target text in the target picture in the comment, the user is guided to perform proofreading and editing on the text recognized by the text by displaying the editing prompt information, and then the user can perform proofreading on the text recognized by the text through editing operation to obtain the proofread text, and then the text is copied based on the proofread text.
In some embodiments, after the terminal issues the second text, a target tag is added to the text comment corresponding to the second text to indicate that the content of the text comment includes the target text. It should be noted that, in steps 306 to 309, when there is no target text in the target picture yet in the comment, the second text obtained by the terminal editing the text recognition result of the target picture with the logged-in account corresponds to the text comment carrying the target tag in (303A), where the text comment carrying the target tag in (303A) is a text obtained by any account editing the text recognition result of the target picture.
In some embodiments, the interface in which the target picture resides includes a comment viewing control. Referring to FIG. 5, the comment view control may be the "A" control shown in FIG. 5. Correspondingly, the method further comprises: and in response to the triggering operation of the comment viewing control, displaying a comment list page, wherein the comment list page comprises a full-selection control and the target text comments corresponding to the multiple pictures, and in response to the triggering operation of the full-selection control, copying the target text comments corresponding to the multiple pictures. By setting the full-selection control, a user can copy texts contained in a plurality of target text comments by triggering the full-selection control, and texts in a plurality of pictures can be obtained, so that the man-machine interaction efficiency is improved.
Illustratively, fig. 11 is a schematic diagram illustrating a comment list page, with reference to fig. 11, in which a plurality of targeted text comments are presented, according to an exemplary embodiment. It should be noted that the plurality of target text comments correspond to a plurality of texts included in the picture work. The all-select control may be the "all-copy" control illustrated in FIG. 11.
Optionally, in the comment list page, the target text comment corresponding to the target picture is displayed in a selected state. Therefore, the target text comment corresponding to the currently displayed picture is preferentially selected, so that the selected text comment is a text comment which is interested by the user, and the user can be effectively promoted to perform a subsequent text acquisition process.
In some embodiments, after the terminal copies the texts contained in the target text comments, copy success information is displayed, where the copy success information is used to indicate that the target text comments have been copied and at least one of the target text comments has been approved. Further optionally, the full selection control is further configured to trigger that the multiple target text comments are praised, and accordingly, after the terminal copies the texts included in the multiple target text comments, the praise control of the multiple target text comments is displayed in a target state. Illustratively, fig. 12 is a schematic diagram illustrating a copy success message according to an exemplary embodiment, and referring to fig. 12, the content of the copy success message may be "copied and liked".
In the embodiment, the text can be copied and praise to the user corresponding to the text comment, so that the interaction and emotional communication between the text creator and the text acquirer are enhanced, and the social ecology and the circle-level culture based on the picture works are protected.
The embodiment provides the text acquisition method based on the text recognition technology around the publisher to which the target picture belongs, the reviewer of the target picture and the user who copies the text, so that on one hand, the accuracy of text acquisition can be guaranteed to the greatest extent, and on the other hand, the operation efficiency of text acquisition can be improved.
According to the technical scheme provided by the embodiment of the disclosure, the target text comment comprising the target text can be triggered and displayed through triggering operation on the text region in the picture, and then the text comment is copied based on the target text comment, so that the text in the picture can be acquired without searching in multiple comments by a user, the operation path for acquiring the text is shortened, and the efficiency for acquiring the text in the picture is improved.
Fig. 13 is a block diagram illustrating a text acquisition device according to an example embodiment. Referring to fig. 13, the apparatus includes a picture presentation unit 1301, a comment presentation unit 1302, and a copy unit 1303.
A picture display unit 1301 configured to perform displaying of a target picture, where the target picture is a picture including a target text;
a comment displaying unit 1302, configured to perform, in response to a trigger operation on a region where the target text is located, a text display layer on an upper layer of the target picture, where the text display layer is used to display a target text comment, and the target text comment includes the target text;
and a copying unit 1303 configured to copy the target text comment in response to a copy operation on the target text comment.
According to the technical scheme provided by the embodiment of the disclosure, the target text comment comprising the target text can be triggered and displayed through triggering operation on the text region in the picture, and then the text comment is copied based on the target text comment, so that the text in the picture can be acquired without searching in multiple comments by a user, the operation path for acquiring the text is shortened, and the efficiency for acquiring the text in the picture is improved.
In some embodiments, the comment presenting unit 1302 is configured to perform:
displaying a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment;
or the like, or, alternatively,
and displaying a target popup on the upper layer of the target picture, wherein the target popup is used for displaying the target text comment.
In some embodiments, the comment presenting unit 1302 is configured to perform:
responding to a trigger operation of the region where the target text is located, obtaining a text comment carrying a target label from at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture, wherein the target label is used for indicating that the text comment comprises the target text.
In some embodiments, the text comment carrying the target tag is a target text comment generated after an editing operation is performed on the text recognition result of the target picture by any account, where the editing operation is used to enable the target text comment generated after editing to include the target text.
In some embodiments, the comment presenting unit 1302 is configured to perform:
and displaying the target text comment in a text display layer on the upper layer of the target picture, and displaying the account information of any account and the target label.
In some embodiments, the apparatus further comprises:
and the information presentation unit is configured to receive and present praise prompt information, and the praise prompt information is used for prompting that the target text comment is copied and praise.
In some embodiments, the apparatus further comprises:
a generating unit configured to perform generating a first message corresponding to the approval prompt information;
and the sending unit is configured to execute sending the first message to any account which performs editing operation on the text recognition result of the target picture, wherein the first message is used for informing the any account of the target text comment trigger praise operation.
In some embodiments, the picture presentation unit 1301 is configured to perform any one of the following:
responding to the searching operation of the target picture, and displaying the target picture;
and displaying the target picture in response to the viewing operation of the target picture.
In some embodiments, the apparatus further comprises:
the layer display unit is configured to display a text proof layer on the upper layer of the target picture if the target text comment does not exist, wherein the text proof layer is used for displaying a first text, and the first text is a text recognition result of the target picture;
a text presentation unit configured to perform a presentation of a second text in response to an editing operation on the first text in the text proof layer, the second text including the target text;
the copying unit 1303 is further configured to execute the step of copying the text based on the copying operation based on the second text.
In some embodiments, the text presentation unit is configured to perform:
responding to a trigger operation of a first text in the text proofreading layer, and displaying an editing panel;
and displaying the second text in response to the editing operation based on the editing panel.
In some embodiments, the second text corresponds to a first control, and the first control is used for triggering the copying of the second text;
the copying unit 1303 is further configured to copy the second text in response to the triggering operation of the first control.
In some embodiments, the first control is further configured to trigger the publishing of the second text;
the apparatus also includes a publication unit configured to perform:
and in response to the triggering operation of the first control, publishing the second text as the text comment of the target picture.
In some embodiments, the apparatus further comprises:
and the information display unit is configured to display comment success information, and the comment success information is used for prompting that the second text is published.
In some embodiments, the apparatus further comprises:
and the information display unit is configured to receive and display a second message, wherein the second message is used for informing the terminal that the account is logged in that the second text triggers the operation of approval.
In some embodiments, the layer presentation unit is configured to perform:
and displaying the first text in a text layer of the upper layer of the target picture, and displaying editing prompt information and account information of a terminal logged account, wherein the editing prompt information is used for prompting editing based on the first text to obtain the second text.
In some embodiments, the target text comment corresponds to a second control, and the second control is used for triggering the target text comment to be copied;
the copying unit 1303 is configured to copy the target text comment in response to the triggering operation of the second control.
In some embodiments, the second control is further configured to trigger praise on the target text comment;
the device further comprises a control showing unit, configured to perform, in response to a triggering operation on the second control, showing an approval control of the target text comment as a target state, where the target state is used to indicate that the target text comment has been copied and approved.
In some embodiments, the apparatus further comprises:
and the animation display unit is configured to execute a triggering operation responding to the second control, and display a target animation, wherein the target animation is used for indicating that the target text comment is copied and approved.
In some embodiments, the target picture is any one of a plurality of pictures included in the picture work, the plurality of pictures are all pictures containing texts, and an interface where the target picture is located includes a comment viewing control;
the device further comprises a page display unit, wherein the page display unit is configured to execute a triggering operation responding to the comment viewing control and display a comment list page, and the comment list page comprises a full-selection control and target text comments corresponding to the multiple pictures;
the copying unit 1303 is further configured to copy the target text comments corresponding to the multiple pictures in response to the triggering operation on the all-selection control.
In some embodiments, the page presentation unit is configured to perform:
and displaying the target text comment corresponding to the target picture as a selected state in the comment list page.
In some embodiments, the comment presenting unit 1302 includes:
the first comment displaying subunit is configured to execute a triggering operation responding to the area where the target text is located, perform text recognition on the target picture to obtain a first text, use a text comment matched with the first text in at least one text comment of the target picture as the target text comment, and display a text display layer on the upper layer of the target picture;
and the second comment displaying subunit is configured to execute a triggering operation in response to the region where the target text is located, acquire the target text comment which is successfully matched in advance, and display a text display layer on the upper layer of the target picture, wherein the target text comment which is successfully matched in advance refers to a text comment which is matched with the first text in at least one text comment of the target picture, and the first text is a text recognition result of the target picture.
In some embodiments, the first comment presenting subunit includes:
an obtaining subunit, configured to perform obtaining similarities between the first text and texts included in the at least one text comment respectively;
and the determining subunit is configured to execute text comments with the similarity meeting the target condition, and determine the target text comment.
In some embodiments, the determining subunit is configured to perform any one of:
in response to the existence of one text comment of which the similarity meets the target condition, determining the target text comment according to the text comment of which the similarity meets the target condition;
and in response to the existence of a plurality of text comments with similarity meeting the target condition, determining the text comment with the highest praise number as the target text comment.
It should be noted that: in the text acquiring apparatus provided in the above embodiment, when acquiring a text, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the text acquisition device and the text acquisition method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The computer device mentioned in the embodiments of the present disclosure may be provided as a terminal. Fig. 14 is a block diagram illustrating a structure of a terminal 1400 according to an example embodiment. The terminal 1400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1400 can also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1400 includes: a processor 1401, and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one program code for execution by processor 1401 to implement processes performed by a terminal in a text acquisition method provided by method embodiments in the present disclosure.
In some embodiments, terminal 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected by buses or signal lines. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, a display 1405, a camera assembly 1406, audio circuitry 1407, a positioning assembly 1408, and a power supply 1409.
The peripheral device interface 1403 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1404 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to capture touch signals at or above the surface of the display screen 1405. The touch signal may be input to the processor 1401 for processing as a control signal. At this point, the display 1405 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 1405 may be one, disposed on the front panel of the terminal 1400; in other embodiments, display 1405 may be at least two, respectively disposed on different surfaces of terminal 1400 or in a folded design; in other embodiments, display 1405 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1400. Even further, the display 1405 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1405 can be made of LCD (Liquid Crystal Display), OLED (Organic light-Emitting Diode), and the like.
The camera assembly 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing or inputting the electric signals to the radio frequency circuit 1404 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1407 may also include a headphone jack.
The positioning component 1408 serves to locate the current geographic position of the terminal 1400 for navigation or LBS (Location Based Service). The Positioning component 1408 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
Power supply 1409 is used to power the various components of terminal 1400. The power source 1409 may be alternating current, direct current, disposable or rechargeable. When the power source 1409 comprises a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyroscope sensor 1412, pressure sensor 1413, fingerprint sensor 1414, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 1400. For example, the acceleration sensor 1411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1401 can control the display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the terminal 1400, and the gyro sensor 1412 and the acceleration sensor 1411 may cooperate to collect a 3D motion of the user on the terminal 1400. The processor 1401 can realize the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1413 may be disposed on the side frames of terminal 1400 and/or underlying display 1405. When the pressure sensor 1413 is disposed on the side frame of the terminal 1400, the user's holding signal of the terminal 1400 can be detected, and the processor 1401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed at the lower layer of the display screen 1405, the processor 1401 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1414 is used for collecting a fingerprint of a user, and the processor 1401 identifies the user according to the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 1401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for, and changing settings, etc. Fingerprint sensor 1414 may be disposed on the front, back, or sides of terminal 1400. When a physical button or vendor Logo is provided on terminal 1400, fingerprint sensor 1414 may be integrated with the physical button or vendor Logo.
The optical sensor 1415 is used to collect ambient light intensity. In one embodiment, processor 1401 may control the display brightness of display 1405 based on the ambient light intensity collected by optical sensor 1415. Specifically, when the ambient light intensity is high, the display luminance of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the intensity of the ambient light collected by the optical sensor 1415.
Proximity sensor 1416, also known as a distance sensor, is typically disposed on the front panel of terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front surface of the terminal 1400. In one embodiment, when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually decreased, processor 1401 controls display 1405 to switch from a bright screen state to a dark screen state; when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually increasing, display 1405 is controlled by processor 1401 to switch from the sniff state to the brighten state.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is not intended to be limiting with respect to terminal 1400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, a computer readable storage medium comprising program code, such as the memory 1402 comprising program code, executable by the processor 1401 of the terminal 1400 to perform the text acquisition method described above is also provided. Alternatively, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact-Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when being executed by a processor, carries out the text acquisition method described above.
In some embodiments, the computer program according to the embodiments of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or may be executed on multiple computer devices distributed at multiple sites and interconnected by a communication network, and the multiple computer devices distributed at the multiple sites and interconnected by the communication network may constitute a block chain system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A text acquisition method, comprising:
displaying a target picture, wherein the target picture is a picture containing a target text;
responding to a trigger operation of an area where the target text is located, and displaying a text display layer on the upper layer of the target picture, wherein the text display layer is used for displaying target text comments, and the target text comments comprise the target text;
in response to a copy operation on the target text comment, copying the target text comment.
2. The method according to claim 1, wherein the displaying a text display layer on the upper layer of the target picture, the text display layer being configured to display a target text comment, includes:
displaying a target floating layer on the upper layer of the target picture, wherein the target floating layer is used for displaying the target text comment;
or the like, or, alternatively,
and displaying a target popup on the upper layer of the target picture, wherein the target popup is used for displaying the target text comment.
3. The method according to claim 1, wherein the displaying a text display layer on an upper layer of the target picture in response to the triggering operation on the region where the target text is located comprises:
responding to a trigger operation of the region where the target text is located, obtaining a text comment carrying a target label from at least one text comment of the target picture as the target text comment, and displaying a text display layer on the upper layer of the target picture, wherein the target label is used for indicating that the text comment comprises the target text.
4. The text acquisition method according to claim 3, wherein the text comment carrying the target tag is a target text comment generated after any account performs an editing operation on the text recognition result of the target picture, and the editing operation is used to enable the target text comment generated after editing to include the target text.
5. The method according to claim 4, wherein the displaying a text display layer on the upper layer of the target picture comprises:
and displaying the target text comment, and displaying the account information of any account and the target label in a text display layer on the upper layer of the target picture.
6. The text acquisition method of claim 4, wherein after the response to the copy operation on the target text comment, the method further comprises:
and receiving and displaying praise prompt information, wherein the praise prompt information is used for prompting that the target text comment is copied and praise.
7. A text acquisition apparatus, characterized in that the apparatus comprises:
the picture display unit is configured to display a target picture, wherein the target picture is a picture containing a target text;
the comment display unit is configured to execute a triggering operation responding to the area where the target text is located, and display a text display layer on the upper layer of the target picture, wherein the text display layer is used for displaying target text comments, and the target text comments comprise the target text;
a copying unit configured to perform copying of the target text comment in response to a copy operation on the target text comment.
8. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing the processor executable program code;
wherein the processor is configured to execute the program code to implement the text acquisition method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, when program code in the computer-readable storage medium is executed by a processor of a computer device, the computer device is enabled to execute the text acquisition method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the text acquisition method of any one of claims 1 to 6 when executed by a processor.
CN202110604646.0A 2021-05-31 2021-05-31 Text acquisition method and device, computer equipment and medium Pending CN113377271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110604646.0A CN113377271A (en) 2021-05-31 2021-05-31 Text acquisition method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110604646.0A CN113377271A (en) 2021-05-31 2021-05-31 Text acquisition method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN113377271A true CN113377271A (en) 2021-09-10

Family

ID=77575125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110604646.0A Pending CN113377271A (en) 2021-05-31 2021-05-31 Text acquisition method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN113377271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024046344A1 (en) * 2022-08-30 2024-03-07 北京字跳网络技术有限公司 Information processing method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113787A (en) * 2014-05-29 2014-10-22 腾讯科技(深圳)有限公司 Program-based commenting method, terminal, server, and program-based commenting system
CN104636322A (en) * 2015-03-03 2015-05-20 广东欧珀移动通信有限公司 Text copying method and text copying device
CN107256109A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Method for information display, device and terminal
CN109885770A (en) * 2019-02-20 2019-06-14 杭州威佩网络科技有限公司 A kind of information recommendation method, device, electronic equipment and storage medium
CN111259271A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Comment information display method and device, electronic equipment and computer readable medium
CN112215924A (en) * 2020-10-27 2021-01-12 腾讯科技(深圳)有限公司 Picture comment processing method and device, electronic equipment and storage medium
CN112230822A (en) * 2020-11-12 2021-01-15 汉海信息技术(上海)有限公司 Comment information display method and device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113787A (en) * 2014-05-29 2014-10-22 腾讯科技(深圳)有限公司 Program-based commenting method, terminal, server, and program-based commenting system
CN104636322A (en) * 2015-03-03 2015-05-20 广东欧珀移动通信有限公司 Text copying method and text copying device
CN107256109A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Method for information display, device and terminal
CN111259271A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Comment information display method and device, electronic equipment and computer readable medium
CN109885770A (en) * 2019-02-20 2019-06-14 杭州威佩网络科技有限公司 A kind of information recommendation method, device, electronic equipment and storage medium
CN112215924A (en) * 2020-10-27 2021-01-12 腾讯科技(深圳)有限公司 Picture comment processing method and device, electronic equipment and storage medium
CN112230822A (en) * 2020-11-12 2021-01-15 汉海信息技术(上海)有限公司 Comment information display method and device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雨季: "《美团外卖给差评完全无影响,如何能有效的投诉商家?》", pages 1 - 14, Retrieved from the Internet <URL:《https://www.zhihu.com/question/30257464》> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024046344A1 (en) * 2022-08-30 2024-03-07 北京字跳网络技术有限公司 Information processing method and apparatus

Similar Documents

Publication Publication Date Title
CN110163066B (en) Multimedia data recommendation method, device and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN112181573A (en) Media resource display method, device, terminal, server and storage medium
CN110933468A (en) Playing method, playing device, electronic equipment and medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN110572716A (en) Multimedia data playing method, device and storage medium
CN111935516B (en) Audio file playing method, device, terminal, server and storage medium
CN111031391A (en) Video dubbing method, device, server, terminal and storage medium
CN112788359A (en) Live broadcast processing method and device, electronic equipment and storage medium
CN113613028A (en) Live broadcast data processing method, device, terminal, server and storage medium
CN113987326B (en) Resource recommendation method and device, computer equipment and medium
CN114238812B (en) Information display method and device, computer equipment and medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN112004134B (en) Multimedia data display method, device, equipment and storage medium
CN112764600A (en) Resource processing method, device, storage medium and computer equipment
CN113377271A (en) Text acquisition method and device, computer equipment and medium
CN112230822B (en) Comment information display method and device, terminal and storage medium
CN115134316B (en) Topic display method, device, terminal and storage medium
CN115129211A (en) Method and device for generating multimedia file, electronic equipment and storage medium
CN115905374A (en) Application function display method and device, terminal and storage medium
CN113722040B (en) Work processing method, device, computer equipment and medium
CN114466237B (en) Display method, display device, computer equipment and medium
CN114996573A (en) Content item processing method, device, equipment and storage medium
CN113420172A (en) Picture sharing method and device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination