A special effect display method, device, equipment and storage medium

By adjusting the presentation area of ​​special effects in the application screen so that its area ratio to the application screen remains unchanged, the problem of display mismatch of special effects props under different display sizes is solved, ensuring the special effects display effect.

CN119729087BActive Publication Date: 2025-10-14BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311257247.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-10-14
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

In live broadcast or short video applications, special effects props may appear too large or too small in size after the aspect ratio is adjusted, affecting the display effect.

Method used

通过响应于应用画面的尺寸调整操作,调整目标特效在应用画面中的呈现区域,使第一呈现面积比与第二呈现面积比保持相同,确保特效展示区域与应用画面面积比值不变,适应不同显示尺寸。

Benefits of technology

The special effects display area is adapted to application screens of various display sizes, avoiding the situation where the special effects display size is too large or too small, and ensuring the special effects display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729087B_ABST
    Figure CN119729087B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a special effect display method and device, equipment and a storage medium. The method comprises: in response to a trigger operation of a target special effect, displaying the target special effect in an application interface with a first display size; in response to a size adjustment operation of the application interface, displaying the application interface according to a second display size corresponding to the size adjustment operation; wherein a first presentation area ratio is the same as a second presentation area ratio, the first presentation area ratio is the ratio of the area of a first presentation area to the area of the application interface under the first display size, and the second presentation area ratio is the ratio of the area of a second presentation area to the area of the application interface under the second display size. By using the method, when the display size of the application interface is adjusted, the size of the special effect presentation area is determined based on the display size of the application interface on which the special effect depends, the display size of the presented special effect is adapted to application interfaces with multiple different display sizes, and the special effect display effect is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to the technical field of image processing, and particularly relate to a special effect display method and device, equipment and a storage medium. BACKGROUND

[0002] With the development of network technology, special effects props are increasingly applied to live broadcast, short video interactive entertainment and other entertainment application software. Through the special effects props provided, the visual effect of real picture content in live broadcast scenes, short video scenes and other interactive entertainment scenes can be enhanced. At present, the entertainment application software is mostly based on mobile terminals as the carrier, and the entertainment application software mostly presents pictures in a vertical screen form. Therefore, the special effects props are mostly considered to adapt to the resolution under the aspect ratio corresponding to the vertical screen picture in special effect display.

[0003] However, with the continuous iteration of the capabilities of application software, other aspect ratios (such as equal aspect ratio or horizontal screen aspect ratio) of the resolution are also displayed in live broadcast or short video applications. If the original special effects adapted to the vertical screen are directly migrated and displayed in the picture after adjusting the aspect ratio, the displayed special effects and the picture after adjusting the aspect ratio will not match, such as the display size of the presented special effects being too large or too small, thereby affecting the special effect display effect. SUMMARY

[0004] The present disclosure provides a special effect display method, device, equipment and storage medium, which realizes the adaptation of the display size of the presented special effects to application pictures of various different display sizes, and guarantees the special effect display effect.

[0005] In a first aspect, the embodiments of the present disclosure provide a special effect display method, which comprises:

[0006] In response to a trigger operation of a target special effect, the target special effect is displayed in an application picture with a first display size, and a first presentation area of the target special effect in the application picture is determined based on the first display size.

[0007] In response to a size adjustment operation of the application picture, the application picture is displayed according to a second display size corresponding to the size adjustment operation, and a second presentation area of the target special effect in the application picture is determined based on the second display size.

[0008] The first presentation area ratio is the same as the second presentation area ratio, the first presentation area ratio is the ratio of the area of the first presentation area to the picture area of the application picture under the first display size, and the second presentation area ratio is the ratio of the area of the second presentation area to the picture area of the application picture under the second display size.

[0009] In a second aspect, the embodiments of the present disclosure further provide a special effect display device, which comprises:

[0010] The first response module is configured to display the target special effect in an application interface with a first display size in response to a trigger operation of the target special effect, and a first presentation area of the target special effect in the application interface is determined based on the first display size.

[0011] The second response module is configured to display the application interface according to a second display size corresponding to a size adjustment operation of the application interface in response to the size adjustment operation of the application interface, and a second presentation area of the target special effect in the application interface is determined based on the second display size.

[0012] The first presentation area ratio is a ratio of an area of the first presentation area to a screen area of the application interface under the first display size, and the second presentation area ratio is a ratio of an area of the second presentation area to a screen area of the application interface under the second display size.

[0013] In a third aspect, the embodiments of the present disclosure further provide an electronic device, which comprises:

[0014] one or more processors;

[0015] a storage device configured to store one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effect display method provided in the first aspect of the embodiments of the present disclosure.

[0017] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium containing computer executable instructions, which are used to execute the special effect display method provided in the first aspect of the embodiments of the present disclosure when executed by a computer processor.

[0018] The embodiment of the present disclosure provides a special effect display method, device and equipment and a storage medium. The method comprises the following steps: in response to a trigger operation of a target special effect, displaying the target special effect in an application picture with a first display size, a first display area of the target special effect in the application picture being determined based on the first display size; in response to a size adjustment operation of the application picture, displaying the application picture according to a second display size corresponding to the size adjustment operation, a second display area of the target special effect in the application picture being determined based on the second display size; wherein a first display area ratio and a second display area ratio are the same, the first display area ratio being a ratio of an area of the first display area to a picture area of the application picture under the first display size, and the second display area ratio being a ratio of an area of the second display area to a picture area of the application picture under the second display size. The above technical solution adjusts the display area of the target special effect in the application picture when the display size of the application picture is adjusted, and the display area of the target special effect in the application picture is determined based on the display size of the application picture; when the display area of the target special effect in the application picture is adjusted, the area ratio of the display area of the special effect in the application picture to the picture area of the application picture is maintained unchanged, the display size of the presented special effect is adapted to application pictures with multiple different display sizes, and the situation that the display size of the presented special effect is too large or too small in the prior art is avoided, thereby ensuring the special effect display effect. BRIEF DESCRIPTION OF DRAWINGS

[0019] The above and other features, advantages, and aspects of the present disclosure will become more apparent by describing in detail the following specific embodiments thereof with reference to the accompanying drawings. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic and elements are not necessarily to scale.

[0020] Figure 1 A schematic diagram defined for a field of view angle;

[0021] Figure 2 An example diagram of special effect display under different picture display sizes processed based on an X-axis alignment strategy in the prior art;

[0022] Figure 3 An example diagram of special effect display under different picture display sizes processed based on a Y-axis alignment strategy in the prior art;

[0023] Figure 4 A flowchart of a special effect display method provided by the embodiment of the present disclosure;

[0024] Figure 5 An example diagram of a special effect visible area in the execution of a special effect display method provided by the embodiment of the present disclosure;

[0025] Figure 6 An example diagram of a special effect presentation area in a special effect presentation method according to an embodiment of the present disclosure;

[0026] Figure 7 A structural diagram of a special effect presentation device according to an embodiment of the present disclosure;

