Special effect processing method and device, electronic equipment, storage medium and program product

By determining the special effects rendering order in the image display area and gradually rendering the special effects of each area, the problem of a single special effects rendering method is solved, and refined special effects processing of multi-area images is achieved, thereby improving the user experience.

CN120704575APending Publication Date: 2025-09-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410339438.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The special effects rendering method in the existing technology has limitations, and the special effects presentation method is relatively simple, which affects the user experience.

Method used

By determining the special effects rendering order in the image display area, the special effects of each area are rendered step by step to generate ordered special effects in different areas.

Benefits of technology

It realizes refined special effects processing in multiple display areas in the image, enriches the rendering method, and improves the special effects interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704575A_ABST
    Figure CN120704575A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a special effect processing method and device, electronic equipment, a storage medium and a program product. The method comprises the steps that a target interface is displayed, and the target interface comprises at least two image display areas; in response to a special effect rendering trigger operation input in the target interface, obtaining a to-be-processed image, and determining a special effect rendering sequence corresponding to each image display area; and according to the special effect rendering sequence, performing special effect processing on the to-be-processed object in the image display area in the to-be-processed image to generate and display a special effect. According to the technical scheme provided by the embodiment of the invention, the effect of performing special effect rendering on the image display areas in sequence according to the rendering sequence under the condition that the image comprises the plurality of image display areas is realized, namely, the effect of performing sequential regional special effect rendering on the plurality of image display areas is presented, the special effect rendering mode is enriched, and the image display efficiency is improved. And the content layering sense of the image after the special effect processing is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to computer application technology, and more particularly to a special effects processing method, device, electronic device, storage medium, and program product. Background Art

[0002] In image processing or video production scenarios, the application of special effects is very popular among users. You can use the selected special effect to process the image or video so that the resulting image or video presents the special effect corresponding to the special effect.

[0003] In related technologies, special effects rendering typically involves applying special effects processing to the entire image content of the image being processed, thereby simultaneously presenting a complete special effect. For example, a facial special effect will be applied simultaneously to the entire face in the image being processed. This special effects processing approach imposes certain limitations on special effects rendering and results in a relatively limited presentation method, impacting the user experience. Summary of the Invention

[0004] The present disclosure provides a special effects processing method, device, electronic device, storage medium and program product to achieve the effect of performing special effects rendering in an orderly manner in the image display areas according to the corresponding rendering order when the image includes multiple image display areas, that is, presenting the effect of performing special effects rendering in an orderly manner for multiple image display areas.

[0005] In a first aspect, an embodiment of the present disclosure provides a special effects processing method, the method comprising:

[0006] Displaying a target interface, wherein the target interface includes at least two image display areas;

[0007] In response to a special effects rendering triggering operation input on the target interface, obtaining an image to be processed, and determining a special effects rendering order corresponding to each of the image display areas;

[0008] According to the special effect rendering order, special effect processing is performed on the object to be processed in the image to be processed and located in the image display area to generate and display a special effect.

[0009] In a second aspect, an embodiment of the present disclosure further provides a special effects processing device, the device comprising:

[0010] An interface display module, configured to display a target interface, wherein the target interface includes at least two image display areas;

[0011] An image acquisition module, configured to acquire an image to be processed in response to a special effects rendering triggering operation input on the target interface, and determine a special effects rendering order corresponding to each of the image display areas;

[0012] The special effect rendering module is used to perform special effect processing on the object to be processed in the image to be processed and located in the image display area according to the special effect rendering order, so as to generate and display a special effect.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] a storage device for storing 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 effects processing method as described in any one of the embodiments of the present disclosure.

[0017] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute a special effects processing method as described in any one of the embodiments of the present disclosure.

[0018] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the special effects processing method as described in any one of the embodiments of the present disclosure.

[0019] The technical solution of the embodiment of the present disclosure provides a special effect interaction entrance for users by displaying a target interface, wherein the target interface includes at least two image display areas, and can display multiple image display areas in the same display interface, which not only enriches the display content and display mode of the display interface, but also provides a visual display interface for the subsequent display of special effect effects in different regions. Furthermore, in response to the special effect rendering trigger operation input on the target interface, the image to be processed is obtained, and the special effect rendering order corresponding to each image display area is determined, thereby achieving the effect of determining the special effect rendering path corresponding to each image display area in the image to be processed, and providing a basis for the subsequent orderly division of regions. Special effects rendering lays the data foundation. Afterwards, special effects processing is performed on the objects to be processed located in the image display area in the processed image according to the special effects rendering order to generate and display special effects. This solves the problems of certain limitations of special effects rendering methods in related technologies and the relatively single way of presenting special effects. It realizes the effect of orderly special effects rendering of image display areas when the image includes multiple image display areas, and realizes the effect of refined special effects processing of images in the rendering time dimension and the rendering area dimension. It enriches the special effects rendering method, increases the content layering of the image after special effects processing, and improves the special effects interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0021] Figure 1 A flowchart of a special effects processing method provided by an embodiment of the present disclosure;

[0022] Figure 2 A flowchart of another special effects processing method provided by an embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram of an effect of an image to be processed provided by an embodiment of the present disclosure;

[0024] Figure 4 A flowchart of another special effects processing method provided by an embodiment of the present disclosure;

[0025] Figure 5 A schematic structural diagram of a special effects processing device provided by an embodiment of the present disclosure;

[0026] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0029] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0030] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0033] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0034] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0035] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0036] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0037] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0038] Before introducing the present technical solution, an example of the application scenario can be first explained. The technical solution can be applied to any scenario in which special effects processing is performed on an image or video including at least two image display areas. For example, when performing special effects rendering on an image to be processed including at least two image display areas, since the input source of the special effects processing is a single image to be processed, the entire image is generally rendered with special effects to obtain a special effects image. However, in the case where the image to be processed includes at least two image display areas, when performing special effects rendering on the image to be processed based on the above-mentioned special effects rendering method, there may be a situation where all image display areas are rendered by the target special effects at the same time, and thus, it is impossible to meet the user's need to render the individual image display areas in the image to be processed in a region-by-region manner according to a preset rendering order.

