Text display method and device, electronic equipment and storage medium

By obtaining and rendering the target text in the video editing software and aligning the rendering results with the target text, it solves the problem that users find it difficult to quickly determine the text rendering results, and improves the efficiency and interactivity of text editing.

CN120050470APending Publication Date: 2025-05-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311596000.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In video editing software, it is difficult for users to quickly determine whether the text rendering results meet the editing intention, resulting in low text editing efficiency.

Method used

By obtaining the target frame video image in a multi-frame video image, obtaining and displaying the target text, and rendering it, the rendering result is obtained. Then, align the rendering results with the target text and display the aligned rendering results at the specified editing position.

Benefits of technology

It improves the intuitiveness of users to view target text rendering results at specified editing locations, allowing users to quickly determine whether the rendering results meet the needs, thereby enhancing the text editing interaction capabilities of video editing software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050470A_ABST
    Figure CN120050470A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, and discloses a text display method and device, electronic equipment and a storage medium. The invention provides a text display method, which comprises the following steps: acquiring a plurality of frames of video images, the plurality of frames of video images comprising a target frame of video image to be subjected to text editing; obtaining a target text from a specified editing position of the target frame video image, and displaying the target text on the specified editing position; rendering the target text to obtain a rendering result; and aligning the rendering result with the target text, and displaying the aligned rendering result on a specified editing position. The interaction capability of executing text editing by the video editing software is enhanced, and the mode of displaying the result after the target text is rendered is more intuitive and friendly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision technology, and in particular to a text display method, device, electronic device and storage medium. Background Art

[0002] As video gameplay becomes increasingly rich and mature, adding text to videos in video editing software has become a common editing function for users. However, in actual applications, since users can only view the rendering results of text at the location where text needs to be added, it is not conducive for users to quickly determine whether the current rendering results meet the user's text editing intention. Summary of the invention

[0003] In view of this, the present disclosure provides a text display method, device, electronic device and storage medium to solve the problem of low efficiency in text editing of videos.

[0004] In a first aspect, the present disclosure provides a text display method, comprising:

[0005] Acquire multiple video frames, wherein the multiple video frames include a target video frame to be edited;

[0006] Obtain the target text from the specified editing position of the target frame video image, and display the target text at the specified editing position;

[0007] Render the target text and get the rendering result;

[0008] Align the rendering result with the target text and display the aligned rendering result at the specified editing position.

[0009] In a second aspect, the present disclosure provides a text display device, comprising:

[0010] An acquisition module, used for acquiring multiple video frames, wherein the multiple video frames include a target video frame to be edited;

[0011] A first execution module is used to obtain a target text from a designated editing position of a target frame video image, and display the target text at the designated editing position;

[0012] The rendering module is used to render the target text and obtain the rendering result;

[0013] The second execution module is used to align the rendering result with the target text, and display the aligned rendering result at the designated editing position.

[0014] In a third aspect, the present disclosure provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the text display method according to the first aspect or any corresponding embodiment thereof.

[0015] In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the text display method according to the first aspect or any corresponding embodiment thereof.

[0016] For the text display method provided by the embodiments of the present disclosure, after determining a target frame video image to be text-edited from multiple frame video images, at a specified editing position in the target frame video image where text editing is required, a target text is obtained and displayed, and then the target text is rendered to obtain a rendering result. To facilitate the user to intuitively view the result after rendering the target text from the specified position editing, the rendering result is aligned with the target text, and then the aligned rendering result is displayed at the specified editing position, so that the user can quickly determine whether the aligned rendering result currently displayed at the specified editing position meets their own needs, which helps to enhance the interaction ability of the video editing software to perform text editing and makes the way of displaying the result after rendering the target text more friendly. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 is a schematic diagram of text editing input in the prior art;

[0019] Figure 2 is a schematic diagram of the rendering effect result in the prior art;

[0020] Figure 3 is a schematic flowchart of the text display method according to the embodiments of the present disclosure;