[0027] Figure 8 A structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. While certain embodiments of the present disclosure will be shown and described, it is to be understood that the present disclosure is not limited to the embodiments set forth herein and that the scope of the disclosure includes equivalents, modifications, substitutions and / or revi sions of those embodiments encompassed by the spirit and scope of the following claims. It should be understood that the drawings and detailed description thereto are not intended to limit the scope of the present disclosure.

[0029] It should be understood that the various steps in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. Additionally, the method embodiments can include additional steps and / or omit performing the steps shown. The scope of the present disclosure is not limited in this regard.

[0030] As used herein, the term "includes" and its variants are to be read to be analogous to "comprising," namely "including but not limited to." The term "based on" is to be read as "based, at least in part, on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments." Related definitions will be given in the description below.

[0031] Note that the terms "first", "target", and the like in the present disclosure are merely used to distinguish different apparatuses, modules or units, and are not intended to limit the order or interdependence of the functions performed by these apparatuses, modules or units.

[0032] Note that the terms "one", "multiple" in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise explicitly stated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between the plurality of apparatuses in the embodiments of the present disclosure are merely used for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0034] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained according to relevant laws and regulations.

[0035] For example, in response to receiving the active request of the user, the prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the personal information of the user. Thus, the user can voluntarily choose whether to provide the personal information to the software or hardware such as the electronic device, application program, server or storage medium, etc. that performs the operation of the technical solutions of the present disclosure according to the prompt information.

[0036] As an optional but non-limiting implementation manner, in response to receiving the active request of the user, the manner of sending the prompt information to the user may, for example, be a pop-up window manner, and the prompt information may be presented in the form of 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 the personal information to the electronic device.

[0037] It can be understood that the above notification and user authorization process is only illustrative and does not limit the implementation manner of the present disclosure, and other manners that meet the relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0038] With the development of network technology, special effects props are more and more applied to live broadcast, short video interactive entertainment and other entertainment application software. Through the special effects props provided, the visual effect of real picture content in live broadcast scene, short video scene and other interactive entertainment scenes can be enhanced. For example, the special effects props have two-dimensional stickers and three-dimensional models. At present, the entertainment application software is mostly based on mobile terminals as the carrier, and the entertainment application software is mostly presented in the form of vertical screen. Therefore, the special effects props also mostly consider the resolution under the aspect ratio corresponding to the vertical screen in special effects display. For example, for mobile terminal phones, vertical screen shooting is usually used, and most of the special effects are only suitable for vertical screen with a 9:16 aspect ratio.

[0039] However, with the continuous iteration of the capabilities of application software, other aspect ratios (such as an equal aspect ratio or a horizontal screen aspect ratio) may also appear in the live broadcast or short video application. For example, other aspect ratios such as an equal aspect ratio 1:1, a horizontal screen aspect ratio 16:9, and the like. For example, a certain application scenario is a playback window that occupies the entire screen for vertical screen playback. When several playback windows need to be displayed on the entire screen at the same time, the screen will present each playback window in the form of a nine-square grid, and each playback window will be displayed in a resolution with an aspect ratio of 1:1. Or, a vertical screen aspect ratio display needs to be changed to a horizontal screen aspect ratio display. If the original special effect adapted to the vertical screen is directly migrated and displayed in the picture after the aspect ratio is adjusted, the displayed special effect will not match the picture after the aspect ratio is adjusted, such as the display size of the presented special effect being too large or too small, thereby affecting the special effect display effect.

[0040] It should be noted that in order to present a three-dimensional special effect on a picture, the three-dimensional special effect needs to be projected to present the projected picture on the screen. For a three-dimensional special effect, a virtual camera is used to project the three-dimensional special effect, and a special effect projection plane is generated after projection. In three-dimensional special effect rendering, the concept of a field of view (FOV) is introduced, which includes a horizontal field of view and a vertical field of view. FOV can be used to cut the special effect visible area on the special effect projection plane, and the special effect content in the cut special effect visible area can be rendered and presented. Figure 1 An illustrative diagram for defining the field of view is shown in FIG. 1. Figure 1 As shown, a visual point forms a visual field, and the height and width of the visual area formed by the visual point on the projection plane form a horizontal field of view and a vertical field of view. Based on the height and width, the visual area 11 is determined.

[0041] In a traditional game scenario, the field of view is generally kept unchanged. For example, an initial field of view can be set so that the visual picture rendered after the three-dimensional model is projected matches the device screen interface. However, in some application scenarios, such as a live broadcast scenario, there may be a need to dynamically adjust the width and height of the screen. In this case, if the aspect ratio of the screen is adjusted, the aspect ratio of the FOV may be different from that of the actual screen, and a method is needed to adapt the display size of the projected special effect to the changed picture when the display size of the picture changes. The existing technology generally adopts the strategy of aligning the X-axis or aligning the Y-axis.

[0042] For example, when a three-dimensional special effect suitable for a portrait screen aspect ratio is presented on a new aspect ratio screen, the X-axis alignment is selected, that is, the horizontal field of view is kept unchanged, and the new vertical field of view corresponding to the new aspect ratio screen is determined. After the new vertical field of view is determined, the three-dimensional special effect is intercepted in the X-axis and Y-axis based on the horizontal field of view and the vertical field of view to obtain a visible region, but the problem of mismatch between the displayed special effect and the aspect ratio adjusted screen may occur. For example, Figure 2 An example diagram of special effect display under different screen display sizes processed by the prior art based on the X-axis alignment strategy is shown in FIG. 1. Figure 2 As shown in FIG. 1, when the X-axis alignment is based, when a portrait screen becomes an equal aspect ratio screen display size and then becomes a landscape screen, the width remains unchanged, Y-axis FOV = height*FOV-X / width, where width and height represent the width and height of the adjusted screen, and X represents the width under the original field of view. The visible region determined based on this strategy will cause the special effect to be enlarged relative to the screen, resulting in mismatch between the displayed special effect and the aspect ratio adjusted screen.

[0043] Similarly, if the Y-axis alignment is selected, that is, the vertical field of view is kept unchanged, and the new horizontal field of view corresponding to the new aspect ratio screen is determined. After the new horizontal field of view is determined, the three-dimensional special effect is intercepted in the X-axis and Y-axis based on the horizontal field of view and the vertical field of view to obtain a visible region, but the problem of mismatch between the displayed special effect and the aspect ratio adjusted screen may occur. For example, Figure 3 An example diagram of special effect display under different screen display sizes processed by the prior art based on the Y-axis alignment strategy is shown in FIG. 2. Figure 3 As shown in FIG. 2, when the Y-axis alignment is based, when a portrait screen becomes an equal aspect ratio screen and then becomes a landscape screen, the height remains unchanged, X-axis FOV = width*FOV-Y / height, width and height represent the width and height of the adjusted screen, and Y represents the height under the original field of view. The visible region determined based on this strategy will cause the special effect to be relatively small relative to the screen, resulting in mismatch between the displayed special effect and the aspect ratio adjusted screen.

[0044] Based on this, the embodiment provides a special effect display method, which can adapt the special effect display to the change of the screen size.

[0045] Figure 4 A flowchart of a special effect display method provided by the embodiment of the present disclosure is shown in FIG. 3. The embodiment of the present disclosure is applicable to the case of displaying a special effect when the screen display size changes. The method can be executed by a special effect display device, which can be implemented in the form of software and / or hardware. Optionally, the electronic device can be used as an execution terminal to implement the method. The electronic device can be a mobile terminal, a PC terminal, or a server.