[0039] At this time, based on the technical solution of the embodiment of the present disclosure, when a special effects rendering trigger operation for the target interface is detected, an image to be processed including at least two image display areas is obtained according to the target interface, and the special effects rendering order corresponding to each image display area is determined. Furthermore, according to the special effects rendering order, special effects rendering is performed on the objects to be processed located in the image display area of ​​the image to be processed, special effects effects are generated, and displayed in the image display area. Thus, when the image includes multiple image display areas, the effect of orderly special effects rendering of the image display areas is achieved, and the effect of refined special effects processing of the image in the rendering time dimension and the rendering area dimension is achieved, which enriches the special effects rendering method, increases the content layering of the image after special effects processing, and enhances the special effects interactive experience.

[0040] Figure 1This is a flow chart of a special effects processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where special effects processing is performed on any image display area when there are multiple image display areas in the image. The method can be executed by a special effects processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server, etc.

[0041] like Figure 1 As shown, the method of this embodiment may specifically include:

[0042] S110: Display a target interface, wherein the target interface includes at least two image display areas.

[0043] The target interface can be understood as the display interface presented to the user terminal for displaying visual content. The image display area can be understood as a portion of the display area within the target interface. Specifically, different image display areas can be used to display the visual content of different video streams. In embodiments of the present disclosure, the target interface can include at least two image display areas. Optionally, the number of image display areas included in the target interface can be two, three, or four, etc. Each image display area can be used to display the visual content of the same video stream or of different video streams, which is not specifically limited in embodiments of the present disclosure. It should be noted that the visual content presented by the target interface varies in different service scenarios. For example, in a live broadcast scenario, the target interface can be the live broadcast interface, and the image display area can be the live broadcast display area. The live broadcast interface can be understood as the interface presented to the live broadcast viewer for displaying the live broadcast video. The live broadcast display area can be understood as the area within the live broadcast interface used to display the live video of a single live video stream. Each live broadcast display area can be used to display the live video stream corresponding to a live broadcast account. In other words, a live broadcast display area can be used to display the live content of a single live broadcast account. The live streaming interface can display the live video streams corresponding to two or more live streaming accounts at the same time. The live streaming accounts displayed in the live streaming interface can be connected.

[0044] In an embodiment of the present disclosure, an interface display trigger operation for displaying a target interface can be pre-set. Furthermore, when an interface display trigger operation for a target interface is detected, the target interface is displayed in response to the interface display trigger operation. Optionally, the interface display trigger operation may include at least one of the following: triggering a preset interface display control; receiving an input interface display trigger instruction; audio information including a wake-up word corresponding to the interface display trigger operation, etc.

[0045] For ease of understanding, let's take a live broadcast scenario as an example: For example, in a live broadcast scenario, when a trigger operation is detected for a live broadcast room entry for a live broadcast account, the live broadcast interface (target interface) corresponding to the live broadcast account can be displayed. When the live broadcast account is connected to at least one other live broadcast account, the live broadcast display area (image display area) corresponding to the live broadcast interface corresponding to the live broadcast account can display the live video stream corresponding to each other live broadcast account of the live broadcast account. It should be noted that when the live broadcast interface is displaying the live video streams corresponding to at least two live broadcast accounts, any of the at least two live broadcast accounts receives a connection request from the other live broadcast account and detects that the live broadcast account inputs an operation to accept the connection request, or any of the at least two live broadcast accounts initiates a connection request to the other live broadcast account and requests that the connected live broadcast account accept the connection request, a new live broadcast display area can be added to the live broadcast interface, and the live video streams corresponding to the corresponding live broadcast accounts can be displayed based on the live broadcast display area included in the live broadcast interface. Here, other live broadcast accounts can be understood as live broadcast accounts other than the live broadcast account corresponding to the live video stream currently displayed on the live broadcast interface.

[0046] By adopting the technical solution of the embodiment of the present disclosure, when multiple live broadcast accounts are connected, the screen content of each live broadcast account can be processed with refined special effects separately, and the screen content of the live broadcast account can be rendered with special effects in the rendering order, which can present richer special effects in the scene where multiple live broadcast accounts are connected.

[0047] S120 . In response to a special effects rendering triggering operation inputted on a target interface, an image to be processed is acquired, and a special effects rendering order corresponding to each image display area is determined.

[0048] The special effects rendering trigger operation can be understood as an operation that renders the selected special effects after being triggered. Optionally, the special effects rendering trigger operation can include triggering a preset special effects rendering control or receiving an input special effects rendering trigger instruction. Exemplarily, a special effects rendering control can be pre-set in the target interface. Then, when it is detected that the user has triggered the control, it can be determined that a special effects rendering trigger operation input for the target interface has been detected, and in response to the trigger operation, the image to be processed is obtained. The image to be processed can be an image displayed in the target interface to be processed with special effects. The image to be processed can include at least two image display areas, each of which can be used to present different screen content. Optionally, the image to be processed can be an image captured by the terminal device's camera; or, it can be an image retrieved from a target storage space (such as an application software image library or a terminal photo album) in response to a user's trigger operation; or, it can be an image uploaded from an external device. The special effects rendering order can be understood as the order in which special effects rendering is performed on each image display area. That is, the image display area with the special effect rendering sequence arranged earlier is rendered earlier, and the image display area with the special effect rendering sequence arranged later is rendered later.

[0049] In an embodiment of the present disclosure, determining the special effects rendering order corresponding to each image display area may include at least one of the following methods: optionally, in response to a user triggering operation for setting the special effects rendering order, obtaining the set special effects rendering order; or, using the arrangement order of the image display areas in the target interface as the special effects rendering order corresponding to each image display area; or, determining the special effects rendering order corresponding to each image display area based on the presentation time (including appearance time or continuous display duration, etc.) of the image display area in the target interface. For example, in a live broadcast scenario, each image display area corresponds to a different live broadcast account. When the current live broadcast account is connected to other live broadcast accounts, the image display area corresponding to the current live broadcast account can be used as the first in the special effects rendering order, and the special effects rendering order of the image display areas corresponding to other live broadcast accounts can be determined based on the time order in which the other live broadcast accounts are connected.