[0021] Figure 4 is a schematic diagram of text editing input according to the embodiments of the present disclosure;

[0022] Figure 5 is a schematic diagram of the display of the target text according to the embodiments of the present disclosure;

[0023] Figure 6It is a schematic diagram of a rendering effect according to an embodiment of the present disclosure;

[0024] Figure 7 It is a schematic flowchart of another text display method according to an embodiment of the present disclosure;

[0025] Figure 8 It is a schematic flowchart of yet another text display method according to an embodiment of the present disclosure;

[0026] Figure 9 It is a schematic diagram of yet another rendering effect according to an embodiment of the present disclosure;

[0027] Figure 10 It is a schematic diagram of the engine position relationship according to an embodiment of the present disclosure;

[0028] Figure 11 It is a schematic diagram of the component framework of a video editing software according to an embodiment of the present disclosure;

[0029] Figure 12 It is a block diagram of the structure of a text display device according to an embodiment of the present disclosure;

[0030] Figure 13 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present disclosure. Detailed implementation manners

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some, rather than all, of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

[0032] As Figure 1 shown, in practical applications, when a user needs to add text to the current video, it is necessary to first determine the text addition position (the virtual box in the video content) in the current frame of the video where the text needs to be added, and then input the text to be input in the input box provided by the keyboard. When the input of the text to be input is completed, the rendering result of the text to be input is displayed at the text addition position. For example: as Figure 2 shown, taking the text to be input as "#Clock in" as an example, when the input of "#Clock in" in the input box provided by the keyboard is completed, the rendering result corresponding to "#Clock in" is displayed at the text addition position.

[0033] Since the input position of the text to be input and the display position of the rendering result are provided by different controls, and there are also significant differences in the display positions, therefore, using this method for text editing is not conducive to the user quickly determining whether the current rendering result meets the user's text editing intention.

[0034] Based on this, the embodiments of the present disclosure provide a text display method, which enables the user to directly view the rendered result of the target text when editing at the specified location of the input target text, so that the user can quickly determine whether the aligned rendering result currently displayed at the specified editing location meets his or her own needs, thereby helping to enhance the interactive ability of the video editing software to perform text editing, and making the way of displaying the rendered result of the target text more intuitive and user-friendly.

[0035] According to an embodiment of the present disclosure, a text display method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] In this embodiment, a text display method is provided, which can be used in the above-mentioned electronic devices, such as computers, mobile terminals, etc. Figure 3 is a flowchart of a text display method according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:

[0037] Step S301, obtaining multiple frames of video images.

[0038] The multiple video frames include the target video frames to be edited. The multiple video frames may be all the video frames constituting the video, or may be partial video frames captured according to user requirements.

[0039] The video corresponding to the multi-frame video images comes from a scene recorded in real time using a camera device (e.g., a video camera, a smart phone, a surveillance camera, etc.). The video can be obtained from a local database or downloaded from a cloud database. There is no limitation on the method of obtaining the video to be identified, and it can be set according to actual needs.

[0040] Step S302, obtaining the target text from the designated editing position of the target frame video image, and displaying the target text at the designated editing position.

[0041] The designated editing position can be understood as a position where text editing is allowed, and the designated editing position can be a user-specified position or a preset default position. The target text can be understood as the text that the user needs to add to the target frame video image.

[0042] When the target text is obtained at the specified editing position on the target frame video image, it indicates that the user has input the target text at the specified editing position. Therefore, to facilitate the user to clearly understand the content currently input at the specified editing position, the target text is displayed at the specified editing position so that the user can intuitively view the currently input target text, and when the target text is input incorrectly, it can be adjusted in time to obtain the correct target text.

[0043] Step S303: Render the target text to obtain a rendering result.

[0044] To make the display of the target text more beautiful, the currently obtained target text is rendered to obtain a rendering result. Among them, the content of rendering the target text includes but is not limited to: effects such as font, font size, color, alignment, shadow, and stroke. Among them, the rendering result after rendering can be a static picture or a dynamic animation effect, specifically depending on the user's choice, which is not limited here.