[0046] As Figure 4 shown, the special effect display method provided by the embodiment of the disclosure specifically comprises the following operations:

[0047] S110, in response to the triggering operation of the target special effect, displaying the target special effect in an application picture with a first display size, and a first presentation area of the target special effect in the application picture is determined based on the first display size.

[0048] It should be noted that one of the application scenarios of the special effect display method provided in the embodiment can be described as follows: the special effect display method provided in the embodiment can be used as a plug-in in an application software with special effect application and display functions, to realize special effect application to a target object and display of the target object after the special effect is applied. When a user wants to apply a special effect to a target object, the user can perform a triggering operation on the special effect to be displayed. In the embodiment, the selected special effect to be displayed is referred to as a target special effect, and the target special effect is not specifically limited in the embodiment. The target special effect can be a two-dimensional special effect or a three-dimensional special effect. For example, the target special effect can be a two-dimensional sticker, or a three-dimensional hat special effect, a scarf special effect, etc.

[0049] In the embodiment, it can be considered that before the target special effect is applied, a corresponding picture is displayed on a visual interface. The picture to which the target special effect is to be applied is referred to as an application picture, and the application picture is displayed in a current size. The size of the application picture is referred to as a first display size. The application picture is not specifically limited in the embodiment. For example, the application picture can be a picture collected in real time by a camera of a mobile terminal during live streaming. After the triggering operation on the target special effect is performed, the target special effect is displayed in the application picture in response to the triggering operation of the target special effect. When the target special effect is displayed in the application picture, the target special effect occupies a certain area for presentation. In the embodiment, the presentation area of the target special effect in the application picture is referred to as a first presentation area.

[0050] It should be noted that the size of the area presented by the target special effect displayed in the application picture is related to the display size of the application picture to which the target special effect is applied. In other words, the first presentation area of the target special effect in the application picture is associated with the first display size of the application picture. The purpose of such a setting is to ensure that the presentation size of the target special effect is adapted to the display size of the application picture, so as to ensure a better special effect presentation effect.

[0051] The display size can be understood as a resolution. For example, assuming that a mobile phone usually presents an application picture in a portrait resolution with an aspect ratio of 9:16, the application picture can be considered as an application picture of a first display size, and after triggering the target special effect, the target special effect is presented on a region adapted to the aspect ratio of 9:16. Correspondingly, if the application picture is presented in an equal-aspect-ratio resolution with an aspect ratio of 1:1, a first presentation region suitable for the display size is determined based on the application picture, and the target special effect is presented on the first presentation region. For another example, if the application picture is presented in a landscape resolution with an aspect ratio of 16:9, a first presentation region suitable for the display size is determined based on the application picture, and the target special effect is presented on the first presentation region.

[0052] In S120, in response to the size adjustment operation of the application picture, the application picture is displayed in a second display size corresponding to the size adjustment operation, and a second presentation region of the target special effect in the application picture is determined based on the second display size.

[0053] The first presentation area ratio is a ratio of a region area of the first presentation region to a picture area of the application picture in the first display size, and the second presentation area ratio is a ratio of a region area of the second presentation region to a picture area of the application picture in the second display size.

[0054] It should be noted that the special effect display method provided in this embodiment can adjust the presentation region of the target special effect according to the change of the display size of the application picture, so that the presentation region of the target special effect is adapted to the display size of the application picture, and the target special effect is not too large or too small in the application picture.

[0055] In this embodiment, the size adjustment operation can be performed on the application picture. The size adjustment operation on the application picture can be an operation of adjusting the size of the application picture by the user according to the user's own needs through dragging and sliding, or can be an operation of automatically adjusting the size of the application picture when receiving a certain adjustment operation. For example, when a user performs live broadcast through a mobile phone in a certain application scenario, if the live broadcast scenario is that one user is performing live broadcast, there is a play window occupying the entire screen for vertical screen playing. When the user performs a microphone connection operation, other users will be invited to participate, and the camera pictures of the invited users will also be displayed on the screen. Thus, when the play window occupying the entire screen is adjusted to the play window corresponding to each user being displayed on the screen, the screen will present each play window in a nine-square grid form, and each play window will be displayed in a resolution with a width-height ratio of 1:1. It can be considered that the window originally displayed in a vertical screen resolution is adjusted to a window with a width-height ratio of 1:1. The triggering operation of inviting other users in this process can be considered as the size adjustment operation of the application picture.

[0056] When the size adjustment operation of the application picture is triggered, this step is used to respond to the size adjustment operation of the picture, and the display size of the application picture is adjusted accordingly. After the execution subject receives the size adjustment operation of the application picture, it analyzes what the size adjustment operation is and what size the application picture needs to be adjusted to. In this embodiment, the size of the application picture that should be displayed after the size adjustment operation is performed on the application picture is recorded as a second display size, which is different from the first display size. This step displays the application picture according to the second display size corresponding to the size adjustment operation.

[0057] It should be noted that when the application picture is displayed in the second display size, the size of the presentation area of the target special effect in the application picture needs to be adjusted accordingly, so as to ensure that the presentation size of the target special effect is adapted to the application picture after the display size is adjusted. In this embodiment, the area presented by the target special effect in the application picture displayed in the second display size is recorded as a second presentation area. The second presentation area is determined based on the second display size.

[0058] In this embodiment, the ratio of the area of the first presentation area to the picture area of the application picture in the first display size is recorded as a first presentation area ratio. The ratio of the area of the second presentation area to the picture area of the application picture in the second display size is recorded as a second presentation area ratio. In order to ensure that the special effect is adapted to multiple resolutions, that is, the area of the special effect presented in the application picture with different display sizes is adapted, it is necessary to ensure that the first presentation area ratio and the second presentation area ratio are the same.

[0059] In the embodiment, the target special effect can be a two-dimensional special effect or a three-dimensional special effect. For the case where the target special effect is a two-dimensional special effect, as a specific implementation manner, the display size of the application picture before and after the adjustment can be used to adjust the size ratio of the target special effect before and after the adjustment, and the presentation area of the target special effect in the application picture before and after the adjustment can also be adjusted according to the size ratio.

[0060] For the case where the target special effect is a three-dimensional special effect, the adjustment size of the target special effect in the application picture is also determined based on the display size of the adjusted application picture. To present the three-dimensional special effect in the application picture, the three-dimensional special effect needs to be projected first, and the projected picture is presented in the application picture. As a specific implementation manner, the target special effect can be projected in two dimensions first to obtain a projection plane corresponding to the target special effect. Different from the prior art which determines the special effect visible area by aligning the X axis or the Y axis, in the embodiment, the display size of the application picture is adjusted, and the area of the special effect visible area remains unchanged. Based on this, a formula representing the relationship between the field of view angles before and after the adjustment can be preset, so as to determine the corresponding field of view angle after the adjustment according to the adjusted picture display size. In the case where the field of view angle is known, the special effect visible area can be cut out from the special effect projection plane. It is considered that the area ratio of the presentation area of the special effect in the application picture to the picture area of the application picture should be maintained unchanged, that is, the area ratio of the presentation area of the special effect to the application picture after the adjustment of the application picture size is the same as the area ratio before the adjustment of the display size. Based on this, the special effect visible area is adjusted to a size suitable for the display size of the adjusted application picture, and the special effect picture information of the adjusted area is rendered to the position where the target special effect should be displayed, so that the special effect presentation area can be obtained. It can be seen that the above method can realize multi-resolution adaptation of the special effect at low cost, and does not increase additional performance loss.