[0050] As an optional implementation of the embodiment of the present disclosure, when the target interface includes at least two image display areas, a special effects setting operation can be input for each image display area included in the target interface. Furthermore, when a special effects rendering trigger operation input for the target interface is detected, the special effects rendering trigger operation can be responded to, and the image currently displayed in the target interface can be obtained, and the image can be used as the image to be processed, and the special effects rendering order corresponding to each image display area can be determined.

[0051] S130 , performing special effect processing on the object to be processed located in the image display area in the image to be processed according to a special effect rendering order, so as to generate and display a special effect.

[0052] The "object to be processed" can be understood as an object to be subjected to special effects processing, or as an object within the image display area to which a special effects element is to be added, or as an object to which a special effects element corresponding to a target special effect added to the image display area is applied. The special effects can be the effect obtained by applying the target special effect added to the image display area to the object to be processed.

[0053] In actual applications, special effects rendering of an image to be processed typically involves simultaneously rendering all of the image content presented in the image to be processed. In other words, all of the special effects objects in the image to be processed are treated as objects to be processed, and special effects processing is performed on the objects to be processed based on the added target special effects to generate and display the special effects. However, in the case where the image to be processed includes at least two image display areas, special effects rendering of the image to be processed based on the above-mentioned special effects rendering method does not distinguish between the image content of different image display areas, and all image display areas will simultaneously present the overall special effects.

[0054] In view of the above situation, in an embodiment of the present disclosure, when the image to be processed includes at least two image display areas, when performing special effects rendering on the image to be processed, the image display area that should be rendered this time can be determined in sequence from multiple image display areas according to the special effects rendering order. Then, the target special effect added to the image display area can be determined, as well as all special effects objects corresponding to the target special effect included in the image to be processed can be determined. Further, the special effects object located in the image display area among all the special effects objects can be determined, and the special effects object can be used as the object to be processed. Then, special effects processing is performed on the object to be processed to generate a special effects effect, and the special effects effect is displayed in the image display area. Thereby, the image to be processed is refined, and when there are multiple image display areas in the image, the image display areas are subjected to orderly regional special effects rendering.

[0055] It should be noted that before determining the object to be processed within the image display area of ​​the image to be processed, it is also possible to determine whether the special effect object corresponding to the target special effect added to the corresponding image display area is located within the image display area. Furthermore, if it is determined that the special effect object is located within the image display area, the special effect object can be used as the object to be processed.

[0056] As an optional implementation of an embodiment of the present disclosure, determining whether the special effect object is located within the image display area can be determined by obtaining the position information of one or more key points of the special effect object. After determining all the special effect objects corresponding to the target special effect included in the image to be processed, the position information of the preset key points of each special effect object can be obtained. Furthermore, for each special effect object, it can be determined whether the preset key point is located inside the image display area based on the position information of the preset key point of the special effect object. Furthermore, in the case of determining that the preset key point is located inside the image display area, it can be determined that the special effect object is located in the image display area. The preset key point can be any key point in the special effect object, such as the center point of the object, the centroid point, or the center point of a preset part, etc. For example, assuming that the special effect object is a face, the preset key point can be the center point of the face determined based on the left eye key point and the right eye key point. The position information can be represented by the coordinate information of the key point in the image.

[0057] It should be noted that when performing special effects rendering on the image to be processed, the target special effects added to at least two image display areas included in the image to be processed may be the same. That is, the same target special effects are added to each image display area, and the special effects rendering is performed in sequence according to the special effects rendering order. The target special effects added to at least two image display areas included in the image to be processed may also be different. In other words, the target special effects added to each image display area in the image to be processed may be different; or the target special effects added to some image display areas may be the same, and the target special effects added to some image display areas may be the same or different. In short, different target special effects may be added to different image display areas, and the special effects rendering may be performed in sequence according to the special effects rendering order.

[0058] In an embodiment of the present disclosure, when the target interface includes at least two image display areas, the area display information of each image display area can be set by default by the application software, or can be customized based on user needs. Optionally, before responding to a special effects rendering trigger operation input on the target interface, the area display information of the at least one image display area in the target interface is updated in response to an area adjustment operation for the at least one image display area.

[0059] Among them, the area adjustment operation can be understood as an operation for adjusting the display situation of the image area in the display interface. Optionally, the area adjustment operation may include at least a display size adjustment operation and / or a display position adjustment operation. The display size adjustment operation may be an operation for adjusting the display size of the image area. Furthermore, the display size may include one or more of display length, display width, display radius and display area. The display position adjustment operation may be an operation for adjusting the display position of the image area in the display interface. Furthermore, the display position can be determined based on the coordinates of one or more preset key points in the image area (such as the center point of the area, the vertex of the area or any point in the area, etc.) in the display interface. The area display information can be used to characterize the specific display situation of the image display area in the target interface. The area display information may include at least the display size and / or the display position.

[0060] As an optional implementation of an embodiment of the present disclosure, before responding to a special effects rendering triggering operation input on a target interface, a region adjustment operation may be input for at least one image display area included in the target interface. Furthermore, upon detecting a region adjustment operation input for at least one image display area, region display information for the at least one image display area in the target interface may be updated based on the input region adjustment operation.

[0061] The technical solution of the embodiment of the present disclosure provides a special effect interaction entrance for users by displaying a target interface, wherein the target interface includes at least two image display areas, and can display multiple image display areas in the same display interface, which not only enriches the display content and display mode of the display interface, but also provides a visual display interface for the subsequent display of special effect effects in different regions. Furthermore, in response to the special effect rendering trigger operation input on the target interface, the image to be processed is obtained, and the special effect rendering order corresponding to each image display area is determined, thereby achieving the effect of determining the special effect rendering path corresponding to each image display area in the image to be processed, and providing a basis for the subsequent orderly division of regions. Special effects rendering lays the data foundation. Afterwards, special effects processing is performed on the objects to be processed located in the image display area in the processed image according to the special effects rendering order to generate and display special effects. This solves the problems of certain limitations of special effects rendering methods in related technologies and the relatively single way of presenting special effects. It realizes the effect of orderly special effects rendering of image display areas when the image includes multiple image display areas, and realizes the effect of refined special effects processing of images in the rendering time dimension and the rendering area dimension. It enriches the special effects rendering method, increases the content layering of the image after special effects processing, and improves the special effects interactive experience.

