Special effects material processing methods, devices, electronic equipment and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2026-08-14
AI Technical Summary
相关技术中,特效制作工具中一般通过间接的方式添加特效素材,并且需要用户区分特效素材的位置,导致操作不方便;或者需要用户自主新建不同的素材图层,在素材图层创建之后,才在各个素材图层中分别添加素材,操作步骤繁琐,影响制作效率
[0102]通过在特效模板创建界面的预览区域显示预设面部图像,以及在特效模板创建界面的操作面板区域显示预设面部图像对应的可操作面部图像,该可操作面部图像包括预设面部元素对应的可操作区域,可以直接通过触发可操作区域实现对特效素材的添加,使得特效素材处理过程易于理解,操作直观便捷,降低用户对特效素材处理的学习成本;另外,在获取目标特效素材后,可以自动生成对应的素材图层,无需用户建立图层,进一步提高操作的便捷性、降低特效素材处理的复杂度,使得特效素材处理易理解、易操作,从而可以提高特效素材处理的效率。
Smart Images

Figure CN113240777B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of visual processing technology, and in particular to a method, apparatus, electronic device, and storage medium for processing special effects materials. Background Technology
[0002] With the rise of special effects production, the processing of special effects materials has received increasing attention. In related technologies, special effects production tools generally add special effects materials indirectly, requiring users to distinguish the location of the materials, which is inconvenient; or users need to manually create different material layers, and then add materials to each layer separately after the layers are created, which is cumbersome and affects production efficiency. Summary of the Invention
[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for processing special effects footage, to at least address the problem of how to improve the intuitiveness and convenience of special effects footage processing in related technologies. The technical solution of this disclosure is as follows:
[0004] According to a first aspect of the present disclosure, a method for processing special effects materials is provided, including:
[0005] A preset facial image is displayed in the preview area of the special effects template creation interface, and an operable facial image corresponding to the preset facial image is displayed in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements.
[0006] Based on the operable area, obtain the target special effects material to be added;
[0007] Generate the target material layer corresponding to the target special effects material;
[0008] The target material layer is overlaid on the preset facial image.
[0009] In one possible implementation, the steps of displaying a preset facial image in the preview area of the special effects template creation interface and displaying an operable facial image corresponding to the preset facial image in the operation panel area of the special effects template creation interface include:
[0010] In response to an effects template creation instruction, if the effects template creation instruction does not include an effects template identifier, the preset facial image is displayed in the preview area, and the operable facial image is displayed in the operation panel area.
[0011] In one possible implementation, prior to the step of acquiring the target special effects material in response to a special effects material addition instruction triggered in the operable area, the method further includes:
[0012] If the special effects template creation instruction includes a special effects template identifier, obtain the historical material layer corresponding to the special effects template identifier;
[0013] The preset facial image and the historical material layer are overlaid in the preview area, and one of the material layers, the preset facial image and the historical material layer, is overlaid in the operation panel area;
[0014] In response to a trigger command to add special effects material, the operable facial image is displayed in the operation panel area;
[0015] The step of overlaying and displaying the target material layer on the preset facial image includes:
[0016] The target material layer is overlaid on a preset facial image that overlays the historical material layer.
[0017] In one possible implementation, the operation panel area includes a material import trigger area, and prior to the step of displaying the operable facial image in the operation panel area in response to a special effects material addition trigger command, the method further includes:
[0018] If a preset operation triggered based on the material import trigger area is detected, a trigger instruction to add the special effects material is generated; or,
[0019] If the special effects material is detected to have been moved into the area of the operation panel, a trigger command is generated to add the special effects material.
[0020] In one possible implementation, the step of obtaining the target special effects material to be added based on the operable area includes:
[0021] When the cursor is detected to be hovering over a target operable area, the cursor is changed to a preset icon, and the target operable area is one of the operable areas;
[0022] Upon detecting that the preset icon has been triggered, a command to add special effects materials is generated;
[0023] In response to the instruction to add special effects materials, the material library corresponding to the target operable area is displayed;
[0024] In response to a selection command for materials in the material library, the target special effects material is obtained.
[0025] In one possible implementation, after the step of generating the target material layer corresponding to the target special effects material, the method further includes:
[0026] The operable facial image is displayed in the operation panel area.
[0027] In one possible implementation, the step of obtaining the target special effects material to be added based on the operable area includes:
[0028] If the moved special effects material is detected to be on the target operable area and the moving operation is interrupted, an instruction to add the special effects material is generated, wherein the target operable area is one of the operable areas;
[0029] In response to the instruction to add special effects material, the moved special effects material is used as the target special effects material.
[0030] In one possible implementation, after the step of generating the target material layer corresponding to the target special effects material, the method further includes:
[0031] The preset facial image and the target material layer are overlaid in the operation panel area.
[0032] In one possible implementation, the special effects template creation interface further includes a layer area, which includes a layer selection area; after the step of generating the target material layer corresponding to the target special effects material, the method further includes:
[0033] The layer identifier of the target material layer is displayed in the layer selection area.
[0034] In one possible implementation, the layer area further includes a layer editing area, and the method further includes:
[0035] In response to a layer selection command triggered based on a layer identifier in the layer selection area, obtain the material layer to be displayed corresponding to the layer selection command;
[0036] The preset facial image and the material layer to be displayed are superimposed and displayed in the operation panel area;
[0037] In response to a layer editing command triggered in the layer editing area, the material layer to be displayed is edited to obtain an updated material layer to be displayed;
[0038] The preset facial image and the updated material layer to be displayed are overlaid in the operation panel area, and the updated material layer to be displayed is also overlaid in the preview area.
[0039] In one possible implementation, the layer selection area includes a layer hiding operation area, and the method further includes:
[0040] In response to a trigger command to hide the layer operation area, the corresponding material layer to be hidden is obtained;
[0041] Hide the material layer to be hidden in the preview area.
[0042] In one possible implementation, after the step of obtaining the target special effects material to be added based on the operable area, the method further includes:
[0043] The target special effects material is verified, and the verification results are obtained;
[0044] If the verification result is a verification failure, a failure reminder message will be displayed;
[0045] The step of generating the target material layer corresponding to the target special effects material includes:
[0046] If the verification result is successful, a target material layer corresponding to the target special effects material is generated.
[0047] In one possible implementation, the special effects template creation interface further includes a special effects template selection area, and the method further includes:
[0048] In response to an effect template selection instruction triggered in the effect template selection area, the target effect template corresponding to the effect template selection instruction is obtained;
[0049] Obtain all material layers corresponding to the target special effects template;
[0050] The preset facial image and the full material layer are overlaid in the preview area, and one of the material layers, the preset facial image and the full material layer, is overlaid in the operation panel area.
[0051] According to a second aspect of the present disclosure, a special effects material processing apparatus is provided, comprising:
[0052] The first display module is configured to display a preset facial image in the preview area of the special effects template creation interface, and to display an operable facial image corresponding to the preset facial image in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements.
[0053] The target special effects material acquisition module is configured to acquire the target special effects material to be added based on the operable area;
[0054] The layer generation module is configured to generate the target material layer corresponding to the target special effects material.
[0055] The display module is configured to overlay and display the target material layer on the preset facial image.
[0056] In one possible implementation, the first display module includes:
[0057] The display unit is configured to execute a special effects template creation instruction in response to the instruction, wherein if the special effects template creation instruction does not include a special effects template identifier, display the preset facial image in the preview area and the operable facial image in the operation panel area.
[0058] In one possible implementation, the device further includes:
[0059] The historical material layer acquisition module is configured to acquire the historical material layer corresponding to the special effects template identifier when the special effects template creation instruction includes a special effects template identifier.
[0060] The second display module is configured to overlay the preset facial image and the historical material layer in the preview area, and to overlay one of the preset facial image and the historical material layer in the operation panel area.
[0061] The third display module is configured to execute a trigger command in response to the addition of special effects material and display the operable facial image in the operation panel area;
[0062] The display module includes:
[0063] The display unit is configured to overlay the target material layer onto a preset facial image that is overlaid with the historical material layer.
[0064] In one possible implementation, the operation panel area includes a material import trigger area, and the device further includes:
[0065] The first material addition trigger module is configured to generate a special effects material addition trigger instruction when a preset operation based on the material import trigger area is detected; or,
[0066] The second material addition trigger module is configured to generate a material addition trigger instruction when it is detected that the special effect material has been moved into the operation panel area.
[0067] In one possible implementation, the target special effects material acquisition module includes:
[0068] The cursor display unit is configured to change the cursor to a preset icon when it is detected that the cursor is hovering over a target operable area, wherein the target operable area is one of the operable areas;
[0069] The first special effects material addition instruction generation unit is configured to generate the special effects material addition instruction when the preset icon is detected to be triggered.
[0070] The material library display unit is configured to execute a response to the special effects material addition instruction and display the material library corresponding to the target operable area.
[0071] The first target special effects material acquisition unit is configured to execute a selection instruction for materials in the material library to acquire the target special effects material.
[0072] In one possible implementation, the device further includes:
[0073] The fourth display module is configured to display the operable facial image in the operation panel area.
[0074] In one possible implementation, the target special effects material acquisition module includes:
[0075] The second special effects material addition instruction generation unit is configured to generate the special effects material addition instruction when the moved special effects material is detected to be on the target operable area and the moving operation is interrupted, wherein the target operable area is one of the operable areas;
[0076] The second target special effects material acquisition unit is configured to execute a response to the special effects material addition instruction, and to use the moved special effects material as the target special effects material.
[0077] In one possible implementation, the device further includes:
[0078] The fifth display module is configured to overlay the preset facial image and the target material layer on the operation panel area.
[0079] In one possible implementation, the special effects template creation interface further includes a layer area, the layer area including a layer selection area; the device further includes:
[0080] The layer display module is configured to display the layer identifier of the target material layer in the layer selection area.
[0081] In one possible implementation, the layer area further includes a layer editing area, and the device further includes:
[0082] The module for obtaining the material layer to be displayed is configured to execute a layer selection instruction triggered based on the layer identifier in the layer selection area, and obtain the material layer to be displayed corresponding to the layer selection instruction;
[0083] The sixth display module is configured to overlay and display the preset facial image and the material layer to be displayed in the operation panel area;
[0084] The material layer update module is configured to execute layer editing commands triggered in the layer editing area to edit the material layer to be displayed, thereby obtaining an updated material layer to be displayed;
[0085] The seventh display module is configured to overlay the preset facial image and the updated material layer to be displayed in the operation panel area, and to overlay the updated material layer to be displayed in the preview area.
[0086] In one possible implementation, the layer selection area includes a layer hiding operation area, and the device further includes:
[0087] The module for obtaining the material layer to be hidden is configured to execute a trigger command in response to the area of the layer being hidden, and obtain the corresponding material layer to be hidden.
[0088] The layer hiding module is configured to hide the material layer to be hidden in the preview area.
[0089] In one possible implementation, the device further includes:
[0090] The verification result acquisition module is configured to perform verification on the target special effects material and acquire the verification result;
[0091] The failure notification information display module is configured to display a failure notification information if the verification result is a verification failure.
[0092] The layer generation module includes:
[0093] The layer generation unit is configured to generate a target material layer corresponding to the target special effects material if the verification result is successful.
[0094] In one possible implementation, the special effects template creation interface further includes a special effects template selection area, and the device further includes:
[0095] The target effect template acquisition module is configured to execute an effect template selection instruction triggered in the effect template selection area and acquire the target effect template corresponding to the effect template selection instruction;
[0096] The full material layer acquisition module is configured to acquire the full material layer corresponding to the target effect template;
[0097] The eighth display module is configured to overlay the preset facial image and the full material layer in the preview area, and to overlay one of the preset facial image and the full material layer in the operation panel area.
[0098] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in any one of the first aspects above.
[0099] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided such that, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform any of the methods described in the first aspect of the present disclosure.
[0100] According to a fifth aspect of the present disclosure, a computer program product is provided, including computer instructions that, when executed by a processor, cause a computer to perform the method described in any of the first aspects of the present disclosure.
[0101] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0102] By displaying preset facial images in the preview area of the special effects template creation interface, and displaying corresponding operable facial images in the operation panel area of the special effects template creation interface, the system allows users to directly add special effects materials by triggering the operable areas. This makes the special effects material processing process easy to understand and intuitive, reducing the learning cost for users. In addition, after acquiring the target special effects material, the system can automatically generate the corresponding material layer without requiring users to create layers, further improving the convenience of operation and reducing the complexity of special effects material processing. This makes special effects material processing easy to understand and operate, thereby improving the efficiency of special effects material processing.
[0103] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0104] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0105] Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment.
[0106] Figure 2 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment.
[0107] Figure 3 This is a schematic diagram of an interface created using special effects according to an exemplary embodiment.
[0108] Figure 4 This is a schematic diagram illustrating an effects template creation interface according to an exemplary embodiment.
[0109] Figure 5 This is a schematic diagram illustrating an effects template creation interface according to an exemplary embodiment.
[0110] Figure 6 This is a flowchart illustrating a method for manipulating material layers according to an exemplary embodiment.
[0111] Figure 7 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment.
[0112] Figure 8 a to 8b are schematic diagrams illustrating a failure message for adding special effects materials in a special effects template creation interface according to an exemplary embodiment.
[0113] Figure 9 This is a flowchart illustrating a method for selecting special effects templates according to an exemplary embodiment.
[0114] Figure 10 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment.
[0115] Figure 11 a to 11d are schematic diagrams illustrating the triggering process of adding trigger commands to special effects materials according to an exemplary embodiment.
[0116] Figure 12 This is a flowchart illustrating a method for obtaining target special effects material to be added based on an operable area, according to an exemplary embodiment.
[0117] Figure 13 a to 13e are schematic diagrams illustrating the process of importing special effects materials according to an exemplary embodiment.
[0118] Figure 14 This is a flowchart illustrating a method for obtaining target special effects material to be added based on an operable area, according to an exemplary embodiment.
[0119] Figure 15a to 15b are schematic diagrams illustrating the process of dragging special effects materials according to an exemplary embodiment.
[0120] Figure 16 This is a schematic diagram of a special effects material according to an exemplary embodiment.
[0121] Figure 17 This is a block diagram of a special effects material processing apparatus according to an exemplary embodiment.
[0122] Figure 18 This is a block diagram illustrating an electronic device for processing special effects materials according to an exemplary embodiment. Detailed Implementation
[0123] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0124] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0125] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment, such as... Figure 1 As shown, the application environment may include server 01 and terminal 02.
[0126] In an optional embodiment, terminal 02 can provide user-oriented special effects material processing, such as providing a special effects creation tool, which can be an application, webpage, etc., to perform the special effects material processing. In one example, special effects creation can include AR (Augmented Reality) special effects creation. Optionally, after the special effects are created, the user can send the created special effects template to the server of the corresponding platform to publish the special effects template through the platform. Specifically, terminal 02 can be, but is not limited to, electronic devices such as smartphones, desktop computers, tablets, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices. Optionally, the operating system running on the electronic device can be, but is not limited to, Android, iOS, Linux, Windows, etc.
[0127] In an optional embodiment, server 01 can be used to receive and publish special effects templates sent by terminal 02, such as beauty special effects templates. Specifically, server 01 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0128] In addition, it should be noted that, Figure 1 The example shown is merely one application environment of the image processing method provided in this disclosure.
[0129] In the embodiments described in this specification, the server 01 and the terminal 02 can be directly or indirectly connected through wired or wireless communication, and this application does not impose any restrictions on this.
[0130] Figure 2 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment. For example... Figure 2 As shown, it may include the following steps.
[0131] In step S201, a preset facial image is displayed in the preview area of the special effects template creation interface, and an operable facial image corresponding to the preset facial image is displayed in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements.
[0132] In this manual, the special effects creation tool provides an interface for creating special effects templates for processing special effects materials. This interface may include a preview area and an operation panel area. As an example, such as... Figure 4 As shown, the preview area of the special effects template creation interface can display a preset facial image, and the operation panel area of the special effects template creation interface can display an operable facial image corresponding to the preset facial image. The operable facial image includes an operable area corresponding to the preset facial elements.
[0133] The preview area can be like this Figure 4 The preview window area shown, the operation panel area can be as follows: Figure 4 The area indicated by the operation panel shown. Figure 4 The "preview area" and "operation panel area" can be used to indicate the corresponding "preview window" and "operation panel". Optionally, the "preview area" and "operation panel area" may not be displayed.
[0134] The preset facial image can be a preset face image, such as a human face, an animal face, etc. The preset facial element can refer to one or more facial elements, which can be elements on the face that can be used for special effects, such as eyebrows, eyes, nose, mouth, eyelashes, eyelids, pupils, or the entire face. The operable area corresponding to the preset facial element can be the area that includes the preset facial element, such as the area including eyebrows, the area including lips, etc. The number of preset facial elements can be the same as the number of operable areas. As an example, the operable area can be as follows: Figure 4 The areas enclosed by the dotted lines shown include, for example, the left and right eyebrow areas, the left and right eyelid areas, the left and right pupil areas, the lip area, and the entire face area. The special effects material corresponding to the entire face area can be a blush material.
[0135] In one example, special effects creation could include makeup template creation, face texture creation, etc. Figure 3 As shown, triggering a makeup template will take you to the makeup template creation mode selection interface. This interface includes two modes: creating a new makeup template and creating a makeup template based on an existing one. Figure 3 As shown, it can display icons for "New" and existing beauty templates, for example, displaying the icons for existing beauty templates in a list format. Figure 3 As shown, existing beauty templates can include: Beauty 01, Beauty 02, and Beauty 03.
[0136] Furthermore, in response to an effects template creation command, the preset facial image can be displayed in the preview area, and the operable facial image can be displayed in the operation panel area. Regarding the triggering method of this effects template creation command, for example… Figure 3 As shown, you can trigger the "Create New" button to create a new makeup template. When "Create New" is triggered, a special effects template creation command can be generated. Alternatively, you can trigger the identifier of an existing makeup template to create a new makeup template based on it. This involves adding incremental special effects to an existing makeup template, continuing to create and updating the existing template based on its existing effects. Triggering the identifier of an existing makeup template can also generate a special effects template creation command. For example, if a user triggers "Makeup 01," a special effects template creation command can be generated. By responding to this command, incremental special effects can be created for "Makeup 01."
[0137] Optionally, when "Create New" is triggered, a makeup template naming interface can be displayed, where users can name the newly created makeup template. Correspondingly, the special effects template creation command generated by triggering "Create New" may not include the special effects template identifier; however, the special effects template creation command generated by triggering the identifier of an existing makeup template may include the special effects template identifier. For example, the special effects template creation command generated by triggering makeup template 01 may include "Makeup 01".
[0138] Optionally, as an example, when special effects creation includes two modes, in response to the special effects template creation instruction, it can be determined whether the instruction includes a special effects template identifier. If the instruction does not include a special effects template identifier, a preset facial image can be displayed in the preview area of the special effects template creation interface, and an operable facial image corresponding to the preset facial image can be displayed in the operation panel area of the interface. By determining whether the instruction includes a special effects template identifier, the corresponding special effects template creation interface can be displayed for different special effects creation modes, making the display of the interface more flexible and adaptable to a wider range of special effects creation modes.
[0139] In step S203, the target special effects material to be added is obtained based on the operable area.
[0140] In the embodiments of this specification, the operable area can be used to add special effects materials. Based on this, the target special effects material to be added can be obtained based on the operable area. For example, there may be a material folder on the local machine that saves special effects materials. By dragging and dropping a special effects material from the folder to an operable area, the special effects material dragged to the operable area can be used as the target special effects material.
[0141] It should be noted that the special effects assets can be drawn locally by the user, for example... Figure 16As shown, the background image can be a transparent image that includes preset facial elements. This drawing can be done based on templates provided by special effects creation tools, ensuring that the corresponding material layer of the special effects material can effectively fit when overlaid on the preset facial image or operable facial image.
[0142] In step S205, the target material layer corresponding to the target special effects material is generated.
[0143] In practical applications, the attribute information of the target special effects material can be obtained, and a target material layer corresponding to the target special effects material can be generated based on this attribute information and the target special effects material. That is, the target material layer can include the target special effects material and its attribute information. The attribute information can include the transparency, color brightness, etc., of the target special effects material. This disclosure does not limit the specific method for generating the target material layer.
[0144] In step S207, a target material layer is overlaid on the preset facial image.
[0145] In practical applications, the target material layer can be overlaid on the preset facial image, that is, the preset facial image and the target material layer can be overlaid in the preview area.
[0146] By displaying preset facial images in the preview area of the special effects template creation interface, and displaying corresponding operable facial images in the operation panel area of the special effects template creation interface, the system allows users to directly add special effects materials by triggering the operable areas. This makes the special effects material processing process easy to understand and intuitive, reducing the learning cost for users. In addition, after acquiring the target special effects material, the system can automatically generate the corresponding material layer without requiring users to create layers, further improving the convenience of operation and reducing the complexity of special effects material processing. This makes special effects material processing easy to understand and operate, thereby improving the efficiency of special effects material processing.
[0147] In one possible implementation, such as Figure 5 As shown, the special effects template creation interface can also include a layer area, where... Figure 5 The "makeup layer" can be used to indicate that the area below it is a layer area. The layer area may include a layer selection area; after step S205, the special effects material processing method may further include: displaying the layer identifier of the target material layer in the layer selection area.
[0148] like Figure 5 As shown, when there are no layer icons in the layer selection area, a tooltip can be displayed in the layer selection area, such as "After adding materials, the layer will be displayed here".
[0149] By setting the layer selection area, after adding special effects materials, the layer identifier of the generated target material layer can be added to the layer selection area for display, making layer operations more intuitive and easier to understand, thereby improving the user experience.
[0150] Optionally, the effects template creation interface may also include other settings areas, such as Figure 5 The "Other Makeup Settings" shown are shown. In one example, these other makeup settings can be located below the layer selection area, but this disclosure does not limit this. Furthermore, by triggering the other settings area, one can adjust the properties of the special effects material, such as its color and brightness, but this disclosure does not limit this as well.
[0151] Figure 6 This is a flowchart illustrating a method for manipulating a material layer according to an exemplary embodiment. In one possible implementation, such as... Figure 5 As shown, the layer area can also include a layer editing area. For example, the layer editing area can include layer editing functions such as Multiply and opacity. Multiply allows editing of elements like color, such as darkening or lightening colors. Opacity can be adjusted between 0% and 100%. Other layer editing functions can be selected from the dropdown menu under Multiply.
[0152] Accordingly, such as Figure 6 As shown, special effects material processing methods may also include:
[0153] In step S601, in response to a layer selection instruction triggered based on a layer identifier in the layer selection area, the material layer to be displayed corresponding to the layer selection instruction is obtained;
[0154] In step S603, a preset facial image and a layer of material to be displayed are superimposed and displayed in the operation panel area.
[0155] In practical applications, you can select a layer icon, such as clicking a layer icon, to trigger a layer selection command. In response to this command, you can retrieve the corresponding layer of material to be displayed. For example, in... Figure 11 Clicking the "mouth" layer icon in layer a generates a layer selection command. Responding to this layer selection command, the corresponding material layer to be displayed is the "mouth" layer.
[0156] Furthermore, the selected material layer to be displayed can be shown in the operation panel area. For example, a preset facial image and the material layer to be displayed can be overlaid in the operation panel area.
[0157] In step S605, in response to a layer editing command triggered in the layer editing area, the layer of material to be displayed is edited to obtain an updated layer of material to be displayed;
[0158] In step S607, a preset facial image and an updated material layer to be displayed are overlaid in the operation panel area, and the updated material layer to be displayed is overlaid in the preview area.
[0159] In this embodiment of the specification, in response to a layer editing command triggered in the layer editing area, the layer of material to be displayed can be edited to obtain an updated layer of material to be displayed. This allows a preset facial image and the updated layer of material to be displayed to be overlaid in the operation panel area, and the updated layer of material to be displayed to be overlaid in the preview area. Figure 11 As shown in diagram a, layer editing commands triggered in the layer editing area can be applied to the selected material layer in the layer selection area. For example, if the layer selection area selects the "mouth" layer, the layer editing commands triggered in the layer editing area can be for the corresponding "mouth" layer. For instance, adjusting the opacity to 100% and selecting "Multiply" in the layer editing area can trigger layer editing commands. These commands can include the "mouth" layer identifier, 100% opacity, and "Multiply" blending mode. The "mouth" layer can then be edited according to these commands to obtain an updated "mouth" layer. Furthermore, the updated "mouth" layer can be displayed in the operation panel area. Since the "mouth" layer has been updated, the preview area also needs to be updated, meaning the preset facial image and all layers from the layer selection area can be overlaid in the preview area.
[0160] By selecting layer icons in the layer selection area, different material layers can be switched and displayed in the operation area based on the selection operation, which facilitates the viewing and editing of material layers; and by setting the layer editing area, material layers can be flexibly updated; in addition, by displaying all layers in the layer selection area in real time in the preview area, users can easily understand the effect of the special effects.
[0161] In one possible implementation, the layer selection area may include a layer hiding operation area, and the method may further include: in response to a trigger command on the layer hiding operation area, obtaining the corresponding material layer to be hidden; and hiding the material layer to be hidden in the preview area.
[0162] In one example, the layer hiding operation area can be as follows: Figure 11As shown in diagram a, a layer hide operation area can correspond to a layer identifier, used to control the hiding and showing of the corresponding material layer. For example, you can click the layer hide operation area to toggle the hiding and showing of the material layer.
[0163] By setting the layer hiding area, you can control the display or hiding of the material layer, further improving the flexibility of manipulating the material layer.
[0164] Figure 7 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment. In one possible implementation, after step S203, the special effects material processing method may further include:
[0165] In step S701, the target special effects material is verified, and the verification result is obtained;
[0166] In step S703, if the verification result is a verification failure, a failure reminder message is displayed;
[0167] Accordingly, step S205 may include the following steps:
[0168] In step S705, if the verification result is successful, the target material layer corresponding to the target special effects material is generated.
[0169] In practical applications, target special effects materials can be validated, such as their format and size, to obtain validation results. In one example, preset material formats and sizes can be set, for example, a preset material format of PNG and preset material sizes of "XXXkb, XXX*XXXpx". This allows for matching and validation of the target special effects material's format and size against the preset material format and size, respectively, to obtain validation results. If the target special effects material's format and size match the preset material format and size, the validation result is "validation passed," and the corresponding target material layer can be generated. If the target special effects material's format or size does not match the preset material format or size, the validation result is "validation failed," displaying a failure message to remind the user to re-add the material. The failure message can be as follows: Figure 8 As shown in a to 8b, for example, "Only PNG materials can be imported," or "Size or dimensions are incorrect; please adjust the material size to less than XXXkb and less than XXX*XXXpx," this disclosure does not impose limitations on these. Optionally, a trigger area for user response can also be set, for example... Figure 8 The "I understand" option shown in b can improve the user interaction experience.
[0170] By verifying the target special effects materials, the correctness of the added special effects materials can be guaranteed, and a failure reminder message can be displayed if the verification result is a failure, so as to effectively guide the user.
[0171] Figure 9 This is a flowchart illustrating a method for selecting special effects templates according to an exemplary embodiment. In one possible implementation, the special effects template creation interface may further include a special effects template selection area, and the special effects material processing method may further include:
[0172] In step S901, in response to an effect template selection instruction triggered in the effect template selection area, the target effect template corresponding to the effect template selection instruction is obtained;
[0173] In step S903, obtain all material layers corresponding to the target special effects template;
[0174] In step S905, a preset facial image and a full set of material layers are overlaid in the preview area, and one of the material layers (preset facial image and full set of material layers) is overlaid in the operation panel area.
[0175] In practical applications, the special effects template creation interface can also include a special effects template selection area, such as... Figure 11 As shown in Figure a, as an example, an effects template selection area is set on the left side of the effects template creation interface. This area can display the effects template's identifier, such as "Beauty 01". Figure 11 As shown in Figure a, the special effects template creation interface can also include a navigation area for the special effects template selection area, such as "Special Effects Layers," to indicate that the left side of the special effects template creation interface is the special effects template selection area. When "Makeup 01" is selected, the preview area can overlay the preset facial image and the full set of material layers, the operation panel area can overlay one of the material layers from the preset facial image and the full set of material layers, the layer selection area can display the layer identifier of the full set of material layers, and the layer editing area can display the attribute information of one of the material layers from the full set of material layers.
[0176] In one example, one of the material layers in the full material layer can refer to the material layer corresponding to the layer identifier at a preset position when the layer identifier of the full material layer is displayed in the layer selection area. For example, the preset position can be the top position of the layer selection area, which is not limited in this disclosure.
[0177] By setting an effects template selection area, users can switch between different effects templates, making it convenient to create different effects. When selecting an effects template, the preview area can display all the corresponding material layers, and the operation panel area can display one of the material layers from the full material layers. This allows users to preview the overall effect of the effects as well as view individual material layers, making the operation intuitive and convenient.
[0178] Figure 10 This is a flowchart illustrating a special effects material processing method according to an exemplary embodiment. For example... Figure 10 As shown, in one possible implementation, before step S203, the special effects material processing method may further include:
[0179] In step S1001, if the special effects template creation instruction includes a special effects template identifier, the historical material layer corresponding to the special effects template identifier is obtained;
[0180] In step S1003, a preset facial image and a historical material layer are overlaid in the preview area, and one of the material layers from the preset facial image and historical material layers is overlaid in the operation panel area.
[0181] In this context, one of the material layers in the historical material layers can refer to the material layer corresponding to the layer identifier at a preset position when the layer identifier of the historical material layer is displayed in the layer selection area. The implementation method of this step S1003 can be found in step S905, and will not be repeated here.
[0182] In step S1005, in response to the trigger command for adding special effects material, an operable facial image is displayed in the operation panel area.
[0183] In practical applications, when the effect template creation instruction includes an effect template identifier, the operation panel area will overlay a preset facial image and one of the historical material layers. When the user wants to add effect materials, the display in the operation panel area needs to be changed to an operable facial image so that the user can add effect materials. Based on this, in the embodiments of this specification, an area for triggering the effect material addition trigger instruction can be set in the effect template creation interface, such as a button area, an area in the effect template creation interface, etc., and this area in the effect template creation interface may include the operation panel area.
[0184] Accordingly, step S207 may include:
[0185] In step S1007, the target material layer is overlaid on the preset facial image that overlays the historical material layer.
[0186] In the embodiments of this specification, the target material layer can be superimposed on the preset facial image that superimposed the historical material layer. That is, when adding a new material layer, the new material layer and the existing historical material layers can be superimposed and displayed in the preview area. In other words, all material layers in the layer selection area can be superimposed and displayed in the preview area in real time.
[0187] By including an effects template identifier in the effects template creation command, the system retrieves the historical material layer corresponding to the effects template identifier and overlays the preset facial image and the historical material layer in the preview area, as well as overlaying one of the preset facial image and the historical material layer in the operation panel area. This allows the system to display the effects of existing effects templates. In addition, by responding to the effects material addition trigger command, the system displays an operable facial image in the operation panel area. This allows the operation panel area to switch from displaying a material layer to displaying an operable facial image, enabling flexible switching of the content displayed in the operation panel area and facilitating the processing of effects materials.
[0188] In one possible implementation, the operation panel area may include a media import trigger area. In one example, the media import trigger area may be as follows: Figure 5 and Figure 11 The term "imported materials" is not limited in this disclosure.
[0189] Accordingly, prior to step S1005, the special effects material processing method may also include the following steps:
[0190] If a preset operation triggered based on the imported material trigger area is detected, generate a special effects material and add a trigger command; or, if a special effects material is detected to have been moved into the operation panel area, generate a special effects material and add a trigger command.
[0191] In practical applications, preset operations may include clicking or the cursor remaining in the material import trigger area for a duration longer than a preset duration; this disclosure does not limit this. For example... Figure 11 As shown in a to 11b, clicking "Import Material" will generate special effects material and add trigger commands when a click operation triggered by "Import Material" is detected, allowing the operation panel area to display an operable facial image. Optionally, in Figure 11 In versions b and 11d, a prompt can be displayed: "Click / drag the image to different areas of the face, and automatically generate a layer on the right."
[0192] like Figure 11As shown in c to 11d, special effects materials can be moved by dragging and dropping them. For example, you can drag a special effects material from the local special effects material folder to the operation panel area. When the special effects material is detected to have been moved to the operation panel area, a trigger command can be generated to add a special effects material, so that the operation panel area can display an operable facial image.
[0193] By setting a trigger area for material import, an operable facial image can be displayed in the operation panel area when the material import trigger area is triggered or when the special effects material is moved into the operation panel area, ensuring that subsequent special effects material addition operations can be carried out smoothly.
[0194] Figure 12 This is a flowchart illustrating a method for obtaining target special effects material to be added based on an operable area, according to an exemplary embodiment. Figure 12 As shown, in one possible implementation, step S203 may include:
[0195] In step S1201, when it is detected that the cursor is hovering over the target operable area, the cursor is changed to a preset icon, and the target operable area is one of the operable areas;
[0196] In step S1203, when a preset icon is detected to be triggered, a command to add special effects material is generated;
[0197] In step S1205, in response to the instruction to add special effects material, the material library corresponding to the target operable area is displayed;
[0198] In step S1207, in response to the selection instruction of materials in the material library, the target special effects material is obtained.
[0199] In the embodiments of this specification, see 13a-13c. When the cursor is detected to be hovering over the target operable area, the cursor is changed to a preset icon, and the target operable area can be highlighted. For example... Figure 13 As shown in Figure a, the cursor is still displayed even when it is not in the operable area; when the cursor is detected hovering over the target operable area, the cursor is changed to a preset icon, such as... Figure 13 As shown in b, when the cursor hovers over the operable area of the "mouth," the cursor can be changed to a hand icon; this disclosure does not limit this. Upon detecting that a preset icon has been triggered, such as by clicking the hand icon, a command to add special effects material can be generated. In response to this command, the material library corresponding to the target operable area is displayed, for example, the material library corresponding to the operable area of the "mouth." This material library can store user-drawn mouth materials, such as mouth images, etc. Figure 16As shown. In response to a selection command from the resource library, the target effect resource is retrieved. For example, if a user selects an image of a mouth, that image can be used as the target effect resource, and it can be displayed in the preview area.
[0200] Adding special effects materials via import allows for intuitive triggering of the addition based on the operable area, making the process easy to understand, reducing the learning curve for users, and improving the intuitiveness and convenience of handling special effects materials.
[0201] Optionally, when adding special effects materials based on the import method, after step S205, the special effects material processing method may further include: displaying an operable facial image in the operation panel area. That is, when adding special effects materials based on the import method, an operable facial image can be retained in the operation panel area for continued addition of special effects materials, making the addition of special effects materials efficient and convenient.
[0202] Furthermore, you can select the source layer in the layer selection area, for example... Figure 13 The "Mouth 2" layer shown in d can be used to switch the display content of the operation panel area, thus displaying the "Mouth 2" layer in the operation panel area, such as... Figure 13 As shown in e.
[0203] Figure 14 This is a flowchart illustrating a method for obtaining target special effects material to be added based on an operable area, according to an exemplary embodiment. Figure 14 As shown, in one possible implementation, step S203 may include:
[0204] In step S1401, when it is detected that the moved special effects material is on the target operable area and the moving operation is interrupted, a special effects material addition instruction is generated;
[0205] In step S1403, in response to the effect material addition instruction, the effect material to be moved is used as the target effect material.
[0206] See Figure 15 As shown in a, when the moved special effects material is detected to be on the target operable area and the moving operation is interrupted, a special effects material addition command can be generated; in response to the special effects material addition command, the moved special effects material can be used as the target special effects material.
[0207] When adding special effects materials based on mobile special effects materials, the processing of special effects materials can be more intuitive and concise.
[0208] Optionally, when adding special effects materials based on mobile special effects materials, after step S205, the special effects material processing method may further include: overlaying and displaying a preset facial image and a target material layer in the operation panel area. Optionally, point-to-point operations and liquefaction processing, etc., can be performed on the target material layer and the operable facial image. That is, when adding special effects materials based on mobile special effects materials, the material layer: the target material layer, can be restored and displayed in the operation panel area, so that the newly added target material layer can be synchronously displayed in the operation panel area, providing timely feedback for the user's special effects creation.
[0209] It should be noted that when adding special effects materials based on mobile special effects materials, the special effects material processing method can also include: overlaying a preset facial image and a material layer at a preset position in the layer selection area in the operation panel area, such as the material layer at the top, like... Figure 15 As shown in b. When the newly added "Mouth 2" layer is displayed at the top of the layer selection area, the preset facial image and the target material layer ("Mouth 2" layer) can be overlaid in the operation panel area.
[0210] Figure 17 This is a block diagram illustrating a special effects material processing apparatus according to an exemplary embodiment. (Refer to...) Figure 17 The device may include:
[0211] The first display module 1701 displays a preset facial image in the preview area of the special effects template creation interface, and displays an operable facial image corresponding to the preset facial image in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements.
[0212] The target special effects material acquisition module 1703 is configured to acquire the target special effects material to be added based on the operable area.
[0213] Layer generation module 1705 is configured to generate the target material layer corresponding to the target special effects material;
[0214] Display module 1707 is configured to overlay a target material layer onto a preset facial image.
[0215] By displaying preset facial images in the preview area of the special effects template creation interface, and displaying corresponding operable facial images in the operation panel area of the special effects template creation interface, the system allows users to directly add special effects materials by triggering the operable areas. This makes the special effects material processing process easy to understand and intuitive, reducing the learning cost for users. In addition, after acquiring the target special effects material, the system can automatically generate the corresponding material layer without requiring users to create layers, further improving the convenience of operation and reducing the complexity of special effects material processing. This makes special effects material processing easy to understand and operate, thereby improving the efficiency of special effects material processing.
[0216] In one possible implementation, the first display module 1701 may include:
[0217] The display unit is configured to execute a special effects template creation instruction in response to the instruction, wherein if the special effects template creation instruction does not include a special effects template identifier, display the preset facial image in the preview area and the operable facial image in the operation panel area.
[0218] In one possible implementation, the special effects material processing device may further include:
[0219] The historical material layer acquisition module is configured to acquire the historical material layer corresponding to the special effects template identifier when the special effects template creation instruction includes a special effects template identifier.
[0220] The second display module is configured to overlay a preset facial image and a historical material layer in the preview area, and to overlay one of the preset facial image and historical material layers in the operation panel area.
[0221] The third display module is configured to execute trigger commands in response to the addition of special effects materials, and display an operable facial image in the operation panel area;
[0222] Display module 1707 may include:
[0223] The display unit is configured to overlay the target material layer onto a preset facial image that overlays a historical material layer.
[0224] In one possible implementation, the operation panel area includes a material import trigger area, and the special effects material processing device may further include:
[0225] The first material addition trigger module is configured to generate a special effects material addition trigger instruction when a preset operation based on the material import trigger area is detected; or,
[0226] The second material addition trigger module is configured to generate a material addition trigger command when it is detected that the material has been moved into the operation panel area.
[0227] In one possible implementation, the target special effects material acquisition module 1703 may include:
[0228] The cursor display unit is configured to change the cursor to a preset icon and select one of the operable areas when the cursor is detected to be hovering over the target operable area.
[0229] The first special effects material addition instruction generation unit is configured to generate special effects material addition instructions when a preset icon is detected to be triggered.
[0230] The media library display unit is configured to respond to the command to add special effects media and display the media library corresponding to the target operable area.
[0231] The first target special effects material acquisition unit is configured to execute a selection command in response to a material selection in the material library to acquire the target special effects material.
[0232] In one possible implementation, the special effects material processing device may further include:
[0233] The fourth display module is configured to display an operable facial image in the operation panel area.
[0234] In one possible implementation, the target special effects material acquisition module 1703 may include:
[0235] The second special effects material addition instruction generation unit is configured to generate a special effects material addition instruction when it is detected that the moved special effects material is on the target operable area and the movement operation is interrupted. The target operable area is one of the operable areas.
[0236] The second target effect material acquisition unit is configured to execute a response to the effect material addition command, using the effect material to be moved as the target effect material.
[0237] In one possible implementation, the special effects material processing device may further include:
[0238] The fifth display module is configured to overlay and display a preset facial image and a target material layer in the operation panel area.
[0239] In one possible implementation, the special effects template creation interface also includes a layer area, which includes a layer selection area; the special effects material processing device may also include:
[0240] The layer display module is configured to display the layer identifier of the target material layer in the layer selection area.
[0241] In one possible implementation, the layer area also includes a layer editing area, and the special effects material processing device may further include:
[0242] The module for obtaining the material layer to be displayed is configured to execute a layer selection command triggered in response to a layer identifier in the layer selection area, and obtain the material layer to be displayed corresponding to the layer selection command;
[0243] The sixth display module is configured to overlay and display a preset facial image and a layer of material to be displayed in the operation panel area;
[0244] The material layer update module is configured to execute layer editing commands triggered in the layer editing area, edit the material layer to be displayed, and obtain an updated material layer to be displayed;
[0245] The seventh display module is configured to overlay a preset facial image and an updated material layer to be displayed in the operation panel area, and to overlay the updated material layer to be displayed in the preview area.
[0246] In one possible implementation, the layer selection area includes a layer hiding operation area, and the special effects material processing device may also include:
[0247] The module for obtaining hidden material layers is configured to execute a trigger command in response to the area where a layer is hidden, and obtain the corresponding material layer to be hidden.
[0248] The layer hiding module is configured to hide the material layer to be hidden in the preview area.
[0249] In one possible implementation, the special effects material processing device may further include:
[0250] The verification result acquisition module is configured to perform verification on the target special effects material and acquire the verification result;
[0251] The failure notification display module is configured to display a failure notification message if the verification result is a verification failure.
[0252] Accordingly, the layer generation module 1705 includes:
[0253] The layer generation unit is configured to generate the target material layer corresponding to the target effect material if the verification result is successful.
[0254] In one possible implementation, the special effects template creation interface also includes a special effects template selection area, and the special effects material processing device also includes:
[0255] The target effect template acquisition module is configured to execute an effect template selection instruction triggered in the effect template selection area and acquire the target effect template corresponding to the effect template selection instruction.
[0256] The "Full Material Layer Acquisition" module is configured to acquire all material layers corresponding to the target effect template.
[0257] The eighth display module is configured to overlay a preset facial image and a full set of material layers in the viewing area, and to overlay one of the preset facial image and full set of material layers in the operation panel area.
[0258] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0259] Figure 18 This is a block diagram illustrating an electronic device for processing special effects materials according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 18 As shown, the electronic device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for processing special effects materials. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.
[0260] Those skilled in the art will understand that Figure 18 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0261] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the special effects material processing method as described in the embodiments of this disclosure.
[0262] In an exemplary embodiment, a computer-readable storage medium is also provided, which, when executed by a processor of an electronic device, enables the electronic device to perform the special effects material processing method of the present disclosure embodiments. The computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.
[0263] In an exemplary embodiment, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform the method for processing special effects material in the embodiments of this disclosure.
[0264] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0265] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0266] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for creating special effects templates, characterized in that, include: A preset facial image is displayed in the preview area of the special effects template creation interface, and an operable facial image corresponding to the preset facial image is displayed in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements. The preset facial image is a preset facial image; Based on the operable area, obtain the target special effects material to be added; If the verification result of the target special effects material using preset material format and preset material size is a verification failure, a failure reminder message will be displayed; The failure notification message is used to remind you to adjust the materials; If the verification result is successful, a target material layer corresponding to the target special effects material is generated; The target material layer is overlaid and displayed on the preset facial image; An effects template is created based on the target material layer, and the effects template is used for special effects processing of facial images.
2. The method for creating special effects templates according to claim 1, characterized in that, The steps of displaying a preset facial image in the preview area of the special effects template creation interface, and displaying an operable facial image corresponding to the preset facial image in the operation panel area of the special effects template creation interface, include: In response to an effects template creation instruction, if the effects template creation instruction does not include an effects template identifier, the preset facial image is displayed in the preview area, and the operable facial image is displayed in the operation panel area.
3. The method for creating special effects templates according to claim 2, characterized in that, Prior to the step of obtaining the target special effects material to be added based on the operable area, the method further includes: If the special effects template creation instruction includes a special effects template identifier, obtain the historical material layer corresponding to the special effects template identifier; The preset facial image and the historical material layer are overlaid in the preview area, and one of the material layers, the preset facial image and the historical material layer, is overlaid in the operation panel area; In response to a trigger command to add special effects material, the operable facial image is displayed in the operation panel area; The step of overlaying and displaying the target material layer on the preset facial image includes: The target material layer is overlaid on a preset facial image that overlays the historical material layer.
4. The method for creating special effects templates according to claim 3, characterized in that, The operation panel area includes a material import trigger area. Before the step of displaying the operable facial image in the operation panel area in response to a special effects material addition trigger command, the method further includes: If a preset operation triggered based on the material import trigger area is detected, a trigger instruction to add the special effects material is generated; or, If the special effects material is detected to have been moved into the area of the operation panel, a trigger command is generated to add the special effects material.
5. The method for creating special effects templates according to claim 3, characterized in that, The step of obtaining the target special effects material to be added based on the operable area includes: When the cursor is detected to be hovering over a target operable area, the cursor is changed to a preset icon, and the target operable area is one of the operable areas; Upon detecting that the preset icon has been triggered, a command to add special effects materials is generated; In response to the instruction to add special effects materials, the material library corresponding to the target operable area is displayed; In response to a selection command for materials in the material library, the target special effects material is obtained.
6. The method for creating special effects templates according to claim 5, characterized in that, After the step of generating the target material layer corresponding to the target special effects material, the method further includes: The operable facial image is displayed in the operation panel area.
7. The method for creating special effects templates according to claim 3, characterized in that, The step of obtaining the target special effects material to be added based on the operable area includes: If the moved special effects material is detected to be on the target operable area and the moving operation is interrupted, a special effects material addition instruction is generated, wherein the target operable area is one of the operable areas; In response to the instruction to add special effects material, the moved special effects material is used as the target special effects material.
8. The method for creating special effects templates according to claim 7, characterized in that, After the step of generating the target material layer corresponding to the target special effects material, the method further includes: The preset facial image and the target material layer are overlaid in the operation panel area.
9. The method for creating special effects templates according to claim 2 or 3, characterized in that, The special effects template creation interface also includes a layer area, which includes a layer selection area; after the step of generating the target material layer corresponding to the target special effects material, the method further includes: The layer identifier of the target material layer is displayed in the layer selection area.
10. The method for creating special effects templates according to claim 9, characterized in that, The layer area also includes a layer editing area, and the method further includes: In response to a layer selection command triggered based on a layer identifier in the layer selection area, obtain the material layer to be displayed corresponding to the layer selection command; The preset facial image and the material layer to be displayed are superimposed and displayed in the operation panel area; In response to a layer editing command triggered in the layer editing area, the material layer to be displayed is edited to obtain an updated material layer to be displayed; The preset facial image and the updated material layer to be displayed are overlaid in the operation panel area, and the updated material layer to be displayed is also overlaid in the preview area.
11. The method for creating special effects templates according to claim 9, characterized in that, The layer selection area includes the layer hiding operation area, and the method further includes: In response to a trigger command to hide the layer operation area, the corresponding material layer to be hidden is obtained; Hide the material layer to be hidden in the preview area.
12. The method for creating special effects templates according to claim 2 or 3, characterized in that, The special effects template creation interface also includes a special effects template selection area, and the method further includes: In response to an effect template selection instruction triggered in the effect template selection area, the target effect template corresponding to the effect template selection instruction is obtained; Obtain all material layers corresponding to the target special effects template; The preset facial image and the full material layer are overlaid in the preview area, and one of the material layers, the preset facial image and the full material layer, is overlaid in the operation panel area.
13. A special effects template making device, characterized in that, include: The first display module is configured to display a preset facial image in the preview area of the special effects template creation interface, and to display an operable facial image corresponding to the preset facial image in the operation panel area of the special effects template creation interface. The operable facial image includes an operable area corresponding to the preset facial elements. The preset facial image is a preset facial image; The target special effects material acquisition module is configured to acquire the target special effects material to be added based on the operable area; The verification result acquisition module is configured to perform verification on the target special effects material and acquire the verification result; The failure notification information display module is configured to display a failure notification information if the verification result is a verification failure. The failure notification message is used to remind you to adjust the materials; The layer generation module is configured to generate a target material layer corresponding to the target special effects material if the verification result is a successful verification. The display module is configured to overlay and display the target material layer on the preset facial image, the target material layer being used to create special effects templates; The special effects creation module is configured to execute the creation of a special effects template based on the target material layer, the special effects template being used for special effects processing of facial images.
14. The special effects template making device according to claim 13, characterized in that, The first display module includes: The display unit is configured to execute a special effects template creation instruction in response to the instruction, wherein if the special effects template creation instruction does not include a special effects template identifier, display the preset facial image in the preview area and the operable facial image in the operation panel area.
15. The special effects template making device according to claim 14, characterized in that, The device further includes: The historical material layer acquisition module is configured to acquire the historical material layer corresponding to the special effects template identifier when the special effects template creation instruction includes a special effects template identifier. The second display module is configured to overlay the preset facial image and the historical material layer in the preview area, and to overlay one of the preset facial image and the historical material layer in the operation panel area. The third display module is configured to execute a trigger command in response to the addition of special effects material and display the operable facial image in the operation panel area; The display module includes: The display unit is configured to overlay the target material layer onto a preset facial image that is overlaid with the historical material layer.
16. The special effects template making device according to claim 15, characterized in that, The operation panel area includes a material import trigger area, and the device further includes: The first material addition trigger module is configured to generate a special effects material addition trigger instruction when a preset operation based on the material import trigger area is detected; or, The second material addition trigger module is configured to generate a material addition trigger instruction when it is detected that the special effect material has been moved into the operation panel area.
17. The special effects template making device according to claim 15, characterized in that, The target special effects material acquisition module includes: The cursor display unit is configured to change the cursor to a preset icon when it is detected that the cursor is hovering over a target operable area, wherein the target operable area is one of the operable areas; The first special effects material addition instruction generation unit is configured to generate the special effects material addition instruction when the preset icon is detected to be triggered. The material library display unit is configured to execute a response to the special effects material addition instruction and display the material library corresponding to the target operable area. The first target special effects material acquisition unit is configured to execute a selection instruction for materials in the material library to acquire the target special effects material.
18. The special effects template making device according to claim 17, characterized in that, The device further includes: The fourth display module is configured to display the operable facial image in the operation panel area.
19. The special effects template making device according to claim 15, characterized in that, The target special effects material acquisition module includes: The second special effects material addition instruction generation unit is configured to generate the special effects material addition instruction when it is detected that the moved special effects material is on the target operable area and the moving operation is interrupted, wherein the target operable area is one of the operable areas; The second target special effects material acquisition unit is configured to execute a response to the special effects material addition instruction, and to use the moved special effects material as the target special effects material.
20. The special effects template making device according to claim 19, characterized in that, The device further includes: The fifth display module is configured to overlay the preset facial image and the target material layer on the operation panel area.
21. The special effects template making device according to claim 14 or 15, characterized in that, The special effects template creation interface also includes a layer area, which includes a layer selection area; the device also includes: The layer display module is configured to display the layer identifier of the target material layer in the layer selection area.
22. The special effects template making device according to claim 21, characterized in that, The layer area further includes a layer editing area, and the device further includes: The module for obtaining the material layer to be displayed is configured to execute a layer selection instruction triggered based on the layer identifier in the layer selection area, and obtain the material layer to be displayed corresponding to the layer selection instruction; The sixth display module is configured to overlay and display the preset facial image and the material layer to be displayed in the operation panel area; The material layer update module is configured to execute layer editing commands triggered in the layer editing area to edit the material layer to be displayed, thereby obtaining an updated material layer to be displayed; The seventh display module is configured to overlay the preset facial image and the updated material layer to be displayed in the operation panel area, and to overlay the updated material layer to be displayed in the preview area.
23. The special effects template making device according to claim 21, characterized in that, The layer selection area includes a layer hiding operation area, and the device further includes: The module for obtaining the material layer to be hidden is configured to execute a trigger command in response to the area of the layer being hidden, and obtain the corresponding material layer to be hidden. The layer hiding module is configured to hide the material layer to be hidden in the preview area.
24. The special effects template making device according to claim 14 or 15, characterized in that, The special effects template creation interface also includes a special effects template selection area, and the device also includes: The target effect template acquisition module is configured to execute an effect template selection instruction triggered in the effect template selection area and acquire the target effect template corresponding to the effect template selection instruction; The full material layer acquisition module is configured to acquire the full material layer corresponding to the target effect template; The eighth display module is configured to overlay the preset facial image and the full material layer in the preview area, and to overlay one of the preset facial image and the full material layer in the operation panel area.
25. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the special effects template creation method as described in any one of claims 1 to 12.
26. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the special effects template creation method as described in any one of claims 1 to 12.
27. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the special effects template creation method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Display method and device, computer equipment and storage medium
CN111880709A
Method for operating electronic device and electronic device for supporting the same
US20200265784A1
Face image processing method and device, electronic device and computer storage medium
CN109543646A