[0061] The embodiment of the present disclosure provides a special effect display method, which comprises the following steps: in response to a trigger operation of a target special effect, displaying the target special effect in an application interface with a first display size, wherein a first display area of the target special effect in the application interface is determined based on the first display size; in response to a size adjustment operation of the application interface, displaying the application interface according to a second display size corresponding to the size adjustment operation, wherein a second display area of the target special effect in the application interface is determined based on the second display size; wherein a first display area ratio and a second display area ratio are the same, the first display area ratio is a ratio of an area of the first display area to a screen area of the application interface under the first display size, and the second display area ratio is a ratio of an area of the second display area to a screen area of the application interface under the second display size. The technical scheme has the advantages that when the display size of the application interface is adjusted, the display area of the target special effect in the application interface is adjusted accordingly, and the display area of the target special effect in the application interface is determined based on the display size of the application interface; when the display area of the target special effect in the application interface is adjusted, the area ratio of the display area of the target special effect in the application interface to the screen area of the application interface is maintained, the display size of the displayed special effect is adapted to application interfaces with various display sizes, and the problem that the display size of the displayed special effect is too large or too small in the prior art is avoided, so that the special effect display effect is ensured.

[0062] The target special effect can be a two-dimensional special effect or a three-dimensional special effect. The following optional embodiment describes the case that the target special effect is a three-dimensional special effect. As a first optional embodiment of the present embodiment, on the basis of the above-mentioned embodiment, the first display size and the second display size are denoted as screen display sizes, and the first display area and the second display area are denoted as special effect display areas. The step of determining the special effect display area based on the screen display size can be specifically implemented as follows:

[0063] a1) if the target special effect is a three-dimensional special effect, determining a special effect projection plane corresponding to the target special effect.

[0064] In the present embodiment, if the target special effect is a three-dimensional special effect, the three-dimensional special effect needs to be projected before being displayed on the application interface. Specifically, a projection plane corresponding to the target special effect needs to be determined first, which is denoted as a special effect projection plane corresponding to the target special effect.

[0065] It can be understood that the three-dimensional special effect is rendered on a three-dimensional model, that is, each three-dimensional special effect corresponds to a three-dimensional model. When projecting the three-dimensional special effect to a two-dimensional plane, it is equivalent to projecting the three-dimensional model corresponding to the three-dimensional special effect to a two-dimensional plane, and taking the two-dimensional plane containing the target special effect after projection as the special effect projection plane of the target special effect. Exemplarily, the implementation of projecting the three-dimensional model to the two-dimensional plane can be determined based on coordinate transformation.

[0066] b1) determining a special effect visible area of the target special effect in the special effect projection plane according to the display size of the application picture.

[0067] Unlike the prior art, which determines the special effect visible area by aligning the X axis or aligning the Y axis, in the embodiment, the area of the special effect visible area remains unchanged after the display size of the application picture is adjusted. Based on this, a formula representing the relationship before and after the field of view angle adjustment can be preset.

[0068] As described above, after obtaining the display size of the picture, the original field of view angle, the aspect ratio of the original display size, and the aspect ratio of the adjusted display size of the picture are substituted into the formula representing the relationship before and after the field of view angle adjustment, the adjusted field of view angle can be determined. Further, based on the adjusted field of view angle, the special effect visible area can be cut from the special effect projection plane.

[0069] c1) determining a special effect presentation area of the target special effect in the application picture according to the special effect visible area.

[0070] In order to ensure that the target special effect is presented in the application picture with a suitable size, that is, to ensure that the special effect presentation area adapts to the application picture after the size adjustment, it should be ensured that the ratio of the presentation area of the corresponding special effect presentation area after the original display size and the picture area of the application picture on which it depends is the same as the ratio of the presentation area of the corresponding special effect presentation area after the size adjustment and the picture area of the application picture after the size adjustment. Based on the area ratio before and after the display size adjustment, and the area of the application picture after the adjustment, the area of the special effect presentation area after the display size adjustment can be determined. Adjusting the special effect visible area according to the area is equivalent to adjusting the special effect visible area to a size that adapts to the adjusted display size of the application picture. Further, the position where the target special effect should be displayed can be determined, and the special effect picture information of the adjusted area is rendered to the position, so as to determine the special effect presentation area of the target special effect in the application picture.

[0071] The technical solution above specifically realizes how to determine the special effect presentation area based on the picture display size if the target special effect is a three-dimensional special effect. If the target special effect is a three-dimensional special effect, the target special effect is first projected to obtain a special effect projection plane; then the special effect visible area is determined in the special effect projection plane according to the picture display size, and finally the special effect presentation area of the target special effect in the application picture is determined according to the special effect visible area. When the display size of the application picture is adjusted, the area of the special effect visible area is unchanged, which ensures that the display size of the target special effect presentation is suitable for application pictures of various display sizes, and ensures the special effect display effect.

[0072] As a specific implementation, the determination of the special effect projection plane corresponding to the target special effect can be specifically implemented as:

[0073] a11) obtaining a target special effect three-dimensional model corresponding to the target special effect.

[0074] In this embodiment, each target special effect is rendered by a bottom-layer special effect three-dimensional model, and the special effect three-dimensional model corresponding to the target special effect is denoted as a target special effect three-dimensional model in this embodiment. For example, assuming that the target special effect is a hat special effect, the target special effect three-dimensional model corresponding thereto is a three-dimensional model of a hat; and assuming that the target special effect is a scarf special effect, the target special effect three-dimensional model corresponding thereto is a three-dimensional model of a scarf.

[0075] It should be noted that if the target special effect is a three-dimensional special effect, the three-dimensional special effect needs to be projected first to present the three-dimensional special effect on the application picture, and the projection of the target special effect three-dimensional model into the application picture is equivalent to the projection of the target special effect three-dimensional model corresponding to the target special effect.

[0076] Specifically, the target special effect three-dimensional model corresponding to the target special effect is obtained, and the target special effect three-dimensional model is composed of an infinite number of points. For example, the outer contour of the target special effect three-dimensional model can be represented by the coordinates of a plurality of vertices.

[0077] a12) projecting the target special effect three-dimensional model into a two-dimensional plane according to the set projection conversion information.

[0078] The set projection conversion information can be specifically understood as projection conversion information representing the projection of a three-dimensional model into a two-dimensional plane. It can be considered that the target special effect three-dimensional model is projected into a two-dimensional plane according to the projection conversion information. For example, the way of projecting the target special effect three-dimensional model into a two-dimensional plane can be to perform coordinate conversion on the three-dimensional coordinates of the special effect three-dimensional model to obtain a two-dimensional plane represented by two-dimensional coordinates.