[0062] Figure 2A flowchart of another special effects processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment is based on the above-mentioned embodiment. According to the special effects rendering order, the area to be rendered is determined from at least two image display areas, and the object to be processed located in the area to be rendered in the image to be processed is determined. Furthermore, special effects processing is performed on the image to be processed to generate special effects, and the special effects are displayed in the area to be rendered. For specific implementation methods, please refer to the description of this embodiment. Technical features that are the same or similar to those in the above-mentioned embodiments will not be repeated here.

[0063] like Figure 2 As shown, the method of this embodiment may specifically include:

[0064] S210: Display a target interface, wherein the target interface includes at least two image display areas.

[0065] S220 , in response to a special effects rendering triggering operation inputted on the target interface, obtaining an image to be processed, and determining a special effects rendering order corresponding to each image display area.

[0066] S230 : Determine an area to be rendered from at least two image display areas according to a special effect rendering order, and determine an object to be processed located in the area to be rendered in the image to be processed.

[0067] The area to be rendered may be an image display area to be rendered with special effects. In the embodiment of the present disclosure, according to the special effects rendering order, the image display area to be rendered at the current time is determined in sequence from at least two image display areas, and the determined image display area is used as the area to be rendered. For example, Figure 3 As shown, the image to be processed includes four image display areas, namely area A, area B, area C, and area D. Assume that the special effects rendering order is 0, 2, 3, and 1, in the order of rendering time. Furthermore, according to the special effects rendering order, the areas to be rendered from the four image display areas are determined to be area A, area C, area D, and area B, respectively. That is, when performing special effects rendering on the image to be processed, the special effects rendering is performed on the corresponding image display areas in the rendering order of area A, area C, area D, and area B, and the special effects are displayed in the corresponding image display areas in sequence.

[0068] It should be noted that the number of areas to be rendered determined according to the special effects rendering order can be one or more. In the case of multiple areas to be rendered, the rendering time for each area to be rendered is the same. However, the target special effects added to each area to be rendered can be the same or different, and this is not specifically limited in the present embodiment.

[0069] In the disclosed embodiment, a region to be rendered is determined from at least two image display regions according to a special effects rendering order. Furthermore, for each region to be rendered, an object to be processed in the image to be processed and located in the region to be rendered can be determined based on a target special effect corresponding to the region to be rendered.

[0070] Optionally, determining the object to be processed located in the area to be rendered in the image to be processed includes: determining the target special effect corresponding to the area to be rendered, determining the special effect object corresponding to the target special effect in the image to be processed, and taking the special effect object located in the area to be rendered as the object to be processed.

[0071] The target special effect can be a special effect to be added to the area to be rendered. The special effect object can be understood as the object in the image to be processed to which the special effect element is added. Optionally, the special effect object can include one or more objects such as facial features, user body parts, image background, pets, plants, or buildings. For example, if the target special effect is a facial effect, the special effect object can be facial features.

[0072] In an embodiment of the present disclosure, the target special effect may be determined based on special effect parameters set by default in the application software, or may be determined based on special effect parameters set by a user. Optionally, determining the target special effect corresponding to the area to be rendered includes: determining the target special effect corresponding to the area to be rendered based on a special effect setting trigger operation received and inputted for the area to be rendered.

[0073] The special effect setting trigger operation is used to set the special effect to be added to the area to be rendered. Optionally, the special effect setting trigger operation may include a parameter editing trigger operation or a special effect selection trigger operation.

[0074] As an optional implementation of an embodiment of the present disclosure, in a case where the image to be processed includes at least two image display areas, when a parameter editing operation for the image display area is detected, a special effect parameter editing page corresponding to the at least two image display areas can be displayed, and the page can include at least a special effect rendering order editing item and a special effect editing item. The user can input the special effect rendering order corresponding to each image display area based on the special effect rendering order editing item, and input the special effect identifier of the target special effect added to each area to be rendered based on the special effect editing item. Furthermore, in a case where a trigger operation for the edit completion control is detected, the special effect rendering order and the target special effect added to each area to be rendered can be determined based on the content edited in the special effect parameter editing page. Furthermore, when determining the target special effect corresponding to the area to be rendered, the target special effect corresponding to the area to be rendered can be determined based on the pre-set target special effect added to the corresponding area to be rendered.

[0075] As another optional implementation of the embodiment of the present disclosure, when the image to be processed includes at least two image display areas, a selection trigger operation can be input for any image display area to update the image display area to a selected state. Furthermore, a selection trigger operation can be input for any special effect displayed in the special effect display panel. Furthermore, the selected special effect can be used as the target special effect corresponding to the selected image display area, that is, when performing special effect rendering, when the selected image display area is the area to be rendered, the selected special effect can be used as the target special effect corresponding to the area to be rendered.

[0076] It should be noted that the benefits of determining the target special effects based on the above method are: achieving the effect of customizing the target special effects based on user needs, meeting the user's needs for adding specific special effects to specific areas, enriching the special effects interaction method, and improving the special effects interaction experience.

[0077] In the embodiment of the present disclosure, for each area to be rendered that is determined, the target special effect corresponding to the area to be rendered can be determined based on the pre-set special effect parameters corresponding to the image to be processed. Furthermore, the object type of the special effect object corresponding to the target special effect can be determined, and based on the object type, a special effect object that matches the object type can be determined from the image to be processed. Furthermore, for each special effect object, it can be determined whether the special effect object is located inside the area to be rendered, and if it is determined that the special effect object is located inside the area to be rendered, the special effect object is used as the object to be processed. The advantage of such a setting is that the effect of the object to be processed located in the area to be rendered in the image to be processed is determined based on the target special effect corresponding to the area to be rendered, and further, the precise determination of the object to be processed to which the target special effect is to be added is achieved.

[0078] It should be noted that after determining the special effect object corresponding to the target special effect in the image to be processed, before taking the special effect object located in the area to be rendered as the object to be processed, the relative position relationship between the special effect object and the area to be rendered can also be determined to determine whether the special effect object is located inside the area to be rendered.

[0079] In an embodiment of the present disclosure, the relative positional relationship between the special effect object and the area to be rendered can be determined based on key point information of the special effect object and key point information of the area to be rendered. Optionally, first positional information of a first key point of the special effect object and second positional information of a second key point of the area to be rendered are determined; and the relative positional relationship between the special effect object and the area to be rendered is determined based on the first positional information and the second positional information.