[0045] Step S304: Align the rendering result with the target text and display the aligned rendering result at the specified editing position.

[0046] Since the difference between the rendering result after rendering and the target text may be large, in order to facilitate the user to more intuitively view the display result after rendering the target text, a correspondence relationship is established between the rendering result and the target text so that the rendering result can be aligned with the target text, and then the aligned rendering result can be directly displayed at the specified editing position, facilitating the user to more intuitively confirm whether the current rendering effect meets their own needs, making the way of displaying the result after rendering the target text more friendly, and thus helping the user to quickly complete text editing.

[0047] The text display method provided in this embodiment, after determining the target frame video image to be text-edited from multiple frame video images, obtains and displays the target text at the specified editing position where text editing is required in the target frame video image, and then renders the target text to obtain a rendering result. To facilitate the user to intuitively view the result after rendering the target text from the specified position editing, the rendering result is aligned with the target text, and then the aligned rendering result is displayed at the specified editing position, so that the user can quickly determine whether the aligned rendering result currently displayed at the specified editing position meets their own needs, thereby helping to enhance the interaction ability of the video editing software to perform text editing, making the way of displaying the result after rendering the target text more friendly, and being beneficial to improving the user experience.

[0048] In some optional implementation scenarios, the process of displaying the rendering display result of the target text by the above text display method can be as Figures 4 to 6 shown. Among them, asFigure 4 As shown, the virtual frame in the target frame video image is the specified editing position. For example, Figure 5 as shown, after the user selects the specified editing position, the target text ("#Check-in") can be input above the text to be input. Then, after the input of "#Check-in" is completed, it is displayed at the specified editing position. Taking the rendering effect of bolding "#Check-in" as an example, the schematic diagram of the rendering result displayed at the specified editing position after alignment can be as Figure 6 shown. Among them, the bold "#Check-in" superimposed with the original "#Check-in" is the rendering result after alignment, which can be used as the rendering display result of the target text.

[0049] In this embodiment, a text display method is provided, which can be used in the above-mentioned electronic devices, such as computers, mobile terminals, etc. Figure 7 is a flowchart of the text display method according to an embodiment of the present disclosure. As Figure 7 shown, the process includes the following steps:

[0050] Step S701, obtain multiple frames of video images.

[0051] Step S702, obtain the target text from the specified editing position of the target frame video image, and display the target text at the specified editing position.

[0052] Step S703, render the target text to obtain a rendering result.

[0053] Step S704, align the rendering result with the target text, and display the aligned rendering result at the specified editing position.

[0054] Specifically, the above step S704 includes:

[0055] Step S7041, determine the display ratio of the current font size displayed in the first display window to the current font size displayed in the second display window according to the current font size of the target text.

[0056] The first display window is the window for displaying multiple frames of video images, and the second display window is the window for displaying the rendering result. Since the rendering result and the target text are displayed in different windows respectively, and there may be differences in text display in different windows, therefore, in order to facilitate the targeted alignment of the rendering result with the target text, when the current font size of the target text is determined, the display ratio of the current font size displayed in the first display window to the current font size displayed in the second display window is determined, so that through this display ratio, it can be ensured that the font size of the aligned rendering result displayed in the second display window is consistent with the current font size.

[0057] In an optional implementation scenario, when the current font size is determined, the display ratio can be calculated in the following manner:

[0058] The unit of the current font size (fontSize) for display in the first display window is points (pt), and the expression for converting it to pixels is as follows: systemSize * ScreenScale, where systemSize is the font size in points and ScreenDPI is the pixel density per inch of the first display window.

[0059] The pixel conversion expression corresponding to the second display window is as follows: fontSize * 300 / 72.0, where 300 represents the pixel density per inch of the second display window and 72.0 is the number of points in 1 inch.

[0060] To align the rendering result with the target text, the following relational expression is established:

[0061] fontSize * 300 / 72.0 = systemSize * ScreenScale;