[0079] a13) determining the two-dimensional plane containing the target special effect after projection as the special effect projection plane of the target special effect.

[0080] In the embodiment, after projecting the target special effect three-dimensional model onto a two-dimensional plane, the two-dimensional plane containing the target special effect can be taken as the special effect projection plane of the target special effect.

[0081] The technical solution above specifically determines the step of determining the special effect projection plane corresponding to the target special effect, and obtains the special effect projection plane of the target special effect by projecting the target special effect three-dimensional model corresponding to the target special effect onto a two-dimensional plane, thereby realizing the determination of the special effect projection plane of the target special effect and providing a basis for subsequent determination of the special effect presentation area.

[0082] As a specific implementation, the step of determining the special effect visible area of the target special effect in the special effect projection plane according to the picture display size can be specifically implemented as follows:

[0083] b11) obtaining a preset original field of view angle of the target special effect and an original display size of an application picture on which the special effect is presented.

[0084] In the embodiment, the application picture of a common display size is usually provided with a corresponding field of view angle, and the set field of view angle is suitable for the application picture of the common display size and can have a better special effect display effect. For example, for a mobile phone terminal, a vertical screen is usually used for shooting, and most of the special effects are suitable for a vertical screen picture with a 9:16 aspect ratio. The reason why the special effects are suitable for the vertical screen picture with the 9:16 aspect ratio is that a field of view angle suitable for the display size is set.

[0085] In the embodiment, the display size of the initial application picture is referred to as an original display size, and the field of view angle corresponding to the target special effect of the application picture suitable for the original display size is referred to as an original field of view angle. This step is used to obtain the preset original field of view angle of the target special effect and the original display size of the application picture on which the special effect is presented.

[0086] b12) determining the target field of view angle corresponding to the picture display size according to the original field of view angle and the original display size and in combination with a given field of view angle display size relationship.

[0087] In the embodiment, in order to ensure that the target special effect is suitable for application pictures of various display sizes when presented, it is necessary to ensure that the area of the intercepted special effect visible area remains unchanged at a certain distance, that is, the area of the intercepted special effect visible area remains unchanged at different field of view angles. Based on this, the following formula can be used to calculate the target field of view angle.

[0088] The field of view angle includes a horizontal field of view angle and a vertical field of view angle, the horizontal field of view angle can be represented as X-axis FOV, and the vertical field of view angle can be represented as Y-axis FOV. The field of view angle display size relationship can be represented as:

[0089]

[0090] X-axis FOV, β represents the original Y-axis FOV, θ' represents the target X-axis FOV, and β' represents the target Y-axis

[0091] The target field of view angle can be obtained by substituting the ratio of the width and height of the adjusted picture display size into the above formula.

[0092] b13) intercepting the special effect visible region of the target special effect in the special effect projection plane according to the target field of view angle.

[0093] In the embodiment, when the target field of view angle is determined, that is, the X-axis FOV and the Y-axis FOV, the special effect visible region of the target special effect can be intercepted in the special effect projection plane. For example, referring to Figure 1 , the width and height of the special effect visible region can be determined under the premise that the target field of view angle is known, and the special effect visible region can be intercepted based on the width and height.

[0094] The technical solution specifically determines the step of determining the special effect visible region of the target special effect in the special effect projection plane according to the picture display size, and determines the target field of view angle by substituting the original field of view angle, the ratio of the width and height of the original display size, and the ratio of the width and height of the adjusted picture display size into the field of view angle display size relationship formula, so that the target field of view angle is adjusted when the picture display size is adjusted, the special effect visible region is adapted to the adjusted picture display size, and a high special effect display effect is achieved.

[0095] Preferably, the first area of the special effect visible region intercepted in the special effect projection plane according to the target field of view angle is the same as the second area of the special effect visible region intercepted in the special effect projection plane according to the original field of view angle.

[0096] In the embodiment, the area of the special effect visible region intercepted in the special effect projection plane according to the target field of view angle is recorded as the first area, and the area of the special effect visible region intercepted in the special effect projection plane according to the original field of view angle is recorded as the second area. In the embodiment, in order to ensure that the target special effect is applicable to various display size application pictures when being presented, it is necessary to ensure that the area of the special effect visible region intercepted outside a certain distance remains unchanged. That is, the first area of the special effect visible region intercepted in the special effect projection plane according to the target field of view angle is the same as the second area of the special effect visible region intercepted in the special effect projection plane according to the original field of view angle.

[0097] For example, Figure 5 An example diagram of the special effect visible region in the execution of a special effect display method provided by the embodiment of the present disclosure is as follows: Figure 5As shown, assuming that the special effect visual area intercepted in the special effect projection plane under the original field of view angle is 21, and the special effect visual area intercepted in the special effect projection plane under the target field of view angle is 22, in this embodiment, it is necessary to ensure that the area of the special effect visual area 21 is the same as the area of the special effect visual area 22.

[0098] The above technical solution limits the area of the special effect visual area intercepted in the special effect projection plane under different field of view angles to remain unchanged, ensures that the target special effect is suitable for various application pictures of different display sizes when presented, and ensures the special effect display effect.

[0099] As a specific implementation, the step of determining the special effect presentation area of the target special effect in the application picture according to the special effect visual area can be embodied as the following steps:

[0100] c11) determining the original picture area of the application picture under the original display size and the original presentation area of the corresponding original special effect presentation area under the original display size, and determining the application picture area of the application picture under the picture display size.

[0101] In this embodiment, the picture display size is equivalent to the original display size. The original display size refers to the display size of the application picture relied on by the special effect presentation corresponding to the original field of view angle. The picture display size refers to the size of the application picture after the display size is adjusted. In the case where the original display size of the application picture is known, the picture area of the application picture under the original display size relied on by the special effect presentation can be calculated. In this embodiment, the corresponding special effect presentation area under the original display size can be obtained, which is denoted as the original special effect presentation area. In the case where the original special effect presentation area is known, the area of the original special effect presentation area can be determined, which is denoted as the original presentation area. In the case where the picture display size of the application picture is known, the picture area of the application picture can be calculated according to the picture display size, which is denoted as the application picture area.

[0102] c12) determining the to-be-displayed area according to the area ratio of the original presentation area to the original picture area and the application picture area.

[0103] In order to ensure that the special effect display area is adapted to the application picture after the size adjustment, the area ratio of the special effect display area to the application picture after the display size adjustment should be the same as the area ratio of the original display area to the original picture area. Therefore, in the case where the original display area and the original picture area are known, the area ratio of the original special effect display area to the original application picture after the display size adjustment can be determined, and the area ratio of the application picture before and after the display size adjustment should remain unchanged. Thus, in the case where the area ratio and the application picture area after the display size adjustment are known, the two can be multiplied to obtain the area of the special effect display area of the application picture after the display size adjustment, which is recorded as the to-be-displayed area.

[0104] c13) adjusting the special effect visible area according to the to-be-displayed area to obtain a special effect to-be-displayed area.