[0080] Among them, the first key point can be any key point in the special effect object. Optionally, the first key point can include the center point of the object or the edge key point of the object. Exemplarily, when the special effect object is a facial feature, the first key point can be the center point of the face determined based on the left eye key point and the right eye key point. The first position information can be understood as representing the position of the first key point in the image. Exemplarily, the first position information can be the coordinate information of the first key point in the image. The second key point can be any key point in the area to be rendered. Optionally, the second key point can be a region edge key point or a region center point, etc. The second position information can be understood as representing the position of the second key in the image. Exemplarily, the second position information can be the coordinate information of the second key point in the image. The relative position relationship can be used to represent the relationship between the display position of the special effect object and the display position of the area to be rendered. The relative position relationship is that the special effect object is located inside or outside the area to be rendered.

[0081] It should be noted that, in order to determine the relative positional relationship between the special effect object and the area to be rendered through the first position information of the first key point and the second position information of the second key point, the area edge key point representing the area edge of the area to be rendered can be used as the second key point. Furthermore, the size information of the image display area can be obtained, such as width information, length information or radius information, etc.; the relative positional relationship between the special effect object and the area to be rendered is determined based on the first position information of the first key point, the second position information of the second key point and the size information of the image display area. By adopting the above technical solution, the relative positional relationship between the special effect object and the image display area can be quickly and accurately determined, and then, based on the relative positional relationship, the object to be processed can be quickly and accurately determined.

[0082] For example, if the area to be rendered is a rectangular area, the second key point may include one or more of the upper left vertex, the upper right vertex, the lower right vertex, and the lower left vertex. If the area to be rendered is a circular area, the second key point may be the center of the circle. The radius of the circular area may also be obtained, and the edge contour of the circular area may be determined based on the center and radius.

[0083] It should also be noted that in order to reduce the amount of calculation and improve rendering efficiency, the center point of the object can be used as the first key point. That is, when it is determined that the center point of the object is inside the area to be rendered, it can be determined that the special effect object is inside the area to be rendered.

[0084] In the disclosed embodiments, the first position information of the first key point and the second position information of the second key point can be determined in a variety of ways. Optionally, the determination can be made directly based on the display information of the special effect object and the area to be rendered in the processed image; or by retrieving the display information stored for the special effect object and the area to be rendered, etc.

[0085] As an optional implementation of the first embodiment of the present disclosure, the first key point includes the center point of the object, and the second key point includes the upper left vertex, the upper right vertex, the lower right vertex, and the lower left vertex. The lower left vertex of the image to be processed can be used as the coordinate origin, the coordinate information of the center point of the object in the image can be determined as the first position information, and the coordinate information of the above four area vertices in the image can be determined as the second position information. Furthermore, the horizontal coordinate in the first position information can be compared with the horizontal coordinate in each second position information, and the vertical coordinate in the first position information can be compared with the vertical coordinate in each second position information. Furthermore, when it is determined that the horizontal coordinate in the first position information is greater than the horizontal coordinate of the upper left corner vertex, and greater than the horizontal coordinate of the lower left corner vertex, and less than the horizontal coordinate of the upper right corner vertex, and less than the horizontal coordinate of the lower right corner vertex; and the vertical coordinate in the first position information is less than the vertical coordinate of the upper left corner vertex, and less than the vertical coordinate of the upper right corner vertex, and greater than the vertical coordinate of the lower left corner vertex, and greater than the vertical coordinate of the lower right corner vertex, it can be determined that the relative position relationship between the special effect object and the area to be rendered is that the special effect object is located inside the area to be rendered. In the case that any of the above conditions is not met, it can be determined that the relative position relationship between the special effect object and the area to be rendered is that the special effect object is located outside the area to be rendered. The advantage of this setting is that the relative position relationship between the special effect object and the area to be rendered can be quickly determined, which reduces the amount of rendering calculations and improves rendering efficiency.

[0086] S240 , performing special effect processing on the object to be processed, generating a special effect, and displaying the special effect in the area to be rendered.

[0087] In an embodiment of the present disclosure, after determining the object to be processed located in the area to be rendered in the image to be processed, special effects rendering can be performed on the object to be processed according to the target special effects corresponding to the area to be rendered, generating a special effects effect, and displaying the special effects effect in the area to be rendered.

[0088] The technical solution of the embodiment of the present disclosure determines the area to be rendered from at least two image display areas according to the special effects rendering order, and determines the object to be processed located in the area to be rendered in the image to be processed. Further, special effects processing is performed on the object to be processed to generate special effects, and the special effects are displayed in the area to be rendered, thereby achieving the effect of performing special effects rendering on the image to be processed in an orderly manner according to the special effects rendering order, thereby enriching the special effects rendering method and increasing the content layering of the image after special effects processing.

[0089] Figure 4 A flow chart of another special effects processing method provided by the embodiment of the present disclosure. The technical solution of this embodiment is based on the above-mentioned embodiment. For the object to be processed located in the image display area in the image to be processed, the object size information of the object to be processed is determined, and the target special effect to be added for the object to be processed is determined; further, in the case where the target special effect includes a special effect element of a preset type, the target size information of the special effect element is determined according to the object size information, and the special effect element is rendered in the image display area according to the object to be processed and the target size information. For the specific implementation method, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to those in the above-mentioned embodiments are not repeated here.

[0090] like Figure 4 As shown, the method of this embodiment may specifically include:

[0091] S310: Display a target interface, wherein the target interface includes at least two image display areas.

[0092] S320 : In response to a special effects rendering triggering operation inputted on a target interface, obtaining an image to be processed, and determining a special effects rendering order corresponding to each image display area.

[0093] S330 , determining object size information of the object to be processed located in the image display area in the image to be processed according to a special effects rendering order, and determining a target special effect to be added to the object to be processed.

[0094] The object size information may be used to characterize the size of the object to be processed. The object size information may include at least the object width and / or the object height. For example, assuming that the object to be processed is a face, the object size information may be the maximum width of the face.