[0062] fontSize = systemSize * ScreenScale * 72.0 / 300;

[0063] fontSize = systemSize * (Player2Width / (Player1Width * ScreenScale)) * ScreenScale * 72.0 / 300;

[0064] The finally obtained display ratio rate = (Player2Width / player1Width) * (72.0 / 300.0).

[0065] Among them, Player2Width is the display width of the second display window. Player1Width is the display width of the first display window. In an example, Player2Width can be a preset fixed value, for example: 720.0.

[0066] Step S7042, based on the display ratio, adjust the rendering result to obtain the aligned rendering result.

[0067] Based on the display ratio, the adjustment direction of the rendering result can be determined, and then targeted alignment can be performed to obtain the aligned rendering result. Thus, when displaying subsequently, the readability of the aligned rendering result can be ensured, which is beneficial to enhancing the visualization effect of the rendering display result of the target text and facilitating the improvement of the user experience.

[0068] In an optional implementation manner, the above step S7042 includes:

[0069] Step a1: Determine the first value corresponding to the text configuration parameter according to the target text displayed in the first display window at the current font size.

[0070] The text configuration parameter can be understood as the configuration parameter for displaying the target text in the first display window at the current font size. The text configuration parameter includes but is not limited to the following parameters: font size, text width, background roundness, character spacing, line spacing, shadow width, etc. To facilitate clarifying the adjustment direction, first determine the first value corresponding to the text configuration parameter when the target text is displayed in the first display window.

[0071] Step a2: Determine the second value of the text configuration parameter in the second display window based on the display ratio and the first value.

[0072] Based on the display ratio and the first value, an adjusted value applicable to the second display window can be obtained, which can ensure that the text has a consistent configuration effect on different display windows, thereby providing a unified and highly readable user experience.

[0073] In an optional implementation scenario, the calculation process for determining the second value from the first value can be as shown in Table 1 below:

[0074] Table 1

[0075]

[0076] Among them, the text editing component is a component that supports the user to input the target text within the first display window.

[0077] Step a3: Adjust the text configuration parameter of the rendering result according to the second value to obtain an aligned rendering result.

[0078] To make the display font size of the rendering result the same as the current font size, specifically adjust the text configuration parameter of the rendering result according to the second value, so as to obtain an aligned rendering result that can be consistent with the target text.

[0079] In some optional implementation manners, if the text configuration parameter is the maximum display width, then the above step a3 includes:

[0080] Step a31: Determine the first display line number of the target text in the first display window;

[0081] Step a32: Determine the second display line number of the rendering result in the second display result;

[0082] Step a33: If the second display line number is greater than the first display line number, add a line break in the target text to change the first display line number to the second display line number.

[0083] Specifically, according to the maximum display width of the first display window, determine the first number of display lines when the target text is currently displayed in the first display window. According to the maximum display width of the second display window, determine the second number of display lines of the aligned rendering result under the second display result. To avoid the situation where the second number of display lines after rendering is inconsistent with the first number of display lines and affects the user's visual experience, compare the second number of display lines with the first number of display lines. If the second number of display lines is greater than the first number of display lines, add a line break in the target text to change the first number of display lines to the second number of display lines, thereby ensuring that the number of lines of the aligned rendering result is the same as that of the target text.

[0084] Step S7043, display the aligned rendering result at the specified editing position.

[0085] The text display method provided in this embodiment aligns the rendering result with the target text, and then displays the aligned rendering result at the specified editing position, which can ensure that the readability of the aligned rendering result is not affected, thereby enhancing the visualization effect of the rendering display result of the target text and facilitating the improvement of the user experience.

[0086] In this embodiment, a text display method is provided, which can be used in the above-mentioned electronic devices, such as computers, mobile terminals, etc. Figure 8 It is a flowchart of the text display method according to an embodiment of the present disclosure, as Figure 8 shown, and this process includes the following steps:

[0087] Step S801, obtain multiple frames of video images.