[0105] After the to-be-displayed area and the special effect visible area are obtained, the special effect visible area needs to be adjusted according to the to-be-displayed area, so that the area of the special effect visible area is the same as the area of the to-be-displayed area, thereby obtaining the adjusted area, which is recorded as the special effect to-be-displayed area. For example, the special effect visible area can be enlarged or reduced in proportion to obtain an area with the same area as the to-be-displayed area, which is recorded as the special effect to-be-displayed area.

[0106] c14) extracting special effect picture information in the special effect to-be-displayed area, and rendering the special effect picture information to a special effect to-be-displayed position in the application picture to constitute a special effect display area of the target special effect in the application picture.

[0107] Wherein, the special effect to-be-displayed position is determined according to the association relationship between the subject object contained in the application picture and the target special effect.

[0108] Wherein, the special effect picture information can be understood as information related to the rendering in the special effect to-be-displayed area, such as pixel values in the special effect to-be-displayed area, position relationship between pixel points, etc. The special effect to-be-displayed position is determined according to the association relationship between the subject object contained in the application picture and the target special effect. For example, assuming that the subject object is a person and the target special effect is a scarf effect, the scarf effect should be worn on the neck of the person, and the position where the scarf effect should be worn on the neck of the person is recorded as the special effect to-be-displayed position.

[0109] Specifically, the special effect picture information in the special effect to-be-displayed area is extracted, and the special effect picture information is rendered to the special effect to-be-displayed position in the application picture, thereby constituting a special effect display area of the target special effect in the application picture.

[0110] For example, Figure 6 An example diagram of a special effect display area in a special effect display method provided by the embodiments of the present disclosure is shown in FIG. 1. Figure 6As shown, it is assumed that the application picture under the original display size is 31, the original special effect presentation area corresponding to the original display size is 311, the application picture under the adjusted picture display size is 32, and the special effect presentation area corresponding to the adjusted picture display size is 322. To obtain the special effect presentation area, the area ratio of the original presentation area 311 of the original presentation area to the original picture area of the application picture 31 under the original display size is required to be the same as the area ratio of the special effect presentation area 322 of the special effect presentation area to the application picture area of the application picture 32 under the picture display size, so that the to-be-displayed area can be determined. Then the Figure 5 The special effect visible area 22 in the middle is adjusted to the size of the to-be-displayed area, so as to obtain the special effect to-be-displayed area, extract the special effect picture information in the special effect to-be-displayed area, and render the special effect picture information to the special effect to-be-displayed position in the application picture to constitute the special effect presentation area 322 of the target special effect in the application picture.

[0111] It can be seen that according to the method provided in the embodiment, the special effect presentation area of the target special effect can be adapted to the application picture under the adjusted display size, avoiding the case that the display size of the presented special effect is too large or too small in the prior art, and ensuring the special effect display effect.

[0112] The above technical solution specifically determines the step of determining the special effect presentation area of the target special effect in the application picture according to the special effect visible area, and based on the area ratio of the presentation area of the special effect before and after the display size adjustment to the area of the application picture, it can be determined that the special effect presentation area after the display size adjustment should display how large an area, and then the size of the special effect visible area is adjusted according to the size of the area, and further rendering is performed. The target special effect is suitable for various application pictures of different display sizes when presented, and the special effect display effect is ensured.

[0113] The following describes the case that the target special effect is a two-dimensional special effect. As a specific implementation manner, the step of determining the special effect presentation area based on the picture display size can be specifically implemented as:

[0114] If the target special effect is a two-dimensional special effect, the original special effect presentation area of the target special effect is adjusted in proportion according to the size ratio of the picture display size to the original display size of the application picture, and the adjusted presentation area is taken as the special effect presentation area.

[0115] In the embodiment, if the target special effect is a two-dimensional special effect, the two-dimensional special effect itself belongs to a two-dimensional plane, and no projection conversion is needed. Based on this, only the size ratio of the picture display size and the original picture display size of the application picture needs to be determined, and then the original special effect presentation area of the target special effect is adjusted in proportion, and the adjusted presentation area is used as the special effect presentation area. For example, assuming that the original display size is 9:16 and the adjusted picture display size is 1:1, the size ratio between the picture display size and the original display size can be determined. Based on the size ratio, the original special effect presentation area of the target special effect is adjusted in proportion, and the adjusted presentation area is used as the special effect presentation area.

[0116] The technical solution specifically determines the special effect presentation area when the target special effect is a two-dimensional special effect. The original special effect presentation area is adjusted in proportion through the size ratio of the picture display size before and after adjustment, the determination of the special effect presentation area is realized, and the target special effect is suitable for various application pictures with different display sizes when presented, and the special effect display effect is ensured.

[0117] Figure 7 A structural schematic diagram of a special effect display device provided by the embodiment of the present disclosure is shown in FIG. 1. Figure 8 As shown in FIG. 1, the device includes a first response module 410 and a second response module 420.

[0118] The first response module 410 is configured to display a target special effect in an application picture with a first display size in response to a trigger operation of the target special effect, and a first presentation area of the target special effect in the application picture is determined based on the first display size.

[0119] The second response module 420 is configured to display the application picture according to a second display size corresponding to a size adjustment operation of the application picture in response to the size adjustment operation, and a second presentation area of the target special effect in the application picture is determined based on the second display size.

[0120] The first presentation area ratio is the same as the second presentation area ratio. The first presentation area ratio is the ratio of the area of the first presentation area to the picture area of the application picture under the first display size. The second presentation area ratio is the ratio of the area of the second presentation area to the picture area of the application picture under the second display size.

[0121] The technical solution provided by the embodiments of the present disclosure can correspondingly adjust the presentation area of the target special effect in the application picture when the display size of the application picture is adjusted, and the presentation area of the target special effect in the application picture is determined based on the display size of the application picture; when the presentation area of the target special effect in the application picture is adjusted, the area ratio of the presentation area of the special effect in the application picture to the picture area of the application picture is maintained unchanged, the display size of the presented special effect is adapted to application pictures of multiple different display sizes, and the situation that the display size of the presented special effect is too large or too small in the prior art is avoided, so that the special effect display effect is guaranteed.

[0122] Further, the first display size and the second display size are referred to as picture display sizes, and the first presentation area and the second presentation area are referred to as special effect presentation areas.

[0123] The apparatus further includes a region determination module, which can include:

[0124] A projection plane determination unit is configured to determine a special effect projection plane corresponding to the target special effect if the target special effect is a three-dimensional special effect.

[0125] A visible region determination unit is configured to determine a special effect visible region of the target special effect in the special effect projection plane according to the picture display size.

[0126] A presentation region determination unit is configured to determine a special effect presentation region of the target special effect in the application picture according to the special effect visible region.

[0127] Further, the projection plane determination unit is specifically configured to:

[0128] Obtain a target special effect three-dimensional model corresponding to the target special effect.

[0129] Project the target special effect three-dimensional model into a two-dimensional plane according to set projection conversion information.

[0130] Determine the two-dimensional plane containing the target special effect after projection as the special effect projection plane of the target special effect.

[0131] Further, the visible region determination unit is specifically configured to:

[0132] Obtain an original field of view angle set in advance with respect to the target special effect and an original display size of an application picture on which the special effect is presented.