[0095] It should be noted that object size information is information representing the area size of the object to be processed. To more accurately determine the object size information, it can be determined using multiple object feature points of the object to be processed. Optionally, determining the object size information of the object to be processed includes: determining multiple object feature points of the object to be processed, and determining the object size information of the object to be processed based on the object feature points.

[0096] The object feature points can be understood as key points that can be used to identify the object to be processed. For example, when the object to be processed is a face, the object feature points can be feature points of various parts of the face (including contour points or center points, etc.), such as eyebrow feature points, eye feature points, nose feature points, and mouth feature points.

[0097] As an optional implementation of an embodiment of the present disclosure, multiple object feature points of the object to be processed can be determined, and the position information of each object feature point in the image to be processed can be determined. Furthermore, the object size information of the object to be processed can be determined based on the position information of the multiple object feature points. It should be noted that there are multiple ways to determine the position information of the object feature points. Optionally, it can be determined based on the display information of the object to be processed in the image to be processed; or, the display information stored by the object to be processed can be retrieved, etc.

[0098] It should also be noted that object size information can be determined in a variety of ways. Optionally, an object feature matrix can be constructed based on the position information of multiple object feature points. Furthermore, the object size information of the object to be processed can be determined based on the object feature matrix.

[0099] In the disclosed embodiment, after obtaining an image to be processed and determining the special effects rendering order corresponding to each image display area, the objects to be processed located in the image display area of ​​the image to be processed can be determined according to the special effects rendering order. Furthermore, for each object to be processed, multiple object feature points can be determined, and object size information of the object to be processed can be determined based on the multiple object feature points. Furthermore, a target special effect to be added to the object to be processed is determined.

[0100] S340: When the target special effect includes a special effect element of a preset type, determine target size information of the special effect element according to the object size information, and render the special effect element in the image display area according to the object to be processed and the target size information.

[0101] The preset type can be understood as the type of special effect element to be resized. The preset types can include multiple types of special effect elements. Optionally, the preset types can include at least sequence frame effects or follow-up effects. A sequence frame effect can be understood as a special effect displayed in the form of a sequence of frames. For example, the special effect display content in each frame of a sequence frame effect can be different and have a certain degree of continuity. For example, a sequence frame effect can include animation effects. Target size information can be understood as the display size of the special effect element after it acts on the object to be processed. Target size information can be the size that matches the special effect element to the object to be processed. In other words, the size of the special effect element can be adjusted to a target display size that matches the size of the object to be processed. Specifically, the target size information of the special effect element can be determined based on the object size information and the size matching method for matching the special effect element to the object to be processed. The size matching method for matching the special effect element to the object to be processed can be set according to actual needs and is not specifically limited here. For example, the width of the special effect element must be the same as the size of the object to be processed in a preset direction (e.g., width and / or height) and / or be in a preset ratio.

[0102] In actual applications, when rendering a preset type of special effect element into an object to be processed, the object to be processed is usually rendered based on the special effect rendering parameters preset by the special effect element (including the display size of the special effect element, etc.), and the special effect effect is displayed in the image display area including the object to be processed. However, the image display area used to display the object to be processed can be resized based on the user's triggering operation to enlarge or reduce the area size of the image display area, and accordingly, the object size of the object to be processed in the image display area will also be enlarged or reduced. In this case, when rendering the object to be processed based on the special effect rendering parameters preset by the special effect element (including the size of the special effect element, etc.), there may be a mismatch between the special effect element and the object to be processed, thereby leading to a poor special effect rendering effect.

[0103] In response to the above situation, in an embodiment of the present disclosure, if it is determined that the target special effect to be added to the object to be processed includes a special effect element of a preset type, the special effect element can be adjusted based on the object size information of the object to be processed to obtain the target size information of the special effect element. Furthermore, the special effect element can be rendered in the image display area based on the object to be processed and the target size information.

[0104] In an embodiment of the present disclosure, optionally, a special effects element is rendered in the image display area according to the object to be processed and the target size information, including: determining the original size information of the special effects element, adjusting the original size information according to the object size information, so as to adjust the special effects element to the target size information; and rendering the adjusted special effects element in the image display area according to the object to be processed.

[0105] The original size information may be the default size information of the special effect element. Alternatively, the original size information may be the element size information set during the special effect production phase. Optionally, the original size information may include at least the element width and / or the element height.

[0106] As an optional implementation of an embodiment of the present disclosure, the original size information of the special effect element can be determined based on the pre-stored special effect setting parameters. Furthermore, the original size information can be adjusted based on the object size information so that the adjusted original size information matches the object size information, and the adjusted original size information is used as the target size information. Furthermore, the adjusted special effect element is rendered in the image display area based on the object to be processed. The advantage of such a setting is that it achieves the effect of adaptively adjusting the element size information based on the object size information, thereby making the adjusted special effect element more matched with the object to be processed, thereby improving the special effect rendering effect.

[0107] For example, assuming the object to be processed is a face, the preset type of special effects element is a sequence frame special effects element, the object size information is the maximum width of the face, and the original size information of the special effects element includes the element width and element height. Furthermore, the element width can be adjusted based on the maximum width of the face so that the element width matches the maximum width of the face to obtain the target element width in the target size information. Thereafter, the element scaling ratio can be determined based on the element width and the target element width, and the element height can be adjusted based on the element scaling ratio to obtain the target element height in the target size information. Furthermore, special effects rendering can be performed on the face based on the adjusted sequence frame special effects element to generate and display the special effects.

[0108] The technical solution of the embodiment of the present disclosure determines the object size information of the object to be processed and the target special effect to be added to the object to be processed in accordance with the special effect rendering order for the object to be processed located in the image display area of ​​the image to be processed. Furthermore, in the case where the target special effect includes a special effect element of a preset type, the target size information of the special effect element is determined according to the object size information, and the special effect element is rendered in the image display area according to the object to be processed and the target size information, thereby achieving the effect of adaptively adjusting the size of the special effect element in the image display area according to the object size information, thereby improving the rendering matching degree between the special effect element and the object to be processed, and enhancing the special effect display effect.

[0109] Figure 5 This is a structural diagram of a special effect processing device provided by an embodiment of the present disclosure, such as Figure 5 As shown, the device includes: an interface display module 410, an image acquisition module 420 and a special effect rendering module 430.