[0088] Step S802, obtain the target text from the specified editing position of the target frame video image, and display the target text at the specified editing position.

[0089] Step S803, render the target text to obtain a rendering result.

[0090] Step S804, align the rendering result with the target text, and display the aligned rendering result at the specified editing position.

[0091] Step S805, if the target frame video image is a continuous multiple frames of images, during the playback of the multiple frames of images, respond to the position movement instruction executed on the aligned rendering result, track the movement trajectory of the aligned rendering result, and determine the position refresh rate of the aligned rendering result based on the current playback frame rate of the multiple frames of images.

[0092] Preview the display of the rendered result after alignment in the video image of the target frame, and then play multiple frames of images. However, during the process of playing multiple frames of images, if a position movement instruction triggered by the user for the rendered result after alignment is received, track the movement trajectory of the rendered result after alignment to determine the target editing position corresponding to the display of the rendered result after alignment on each frame of the image.

[0093] To make the display effect of the rendered result after alignment more friendly, determine the position refresh rate of the rendered result after alignment based on the current playback frame rate of the multiple frames of images, so that during the process of moving the rendered result after alignment, the rendered result after alignment can be correspondingly displayed following the movement of the position, thereby helping to enhance the user experience.

[0094] Specifically, the above step S805 includes:

[0095] Step b1, switch the current playback frame rate to the target playback frame rate, and determine the second position refresh rate of the rendered result after alignment based on the target playback frame rate.

[0096] The target playback frame rate is higher than the current playback frame rate. To improve the dragging smoothness of the rendered result after alignment, switch the current playback frame rate to the target playback frame rate, and then determine the second position refresh rate of the rendered result after alignment based on the target playback frame rate, which can ensure a better alignment effect. For example: if the current playback frame rate is 30 frames per second, the target playback frame rate can be adjusted to 60 frames per second.

[0097] In some optional embodiments, the above step S805 further includes:

[0098] Step b2, in response to the rendered result after alignment stopping moving, restore the target playback frame rate to the current playback frame rate.

[0099] Since the purpose of adjusting the target playback frame rate is to ensure that the rendered result after alignment can be aligned and displayed following the movement of the user's gesture, which is convenient for improving the user's preview experience, rather than adjusting the playback speed of the multiple frames of images, after the user stops moving the rendered result after alignment, restore the target playback frame rate to the current playback frame rate.

[0100] Step S806, display the rendered result after alignment at the target editing position of each frame of the multiple frames of images according to the position refresh rate.

[0101] Displaying the corresponding rendered result after alignment at the target editing position of each frame of the image according to the position refresh rate can ensure that the rendered result after alignment remains consistent among multiple frames of images, thereby achieving visual coherence, which can improve the visual effect and enhance the user experience.

[0102] The text display method provided in this embodiment can enrich the functional diversity of text editing for videos, thereby not only improving the visual effect but also enhancing the user experience.

[0103] In an alternative implementation, to facilitate the user to clearly view the rendering effect after alignment, the target text displayed at the specified editing position is hidden. For example: Combining Figure 5 with the shown target text, it is displayed as Figure 9 shown.

[0104] In an alternative implementation scenario, the first display window can be provided by the first engine of the current operating system of the electronic device, and the second display window is provided by the second engine. Among them, the first engine can be understood as an engine embedded in the current operating system for performing text editing tasks. That is, when the user needs to input the target text, the first engine is called so that the user can input the target text through the text editing component provided by the first engine. The second engine can be understood as an engine for performing text rendering tasks. When it is necessary to render the target text, the second engine obtains the target text to be text-rendered from the first engine and renders the target text through the text rendering component provided by the second engine to obtain the rendering result. In an example, as Figure 10 shown, during the process of performing text editing on the target frame video image, the second engine is located below the first engine, thereby facilitating better alignment of the rendering result with the target text input by the user.