[0133] Determine a target field of view angle corresponding to the picture display size according to the original field of view angle and the original display size, and in combination with a given field of view angle display size relationship.

[0134] The special effect visual area of the target special effect is intercepted in the special effect projection plane according to the target field of view angle.

[0135] Further, a first area of the special effect visual area intercepted in the special effect projection plane according to the target field of view angle is the same as a second area of the special effect visual area intercepted in the special effect projection plane according to the original field of view angle.

[0136] Further, the apparatus further comprises a region determination unit, configured to:

[0137] determine an original picture area of the application picture under the original display size and an original presentation area of the corresponding original special effect presentation region under the original display size, and determine an application picture area of the application picture under the picture display size;

[0138] determine a to-be-displayed region area according to an area ratio of the original presentation area to the original picture area and the application picture area;

[0139] adjust the special effect visual area according to the to-be-displayed region area to obtain a special effect to-be-displayed region;

[0140] extract special effect picture information in the special effect to-be-displayed region, and render the special effect picture information to a special effect to-be-displayed position in the application picture to form a special effect presentation region of the target special effect in the application picture;

[0141] The special effect to-be-displayed position is determined according to an association relationship between a subject object contained in the application picture and the target special effect.

[0142] Further, the region determination unit is further configured to:

[0143] if the target special effect is a two-dimensional special effect, perform proportional adjustment on an original special effect presentation region of the target special effect according to a size ratio of the picture display size to an original display size of the application picture, and take the adjusted presentation region as the special effect presentation region.

[0144] The special effect display apparatus provided in the embodiments of the present disclosure can perform the special effect display method provided in any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of performing the method.

[0145] It should be noted that each unit and module included in the apparatus is only divided according to function logic, but is not limited to the above division, as long as the corresponding functions can be implemented; in addition, the specific names of each functional unit are only for convenient mutual distinction, and do not serve to limit the protection scope of the embodiments of the present disclosure.

[0146] Figure 8This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg Figure 8 The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0147] like Figure 8 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0148] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0149] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication apparatus 509, or installed from the storage apparatus 508, or installed from the ROM 502. When the computer program is executed by the processing apparatus 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

[0150] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0151] The electronic device provided by the embodiments of the present disclosure and the special effect display method provided by the above-mentioned embodiments belong to the same inventive concept, and the technical details not described in detail in the present embodiment can be referred to the above-mentioned embodiments, and the present embodiment has the same beneficial effects as the above-mentioned embodiments.

[0152] The embodiments of the present disclosure provide a computer storage medium, which stores a computer program, and the program is executed by a processor to implement the special effect display method provided by the above-mentioned embodiments.

[0153] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the disclosure, the computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, in which the computer-readable program code is contained. Such a propagated data signal can take any of a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. The computer-readable signal medium can also be any computer-readable medium that is not a storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including, but not limited to, wire, cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0154] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.

[0155] The computer-readable medium described above can be included in the electronic device; or exist separately from the electronic device, and not be assembled into the electronic device.

[0156] The computer-readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to:

[0157] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to: in response to a trigger operation of a target special effect, display the target special effect in an application interface with a first display size, a first presentation area of the target special effect in the application interface being determined based on the first display size; in response to a size adjustment operation of the application interface, display the application interface according to a second display size corresponding to the size adjustment operation, a second presentation area of the target special effect in the application interface being determined based on the second display size; wherein a first presentation area ratio and a second presentation area ratio are the same, the first presentation area ratio being a ratio of an area of the first presentation area to a screen area of the application interface under the first display size; the second presentation area ratio being a ratio of an area of the second presentation area to a screen area of the application interface under the second display size.

[0158] Computer program code for carrying out operations of the present disclosure can be written in any of one or more programming languages or combinations of languages including object or visual programming languages such as Java, Smalltalk, C++ or conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0159] The flow and block diagrams in the drawings show architectural, functional, and operational representations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow and block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may

[0160] The units described in the embodiments of the present disclosure can be implemented in the form of software, or can be implemented in the form of hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself. For example, a first obtaining unit can also be described as a unit that obtains at least two Internet protocol addresses.

[0161] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, example types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0162] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0163] According to one or more embodiments of the present disclosure, example one provides a special effect display method, the method comprising: in response to a trigger operation of a target special effect, displaying the target special effect in an application interface with a first display size, a first display area of the target special effect in the application interface being determined based on the first display size; in response to a size adjustment operation of the application interface, displaying the application interface according to a second display size corresponding to the size adjustment operation, a second display area of the target special effect in the application interface being determined based on the second display size; wherein a first display area ratio and a second display area ratio are the same, the first display area ratio being a ratio of an area of the first display area to a screen area of the application interface under the first display size, and the second display area ratio being a ratio of an area of the second display area to a screen area of the application interface under the second display size.

[0164] According to one or more embodiments of the present disclosure, Example Two provides a special effect display method, wherein the first display size and the second display size are picture display sizes, and the first presentation area and the second presentation area are special effect presentation areas; the method comprises further optimization of the step of determining the special effect presentation area based on the picture display size, and the optimization can be specifically: if the target special effect is a three-dimensional special effect, a special effect projection plane corresponding to the target special effect is determined; according to the picture display size, a special effect visible area of the target special effect in the special effect projection plane is determined; and according to the special effect visible area, a special effect presentation area of the target special effect in the application picture is determined.

[0165] According to one or more embodiments of the present disclosure, Example Three provides a special effect display method, which comprises further optimization of the step of determining the special effect projection plane corresponding to the target special effect, and the optimization can be specifically: a target special effect three-dimensional model corresponding to the target special effect is obtained; the target special effect three-dimensional model is projected into a two-dimensional plane according to set projection conversion information; and the two-dimensional plane containing the target special effect after projection is determined as the special effect projection plane of the target special effect.

[0166] According to one or more embodiments of the present disclosure, Example Four provides a special effect display method, which comprises further optimization of the step of determining the special effect visible area of the target special effect in the special effect projection plane according to the picture display size, and the optimization can be specifically: an original field of view angle set in advance with respect to the target special effect and an original display size of an application picture on which the special effect is presented are obtained; according to the original field of view angle and the original display size, a target field of view angle corresponding to the picture display size is determined in combination with a given field of view angle display size relationship; and the special effect visible area of the target special effect in the special effect projection plane is intercepted according to the target field of view angle.

[0167] According to one or more embodiments of the present disclosure, Example Five provides a special effect display method, which can optimize the first area of the special effect visible area intercepted in the special effect projection plane by the target field of view angle to be the same as the second area of the special effect visible area intercepted in the special effect projection plane under the original field of view angle.

[0168] According to one or more embodiments of the present disclosure, Example Six provides a special effect display method, which comprises further optimization of the determination of the special effect presentation area of the target special effect in the application picture according to the special effect visible area, and specifically can be optimized as follows: determining the original picture area of the application picture under the original display size and the original presentation area of the corresponding original special effect presentation area under the original display size, and determining the application picture area of the application picture under the picture display size; determining the to-be-displayed area according to the area ratio of the original presentation area to the original picture area and the application picture area; adjusting the special effect visible area according to the to-be-displayed area, to obtain a special effect to-be-displayed area; extracting special effect picture information in the special effect to-be-displayed area, and rendering the special effect picture information to a special effect to-be-displayed position in the application picture to constitute the special effect presentation area of the target special effect in the application picture; wherein the special effect to-be-displayed position is determined according to the association relationship between the subject object contained in the application picture and the target special effect.

