CN112949252B - Text display method, apparatus and computer readable medium - Google Patents

Text display method, apparatus and computer readable medium Download PDF

Info

Publication number
CN112949252B
CN112949252B CN202110306951.1A CN202110306951A CN112949252B CN 112949252 B CN112949252 B CN 112949252B CN 202110306951 A CN202110306951 A CN 202110306951A CN 112949252 B CN112949252 B CN 112949252B
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.)
Active
Application number
CN202110306951.1A
Other languages
Chinese (zh)
Other versions
CN112949252A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A text display method, apparatus, and computer readable medium are disclosed. One embodiment of the method comprises the following steps: 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 text display method improves flexibility and practicability of text display.

Description

Text display method, apparatus and computer readable medium
Technical Field
Embodiments of the present application relate to the field of computer technologies, and in particular, to a text display method, apparatus, and computer readable medium.
Background
When capturing video, a subject typically needs the assistance of a prompter to more smoothly express what he wants to express. Currently, related content is generally displayed by placing paper or a display screen behind the photographing apparatus to prompt the subject.
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 device, including: the first acquisition unit is configured to acquire a text to be prompted of a user; a generation unit configured to generate a transparent floating layer that covers a current interface of the display screen; and the display unit is configured to display the text to be prompted on the transparent floating layer.
In a third aspect, embodiments of the present application provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method as described in any of the implementations 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 the method as described in any of the implementations of the first aspect.
According to the text display method, the text to be prompted of the user is obtained; generating a transparent floating layer covering the current interface of the display screen; the text to be prompted is displayed on the transparent floating layer, so that a text display method is provided, and flexibility and practicability of text display are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
FIG. 2 is a flow chart according to one embodiment of a text display method of the present application;
fig. 3 is a schematic diagram of an application scenario of the text display method according to the present embodiment;
FIG. 4 is a flow chart 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 schematic diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary architecture 100 in which the text display methods and apparatus of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The communication connection between the terminal devices 101, 102, 103 constitutes a topology network, the network 104 being the medium for providing the communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 101, 102, 103 may be hardware devices or software supporting network connections for data interaction and data processing. When the terminal device 101, 102, 103 is hardware, it may be various electronic devices supporting network connection, information acquisition, interaction, display, processing, etc., including but not limited to smart phones, tablet computers, electronic book readers, laptop portable computers, desktop computers, etc.; various applications may be provided thereon including, but not limited to, instant messaging applications, video applications, shopping applications, office applications, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background processing server that acquires information acquired by a user through the terminal devices 101, 102, 103 and performs data transmission between the communicatively connected terminal devices. Taking the short video scene as an example, the terminal device 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, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be further noted that, the text display method provided by the embodiment of the present disclosure may be executed by a server, may be executed by a terminal device, or may 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 provided in the server, may be 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 is run does not need to perform data transmission with other electronic devices, the system architecture may include only the electronic device (e.g., server or terminal device) on which the text display method is run.
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, the execution subject (e.g., the terminal device in fig. 1) of the text display method may obtain the text to be prompted by the user. Wherein the text to be prompted characterizes the text to be expressed by the user.
In many real-world scenarios, a user needs to more smoothly express content that he wants to express with the aid of a prompter. For example, a knowledge video blogger needs to prompt knowledge points to be expressed through a prompter in the process of shooting videos.
In this embodiment, the user may input the text to be prompted to the execution body by inputting the text in real time, importing the existing text, converting the voice into the text, and the like. The execution subject supports a voice-to-text function corresponding to a text input form of voice-to-text.
Step 202, generating a transparent floating layer covering the current interface of the display screen.
In this embodiment, the execution body may generate a transparent floating layer that covers the current interface of the display screen. Wherein the transparent floating layer may cover at least a partial area in the current interface of the display screen.
In this embodiment, the current interface of the display screen of the execution subject may be any interface related to the execution subject, including, but not limited to, a system interface of the execution subject, and an application interface of an application running on the execution subject. The applications running on the execution subject include, but are not limited to, instant messaging applications, video applications, shopping applications, and office applications.
As an example, in the process that the user shoots the video through the video-type application, the current interface of the display screen of the execution subject is a video picture including the user object, and the execution subject generates the transparent floating layer on the video picture. The video picture displayed on the current interface of the display screen can still be viewed through the transparent floating layer.
And 203, displaying the text to be prompted on the transparent floating layer.
In this embodiment, the executing body may display the text to be prompted on the transparent floating layer.
In this embodiment, the executing body may display at least part of the text to be prompted on the transparent floating layer in various manners. As an example, the execution subject may render at least a portion of the text to be prompted onto the transparent float layer in text form.
In some optional implementations of this embodiment, the executing body may first convert at least part of the text in the text to be prompted into the target picture in the preset format; then, the target picture is rendered on the transparent floating layer.
Specifically, firstly, the execution body converts at least part of text in the text to be prompted into a target picture in a preset format (for example, bitmap format); and then, calling a texImage2D interface of an OpenGL ES (Open Graphics Library for Embedded Systems, pen graphics library of an embedded system) running in the system of the execution main body, and rendering a target picture on a surface to display at least part of text to be prompted on a 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 display screen realizes the function of the prompter on the basis of providing a clearer current interface.
In some alternative implementations of this embodiment, the executing body may implement the step 203 as follows:
first, according to the content displayed on the current interface, a 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 high user's attention, or sharpness, requirements. For example, in a video capture scene, the target object may be a face image.
In this implementation manner, the executing body may first obtain an information obtaining permission, where the information obtaining permission feature may obtain related information from an application corresponding to the current interface, so as to accurately determine content displayed by the current interface, and further accurately determine a display area of the target object; and the image obtained by the screenshot and representing the current interface can be identified by the 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, so that the display of the text to be prompted is performed on the basis of further ensuring the display effect of the current interface.
In some optional implementations of this embodiment, the execution body may receive an adjustment instruction for adjusting a display style of the text to be prompted by the 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 transparency adjustment as an example, the user can flexibly adjust the transparency of the text to be prompted according to the actual situation (for example, the brightness of the pixels in the 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 manner, the execution body may implement the step 203 as follows: and displaying the text to be prompted on the transparent floating layer based on the adjusted display style.
In some alternative implementations of this embodiment, the executing body may implement the step 203 as follows:
firstly, according to attribute information of a text to be prompted and the display size of a display screen, the text to be prompted is segmented into at least one sub-text.
In this implementation, the attribute information of the text to be prompted includes the number of words and the size of words.
As an example, first, the execution body determines the number of characters displayed per screen of the display screen according to the size of the characters and the display size of the display screen; and then, the execution main body determines the number of display screens of the display screen relative to the text to be prompted and the sub-text displayed by each screen according to the number of characters of the text to be prompted and the number of characters displayed by each screen of the display screen.
Specifically, the execution subject may determine the number of display screens of the text to be prompted by the following formula:
n=x/((sw/w)×(sh/h))
wherein n is the number of display screens, x is the number of characters of the 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 display screen number is calculated, the execution main body can cut the screen of the text to be prompted to obtain a multi-screen text with the display screen number. Second, each of the at least one sub-text is displayed in the order of the at least one sub-text in the text to be prompted on the transparent float layer.
It should be noted that the above implementations may be combined with each other.
As an example, the execution subject may execute the step 203 as follows:
first, according to the content displayed on the current interface, a display area of the target object in the display screen is determined.
And 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 yet another example, the execution body may execute the step 203 as follows:
first, according to the content displayed on the current interface, a display area of the target object in the display screen is determined.
Secondly, according to the attribute information of the text to be prompted and the display size of the non-display area in the display screen, the text to be prompted is segmented into at least one sub-text.
Third, each of the at least one sub-text is displayed in an order of the at least one sub-text in the text to be prompted based on the adjusted display style in a non-display area corresponding to the target object in the transparent floating layer.
It will be appreciated that the target object may be a fixed object, a fixed display position in the display screen, or a moving object, and a non-fixed display position in the display screen. However, whether the 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 unchanged, and the execution body may divide 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 range, the execution body may acquire, in real time, the position information of the target object, so as to flexibly determine a 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 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 above-described execution subject needs the position information and the 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, user 301 is a knowledge-based video blogger. Before the user 301 shoots the video through the terminal device 302, text to be prompted is imported to the terminal device 302. First, the terminal device 302 acquires text to be prompted imported by the user 301. Then, the terminal device generates a transparent floating layer that is overlaid on 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 interface 303.
The method provided by the embodiment of the disclosure comprises the steps of obtaining the text to be prompted of a user; generating a transparent floating layer covering the current interface of the display screen; the text to be prompted is displayed on the transparent floating layer, so that a text display method is provided, and flexibility and practicability of text display are improved.
In some optional implementations of this embodiment, the executing body may further switch the text displayed on the transparent floating layer based on a preset switching instruction of the user.
As an example, the preset switching instruction is a left-slide instruction, a right-slide instruction on the display screen. The left sliding instruction represents a last screen text of a current display text of the transparent floating layer, and the right sliding instruction represents a next screen text of the current display text of the transparent floating layer. Specifically, in the device running the android system, receiving the preset switching instruction from the user is shown as detecting the onTouchEvent event in the system.
In some implementations, the preset switch instruction is characterized by a voice instruction form. Specifically, the execution subject first determines whether the user completes the expression of the text currently displayed on the transparent floating layer based on the acquired recording of the text to be prompted by the user. Then, in response to determining that the user completes the expression of the text currently displayed on the transparent float layer, the text displayed on the transparent float layer is switched.
The preset switching instruction can be represented by a user reading the text currently displayed on the transparent floating layer.
In some optional implementations of this embodiment, the executing entity needs to obtain the floating window authority before generating the transparent floating layer that is overlaid on the current interface of the display screen.
With continued reference to fig. 4, there is shown an illustrative flow 400 of one embodiment of a text display method according to the present application, comprising the steps of:
step 401, obtaining text to be prompted by a user.
Step 402, a transparent floating layer is generated to cover the current interface of the display screen.
Step 403, determining a display area of the target object in the display screen according to the content displayed by 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.
Step 405, displaying each of the at least one sub-text in the order of the at least one sub-text in the text to be prompted based on the adjusted display style in the transparent floating layer corresponding to the non-display area of the target object.
Step 406, determining 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.
In step 407, in response to determining that the user has completed the expression of the text currently displayed on the transparent float layer, the text displayed on the transparent float layer is switched.
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 the text to be prompted on the transparent floating layer, so as to further improve flexibility and practicality of text display.
With continued reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a text display device, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the text display device includes: comprising the following steps: a first obtaining unit 501 configured to obtain a text to be prompted by a user; a generating unit 502 configured to generate a transparent floating layer that is overlaid on a current interface of the display screen; and a display unit 503 configured to display text to be prompted on the transparent floating layer.
In some optional implementations of the present embodiment, the display unit 503 is further configured to: determining a display area of the 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 the present 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; rendering the target picture on the transparent floating layer.
In some optional implementations of this embodiment, the apparatus further includes: an adjustment unit (not shown in the figure) configured to receive an adjustment instruction of a display style of the text to be prompted by a 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 the present embodiment, the display unit 503 is further configured to: dividing 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; each of the at least one sub-text is displayed in the order of the at least one sub-text in the text to be prompted on the transparent float layer.
In some optional implementations of this embodiment, the apparatus further includes: 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 the present embodiment, a switching unit (not shown in the figure) is further configured to: determining whether the user completes the expression of the text currently displayed on the transparent floating layer or not based on the acquired record of the text to be prompted by the user; and switching the text displayed on the transparent floating layer in response to determining that the user completes the expression of the text currently displayed on the transparent floating layer.
In some optional implementations of this embodiment, the apparatus further includes: a second acquisition 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 alternative implementations of the present embodiment, the current interface of the display screen displays content that is capturing a video picture that characterizes the user.
In this embodiment, a first obtaining unit in the text display device obtains a text to be prompted by a user; the generation unit generates a transparent floating layer covered on 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 flexibility and practicability of text display are improved.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing the apparatus of embodiments of the present application (e.g., apparatus 101, 102, 103, 105 illustrated in FIG. 1). The apparatus shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 6, the computer system 600 includes a processor (e.g., CPU, central processing unit) 601, which 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 required for the operation of the system 600 are also stored. The processor 601, the ROM602, and the RAM603 are connected to each other through 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, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; 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 drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the method of the present application are performed when the computer program is executed by the processor 601.
It should be noted that the computer readable medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this document, 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 the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first acquisition unit, a generation unit, and a display unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the display unit may also be described as "a unit that displays text to be prompted on a transparent float layer".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted 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 foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (9)

1. A text display method, comprising:
acquiring a text to be prompted of a user;
generating a transparent floating layer covered on a current interface of a display screen, wherein the current interface displays videos shot by a video shooting person or videos watched by a video viewer;
displaying the text to be prompted on the transparent floating layer to realize the function of a prompter;
based on the preset switching instruction of the user, switching the text displayed on the transparent floating layer, including:
determining whether the user completes the expression of the text currently displayed on the transparent floating layer or not based on the acquired recording of the text to be prompted by the user;
and switching the text displayed on the transparent floating layer in response to determining that the user completes the expression of the text currently displayed 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 by 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 the text in the text to be prompted into a target picture 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 to 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 the following steps:
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:
dividing 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 order of the at least one sub-text in the text to be prompted on the transparent floating layer.
6. The method of claim 1, wherein prior to the generating the transparent floating layer overlaying the current interface of the display screen, further comprising:
and obtaining the floating window authority.
7. The method of claim 1, wherein the content displayed by the current interface of the display screen is a video picture characterizing the user being photographed.
8. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-7.
9. 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, causes the one or more processors to implement the method of any of claims 1-7.
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 CN112949252A (en) 2021-06-11
CN112949252B true 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
CN112949252A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN110458918B (en) Method and device for outputting information
CN108833787B (en) Method and apparatus for generating short video
CN111553362B (en) Video processing method, electronic device and computer readable storage medium
US11514263B2 (en) Method and apparatus for processing image
CN112954450B (en) Video processing method and device, electronic equipment and storage medium
WO2020007113A1 (en) Method and device for loading image
KR20210147868A (en) Video processing method and device
CN107622504B (en) Method and device for processing pictures
CN111325704B (en) Image restoration method and device, electronic equipment and computer-readable storage medium
CN110059623B (en) Method and apparatus for generating information
CN111459364B (en) Icon updating method and device and electronic equipment
CN110675465A (en) Method and apparatus for generating image
WO2019242409A1 (en) Qr code generation method and apparatus for terminal device
CN114339447B (en) Method, device and equipment for converting picture into video and storage medium
CN111432142B (en) Video synthesis method, device, equipment and storage medium
CN109871465B (en) Time axis calculation method and device, electronic equipment and storage medium
CN112308950A (en) Video generation method and device
CN112949252B (en) Text display method, apparatus and computer readable medium
CN109859328B (en) Scene switching method, device, equipment and medium
CN110619615A (en) Method and apparatus for processing image
CN109062645B (en) Method and apparatus for processing information for terminal
US10997365B2 (en) Dynamically generating a visually enhanced document
CN111914850B (en) Picture feature extraction method, device, server and medium
CN115209215A (en) Video processing method, device and equipment
CN114092362A (en) Panoramic picture loading method and device

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