[0105] Based on the same concept, the present disclosure also provides a component framework for video editing software. As Figure 11 shown, when the user inputs the target text at the specified editing position of the target frame video image, the text rendering component provided by the second engine is disabled, and the text editing component provided by the first engine is displayed so that the user can input and display the target text on this text editing component. After the target text is input, the text editing component is automatically hidden, and the second engine is started to render the target text. Then, through the text alignment method, the aligned rendering result is displayed at the position (specified editing position) where the target text is input, so as to achieve the purpose of enabling the video editing software to support both text editing and advanced display effects by using visual difference.

[0106] In this embodiment, a text display device is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0107] This embodiment provides a text display device, as Figure 12 shown, including:

[0108] An acquisition module 1201, configured to acquire multiple frames of video images, where the multiple frames of video images include a target frame video image to be text - edited;

[0109] A first execution module 1202, configured to acquire target text from a specified editing position of the target frame video image and display the target text at the specified editing position;

[0110] A rendering module 1203, configured to render the target text to obtain a rendering result;

[0111] A second execution module 1204, configured to align the rendering result with the target text and display the aligned rendering result at the specified editing position.

[0112] In some alternative embodiments, the first execution module 1202 includes: a first processing unit, configured to determine a display ratio of the current font size displayed between a first display window for displaying multiple frames of video images and a second display window for displaying the rendering result according to the current font size of the target text; a first adjustment unit, configured to adjust the rendering result based on the display ratio to obtain an aligned rendering result; a second processing unit, configured to display the aligned rendering result at the specified editing position.

[0113] In some alternative embodiments, the first adjustment unit includes: a first determination unit, configured to determine a first value corresponding to a text configuration parameter according to the target text displayed in the first display window in the current font size; a second determination unit, configured to determine a second value of the text configuration parameter under the second display window based on the display ratio and the first value; a third processing unit, configured to adjust the text configuration parameter of the rendering result according to the second value to obtain an aligned rendering result.

[0114] In some alternative embodiments, the second determination unit includes: a first line number determination module, configured to determine a first display line number of the target text under the first display window; a second line number determination module, configured to determine a second display line number of the rendering result under the second display result; a first adjustment module, configured to add a line break character to the target text if the second display line number is greater than the first display line number to change the first display line number to the second display line number.

[0115] In some alternative embodiments, if the target frame video image is a series of consecutive frames, the apparatus further includes: a second adjustment module, configured to, during the playback of the series of frames, in response to a position movement instruction executed on the aligned rendering result, track the movement trajectory of the aligned rendering result, and determine the position refresh rate of the aligned rendering result based on the current playback frame rate of the series of frames; and a display module, configured to display the aligned rendering result at the target editing position of each frame in the series of frames according to the position refresh rate.

[0116] In some alternative embodiments, the display module includes: a fourth processing unit, configured to switch the current playback frame rate to a target playback frame rate, and determine a second position refresh rate of the aligned rendering result based on the target playback frame rate, where the target playback frame rate is higher than the current playback frame rate.

[0117] In some alternative embodiments, the apparatus further includes: a third execution module, configured to, in response to the aligned rendering result stopping moving, restore the target playback frame rate to the current playback frame rate.

[0118] In some alternative embodiments, before displaying the aligned rendering result at the specified editing position, the apparatus further includes: a fourth execution module, configured to hide the target text displayed at the specified editing position.

[0119] The further function descriptions of the above-mentioned modules and units are the same as those in the corresponding foregoing embodiments, and will not be elaborated herein.

[0120] The text display apparatus in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0121] This embodiment of the present disclosure further provides an electronic device having the above-mentioned Figure 12 text display apparatus.

[0122] Please refer to Figure 13 , Figure 13 which is a schematic structural diagram of an electronic device provided by an alternative embodiment of the present disclosure. As shown in Figure 13As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting the components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if needed, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). Figure 13 In Figure 13 , a processor 10 is taken as an example.

[0123] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.

[0124] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0125] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the electronic device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0126] The memory 20 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memories.

[0127] The electronic device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 can be connected through a bus or other means.Figure 13 Take the bus connection as an example.