[0169] According to one or more embodiments of the present disclosure, Example Seven provides a special effect display method, which comprises further optimization of the step of determining the special effect presentation area based on the picture display size, and specifically can be optimized as follows: if the target special effect is a two-dimensional special effect, performing equal-proportion adjustment on the original special effect presentation area of the target special effect according to the size ratio of the picture display size to the original display size of the application picture, and taking the adjusted presentation area as the special effect presentation area.

[0170] According to one or more embodiments of the present disclosure, Example Eight provides a special effect display device, which comprises: a first response module configured to display a target special effect in an application picture with a first display size in response to a triggering operation of the target special effect, a first presentation area of the target special effect in the application picture being determined based on the first display size; and a second response module configured to display the application picture according to a second display size corresponding to a size adjustment operation of the application picture in response to the size adjustment operation, a second presentation area of the target special effect in the application picture being determined based on the second display size; wherein a first presentation area ratio is the same as a second presentation area ratio, the first presentation area ratio being a ratio of a region area of the first presentation area to a picture area of the application picture under the first display size, and the second presentation area ratio being a ratio of a region area of the second presentation area to a picture area of the application picture under the second display size.

[0171] According to one or more embodiments of the present disclosure, Example Nine provides an electronic device, comprising one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the special effect display method as described in any one of the above Examples One to Seven.

[0172] According to one or more embodiments of the present disclosure, Example Ten provides a storage medium containing computer executable instructions for performing the special effect display method as described in any one of Examples One to Seven when executed by a computer processor.

[0173] The above description is merely exemplary of the disclosure and the application of the principles thereof and it is not intended to limit the scope of the disclosure to the specific forms set forth. The disclosure is susceptible to numerous modifications and alternative forms of implementation as will be readily apparent to those skilled in the art. The disclosure is intended to cover any and all adaptations or variations of the various features from the examples disclosed in the specification and in the claims. For instance, alternative and / or additional method features and / or elements can be employed.

[0174] In addition, while operations are depicted in a particular, chronological sequence in this disclosure, this should not be understood as requiring that such operations be performed in the order as shown or that all operations be performed. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, the specific sequence of operations illustrated in the above discussion can not require the specific order shown, nor the order shown, but these methods can be practiced in other orders. Similarly, while several specific implementation details are discussed in the above context, such details should not be construed as limitations on the scope of the disclosure, but merely as examples of one implementation. Certain features that are described in the context of separate embodiments 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 sub-combination.

[0175] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A special effects display method, characterized in that: include: In response to a triggering operation of a target special effect, displaying the target special effect in an application screen having a first display size, wherein a first presentation area of ​​the target special effect in the application screen is determined based on the first display size; In response to a resizing operation on the application screen, displaying the application screen according to a second display size corresponding to the resizing operation, and determining a second presentation area of ​​the target special effect in the application screen based on the second display size; Among them, the first presentation area ratio is the same as the second presentation area ratio, the first presentation area ratio is the ratio of the area of ​​the first presentation area to the screen area of ​​the application screen under the first display size; the second presentation area ratio is the ratio of the area of ​​the second presentation area to the screen area of ​​the application screen under the second display size.

2. The method according to claim 1, characterized in that The first display size and the second display size are recorded as screen display sizes, and the first presentation area and the second presentation area are recorded as special effect presentation areas; The step of determining the special effect presentation area based on the screen display size includes: If the target special effect is a three-dimensional special effect, determining a special effect projection plane corresponding to the target special effect; Determining a special effect visible area of ​​the target special effect in the special effect projection plane according to the screen display size; The special effect presentation area of ​​the target special effect in the application screen is determined according to the special effect visible area.

3. The method according to claim 2, characterized in that The determining of the special effect projection plane corresponding to the target special effect includes: Obtaining a target special effect three-dimensional model corresponding to the target special effect; Projecting the target special effect three-dimensional model onto a two-dimensional plane according to the set projection conversion information; The two-dimensional plane containing the target special effect after projection is determined as the special effect projection plane of the target special effect.

4. The method according to claim 2, characterized in that The determining, based on the screen display size, a special effect visible area of ​​the target special effect in the special effect projection plane includes: Obtaining an original field of view angle pre-set relative to the target special effect and an original display size of the application screen on which the special effect presentation depends; Determining a target field of view angle corresponding to the image display size according to the original field of view angle and the original display size and a given field of view angle-display size relationship formula; The special effect visual area of ​​the target special effect is intercepted in the special effect projection plane according to the target field of view angle.

5. The method according to claim 4, characterized in that The area of ​​the first region of the special effect visible area intercepted by the target field of view angle in the special effect projection plane is the same as the area of ​​the second region of the special effect visible area intercepted by the special effect projection plane at the original field of view angle.

6. The method according to claim 2, characterized in that The determining, based on the special effect visible area, a special effect presentation area of ​​the target special effect in the application screen includes: Determine an original screen area of ​​the application screen at the original display size and an original presentation area corresponding to the original special effect presentation area at the original display size, and determine an application screen area of ​​the application screen at the screen display size; Determining the area of ​​the to-be-displayed region according to the ratio of the original presentation area to the original screen area and the application screen area; Adjusting the special effect visible area according to the area of ​​the to-be-displayed area to obtain the special effect to-be-displayed area; Extracting special effect picture information from the special effect to-be-displayed area, and rendering the special effect picture information to the special effect to-be-displayed position in the application screen to form the special effect presentation area of ​​the target special effect in the application screen; The position where the special effect is to be displayed is determined according to the association relationship between the main object contained in the application screen and the target special effect.

7. The method according to claim 2, characterized in that The step of determining the special effect presentation area based on the screen display size includes: If the target special effect is a two-dimensional special effect, the original special effect presentation area of ​​the target special effect is proportionally adjusted according to the size ratio of the screen display size to the original display size of the application screen, and the adjusted presentation area is used as the special effect presentation area.

8. A special effects display device, characterized in that: include: a first response module, configured to display the target special effect in an application screen having a first display size in response to a triggering operation of the target special effect, wherein a first presentation area of ​​the target special effect in the application screen is determined based on the first display size; a second responding module, configured to, in response to a resizing operation on the application screen, display the application screen according to a second display size corresponding to the resizing operation, wherein a second presentation area of ​​the target special effect in the application screen is determined based on the second display size; Among them, the first presentation area ratio is the same as the second presentation area ratio, the first presentation area ratio is the ratio of the area of ​​the first presentation area to the screen area of ​​the application screen under the first display size; the second presentation area is the ratio of the area of ​​the second presentation area to the screen area of ​​the application screen under the second display size.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the special effects display method as described in any one of claims 1-7.

10. A storage medium containing computer-executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the special effects display method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Special effect display method and device for live broadcast room, electronic equipment and computer medium

    CN111506241A

  • Special effect prop display method and device, equipment and storage medium

    CN114445600A