CN112949252A - Text display method, text display device, and computer-readable medium - Google Patents

Text display method, text display device, and computer-readable medium Download PDF

Info

Publication number
CN112949252A
CN112949252A CN202110306951.1A CN202110306951A CN112949252A CN 112949252 A CN112949252 A CN 112949252A CN 202110306951 A CN202110306951 A CN 202110306951A CN 112949252 A CN112949252 A CN 112949252A
Authority
CN
China
Prior art keywords
text
prompted
floating layer
display
transparent floating
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.)
Granted
Application number
CN202110306951.1A
Other languages
Chinese (zh)
Other versions
CN112949252B (en
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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN202110306951.1A priority Critical patent/CN112949252B/en
Publication of CN112949252A publication Critical patent/CN112949252A/en
Application granted granted Critical
Publication of CN112949252B publication Critical patent/CN112949252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor

Abstract

A text display method, apparatus, and computer readable medium are disclosed. One embodiment of the method comprises: acquiring a text to be prompted of a user; generating a transparent floating layer covering the current interface of the display screen; and displaying the text to be prompted on the transparent floating layer. The application provides a text display method, which improves the flexibility and the practicability of text display.

Description

Text display method, text display device, and computer-readable medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a text display method, text display equipment and a computer readable medium.
Background
When shooting a video, a shot person generally needs the assistance of a prompter to express the content that the shot person wants to express more smoothly. Currently, the related content is generally displayed by placing paper or a display screen behind the shooting device to prompt the photographed person.
Disclosure of Invention
The embodiment of the application provides a text display method, text display equipment and a computer readable medium.
In a first aspect, an embodiment of the present application provides a text display method, including: acquiring a text to be prompted of a user; generating a transparent floating layer covering the current interface of the display screen; and displaying the text to be prompted on the transparent floating layer.
In a second aspect, an embodiment of the present application provides a text display apparatus, including: a first acquisition unit configured to acquire a text to be prompted of a user; a generating unit configured to generate a transparent floating layer covering a current interface of a display screen; and the display unit is configured to display the text to be prompted on the transparent floating layer.
In a third aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement a method as described in any implementation of the first aspect.
According to the text display method provided by the embodiment of the application, the text to be prompted of a user is obtained; generating a transparent floating layer covering the current interface of the display screen; and displaying the text to be prompted on the transparent floating layer, thereby providing a text display method and improving the flexibility and the practicability of text display.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram according to one embodiment of a text display method of the present application;
fig. 3 is a schematic diagram of an application scene of the text display method according to the present embodiment;
FIG. 4 is a flow diagram of yet another embodiment of a text display method according to the present application;
FIG. 5 is a block diagram of one embodiment of a text display device according to the present application;
FIG. 6 is a block diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary architecture 100 to which the text display method and apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The communication connections between the terminal devices 101, 102, 103 form a topological network, and the network 104 serves to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 may be hardware devices or software that support network connections for data interaction and data processing. When the terminal devices 101, 102, and 103 are hardware, they may be various electronic devices supporting network connection, information acquisition, interaction, display, processing, and the like, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like; various applications may be provided thereon, including but not limited to instant messaging type applications, video type applications, shopping type applications, office type applications, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background processing server that acquires information acquired by the user through the terminal devices 101, 102, and 103 and performs data transmission between the terminal devices that are communicatively connected. Taking a short video scene as an example, the terminal devices of the communication connection may be a terminal device used by a short video photographer and a terminal device used by a video viewer, and the data transmitted between the terminal devices of the communication connection may be a short video photographed by the video photographer. As an example, the server 105 may be a cloud server.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be further noted that the text display method provided by the embodiments of the present disclosure may be executed by a server, may also be executed by a terminal device, and may also be executed by the server and the terminal device in cooperation with each other. Accordingly, each part (for example, each unit) included in the text display device may be entirely provided in the server, may be entirely provided in the terminal device, or may be provided in the server and the terminal device, respectively.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. When the electronic device on which the text display method operates does not need to perform data transmission with other electronic devices, the system architecture may include only the electronic device (e.g., a server or a terminal device) on which the text display method operates.
With continued reference to FIG. 2, a flow 200 of one embodiment of a text display method is shown, comprising the steps of:
step 201, obtaining a text to be prompted of a user.
In this embodiment, an execution main body (for example, the terminal device in fig. 1) of the text display method may acquire a text to be prompted of a user. The text to be prompted represents the text to be expressed by the user.
In many real-world scenes, users need to be assisted by prompters to express the contents which the users want to express more smoothly. For example, in the process of shooting a video, a knowledge video blogger needs to prompt knowledge points to be expressed through a prompter.
In this embodiment, the user may input the text to be prompted to the execution main body in a form of instantly inputting the text, importing the existing text, converting the voice into the text, and the like. The execution body supports a voice-to-text function corresponding to a text input form of a voice-to-text.
Step 202, generating a transparent floating layer covering the current interface of the display screen.
In this embodiment, the execution main body may generate a transparent floating layer covering the current interface of the display screen. Wherein the transparent floating layer can cover at least partial area in the current interface of the display screen.
In this embodiment, the current interface of the display screen of the execution main body may be any interface related to the execution main body, including but not limited to a system interface of the execution main body and an application interface of an application running on the execution main body. The applications running on the execution body include, but are not limited to, an instant messaging application, a video application, a shopping application, and an office application.
As an example, in the process of shooting a video by a user through a video-class application, the current interface of the display screen of the execution subject is a video picture including a user object, and the execution subject generates a transparent floating layer on the video picture. It should be noted that the video frame displayed on the current interface of the display screen can still be viewed through the transparent floating layer.
And step 203, displaying a text to be prompted on the transparent floating layer.
In this embodiment, the execution main body may display a text to be prompted on the transparent floating layer.
In this embodiment, the execution main body may display at least a part of the text to be prompted on the transparent floating layer in various ways. As an example, the execution subject may render at least part of the text to be prompted on the transparent floating layer in a text form.
In some optional implementation manners of this embodiment, the executing main body may first convert at least a part of the text in the text to be prompted into a target picture in a preset format; then, the target picture is rendered on the transparent floating layer.
Specifically, first, the execution main body converts at least a part of texts in the texts to be prompted into a target picture in a preset format (for example, bitmap format); then, a textimage 2D interface of OpenGL ES (pen Graphics Library for Embedded Systems) running in the system of the execution subject is called, and the target picture is rendered on the surface, so as to display at least part of the text to be prompted on the transparent floating layer.
It should be noted that, through the area of the transparent floating layer where the stroke structure of the text to be prompted is not displayed, the content displayed on the current interface of the display screen can still be viewed. Therefore, the function of the prompter is realized on the basis of providing a clearer current interface by the display screen.
In some optional implementations of this embodiment, the executing main body may implement step 203 as follows:
firstly, according to the content displayed by the current interface, the display area of the target object in the display screen is determined.
The target object may be any object included in the current interface of the display screen. As an example, the target object may be an object that characterizes a user's high demand for attention, or clarity, thereof. For example, in a video capture scene, the target object may be a face image.
In this implementation manner, the execution main body may first obtain the information acquisition permission, where the information acquisition permission representation may obtain relevant information from an application corresponding to the current interface, so as to accurately determine the content displayed on the current interface, and further accurately determine the display area of the target object; and image recognition can be carried out on the image which is obtained by screenshot and represents the current interface in a screenshot mode so as to accurately determine the display area of the target object.
And secondly, displaying the text to be prompted in a non-display area corresponding to the target object in the transparent floating layer.
In this implementation, the non-display area is opposite to the display area, and is an area outside the display area in the display screen.
In the implementation mode, the text to be prompted is not displayed in the display area where the target object with higher attention is located; and displaying the text to be prompted in a non-display area corresponding to the outside of the display area in the transparent floating layer, thereby displaying the text to be prompted on the basis of further ensuring the display effect of the current interface.
In some optional implementation manners of this embodiment, the execution main body may receive an adjustment instruction of a display style of a text to be prompted by a user, and adjust the display style of the text to be prompted.
In this implementation, the adjustment of the display style of the text to be prompted includes, but is not limited to, font size, color, transparency, and the like. Taking the adjustment of the transparency as an example, the user may flexibly adjust the transparency of the text to be prompted according to an actual situation (for example, brightness of pixels in an image displayed on the current interface), so as to balance the content displayed on the current interface and the display effect of the text to be prompted.
In this implementation, the executing entity may implement step 203 as follows: and displaying the text to be prompted on the transparent floating layer based on the adjusted display style.
In some optional implementations of this embodiment, the executing main body may implement step 203 as follows:
firstly, segmenting a text to be prompted into at least one sub-text according to attribute information of the text to be prompted and the display size of a display screen.
In this implementation manner, the attribute information of the text to be prompted includes the number of characters and the size of the characters.
As an example, first, the execution main body determines the number of characters displayed on each screen of the display screen according to the character size and the display size of the display screen; then, the execution main body determines the number of display screens of the display screen related to the text to be prompted and the sub-text displayed on each screen according to the number of the characters of the text to be prompted and the number of the characters displayed on each screen of the display screen.
Specifically, the execution main body may determine the number of display screens of the text to be prompted according to the following formula:
n=x/((sw/w)×(sh/h))
wherein n is the number of display screens, x is the number of characters of a text to be prompted, w and h are the width and height of the characters displayed in the display screens in sequence, and sw and sh are the width and height of the display screens in sequence. After the number of the display screens is calculated, the execution main body can switch the screen of the text to be prompted to obtain the multi-screen text with the number of the display screens. Secondly, each sub-text of the at least one sub-text is displayed on the transparent floating layer according to the sequence of the at least one sub-text in the text to be prompted.
It should be noted that the above-described implementations may be combined with each other.
As an example, the executing main body may execute the step 203 as follows:
firstly, according to the content displayed by the current interface, the display area of the target object in the display screen is determined.
Secondly, displaying the text to be prompted in a non-display area corresponding to the target object in the transparent floating layer based on the adjusted display style.
As still another example, the execution main body may execute the step 203 as follows:
firstly, according to the content displayed by the current interface, the display area of the target object in the display screen is determined.
Secondly, segmenting the text to be prompted into at least one sub-text according to the attribute information of the text to be prompted and the display size of a non-display area in the display screen.
And thirdly, displaying each sub-text of the at least one sub-text in the sequence of the at least one sub-text in the text to be prompted in the non-display area corresponding to the target object in the transparent floating layer based on the adjusted display style.
It is to be understood that the target object may be a fixed object whose display position in the display screen is fixed, or may be a moving object whose display position in the display screen is not fixed. However, whether the target object is a fixed object or a moving object, when the target object is in the display screen, the size of the display area corresponding to the target object is not changed, and the execution main body may segment the text to be prompted into at least one sub-text at one time according to the attribute information of the text to be prompted and the display size of the non-display area in the display screen. It should be noted that, for a moving object, especially an object with a large moving amplitude, the execution main body may obtain the position information of the target object in real time, so as to flexibly determine the non-display area, and accurately display the sub text in the text to be prompted in the non-display area. Of course, there is a case where the display area of the moving object changes during the movement, for example, the moving object changes from being entirely present in the display screen to being partially present in the display screen. For this case, the execution body needs position information and a display area of the real-time target object to flexibly determine the non-display area and the text currently displayed by the transparent floating layer.
With continued reference to fig. 3, fig. 3 is a schematic diagram 300 of an application scenario of the text display method according to the present embodiment. In the application scenario of fig. 3, the user 301 is a knowledge-based video blogger. Before the user 301 captures a video through the terminal device 302, a text to be prompted is imported to the terminal device 302. First, the terminal device 302 acquires a text to be prompted that is imported by the user 301. Then, the terminal device generates a transparent floating layer covering the current interface of the display screen. The content displayed on the current interface of the display screen is a video picture of the user 301. Finally, the terminal device 302 displays the text to be prompted on the transparent floating layer, as shown in the interface 303.
According to the method provided by the embodiment of the disclosure, the text to be prompted of the user is obtained; generating a transparent floating layer covering the current interface of the display screen; and displaying the text to be prompted on the transparent floating layer, thereby providing a text display method and improving the flexibility and the practicability of text display.
In some optional implementation manners of this embodiment, the execution main body may further switch the text displayed on the transparent floating layer based on a preset switching instruction of a user.
As an example, the preset switching instruction is a left slide instruction and a right slide instruction on the display screen. And the left-sliding instruction represents the last screen of the currently displayed text of the transparent floating layer, and the right-sliding instruction represents the next screen of the currently displayed text of the transparent floating layer. Specifically, in the device running the android system, receiving a preset switching instruction of a user shows that an ontouchvent event in the system is detected.
In some implementations, the preset switching instructions are characterized by a form of voice instructions. Specifically, the executing body first determines whether the user completes the expression of the text currently displayed on the transparent floating layer based on the obtained recording of the text to be prompted by the user. The text displayed on the transparent float is then switched in response to determining that the user has completed the presentation of the text currently displayed on the transparent float.
The preset switching instruction can be represented by the fact that a user finishes reading the text currently displayed on the transparent floating layer.
In some optional implementations of this embodiment, the execution subject needs to acquire the floating window permission before generating the transparent floating layer overlaid on the current interface of the display screen.
With continuing reference to FIG. 4, an exemplary flow 400 of one embodiment of a text display method according to the present application is shown, comprising the steps of:
step 401, obtaining a text to be prompted of a user.
Step 402, generating a transparent floating layer covering the current interface of the display screen.
And step 403, determining a display area of the target object in the display screen according to the content displayed on the current interface.
And step 404, segmenting the text to be prompted into at least one sub-text according to the attribute information of the text to be prompted and the display size of the non-display area in the display screen.
And 405, displaying each sub-text of the at least one sub-text in the sequence of the at least one sub-text in the text to be prompted based on the adjusted display style in the non-display area corresponding to the target object in the transparent floating layer.
And step 406, determining whether the user finishes the expression of the currently displayed text on the transparent floating layer based on the obtained recording of the text to be prompted by the user.
Step 407, in response to determining that the user has completed the presentation of the text currently displayed on the transparent float, switches the text displayed on the transparent float.
As can be seen from this embodiment, compared with the embodiment corresponding to fig. 2, the flow 400 of the text display method in this embodiment specifically illustrates a specific process of displaying a text to be prompted on the transparent floating layer, so that flexibility and practicability of text display are further improved.
With continuing reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides an embodiment of a text display apparatus, which corresponds to the embodiment of the method illustrated in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the text display device includes: the method comprises the following steps: a first obtaining unit 501 configured to obtain a text to be prompted of a user; a generating unit 502 configured to generate a transparent floating layer overlaid on a current interface of a display screen; a display unit 503 configured to display the text to be prompted on the transparent floating layer.
In some optional implementations of this embodiment, the display unit 503 is further configured to: determining a display area of a target object in a display screen according to the content displayed on the current interface; and displaying the text to be prompted in a non-display area corresponding to the target object in the transparent floating layer.
In some optional implementations of this embodiment, the display unit 503 is further configured to: converting at least part of texts in the texts to be prompted into target pictures in a preset format; and rendering the target picture on the transparent floating layer.
In some optional implementations of this embodiment, the apparatus further includes: an adjusting unit (not shown in the figure) configured to receive an adjustment instruction of the display style of the text to be prompted from the user, and adjust the display style of the text to be prompted; and a display unit 503 further configured to display the text to be prompted on the transparent floating layer based on the adjusted display style.
In some optional implementations of this embodiment, the display unit 503 is further configured to: segmenting the text to be prompted into at least one sub-text according to the attribute information of the text to be prompted and the display size of the display screen; and displaying each sub-text of the at least one sub-text in the text to be prompted according to the sequence of the at least one sub-text on the transparent floating layer.
In some optional implementations of this embodiment, the apparatus further includes: and a switching unit (not shown in the figure) configured to switch the text displayed on the transparent floating layer based on a preset switching instruction of a user.
In some optional implementations of this embodiment, the switching unit (not shown in the figure) is further configured to: determining whether the user finishes the expression of the currently displayed text on the transparent floating layer based on the obtained recording of the user about the text to be prompted; in response to determining that the user has completed the presentation of the text currently displayed on the transparent float, switching the text displayed on the transparent float.
In some optional implementations of this embodiment, the apparatus further includes: and a second acquiring unit (not shown in the figure) configured to acquire the floating window authority before generating the transparent floating layer overlaid on the current interface of the display screen.
In some optional implementations of the embodiment, the content displayed on the current interface of the display screen is a video picture representing the user and being shot.
In this embodiment, a first obtaining unit in a text display device obtains a text to be prompted of a user; the generating unit generates a transparent floating layer covering the current interface of the display screen; the display unit displays the text to be prompted on the transparent floating layer, so that the text display device is provided, and the flexibility and the practicability of text display are improved.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing devices of embodiments of the present application (e.g., devices 101, 102, 103, 105 shown in FIG. 1). The apparatus shown in fig. 6 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a processor (e.g., CPU, central processing unit) 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The processor 601, the ROM602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the client computer, partly on the client computer, as a stand-alone software package, partly on the client computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first acquisition unit, a generation unit, and a display unit. The names of the cells do not in some cases constitute a limitation on the cells themselves, and for example, the display cell may also be described as a "cell displaying text to be prompted on a transparent floating layer".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the computer device to: acquiring a text to be prompted of a user; generating a transparent floating layer covering the current interface of the display screen; and displaying the text to be prompted on the transparent floating layer.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. A text display method, comprising:
acquiring a text to be prompted of a user;
generating a transparent floating layer covering the current interface of the display screen;
and displaying the text to be prompted on the transparent floating layer.
2. The method of claim 1, wherein the displaying the text to be prompted on the transparent floating layer comprises:
determining a display area of a target object in the display screen according to the content displayed on the current interface;
and displaying the text to be prompted in a non-display area corresponding to the target object in the transparent floating layer.
3. The method of claim 1, wherein the displaying the text to be prompted on the transparent floating layer comprises:
converting at least part of texts in the texts to be prompted into target pictures in a preset format;
rendering the target picture on the transparent floating layer.
4. The method of claim 1, further comprising:
receiving an adjustment instruction of the user for the display style of the text to be prompted, and adjusting the display style of the text to be prompted; and
the displaying the text to be prompted on the transparent floating layer comprises:
and displaying the text to be prompted on the transparent floating layer based on the adjusted display style.
5. The method of claim 1, wherein the displaying the text to be prompted on the transparent floating layer comprises:
segmenting the text to be prompted into at least one sub-text according to the attribute information of the text to be prompted and the display size of the display screen;
and displaying each sub-text of the at least one sub-text on the transparent floating layer according to the sequence of the at least one sub-text in the text to be prompted.
6. The method of claim 1, further comprising:
and switching the text displayed on the transparent floating layer based on a preset switching instruction of the user.
7. The method of claim 6, wherein the switching text displayed on the transparent floating layer based on the preset switching instruction of the user comprises:
determining whether the user finishes the expression of the currently displayed text on the transparent floating layer based on the obtained recording of the user about the text to be prompted;
switching text displayed on the transparent floating layer in response to determining that the user has completed expressing text currently displayed on the transparent floating layer.
8. The method of claim 1, wherein prior to said generating the transparent floating layer overlaid on the current interface of the display screen, further comprising:
and acquiring the authority of the floating window.
9. The method of claim 1, wherein the content displayed by the current interface of the display screen is a video picture being taken that characterizes the user.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-9.
11. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
CN202110306951.1A 2021-03-23 2021-03-23 Text display method, apparatus and computer readable medium Active CN112949252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110306951.1A CN112949252B (en) 2021-03-23 2021-03-23 Text display method, apparatus and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110306951.1A CN112949252B (en) 2021-03-23 2021-03-23 Text display method, apparatus and computer readable medium

Publications (2)

Publication Number Publication Date
CN112949252A true CN112949252A (en) 2021-06-11
CN112949252B CN112949252B (en) 2023-08-04

Family

ID=76227931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110306951.1A Active CN112949252B (en) 2021-03-23 2021-03-23 Text display method, apparatus and computer readable medium

Country Status (1)

Country Link
CN (1) CN112949252B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142031A (en) * 2015-08-17 2015-12-09 北京奇虎科技有限公司 Method and device for displaying character information in barrage during video play
CN106910504A (en) * 2015-12-22 2017-06-30 北京君正集成电路股份有限公司 A kind of speech reminding method and device based on speech recognition
WO2017113853A1 (en) * 2015-12-30 2017-07-06 乐视控股(北京)有限公司 Multi-channel video information display method and device
CN107360308A (en) * 2017-06-19 2017-11-17 汪剑 The display methods and device of mobile phone live APP main broadcaster end dialog region
US9959009B1 (en) * 2016-12-23 2018-05-01 Beijing Kingsoft Internet Security Software Co., Ltd. Method for displaying information, and terminal equipment
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN111917937A (en) * 2020-06-23 2020-11-10 广州优谷信息技术有限公司 Prompter display method, device, prompter system, operation terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142031A (en) * 2015-08-17 2015-12-09 北京奇虎科技有限公司 Method and device for displaying character information in barrage during video play
CN106910504A (en) * 2015-12-22 2017-06-30 北京君正集成电路股份有限公司 A kind of speech reminding method and device based on speech recognition
WO2017113853A1 (en) * 2015-12-30 2017-07-06 乐视控股(北京)有限公司 Multi-channel video information display method and device
US9959009B1 (en) * 2016-12-23 2018-05-01 Beijing Kingsoft Internet Security Software Co., Ltd. Method for displaying information, and terminal equipment
CN107360308A (en) * 2017-06-19 2017-11-17 汪剑 The display methods and device of mobile phone live APP main broadcaster end dialog region
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN111917937A (en) * 2020-06-23 2020-11-10 广州优谷信息技术有限公司 Prompter display method, device, prompter system, operation terminal and storage medium

Also Published As

Publication number Publication date
CN112949252B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN110458918B (en) Method and device for outputting information
CN108833787B (en) Method and apparatus for generating short video
CN111325704B (en) Image restoration method and device, electronic equipment and computer-readable storage medium
KR20210147868A (en) Video processing method and device
CN110349107B (en) Image enhancement method, device, electronic equipment and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
US20220103782A1 (en) Method for video frame interpolation, and electronic device
CN111783508A (en) Method and apparatus for processing image
CN108845741B (en) AR expression generation method, client, terminal and storage medium
CN110675465A (en) Method and apparatus for generating image
CN111540032A (en) Audio-based model control method, device, medium and electronic equipment
WO2019242409A1 (en) Qr code generation method and apparatus for terminal device
CN112308950A (en) Video generation method and device
CN109871465B (en) Time axis calculation method and device, electronic equipment and storage medium
US11750876B2 (en) Method and apparatus for determining object adding mode, electronic device and medium
CN112949252B (en) Text display method, apparatus and computer readable medium
CN110619615A (en) Method and apparatus for processing image
US10997365B2 (en) Dynamically generating a visually enhanced document
CN109062645B (en) Method and apparatus for processing information for terminal
CN113641853A (en) Dynamic cover generation method, device, electronic equipment, medium and program product
CN115209215A (en) Video processing method, device and equipment
CN110662099B (en) Method and device for displaying bullet screen
CN110599437A (en) Method and apparatus for processing video
CN113762260A (en) Method, device and equipment for processing layout picture and storage medium
US20220292731A1 (en) Method and apparatus for text effect processing

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
GR01 Patent grant
GR01 Patent grant