[0110] Among them, the interface display module 410 is used to display the target interface, wherein the target interface includes at least two image display areas; the image acquisition module 420 is used to obtain the image to be processed in response to the special effects rendering trigger operation input on the target interface, and determine the special effects rendering order corresponding to each of the image display areas; the special effects rendering module 430 is used to perform special effects processing on the object to be processed located in the image display area in the image to be processed according to the special effects rendering order, so as to generate and display special effects.

[0111] Based on the above-mentioned optional technical solutions, the special effects rendering module 430 optionally includes: a rendering area determination submodule and a special effects rendering submodule. The rendering area determination submodule is configured to determine a to-be-rendered area from at least two of the image display areas according to the special effects rendering order, and to determine an object to be processed in the to-be-rendered area in the to-be-rendered image; and the special effects rendering submodule is configured to perform special effects processing on the object to be processed, generate a special effects effect, and display the special effects effect in the to-be-rendered area.

[0112] Based on the above optional technical solutions, the rendering area determination submodule optionally includes an effect object determination unit. The effect object determination unit is configured to determine a target special effect corresponding to the area to be rendered, determine a special effect effect object corresponding to the target special effect in the image to be processed, and use the special effect effect object located in the area to be rendered as the object to be processed.

[0113] Based on the above optional technical solutions, the target determination unit optionally includes a special effect determination subunit. The special effect determination subunit is configured to determine a target special effect corresponding to the area to be rendered based on a special effect setting trigger operation received for the area to be rendered, wherein the special effect setting trigger operation is used to set a special effect to be added to the area to be rendered.

[0114] Based on the above-mentioned optional technical solutions, the device may further include: a position information determination module and a position relationship determination module. The position information determination module is used to determine the first position information of the first key point of the special effect object and the second position information of the second key point of the area to be rendered after determining the special effect object corresponding to the target special effect in the image to be processed and before using the special effect object located in the area to be rendered as the object to be processed; the position relationship determination module is used to determine the relative position relationship between the special effect object and the area to be rendered based on the first position information and the second position information; wherein the relative position relationship is whether the special effect object is inside or outside the area to be rendered.

[0115] Based on the above-mentioned optional technical solutions, the special effects rendering module 430 optionally includes: a size information determination unit and a special effects rendering unit. The size information determination unit is configured to determine, for an object to be processed located in the image display area in the image to be processed, object size information of the object to be processed and a target special effect to be added to the object to be processed; and the special effects rendering unit is configured to determine, when the target special effect includes a special effects element of a preset type, target size information of the special effects element based on the object size information, and render the special effects element in the image display area based on the object to be processed and the target size information.

[0116] Based on the above-mentioned optional technical solutions, the special effect rendering unit optionally includes: a size information adjustment subunit and a special effect rendering subunit. The size information adjustment subunit is used to determine the original size information of the special effect element and adjust the original size information according to the object size information to adjust the special effect element to the target size information; the special effect rendering subunit is used to render the adjusted special effect element in the image display area according to the object to be processed.

[0117] Based on the above optional technical solutions, optionally, the target special effects added to at least two of the image display areas are different.

[0118] The technical solution of the embodiment of the present disclosure provides a special effect interaction entrance for users by displaying a target interface, wherein the target interface includes at least two image display areas, and can display multiple image display areas in the same display interface, which not only enriches the display content and display mode of the display interface, but also provides a visual display interface for the subsequent display of special effect effects in different regions. Furthermore, in response to the special effect rendering trigger operation input on the target interface, the image to be processed is obtained, and the special effect rendering order corresponding to each image display area is determined, thereby achieving the effect of determining the special effect rendering path corresponding to each image display area in the image to be processed, and providing a basis for the subsequent orderly division of regions. Special effects rendering lays the data foundation. Afterwards, special effects processing is performed on the objects to be processed located in the image display area in the processed image according to the special effects rendering order to generate and display special effects. This solves the problems of certain limitations of special effects rendering methods in related technologies and the relatively single way of presenting special effects. It realizes the effect of orderly special effects rendering of image display areas when the image includes multiple image display areas, and realizes the effect of refined special effects processing of images in the rendering time dimension and the rendering area dimension. It enriches the special effects rendering method, increases the content layering of the image after special effects processing, and improves the special effects interactive experience.

[0119] The special effects processing device provided by the embodiments of the present disclosure can execute the special effects processing method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.

[0120] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0121] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows an electronic device (eg Figure 6 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 6 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.

[0122] like Figure 6 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.

[0123] 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 6The 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.

[0124] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0125] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0126] The electronic device provided by the embodiment of the present disclosure and the special effects processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0127] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the special effect processing method provided in the above embodiment is implemented.

[0128] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0129] In some embodiments, the client and server can communicate using any currently 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 a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0130] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0131] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays a target interface, wherein the target interface includes at least two image display areas; obtains the image to be processed in response to a special effects rendering trigger operation input on the target interface, and determines the special effects rendering order corresponding to each of the image display areas; performs special effects processing on the object to be processed in the image display area in the image to be processed according to the special effects rendering order, so as to generate and display a special effects effect.

[0132] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The units involved in the embodiments described in this disclosure may be implemented by software or hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself. For example, an interface display module may also be described as a "module that displays a target interface."

[0135] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0136] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A 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, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] According to one or more embodiments of the present disclosure, [Example 1] provides a special effects processing method, including: displaying a target interface, wherein the target interface includes at least two image display areas; in response to a special effects rendering trigger operation input on the target interface, obtaining an image to be processed, and determining a special effects rendering order corresponding to each of the image display areas; performing special effects processing on the object to be processed in the image to be processed located in the image display area according to the special effects rendering order, so as to generate and display a special effects effect.

[0138] According to one or more embodiments of the present disclosure, [Example 2] provides the method of Example 1, further including: optionally, performing special effects processing on the object to be processed located in the image display area in the image to be processed according to the special effects rendering order to generate and display a special effects effect, including: determining the area to be rendered from at least two of the image display areas according to the special effects rendering order, and determining the object to be processed located in the area to be rendered in the image to be processed; performing special effects processing on the object to be processed to generate a special effects effect, and displaying the special effects effect in the area to be rendered.