[0128] The input device 30 can receive input digital or character information and generate key signal inputs related to the user settings and function controls of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., LED), and a haptic feedback device (e.g., a vibration motor), etc. The above display device includes but is not limited to a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device can be a touch screen.

[0129] The embodiments of the present disclosure also provide a computer-readable storage medium. The methods according to the embodiments of the present disclosure can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the methods described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.

[0130] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0131] For example, when receiving the user's active request, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that executes the operations of the technical solutions of the present disclosure according to the prompt message.

[0132] As an optional but non-limiting implementation manner, in response to receiving an active request from a user, the manner of sending a prompt message to the user may be, for example, in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0133] It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation manner of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0134] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A text display method, characterized in that, the method includes: Obtain multiple frames of video images, where the multiple frames of video images include a target frame video image to be text-edited; Obtain target text from a specified editing position of the target frame video image, and display the target text at the specified editing position; Render the target text to obtain a rendering result; Align the rendering result with the target text, and display the aligned rendering result at the specified editing position.

2. The method according to claim 1, characterized in that, the step of aligning the rendering result with the target text and displaying the aligned rendering result at the specified editing position includes: Determine a display ratio of the current font size displayed in a first display window to the current font size displayed in a second display window according to the current font size of the target text, where the first display window is a window for displaying the multiple frames of video images, and the second display window is a window for displaying the rendering result; Adjust the rendering result based on the display ratio to obtain an aligned rendering result; Display the aligned rendering result at the specified editing position.

3. The method according to claim 2, characterized in that, the step of adjusting the rendering result based on the display ratio to obtain an aligned rendering result includes: Determine a first value corresponding to a text configuration parameter according to the target text displayed in the first display window in accordance with the current font size; Determine a second value of the text configuration parameter under the second display window based on the display ratio and the first value; Adjust the text configuration parameter of the rendering result according to the second value to obtain the aligned rendering result.

4. The method according to claim 3, characterized in that, if the text configuration parameter is the maximum display width, then the step of adjusting the text configuration parameter of the rendering result according to the second value to obtain the aligned rendering result includes: Determine a first display line number of the target text under the first display window; Determine a second display line number of the rendering result under the second display result; If the second display line number is greater than the first display line number, add a line break in the target text to change the first display line number to the second display line number.

5. The method according to claim 1, characterized in that, if the target frame video image is multiple consecutive images, then the method further includes: During the playback of the multiple images, in response to a position movement instruction executed on the aligned rendering result, track the movement trajectory of the aligned rendering result, and determine a position refresh rate of the aligned rendering result based on the current playback frame rate of the multiple images; Display the aligned rendering result at a target editing position of each frame of the multiple images according to the position refresh rate.

6. The method according to claim 5, characterized in that, the step of determining the position refresh rate of the aligned rendering result based on the current playback frame rate of the multiple images includes: Switch the current playback frame rate to a target playback frame rate, and determine a second position refresh rate of the aligned rendering result based on the target playback frame rate, where the target playback frame rate is higher than the current playback frame rate.

7. The method according to claim 6, wherein, the method further includes: In response to the aligned rendering result stopping moving, restore the target playback frame rate to the current playback frame rate.

8. The method according to claim 1, wherein, before displaying the aligned rendering result at the specified editing position, the method further includes: Hide the target text displayed at the specified editing position.

9. A text display device, wherein, the device includes: an acquisition module, configured to acquire multiple frames of video images, where the multiple frames of video images include a target frame video image to be text-edited; a first execution module, configured to acquire target text from a specified editing position of the target frame video image and display the target text at the specified editing position; a rendering module, configured to render the target text to obtain a rendering result; a second execution module, configured to align the rendering result with the target text and display the aligned rendering result at the specified editing position.

10. An electronic device, wherein, it includes: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the text display method according to any one of claims 1 to 8.

11. A computer-readable storage medium, wherein, computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the text display method according to any one of claims 1 to 8.