Video mask layer display method, device, equipment, and medium
By dynamically adjusting the design of the mask layer area and target mask layer, the problem of poor readability of Chinese fonts in video is solved, and the clear display of target information and the natural transition of the original video color is achieved.
Patent Information
- Application Number
- JP2024504220
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-07-23
- Filing Date
- 2022-05-23
- Publication Date
- 2025-05-08
- Estimated Expiration
- 2042-05-23
AI Technical Summary
The background color of the existing video screen affects the readability of the user's video Chinese fonts. The fixed mask layer template cannot adapt to dynamic content, resulting in unnecessary occlusion and reduced saturation of the original color.
By determining a mask layer area including the first area of the target information and a mask layer area gradually becoming transparent, the target mask layer matching the first and second areas is obtained, and superimposing processing is performed on the video frame, the target information is clearer.
It achieves better readability of the target information, while avoiding excessive impact on the original video color, the color transition is natural, enhancing the visual effect of the video.
Smart Images

Figure 0007673319000001 
Figure 0007673319000002 
Figure 0007673319000003
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of China on July 23, 2021, bearing application number 202110839654.3 and entitled "Video mask layer display method, device, equipment and medium," the entire contents of which are incorporated herein by reference.
[0002] [Technical field] The present invention relates to the field of multimedia information processing technology, and in particular to a method, device, equipment and medium for displaying a video mask layer. [Background technology]
[0003] Due to the influence of the background color of the video screen, when viewing a video, the user has a poor experience in terms of the readability of information such as text displayed on the video. In order to make the information such as text on the video visually easier to see, a masking process is performed on the video screen.
[0004] Currently, a fixed mask layer template is used to overlay a video, and information such as text on the video changes dynamically according to the content posted by the poster. Therefore, the size and color of the fixed mask layer template cannot be adjusted appropriately, which causes unnecessary occlusion of the video screen, reduces the saturation of the original color of the video, and does not match the expected color. Summary of the Invention
[0005] To solve or at least partially solve the above technical problems, the present disclosure provides an animated mask layer display method, device, apparatus, and medium.
[0006] According to a first aspect, an embodiment of the present disclosure includes: determining a mask layer region including a first region in a video frame that matches prominently displayed target information and a second region that transitions color from the first region to another video screen that does not have a mask layer region; obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; performing a superimposition process on the mask layer region in the video frame based on the target mask layer, thereby prominently displaying the target information; The present invention provides an animation mask layer display method, including:
[0007] In an optional embodiment, a parameter of the first region is set in relation to a size of the target information.
[0008] In an optional embodiment, the target information comprises: Text information matching a preset information type on the video frame screen, and / or Character information or code information that matches a color identification that is preset on the video frame screen Includes.
[0009] In an optional embodiment, when the target information includes author information and video description information arranged in order below the video frame screen, determining the first region includes: When the contributor information and the video description information are aligned at both ends of the width of the video frame, calculating a first height from the contributor information to a bottom of the video frame, and determining the first region based on the first height and the width of the video frame; or When the contributor information and the video description information are aligned at the left end of the width of the video frame, calculating a second height from the contributor information to a bottom of the video frame, and determining the first area based on the second height and the end positions of each line of the contributor information and the video description information; or When the contributor information and the video description information are aligned at the right end of the width of the video frame, a third height from the contributor information to a bottom of the video frame is calculated, and the first area is determined based on the third height, the contributor information, and a start position of each line of the video description information. Includes.
[0010] In an optional embodiment, determining the second region comprises: determining an extension boundary line extending from the first region to another region of the video frame; determining a stretch size based on the other region and the region parameters of the first region; determining the second region along the expansion boundary based on the extension size; and Includes.
[0011] In an optional embodiment, obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency as described above includes: The method includes performing gradation processing on a mask layer having a size matching the first region and the second region using a preset nonlinear curve function, and obtaining a target mask layer that has a gradation from the first region to the second region to become transparent.
[0012] In an optional embodiment, obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency as described above includes: acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joining shape between the first region and the second region; extracting a target mask layer having a size matching the first region and the second region from the mask layer shape diagram; Includes.
[0013] In one optional embodiment, the step of acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joint shape between the first region and the second region includes the steps of: When the joining shape of the first region and the second region includes a sector shape, a radial mask layer diagram including a sector region having a gradation from the first region to the second region to a transparent region is obtained; or When the joining shape between the first region and the second region includes a rectangle, a rectangular mask layer image including a rectangular region that has a gradation from the first region to the second region to become transparent is obtained. Includes.
[0014] In an optional embodiment, the above-mentioned performing the overlay process on a mask layer region in the video frame based on the target mask layer includes: performing an overlap process on the target mask layer and a mask layer region above the video frame; and / or performing an overlapping process on the target mask layer and a mask layer area below the video frame; Includes.
[0015] According to a second aspect, an embodiment of the present disclosure includes: A determination module for determining a mask layer region including a first region in a video frame that matches a prominently displayed target information and a second region that transitions in color from the first region to another video screen that does not have a mask layer region; an acquisition module for acquiring a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; a processing module for performing a superimposition process on the mask layer region in the video frame based on the target mask layer, to prominently display the target information; The present invention further provides an animated mask layer display device including:
[0016] According to a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon instructions which, when run on a terminal device, cause the terminal device to implement the above method.
[0017] According to a fourth aspect, the present disclosure provides an electronic device including a processor and a memory for storing instructions executable by the processor, the processor being configured to read the executable instructions from the memory and execute the instructions to realize the above method.
[0018] According to a fifth aspect, the present disclosure provides a computer program product comprising computer programs / instructions which, when executed by a processor, cause the implementation of the above method.
[0019] The technical solution according to the embodiments of the present disclosure has at least the following advantages over the related art:
[0020] In the video mask layer display method according to the embodiment of the present disclosure, the mask layer area determined in the video frame includes a first area matching the target information to be prominently displayed, and a second area that transitions in color from the first area to another video screen that does not have a mask layer area. Thus, the first area makes the presentation of the target information clearer, and the second area makes the color transition between the first area and the video frame more natural. In addition, the first area is dynamically and adaptively adjusted according to the size of the target information, and the second area is also dynamically and adaptively adjusted according to the first area, so that the video frame with the target mask layer superimposed can clearly display the target information while avoiding the problem of greatly affecting the color of the original video frame. [Brief description of the drawings]
[0021] The drawings are intended to provide a further understanding of the present invention, constitute a part of the specification, and are intended to illustrate the present invention together with the embodiments of the present invention, and are not intended to be limiting of the present invention. [Figure 1] 1 is a schematic diagram showing a flow of an animated mask layer display method according to an embodiment of the present disclosure. [Figure 2a] 2 is a schematic diagram of a first region according to an embodiment of the present disclosure. [Figure 2b] 4 is a schematic diagram of another first region according to an embodiment of the present disclosure. [Figure 2c] 4 is a schematic diagram of yet another first region according to an embodiment of the present disclosure. [Figure 3a] 1 is a schematic diagram of an expanded boundary line and a second region according to an embodiment of the present disclosure. [Figure 3b] 13 is a schematic diagram of another expanded boundary and second region according to an embodiment of the present disclosure. [Figure 3c] 13 is a schematic diagram of yet another expanded boundary line and second region according to an embodiment of the present disclosure. [Figure 4] 1A-1C are schematic diagrams of rectangular mask layer views and radial mask layer views according to an embodiment of the present disclosure; [Figure 5a] 1 is a schematic diagram of a target mask layer superimposed on a first region and a second region according to an embodiment of the present disclosure. [Figure 5b] 13 is a schematic diagram of a target mask layer superimposed on another first region and second region according to an embodiment of the present disclosure. [Figure 6] FIG. 1 is a schematic diagram of a video mask layer display device according to an embodiment of the present disclosure. [Figure 7] 1 is a schematic diagram illustrating the configuration of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] The following will describe the embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although several embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the accompanying drawings and embodiments of the present disclosure are merely illustrative and do not limit the scope of protection of the present disclosure.
[0023] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Additionally, method embodiments may include additional steps and / or omit performance of steps shown. The scope of the present disclosure is not limited in this respect.
[0024] As used herein, the term "including" and variations thereof are open-ended inclusions, i.e., meaning "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one other embodiment," and the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below in the description.
[0025] It should be noted that concepts such as "first" and "second" described in this disclosure are merely intended to distinguish different devices, modules, or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules, or units.
[0026] In addition, the modifications of "one" and "multiple" described in the present disclosure are exemplary and not limiting. It is obvious to those skilled in the art that unless otherwise specified, it should be understood as "one or multiple".
[0027] The names of messages or information exchanged between devices in the embodiments of the present disclosure are merely descriptive and do not limit the scope of these messages or information.
[0028] In order to solve the above problems, an embodiment of the present disclosure provides a video mask layer display method, which is described below with specific examples.
[0029] Fig. 1 is a schematic diagram showing a flow of an animated mask layer display method according to an embodiment of the present disclosure. The method can be performed by an animated mask layer display device, where the device can be implemented in software and / or hardware, and can be generally integrated into electronic equipment. As shown in Fig. 1, the method includes the following steps:
[0030] Step 101: Determine a mask layer region in a video frame, where the mask layer region includes a first region matching a prominently displayed target information and a second region color-transitioning from the first region to another video screen not having the mask layer region.
[0031] Information can be added to a video, for example, video description information of a video. However, in some application scenarios, the color of the video screen and the color of the information added to the video are highly similar, and the information added to the video cannot be displayed clearly. Therefore, when a user views a video, in order to improve the viewing effect of the information added to the video frame, it is necessary to perform a masking process on the information added to the video frame. Since the color of the video screen to which the mask layer is added changes, the information added to the video can be displayed clearly due to the prominence of the mask layer.
[0032] Depending on the needs, various types and colors of information may be added to the video, such as the subject information of the video, description information, interaction information with the user, and / or effect information added to the video by an application program, music information, and the like. Depending on the needs, the colors used for different types of information and the positions added to the video screen may be dynamically designed, changed, and adjusted. Therefore, depending on the needs of different scenarios, all additional information may be masked to make the display stand out, or only some additional information may be masked to make the display stand out. In the embodiment of the present disclosure, additional information that needs to be masked to make the display stand out in the video is set as target information. Note that there are multiple methods for determining target information, and it may be selected according to the application scenario, and this embodiment does not impose any restrictions. In order to more clearly understand how to determine target information that needs to be masked to make the display stand out, an example will be described below.
[0033] In an optional embodiment, the target information is text information that matches a preset information type on the video frame screen. As can be seen, a video frame screen may have multiple information types, such as creator name, effect name, video description, song name, etc. For different information types, users have different viewing and viewing needs. For example, when a user views a video frame, he or she places more importance on viewing the video description information of the video. Therefore, depending on the needs, a type of information that requires a process of masking to make the display stand out may be preset, and additional information that matches the preset information type may be obtained from the information added to the video and used as the target information. For example, when the preset information type is video description information, it is determined that the video description information is the target information that requires a process of masking to make the display stand out from all the additional information added to the video.
[0034] In another optional embodiment, the target information is text information or code information that matches a preset color identification on the video frame screen. Depending on the needs, a color identification that requires processing to make the display stand out by masking may be preset, and additional information that matches the preset color identification may be obtained from information added to the video and used as the target information. For example, if the preset color identification is white, it is determined that white text additional information and / or code information is the target information that requires processing to make the display stand out by masking from all additional information added to the video.
[0035] The position, layout, and amount of content of the target information on the video screen that needs to be masked to make it stand out will all change dynamically depending on different videos and actual needs. For example, the position of the target information on the video screen may be one or more of the bottom left and top right of the video. In this embodiment, the target information may be one or more, and this embodiment does not impose any restrictions. Therefore, in order to reduce the influence of the mask layer on the video screen area that does not need to be displayed prominently, and to make the transition and connection of the color of the target information that needs to be displayed prominently and other video screens natural, the embodiment of the present disclosure proposes a masking process that is dynamically and adaptively adjusted, which will be specifically described as follows.
[0036] First, a mask layer area in a video frame is determined. Here, the mask layer area includes a first area that matches the target information to be prominently displayed, and a second area that transitions in color from the first area to another video screen that does not have a mask layer area. In this way, in the mask layer area in this embodiment, the parameters (e.g., height, size, shape, etc.) of the first area for prominently displaying the target information dynamically match the size of the area in which the target information exists. Therefore, the corresponding first area is determined based on factors such as the size of the area in which the target information exists. Note that in this embodiment, the target information may be one or more. Accordingly, the first area for prominently displaying the target information may also be one or more, and this embodiment does not impose any restrictions on this. In order to more clearly explain how to determine the corresponding first area based on the target information that needs to be prominently displayed by the mask layer in the video frame, a specific explanation will be given of how to determine the first area for prominently displaying the target information, taking as an example a case in which the target information is contributor information and video description information that are placed in order at the bottom of the screen of the video frame. A specific explanation will be given as follows.
[0037] In some application scenarios, the poster information and the video description information are displayed in order at the bottom of the screen of the video frame. When the video description information is below the poster information and the target information includes the poster information and the video description information, the corresponding first area can be determined based on the amount of information, layout position, etc. of the poster information and the video description information, including but not limited to the following three scenarios:
[0038] Scenario 1: As shown in FIG. 2a, the contributor information and video description information are aligned at both ends of the video frame width. In this case, the contributor information and video description information at the bottom of the video are laid out aligned to the video width, and there is no empty video screen between the video boundary. Therefore, a first height from the contributor information to the bottom of the video frame is calculated. A first region is determined based on the first height and the width of the video frame so that the first region changes dynamically with the target information. This reduces the impact on the color of other empty video screens without additional information in the video frame. The first region is as shown by the bold line in FIG. 2a.
[0039] Scenario 2: As shown in FIG. 2b, the contributor information and video description information are aligned to the left edge of the video frame width. In this case, the contributor information and video description information below the video are laid out aligned to the left boundary of the video, and there is a blank video screen without additional information between the right boundary of the video. Therefore, a second height from the contributor information to the bottom of the video frame is calculated. The first region is determined based on the second height and the end position of each line of the contributor information and video description information so that the first region changes dynamically with the target information. This reduces the influence on the color of other blank video screens without additional information in the video frame. The first region is as shown by the bold line in FIG. 2b.
[0040] Scenario 3: As shown in FIG. 2c, the contributor information and video description information are aligned to the right edge of the video frame width. In this case, the contributor information and video description information below the video are laid out aligned to the right boundary of the video, and there is a blank video screen without additional information between the left boundary of the video. Therefore, a third height from the contributor information to the bottom of the video frame is calculated. The first region is determined based on the third height and the start position of each row of the contributor information and video description information so that the first region dynamically changes with the target information. This reduces the influence on the color of other blank video screens without additional information in the video frame. The first region is as shown by the bold line in FIG. 2c.
[0041] Furthermore, in order to make the color transition and connection between the target information that needs to be highlighted and other video screens that have not been masked more natural, a second area is provided adjacent to the first area and used for the color transition and connection of the screen. This shows that the functions of the second area of the mask layer area and the first area are different. The second area is a buffer transition area in which the color of the screen can be used for the color transition and connection from the first area to other areas without a mask layer, and becomes transparent from the color of the mask layer that highlights the display. In this embodiment, the first area may be one or more. Accordingly, the corresponding second area may be one or more. The first area is determined by matching based on the size of the area of the target information and the area where the target information exists, and the second area is used to make the color transition and connection from the first area to the video screen of the area without the mask layer in the video frame, so the second area may be specifically determined according to the boundary of the first area and the situation of the area that can be extended and expanded outward. The second area may be determined in different manners depending on the application scenario. For example, the size of the second area to be installed adjacent to the first area may be determined based on a preset association relationship based on the width and / or height of the video and / or the area occupancy rate of the first area. This allows color transition and connection to be performed based on the second area, making the colors on the screen natural and smooth. In order to more clearly explain the method of determining the second area, an example will be given below.
[0042] Step a: determining an extension boundary line extending from a first region to another region of the video frame;
[0043] First, the expansion boundary line needs to be determined. The expansion boundary line is a boundary line that can be extended to other regions of the video frame. In some application scenarios, the first region has multiple boundaries, but not all of the boundaries can be extended to other regions of the video frame. Based on the above Figs. 2a, 2b, and 2c, further examples are given. As shown in Fig. 3a, if the first region is a rectangular region at the bottom of the video frame, and among the four boundaries, only the upper one can be extended to other regions of the video frame, the boundary line is an expansion boundary line. As shown in Fig. 3b, if the first region is a sector region at the bottom left of the video frame, and among the three boundaries, only the arc line can be extended to other regions of the video frame, the arc line boundary line is an expansion boundary line. Similar to that shown in Fig. 3b, as shown in Fig. 3c, if the first region is a sector region at the bottom right of the video frame, and among the three boundaries, only the arc line can be extended to other regions of the video frame, the arc line boundary line is an expansion boundary line.
[0044] Step b: determining a stretch size based on the other regions and the regional parameters of the first region;
[0045] Step c: determining a second region along the expansion boundary line based on the stretch size.
[0046] Further, the stretch size is determined based on the region parameters of the other region and the first region. Here, different region parameters may be selected to determine the stretch size according to the needs of the application scenario. For example, the relevant stretch size may be determined based on the region size of the other region and the region size of the first region, or the relevant stretch size may be determined based on the region shape of the other region and the region shape of the first region. Further, the second region may be determined along the expansion boundary line based on the stretch size. In order to more clearly explain the determination procedure of the second region, an example is taken as follows:
[0047] As shown in FIG. 3a, when the first region is a rectangle and the expanded boundary line is the boundary line above the rectangle, it is determined that the associated extension size is 1 / 3 of the height of the first region when the first region and the other region are rectangles based on the preset extension size and the associated relationship between the shapes of the first region and the other region. Therefore, it is determined to extend upward along the expanded boundary line based on the extension size of 1 / 3 of the height of the first region to determine the second region. Thus, the second region is a rectangle above the first region in FIG. 3a. As shown in FIG. 3b, when the expanded boundary line is a fan-shaped arc line, it is determined that the associated extension size of the area of the first region and the other region shown in FIG. 3b is 1 / 6 of the radius of the fan-shaped of the first region based on the preset extension size and the associated relationship between the areas of the first region and the other region. Thus, it is determined to extend upward along the expanded boundary line based on the extension size of 1 / 6 of the height of the first region to determine the second region. Thus, when the first region is a sector at the lower left of the video frame, the second region is 1 / 4 of the circle that the first region expands outward in Fig. 3b. As shown in Fig. 3c, when the first region is a sector at the lower right of the video frame, the second region is 1 / 4 of the circle that the first region expands outward in Fig. 3c. Here, the processing procedure of the extension size is similar to the determination procedure of the extension size in Fig. 3b, and will not be further described here.
[0048] As can be seen, it is not preferable that the stretch size is too large. If the stretch size is too large, the area of the second region determined based on the stretch size becomes too large, and the area in which the mask layer affects the video frame becomes too large. Also, it is not preferable that the stretch size is too small. If the stretch size is too small, the area that becomes a gradation to transparency becomes too small, and the transition becomes unnatural. Therefore, the stretch size may be determined based on the other region and the first region. This ensures that the occupancy rate of the second region in the other region is appropriate, does not excessively affect the video frame, and the ratio between the second region and the first region is appropriate, and the visual effect is harmonious. In an optional embodiment, the correspondence relationship between the other region, the first region, and the stretch size may be standardized by testing and stored in advance. Based on the other region and the first region, a search operation is performed in the storage area to obtain the stretch size.
[0049] Step 102: Obtain a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency.
[0050] After determining the first and second regions, a target mask layer of a size adaptively matching the first and second regions may be determined. The first region is used to prominently display the target information, and the second region is used for color transition and connection on the screen. Therefore, the transparency of the target mask layer corresponding to the first region is generally low, the transparency of the target mask layer corresponding to the second region is generally high, and the target mask layer has a gradation from the first region to the second region to transparency. The target mask layer may be obtained in different modes according to needs. In this embodiment, no limitations are imposed, and the following is a specific description.
[0051] Based on the above embodiment, there are several ways to determine the target mask layer. For example, a target mask layer with a gradation effect from the first region to the second region to become transparent may be generated according to the sizes of the first region and the second region. Also, a target mask layer area with a size matching the first region and the second region may be obtained according to the shape of the first region and the second region joined together (for example, a mask layer shape layer matching the joined shape of the first region and the second region is selected from the mask layer shape layers of various gradation effects generated in advance by employing a masking tool, and a target mask layer area with a size matching the first region and the second region is selected from the selected mask layer shape layer). Specifically, obtaining a target mask layer that matches the first region and the second region in the above embodiment and has a gradation from the first region to the second region to become transparent may include at least the following two scenarios.
[0052] Scenario 1: Generate a target mask layer with a gradient effect from a first region to a second region to transparency according to the sizes of the first region and the second region. Specifically, it may include:
[0053] The fixed mask layer template used in the conventional linear processing has a relatively obvious sense of black division, which is poor in visibility, especially in video frames with a light background. Therefore, in this embodiment, a nonlinear curve can be used to generate a target mask layer. This nonlinear curve can make the generated target mask layer transition naturally, improving visibility. In an optional embodiment, the nonlinear curve includes a Bezier curve, and further, a gradation process is performed on the mask layer of a size matching the first region and the second region according to a preset nonlinear curve function, to obtain a target mask layer with a gradation from the first region to the second region to transparent.
[0054] Scenario 2: According to the shape of the joined first and second regions, a target mask layer region is obtained that has a size matching the first and second regions.
[0055] For example, according to the shape of the first region and the second region joined together, a mask layer shape layer that matches the joint shape of the first region and the second region may be selected from the mask layer shape layers of various gradation effects generated in advance by using a masking tool, and a target mask layer region of a size that matches the first region and the second region may be selected from the selected mask layer shape layer.
[0056] First, a mask layer shape diagram is obtained that has a gradation from the first region to the second region to be transparent, based on the joint shape between the first region and the second region.
[0057] Then, a target mask layer having a size matching the first region and the second region is cut out from the mask layer shape diagram.
[0058] In this embodiment, a mask layer shape layer with various gradation effects can be generated in advance using a masking tool. Here, in order to smooth the color transition with the mask layer area of the video frame, in this embodiment, a nonlinear curve is used to perform color gradation processing, and visibility is improved by finer granularity color processing. In an optional embodiment, the nonlinear curve includes a Bezier curve. The mask layer shape layer generated by the masking tool may include multiple types of mask layer shape layers. For example, there are a radial circular mask layer shape layer with a gradation from dark to transparent from the circle center to the circular boundary, a rectangular mask layer shape layer with a gradation from dark to transparent from bottom to top or top to bottom, and a rectangular mask layer shape layer with a gradation from left to right or right to left. Furthermore, the various mask layer shape layers generated are stored. Based on the joint shape between the first region and the second region, a mask layer shape diagram with a gradation from the first region to the second region is obtained, and a target mask layer of a size matching the first region and the second region is cut out from the selected mask layer shape diagram. In order to more clearly explain the processing procedure, an example is given as follows.
[0059] When the joint shape between the first region and the second region is a sector shape, a radial circular mask layer shape layer can be obtained from the storage region, which has a gradation from dark to transparent from the circle center to the circular boundary. Here, the radial mask layer diagram includes a sector region with a gradation from the first region to the second region to transparent. As shown in FIG. 5a, in an optional embodiment, the shape and color of the radial mask layer are as in the radial mask layer diagram in FIG. 4, and the relationship between the radial mask layer and the video frame is as shown in FIG. 5a. In FIG. 5a, the target mask layer is generated by cutting out based on the parameters of the video frame. Optionally, the width of the video frame is 47% of the width of the radial mask layer, and the position of the radial mask layer is offset 15% of the width of the video frame to the right side of the screen, and the radial mask layer bisects the horizontal line and overlaps the bottom of the video frame. Thereby, the overlapping part of the radial mask layer, the first region, and the second region is set as the target mask layer.
[0060] When the joining shape between the first region and the second region is rectangular, a rectangular mask layer diagram is obtained. The shape and color of the rectangular mask layer diagram are as shown in the rectangular mask layer diagram in FIG. 4. Here, the rectangular mask layer diagram includes a rectangular region that has a gradation from the first region to the second region to transparent. Similar to the case where the joining shape is a sector shape, when the joining shape is rectangular, a target mask layer that matches the first region and the second region may be cut out from the rectangular mask layer diagram based on the relative position between the rectangular mask layer diagram and the video frame and the size relationship of the figures. In an optional embodiment, the target mask layer is as shown in FIG. 5b. In this embodiment, the rectangular mask layer diagram may be generated based on a Bezier curve.
[0061] In the above embodiment, a method for generating two target mask layers is specifically described, and the transition between the generated target mask layers is natural and the visibility is improved.
[0062] Step 103: Based on the target mask layer, a superimposition process is performed on the mask layer area in the video frame to prominently display the target information.
[0063] In this embodiment, in the mask layer area of the video frame, the target mask layer is used to perform the overlay process on the video frame. It should be noted that different overlay processes may be performed according to the application needs such as the color and saturation of the video screen. An example is given below to explain.
[0064] Example 1: Overlay processing is performed on the target mask layer and the mask layer area above the video frame.
[0065] Example 2: Overlay processing is performed on the target mask layer and the mask layer area below the video frame.
[0066] Example 3: A superimposition process is performed on the target mask layer and the mask layer regions above and below the video frame. In this superimposition method, the target mask layer is superimposed simultaneously on the upper and lower parts of the video frame, so that the conspicuous effect of the target mask layer can be more clearly seen.
[0067] As described above, in the video mask layer display method according to the embodiment of the present disclosure, the mask layer area determined in the video frame includes a first area that matches the target information that is prominently displayed, and a second area that transitions in color from the first area to another video screen that does not have a mask layer area. Thus, the first area makes the presentation of the target information clearer, and the second area makes the color transition between the first area and the video frame more natural. In addition, the first area is dynamically and adaptively adjusted according to the size of the target information, and the second area is also dynamically and adaptively adjusted according to the first area, so that the video frame with the target mask layer superimposed can clearly display the target information while avoiding the problem of greatly affecting the color of the original video frame.
[0068] According to an embodiment of the present disclosure, the present disclosure further provides an animated mask layer display device.
[0069] 6 is a schematic diagram of an animated mask layer display device according to an embodiment of the present disclosure. The device may be implemented in software and / or hardware, and may be integrated into a general electronic device. As shown in FIG. 6, the animated mask layer display device 600 includes: A determination module 601 for determining a mask layer region including a first region in a video frame that matches a prominently displayed target information and a second region that transitions in color from the first region to another video screen that does not have a mask layer region; an acquisition module 602 for acquiring a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; a processing module 603 for performing a superimposition process on the mask layer region in the video frame based on the target mask layer, to prominently display the target information; Includes.
[0070] Optionally, a parameter of the first region is set in association with a size of the target information.
[0071] Alternatively, the target information includes text information matching a preset information type on the video frame screen, and / or text information or code information matching a preset color identification on the video frame screen.
[0072] Optionally, when the target information includes author information and video description information arranged in order below the video frame screen, the determining module 601: When the contributor information and the video description information are aligned at both ends of the width of the video frame, calculating a first height from the contributor information to a bottom of the video frame, and determining the first region based on the first height and the width of the video frame; or When the contributor information and the video description information are aligned at the left end of the width of the video frame, calculating a second height from the contributor information to a bottom of the video frame, and determining the first area based on the second height and the end positions of each line of the contributor information and the video description information; or When the contributor information and the video description information are aligned at the right end of the width of the video frame, a third height from the contributor information to a bottom of the video frame is calculated, and the first area is determined based on the third height, the contributor information, and a start position of each line of the video description information. It is used in.
[0073] Optionally, the determination module 601: determining an extension boundary line extending from the first region to another region of the video frame; determining a stretch size based on the other region and the region parameters of the first region; determining the second region along the expansion boundary based on the extension size; and It is used in.
[0074] Optionally, the acquisition module 602: A preset nonlinear curve function is used to perform gradation processing on a mask layer of a size matching the first region and the second region, and to obtain a target mask layer that has a gradation from the first region to the second region to become transparent.
[0075] Optionally, the acquisition module comprises: an acquisition unit for acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joining shape between the first region and the second region; a matching unit for extracting a target mask layer having a size matching the first region and the second region from the mask layer shape diagram; Includes.
[0076] Optionally, the acquisition unit: When the joining shape of the first region and the second region includes a sector shape, a radial mask layer diagram including a sector region having a gradation from the first region to the second region to a transparent region is obtained; or When the joining shape between the first region and the second region includes a rectangle, a rectangular mask layer image including a rectangular region that has a gradation from the first region to the second region to become transparent is obtained. It is used in.
[0077] Optionally, the processing module 603 is The mask layer is used to perform an overlay process on the target mask layer and a mask layer area above the video frame, and / or to perform an overlay process on the target mask layer and a mask layer area below the video frame.
[0078] The animated mask layer display device according to the embodiments of the present disclosure can execute the animated mask layer display method according to any of the embodiments of the present disclosure, and has beneficial effects with corresponding functional modules for executing the method.
[0079] An embodiment of the present disclosure further provides a computer program product including a computer program / instructions which, when executed by a processor, causes the computer program / instructions to implement the animated mask layer display method according to any embodiment of the present disclosure.
[0080] FIG. 7 is a schematic diagram of an electronic device according to an embodiment of the present disclosure.
[0081] Hereinafter, specific reference will be made to FIG. 7, which illustrates a schematic diagram of an electronic device 700 suitable for implementing the embodiments of the present disclosure. The electronic device 700 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and wearable electronic devices, and fixed terminals such as digital TVs, desktop computers, and smart house devices. The electronic device illustrated in FIG. 7 is merely an example, and does not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0082] 7, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphic processor, etc.) 701, which can perform various appropriate operations and processes according to programs stored in a read-only memory (ROM) 702 or programs loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 further stores various programs and data necessary for the operation of the electronic device 700. The processing unit 701, the ROM 702, and the RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0083] Typically, input devices 706 including, for example, a touch screen, touch panel, keyboard, mouse, camera head, microphone, accelerometer, gyro, etc., output devices 707 including, for example, a liquid crystal display (LCD), speaker, oscillator, etc., storage devices 708 including, for example, a magnetic tape, hard disk, etc., and communication devices 709 may be connected to the I / O interface 705. The communication devices 709 enable the electronic device 700 to communicate wirelessly or via wires to exchange data with other devices. It should be understood that while FIG. 7 shows electronic device 700 with various devices, it is not intended to require the implementation or inclusion of all of the devices shown. More or less devices may alternatively be implemented or included.
[0084] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network by the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, it performs the above-mentioned functions defined in the animated mask layer display method of the embodiment of the present disclosure.
[0085] In addition, the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specifically, the computer readable storage medium may include, but is not limited to, an electrical connection having one or more conductors, a portable computer disk, 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 compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer readable storage medium may be any tangible medium that contains or stores a program, which may be used in or in combination with a command execution system, apparatus, or device. In the present disclosure, the computer readable signal medium may include a data signal propagated in baseband or a data signal propagated in part in a carrier wave, with computer readable program code therein. Such propagated data signals may take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may transmit, propagate, or transmit a program for use in or in connection with a command execution system, apparatus, or device. The program code contained in the computer readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wires, optical cables, RF (radio frequency), or the like, or any suitable combination thereof.
[0086] In some embodiments, the clients and servers may communicate using any now known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and an end-to-end network (e.g., an ad hoc end-to-end network), as well as any now known or later developed network.
[0087] The computer-readable medium may be included in the electronic device, or may be a separate entity not mounted on the electronic device.
[0088] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the following: determining a mask layer region including a first region in a video frame that matches a target information to be prominently displayed and a second region that transitions in color from the first region to another video screen that does not have a mask layer region; obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; and performing a superimposition process on the mask layer region in the video frame based on the target mask layer to prominently display the target information. In an embodiment of the present disclosure, the first region makes the presentation of the target information clearer, and the second region makes the color transition between the first region and the video frame more natural. In addition, since the first region is dynamically and adaptively adjusted according to the size of the target information, and the second region is also dynamically and adaptively adjusted according to the first region, a video frame superimposed with a target mask layer can clearly display the target information while avoiding the problem of significantly affecting the color of the original video frame.
[0089] Computer program code for carrying out the operations of the present disclosure can be written using one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and general procedural programming languages such as "C" or similar programming languages, but are not limited to these. The program code can run entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0090] The flowcharts and block diagrams in the accompanying drawings illustrate possible system architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a specified logical function. It should be noted that in some permutation implementations, the functions depicted in the blocks may be implemented in a different order than that depicted in the drawings. For example, two consecutively depicted blocks may be executed substantially simultaneously, or, depending on the functionality, they may be executed in the reverse order. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated system based on hardware that executes the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0091] The units according to the embodiments of the present disclosure may be realized by software or hardware, and the names of the units may not limit the units themselves.
[0092] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, exemplary hardware logic components that may be used include, but are not limited to, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0093] In the present disclosure, a machine-readable medium may be a tangible medium, and may contain or store a program used by or in combination with a command execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of machine-readable storage media include one or more wire-based electrical connections, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0094] According to one or more embodiments of the present disclosure, the present disclosure provides a method for producing a liquid crystal display comprising: determining a mask layer region including a first region in a video frame that matches prominently displayed target information and a second region that transitions color from the first region to another video screen that does not have a mask layer region; obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; performing a superimposition process on the mask layer region in the video frame based on the target mask layer, thereby prominently displaying the target information; The present invention provides an animation mask layer display method, including:
[0095] According to one or more embodiments of the present disclosure, in the video mask layer display method according to the present disclosure, parameters of the first region are set in association with the size of the target information.
[0096] According to one or more embodiments of the present disclosure, in the video mask layer display method according to the present disclosure, the target information includes: Text information matching a preset information type on the video frame screen, and / or Character information or code information that matches a color identification that is preset on the video frame screen Includes.
[0097] According to one or more embodiments of the present disclosure, in the video mask layer display method of the present disclosure, when the target information includes author information and video description information arranged in order below the video frame screen, determining the first region includes: When the contributor information and the video description information are aligned at both ends of the width of the video frame, calculating a first height from the contributor information to a bottom of the video frame, and determining the first region based on the first height and the width of the video frame; or When the contributor information and the video description information are aligned at the left end of the width of the video frame, calculating a second height from the contributor information to a bottom of the video frame, and determining the first area based on the second height and the end positions of each line of the contributor information and the video description information; or When the contributor information and the video description information are aligned at the right end of the width of the video frame, a third height from the contributor information to a bottom of the video frame is calculated, and the first area is determined based on the third height, the contributor information, and a start position of each line of the video description information. Includes.
[0098] According to one or more embodiments of the present disclosure, in the video mask layer display method according to the present disclosure, determining the second region includes: determining an extension boundary line extending from the first region to another region of the video frame; determining a stretch size based on the other region and the region parameters of the first region; determining the second region along the expansion boundary based on the extension size; and Includes.
[0099] According to one or more embodiments of the present disclosure, in the video mask layer display method of the present disclosure, obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency, includes: The method includes performing gradation processing on a mask layer having a size matching the first region and the second region using a preset nonlinear curve function, and obtaining a target mask layer that has a gradation from the first region to the second region to become transparent.
[0100] According to one or more embodiments of the present disclosure, in the video mask layer display method of the present disclosure, obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency, includes: acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joining shape between the first region and the second region; extracting a target mask layer having a size matching the first region and the second region from the mask layer shape diagram; Includes.
[0101] According to one or more embodiments of the present disclosure, in the video mask layer display method of the present disclosure, the above-mentioned step of acquiring a mask layer shape diagram that has a gradation from the first region to the second region to transparency based on a joining shape between the first region and the second region includes: When the joining shape of the first region and the second region includes a sector shape, a radial mask layer diagram including a sector region having a gradation from the first region to the second region to a transparent region is obtained; or When the joining shape between the first region and the second region includes a rectangle, a rectangular mask layer image including a rectangular region that has a gradation from the first region to the second region to become transparent is obtained. Includes.
[0102] According to one or more embodiments of the present disclosure, in the video mask layer display method of the present disclosure, the above-mentioned performing an overlay process on a mask layer area in the video frame based on the target mask layer includes: performing an overlap process on the target mask layer and a mask layer region above the video frame; and / or performing an overlapping process on the target mask layer and a mask layer area below the video frame; Includes.
[0103] According to one or more embodiments of the present disclosure, the present disclosure provides a method for producing a liquid crystal display comprising: A determination module for determining a mask layer region including a first region in a video frame that matches a prominently displayed target information and a second region that transitions in color from the first region to another video screen that does not have a mask layer region; an acquisition module for acquiring a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; a processing module for performing a superimposition process on a mask layer region in the video frame based on the target mask layer, to prominently display the target information; The present invention provides an animation mask layer display device including:
[0104] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, parameters of the first region are set in association with a size of the target information.
[0105] According to one or more embodiments of the present disclosure, in a video mask layer display device according to the present disclosure, the target information includes: Text information matching a preset information type on the video frame screen, and / or Character information or code information that matches a color identification that is preset on the video frame screen Includes.
[0106] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, when the target information includes author information and video description information arranged in order below the video frame screen, the determination module: When the contributor information and the video description information are aligned at both ends of the width of the video frame, calculating a first height from the contributor information to a bottom of the video frame, and determining the first region based on the first height and the width of the video frame; or When the contributor information and the video description information are aligned at the left end of the width of the video frame, calculating a second height from the contributor information to a bottom of the video frame, and determining the first area based on the second height and the end positions of each line of the contributor information and the video description information; or When the contributor information and the video description information are aligned at the right end of the width of the video frame, a third height from the contributor information to a bottom of the video frame is calculated, and the first area is determined based on the third height, the contributor information, and a start position of each line of the video description information. It is used in.
[0107] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, the determination module: determining an extension boundary line extending from the first region to another region of the video frame; determining a stretch size based on the other region and the region parameters of the first region; determining the second region along the expansion boundary based on the extension size; and It is used in.
[0108] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, the acquisition module includes: A preset nonlinear curve function is used to perform gradation processing on a mask layer of a size matching the first region and the second region, and to obtain a target mask layer that has a gradation from the first region to the second region to become transparent.
[0109] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, the acquisition module includes: an acquisition unit for acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joining shape between the first region and the second region; a matching unit for extracting a target mask layer having a size matching the first region and the second region from the mask layer shape diagram; Includes.
[0110] According to one or more embodiments of the present disclosure, in the video mask layer display device according to the present disclosure, the acquisition unit: When the joining shape of the first region and the second region includes a sector shape, a radial mask layer diagram including a sector region having a gradation from the first region to the second region to a transparent region is obtained; or When the joining shape between the first region and the second region includes a rectangle, a rectangular mask layer image including a rectangular region that has a gradation from the first region to the second region to become transparent is obtained. Includes.
[0111] According to one or more embodiments of the present disclosure, in a video mask layer display device according to the present disclosure, the processing module includes: performing an overlap process on the target mask layer and a mask layer region above the video frame; and / or performing an overlapping process on the target mask layer and a mask layer area below the video frame; It is used in.
[0112] According to one or more embodiments of the present disclosure, the present disclosure provides a method for producing a liquid crystal display comprising: A processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement any one of the video mask layer display methods according to the present disclosure.
[0113] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having stored thereon a computer program for performing any one of the animated mask layer display methods according to the present disclosure.
[0114] The above is merely a description of the preferred embodiments and the technical principles applied in the present disclosure. It is obvious to those skilled in the art that the scope of the disclosure of the present disclosure is not limited to the technical solution of the specific combination of the above technical features, but should also include other technical solutions formed by any combination of the above technical features or features equivalent thereto without departing from the concept of the above disclosure. For example, it also includes technical solutions formed by replacing the above features with technical features having similar functions (including but not limited to those) disclosed in the present disclosure.
[0115] Also, although operations are described in a particular order, this should not be understood as requiring such operations to be performed in the particular order shown, or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although certain specific implementation details are included in the above description, they should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of a single embodiment can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
[0116] Although the present subject matter has been described in language specific to structural features and / or methodological operations, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms of implementing the claims.
Claims
1. determining a mask layer region including a first region in a video frame that matches prominently displayed target information and a second region that transitions color from the first region to another video screen that does not have a mask layer region; obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; performing a superimposition process on the mask layer region in the video frame based on the target mask layer, thereby prominently displaying the target information; Including, The above-mentioned obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency includes: acquiring a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joining shape between the first region and the second region; extracting a target mask layer having a size matching the first region and the second region from the mask layer shape diagram; Including, A method for displaying a moving image mask layer comprising:
2. The method according to claim 1 , wherein the parameters of the first region are set in relation to a size of the target information.
3. The target information is Text information matching a preset information type on the screen of the video frame, and / or Character information or code information that matches a preset color identification on the screen of the video frame The method of claim 1 , comprising:
4. When the target information includes author information and video description information that are sequentially arranged at the bottom of the screen of the video frame, determining the first region includes: When the contributor information and the video description information are aligned on both ends of the width of the video frame, calculating a first height from the contributor information to a bottom of the video frame, and determining the first region based on the first height and the width of the video frame; or When the contributor information and the video description information are aligned at the left end of the width of the video frame, calculating a second height from the contributor information to a bottom of the video frame, and determining the first area based on the second height and end positions of each line of the contributor information and the video description information; or When the contributor information and the video description information are aligned at the right end of the width of the video frame, a third height from the contributor information to a bottom of the video frame is calculated, and the first area is determined based on the third height and the start positions of each line of the contributor information and the video description information. The method of claim 3, comprising:
5. Determining the second region includes: determining an extension boundary line extending from the first region to another region of the video frame; determining an extension size based on the other region and the region parameters of the first region; determining the second region along the expansion boundary based on the extension size; and The method of claim 1 , comprising:
6. The above-mentioned obtaining a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency includes: A gradation process is performed on a mask layer having a size matching the first region and the second region using a preset nonlinear curve function, and a target mask layer having a gradation from the first region to the second region that becomes transparent is obtained. The method of claim 1 , comprising:
7. The above-mentioned method of obtaining a mask layer shape diagram having a gradation from the first region to the second region to a transparent gradation based on a joint shape between the first region and the second region includes the steps of: When the joining shape of the first region and the second region includes a sector shape, a radial mask layer diagram including a sector region having a gradation from the first region to the second region to a transparent gradation is obtained; or When a joining shape between the first region and the second region includes a rectangle, a rectangular mask layer image including a rectangular region that has a gradation from the first region to the second region to become transparent is obtained. The method of claim 1 , comprising:
8. The above-mentioned, performing the overlay process on the mask layer region in the video frame based on the target mask layer, performing an overlap process on the target mask layer and a mask layer region above the video frame; and / or performing an overlapping process on the target mask layer and a mask layer area below the video frame; The method of claim 1 , comprising:
9. A determination module for determining the mask layer region including a first region in a video frame that matches prominently displayed target information and a second region that transitions in color from the first region to another video screen that does not have a mask layer region; an acquisition module for acquiring a target mask layer that matches the first region and the second region and has a gradation from the first region to the second region to transparency; a processing module for performing a superimposition process on the mask layer region in the video frame based on the target mask layer, to prominently display the target information; Including, The acquisition module acquires a mask layer shape diagram, which has a gradation from the first region to the second region to a transparent gradation, based on a joining shape between the first region and the second region, and cuts out a target mask layer having a size matching the first region and the second region from the mask layer shape diagram. A moving image mask layer display device.
10. A processor; a memory for storing instructions executable by the processor; The electronic device is characterized in that the processor is configured to read the executable instructions from the memory and execute the instructions to realize the video mask layer display method described in any one of claims 1 to 8.
11. A computer readable storage medium having stored thereon instructions which, when run on a terminal device, cause the terminal device to implement the method for displaying an animated mask layer according to any one of claims 1 to 8.
12. A computer program product, characterised in that it comprises computer programs / instructions which, when executed by a processor, cause the implementation of the animated mask layer display method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Information display device, information display method and program
JP2013092593A
Dynamic video overlays
US20170150213A1
Electronic device for improving text visibility and method of operating same
US20180033164A1