[0139] According to one or more embodiments of the present disclosure, [Example Three] provides the method of Example Two, further including: optionally, determining the object to be processed located in the area to be rendered in the image to be processed, including: determining the target special effect corresponding to the area to be rendered, determining the special effect object corresponding to the target special effect in the image to be processed, and taking the special effect object located in the area to be rendered as the object to be processed.

[0140] According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 3, further including: optionally, determining a target special effect corresponding to the area to be rendered, including: determining the target special effect corresponding to the area to be rendered based on a special effect setting trigger operation received for the area to be rendered input, wherein the special effect setting trigger operation is used to set a special effect to be added to the area to be rendered.

[0141] According to one or more embodiments of the present disclosure, [Example Five] provides the method of Example Three, further including: optionally, after determining the special effect object corresponding to the target special effect in the image to be processed, and before taking the special effect object located in the area to be rendered as the object to be processed, it also includes: determining the first position information of the first key point of the special effect object and the second position information of the second key point of the area to be rendered; determining the relative position relationship between the special effect object and the area to be rendered based on the first position information and the second position information; wherein, the relative position relationship is that the special effect object is located inside or outside the area to be rendered.

[0142] According to one or more embodiments of the present disclosure, [Example Six] provides the method of Example One, further including: optionally, performing special effects processing on the object to be processed located in the image display area in the image to be processed to generate and display a special effects effect, including: for the object to be processed located in the image display area in the image to be processed, determining the object size information of the object to be processed, and determining the target special effect to be added to the object to be processed; when the target special effect includes a special effects element of a preset type, determining the target size information of the special effects element according to the object size information, and rendering the special effects element in the image display area according to the object to be processed and the target size information.

[0143] According to one or more embodiments of the present disclosure, [Example 7] provides the method of Example 6, further including: optionally, rendering the special effects element in the image display area according to the object to be processed and the target size information includes: determining the original size information of the special effects element, adjusting the original size information according to the object size information, so as to adjust the special effects element to the target size information; and rendering the adjusted special effects element in the image display area according to the object to be processed.

[0144] According to one or more embodiments of the present disclosure, [Example 8] provides the method of Example 1, further comprising: optionally, the target special effects added to at least two of the image display areas are different.

[0145] According to one or more embodiments of the present disclosure, [Example Nine] provides a special effects processing device, including: an interface display module for displaying a target interface, wherein the target interface includes at least two image display areas; an image acquisition module for acquiring an image to be processed in response to a special effects rendering trigger operation input on the target interface, and determining a special effects rendering order corresponding to each of the image display areas; a special effects rendering module for performing special effects processing on an object to be processed located in the image display area in the image to be processed according to the special effects rendering order, so as to generate and display a special effects effect.

[0146] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0147] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0148] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter 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 merely example forms of implementing the claims.

Claims

1. A special effects processing method, characterized in that: include: Displaying a target interface, wherein the target interface includes at least two image display areas; In response to a special effects rendering triggering operation input on the target interface, obtaining an image to be processed, and determining a special effects rendering order corresponding to each of the image display areas; According to the special effect rendering order, special effect processing is performed on the object to be processed in the image to be processed and located in the image display area to generate and display a special effect.

2. The special effects processing method according to claim 1, characterized in that: The performing special effect processing on the object to be processed located in the image display area in the image to be processed according to the special effect rendering order to generate and display a special effect includes: Determining a to-be-rendered area from at least two of the image display areas according to the special effects rendering order, and determining an to-be-processed object in the to-be-processed image that is located in the to-be-rendered area; Special effects processing is performed on the object to be processed to generate a special effects effect, and the special effects effect is displayed in the area to be rendered.

3. The special effect processing method according to claim 2, characterized in that: The determining of the object to be processed located in the area to be rendered in the image to be processed includes: Determine a target special effect corresponding to the area to be rendered, determine a special effect object corresponding to the target special effect in the image to be processed, and use the special effect object located in the area to be rendered as an object to be processed.

4. The special effect processing method according to claim 3, characterized in that: The determining of the target special effect corresponding to the area to be rendered includes: Based on the received special effect setting trigger operation input for the area to be rendered, a target special effect corresponding to the area to be rendered is determined, wherein the special effect setting trigger operation is used to set the special effect to be added to the area to be rendered.

5. The special effect processing method according to claim 3, characterized in that: After determining the special effect object corresponding to the target special effect in the image to be processed and before taking the special effect object located in the area to be rendered as the object to be processed, the method further includes: Determine first position information of a first key point of the special effect object and second position information of a second key point of the area to be rendered; The relative position relationship between the special effect object and the area to be rendered is determined according to the first position information and the second position information; wherein the relative position relationship is that the special effect object is located inside or outside the area to be rendered.

6. The special effect processing method according to claim 1, characterized in that: The performing special effect processing on the object to be processed located in the image display area in the image to be processed to generate and display a special effect includes: For the object to be processed located in the image display area in the image to be processed, determining object size information of the object to be processed, and determining a target special effect to be added to the object to be processed; In a case where the target special effect includes a special effect element of a preset type, target size information of the special effect element is determined according to the object size information, and the special effect element is rendered in the image display area according to the object to be processed and the target size information.

7. The special effect processing method according to claim 6, characterized in that: Rendering the special effect element in the image display area according to the object to be processed and the target size information includes: Determining original size information of the special effect element, and adjusting the original size information according to the object size information, so as to adjust the special effect element to the target size information; The adjusted special effect element is rendered in the image display area according to the object to be processed.

8. The special effect processing method according to claim 1, characterized in that: The target special effects added to at least two of the image display areas are different.

9. A special effects processing device, characterized in that: include: An interface display module, configured to display a target interface, wherein the target interface includes at least two image display areas; An image acquisition module, configured to acquire an image to be processed in response to a special effects rendering triggering operation input on the target interface, and determine a special effects rendering order corresponding to each of the image display areas; The special effect rendering module is used to perform special effect processing on the object to be processed in the image to be processed and located in the image display area according to the special effect rendering order, so as to generate and display a special effect.

10. An electronic device, characterized in that: The electronic device comprises: 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 processing method according to any one of claims 1 to 8.

11. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute the special effect processing method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the special effect processing method according to any one of claims 1 to 8.