Special effect template generation method and apparatus, electronic device, and storage medium
By receiving user demand information, generating special effect description information, and using special effect tools to process these description information, the existing special effect template style is solved and the types are limited, and efficient and personalized special effect template generation is achieved.
Patent Information
- Application Number
- PCT/CN2024/128730
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-01
- Filing Date
- 2024-10-31
- Publication Date
- 2025-05-08
AI Technical Summary
The special effect templates provided by existing video editing software and platforms have problems such as fixed styles and limited types, which affect the application effect of special effect templates in videos.
By receiving the user input demand information, special effect description information is generated, and special effect tools are used to process these description information to generate target special effect templates that meet the user's target generation requirements.
It realizes the rapid generation of personalized special effect templates, simplifies the generation steps of special effect templates, and improves the generation efficiency and diversification of special effect templates.
Smart Images

Figure CN2024128730_08052025_PF_FP_ABST
Abstract
Description
Special effects template generation method, device, electronic device and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202311444526.4 filed on November 1, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The embodiments of the present disclosure relate to a method, device, electronic device and storage medium for generating a special effect template. Background Art
[0003] Currently, for the application scenario of video creation, video editing software and platforms provide users with different special effects templates. By loading special effects templates into the video, the goal of improving the visual expressiveness of the video is achieved.
[0004] However, the above-mentioned special effects templates are manually edited and pre-set in the platform or application. They have problems such as fixed styles and limited types, which affect the application effect of the special effects templates in the video.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a method, device, electronic device, and storage medium for generating a special effects template to overcome the problem that video templates have fixed styles and limited types.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for generating a special effect template, comprising:
[0008] Receive demand information input by a user, where the demand information is used to describe the target generation requirements of the special effects template based on natural language; generate special effects description information based on the demand information, where the special effects description information is used to characterize the template features of the target special effects template that meets the target generation requirements; process the special effects description information through a special effects tool to generate the target special effects template.
[0009] In a second aspect, an embodiment of the present disclosure provides a special effect template generation device, comprising:
[0010] A receiving module, configured to receive demand information input by a user, wherein the demand information is used to describe target generation requirements of a special effect template based on a natural language;
[0011] A processing module, configured to generate special effect description information according to the demand information, wherein the special effect description information is used to characterize template features of a target special effect template that meets the target generation requirements;
[0012] A generation module is used to process the special effect description information through a special effect tool to generate the target special effect template.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0014] The memory stores computer-executable instructions;
[0015] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effect template generation method described in the first aspect and various possible designs of the first aspect.
[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the special effects template generation method described in the first aspect and various possible designs of the first aspect is implemented.
[0017] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the special effect template generation method described in the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] FIG1 is a diagram of an application scenario of a special effect template generation method provided by an embodiment of the present disclosure;
[0020] FIG2 is a flow chart of a method for generating a special effect template according to an embodiment of the present disclosure;
[0021] FIG3 is a schematic diagram of an interaction for a user to input demand information provided by an embodiment of the present disclosure;
[0022] FIG4 is a flowchart of a specific implementation of step S102 in the embodiment shown in FIG2 ;
[0023] FIG5 is a flowchart of a specific implementation of step S103 in the embodiment shown in FIG2 ;
[0024] FIG6 is a flow chart of generating a target special effect template provided by an embodiment of the present disclosure;
[0025] FIG7 is a second flow chart of a method for generating a special effect template according to an embodiment of the present disclosure;
[0026] FIG8 is a flowchart of a specific implementation of step S203 in the embodiment shown in FIG7 ;
[0027] FIG9 is a flowchart of another specific implementation of step S203 in the embodiment shown in FIG7 ;
[0028] FIG10 is a structural block diagram of a device for generating special effect templates provided by an embodiment of the present disclosure;
[0029] FIG11 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0030] FIG12 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0033] The following explains the application scenarios of the embodiments of the present disclosure:
[0034] Figure 1 is an application scenario diagram of the special effect template generation method provided by the embodiment of the present disclosure. The special effect template generation method provided by the embodiment of the present disclosure can be applied to an application with a special effect generation function. More specifically, it can be applied to an application scenario for making special effect templates and adding video special effects to videos. The execution subject of this embodiment can be a terminal device that runs the above-mentioned application with a special effect generation function, or a server that deploys the service end corresponding to the above-mentioned application, or other electronic devices that perform similar functions. Referring to Figure 1, taking the terminal device as an example, the terminal device is, for example, a smart phone. The terminal device shoots the user through the camera unit and displays the user's selfie video (preview video) in the viewfinder interface; thereafter, in response to the user operation, the target special effect template is loaded, thereby displaying the corresponding special effects in the above-mentioned selfie video, such as the virtual "glasses" shown in the figure, thereby realizing the application scenario of adding video special effects to the video.
[0035] The aforementioned process of adding special effects to videos typically utilizes special effects templates provided within platforms or applications. Users can select one or more of these preset special effects templates and apply them to their videos, thereby adding special effects. However, because special effects templates are pre-generated, they suffer from fixed styles and limited variety. This often results in users being unable to obtain the desired special effects that match the video content or that they are interested in, which in turn affects the effectiveness of the special effects templates applied to their videos.
[0036] The embodiments of the present disclosure provide a method for generating a special effect template to solve the above problems.
[0037] Referring to FIG2 , FIG2 is a flow chart of a method for generating a special effect template according to an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device, and the method for generating a special effect template includes:
[0038] Step S101: receiving demand information input by a user, where the demand information is used to describe target generation requirements of a special effect template based on natural language.
[0039] For example, referring to the application scenario diagram shown in FIG1 , in this embodiment, before the terminal device selects the target special effects template, it can generate the required personalized special effects template in real time based on the demand information input by the user. Specifically, in one possible implementation method, the terminal device displays an input control for inputting information in the first interface, such as an editable text box or a voice input button. The user inputs characters and voice to the terminal device through the input control so that the terminal device obtains the demand information. The demand information is used to describe the generation requirements of the target special effects based on natural language. For example, the demand information can be a piece of text, and its corresponding text content is "Help me generate a science fiction style background special effects template."
[0040] Figure 3 is an interactive schematic diagram of a user inputting demand information provided by an embodiment of the present disclosure. The above-mentioned step S101 will be introduced below in conjunction with Figure 3. As shown in Figure 3, after the terminal device runs the target application, it calls up the viewfinder interface for shooting videos. In the viewfinder interface, a "Generate Template" control for adding special effects is provided. In response to the user's click operation on the "Generate Template" control, a first interface is displayed in the viewfinder interface. The first interface includes an editable text box edit_text_1 (shown as edit_text_1 in the figure). Afterwards, the user enters text into the editable text box, such as "Help me generate a science fiction-style background special effects template." The terminal device performs semantic analysis based on the above-mentioned input text to generate demand information; or, directly uses the input text obtained after the above-mentioned recognition as the demand information to execute subsequent steps.
[0041] Step S102: Generate special effect description information according to the demand information. The special effect description information is used to characterize template features of a target special effect template that meets the target generation requirements.
[0042] Exemplarily, after obtaining the demand information input by the user, the demand information is further processed to generate information that can be recognized and utilized by the special effects tool, namely, special effects description information, so that in the subsequent steps, the special effects tool is used to generate a target special effects template that matches the demand information. Specifically, the special effects description information is used to characterize the template features of the target special effects template that meets the target generation requirements. In one possible implementation, the special effects description information is a table with one or more description fields, and each description field corresponds to a characteristic dimension of the template features of the target special effects template. The description of the template features of the target special effects template is achieved by the features under the corresponding characteristic dimensions respectively represented by the field values of multiple description fields. On the other hand, after processing, the demand information can also characterize one or more limited dimensions corresponding to the target generation requirements, and can be mapped to the corresponding characteristic dimensions through the above-mentioned limited dimensions, thereby realizing the conversion of demand information to special effects description information.
[0043] In a possible implementation, as shown in FIG4 , the specific implementation of step S102 includes:
[0044] Step S1021: Generate a first prompt word according to the requirement information. The first prompt word includes at least one prompt word field. The prompt word field is used to represent at least one limited dimension of the target generation requirement.
[0045] Step S1022: Generate special effect description information based on the first prompt word and the description generation model.
[0046] Exemplarily, first, the terminal device generates a corresponding first prompt word through the demand information, such as a descriptive text, wherein the prompt word is an input parameter used to guide the model to output content, and the prompt word has a format and description method that matches the model using it. The first prompt word in this embodiment can be a text generated by processing the demand information based on the prompt word model. The first prompt word can represent the semantic content of the demand information. For example, the first prompt word can be a text that summarizes and generalizes the content of the demand information and has a characteristic text format. The first prompt word can also be one or more keywords or key words in the demand information. The specific implementation method of the first prompt word will not be described here in detail, and can be set according to the specific implementation of the subsequent description generation model using the first prompt word.
[0047] Furthermore, content generation (AIGC) is performed based on the generated first prompt word and description generation model, and special effect description information for characterizing the template features of the target special effect template that meets the target generation requirements can be obtained. Among them, the description generation model corresponds to the special effect tool, so special effect description information that matches the special effect tool used subsequently can be generated. For example, when the special effect tool is tool_A, the description generation model called is model model_1, and then the first prompt word is input into model model_1, thereby guiding model model_1 to output special effect description information M1 that can be received and processed by tool tool_A; and when the special effect tool is tool_B, the description generation model called is model model_2, and then the first prompt word is input into model model_2, thereby guiding model model_2 to output special effect description information M2 that can be received and processed by tool tool_B.
[0048] Furthermore, in a possible implementation, before step S1022, the following steps are further included:
[0049] Step S1020: Obtain target version information corresponding to the special effect tool, and obtain a corresponding description generation model based on the target version information.
[0050] The target version information is used to characterize the tool name and / or tool version of the special effect tool, and the description generation model is used to generate target special effect description information that is adapted to the target version information.
[0051] Exemplarily, before using a description generation model to generate special effect description information, in order to make the special effect description information generated by the description generation model compatible with the special effect tool that subsequently uses the special effect description information, the description generation model is first selected or dynamically generated. Specifically, the corresponding description generation model can be mapped by obtaining the target version information corresponding to the special effect tool, wherein the target version information is used to characterize the tool name and / or tool version of the special effect tool, for example, the target version information is Info_1 = {Tag_1, version_1}. Among them, Tag_1 indicates the tool name; version_1 indicates the version number of the special effect tool Tag_1. Through the target version information, a target special effect tool of a target version can be accurately determined, thereby specifically calling the description generation model that matches it to generate the special effect description information. More specifically, for example, a terminal device locally or a server pre-stores multiple candidate description generation models. The terminal device determines a target description generation model that matches it from the multiple candidate description generation models based on the target version information. Thereafter, the first prompt word is processed based on the target description generation model to obtain the target special effect description information.
[0052] Step S103: Process the special effect description information through a special effect tool to generate a target special effect template.
[0053] Exemplarily, after obtaining the special effect description information, the special effect description information is loaded by a special effect tool deployed locally on the terminal device or on a cloud server, and based on the template features of the target special effect template represented by the special effect description information, a target special effect template that meets the target generation requirements is generated accordingly. Furthermore, the special effect description information includes at least a template layout and corresponding special effect materials, wherein the template layout represents the positional arrangement of special effect elements in the target special effect generated based on the target special effect template, and the special effect materials are materials used to implement the above-mentioned special effect elements. Furthermore, the special effect tool can generate the target special effect template by packaging and compiling the above-mentioned template layout and special effect materials.
[0054] In a possible implementation, the special effect description information includes multiple description fields, as shown in FIG5 , and a specific implementation of step S103 includes:
[0055] Step S1031: Send the special effect description information to the special effect engine corresponding to the special effect tool.
[0056] Step S1032: parse each description field in the special effect description information through the special effect engine to generate a special effect project.
[0057] Step S1033: Generate a target special effects template based on the special effects project.
[0058] Exemplarily, after obtaining the special effect description information, the special effect description information is input into the special effect engine corresponding to the special effect tool, wherein the special effect engine is one of the functional units in the special effect tool for generating special effect templates. The special effect engine can be deployed locally on the terminal device, that is, inside the special effect tool, or it can be deployed on a cloud server, and the special effect tool uses the special effect engine through remote calls. Furthermore, after sending the special effect description information to the special effect engine, the special effect engine parses each description field in the special effect description information, and based on a feature dimension of the template features of the target special effect template described by each description field, such as the special effect element arrangement features of the special effect template, the interactive logic features of the special effect template, the associated display features, etc., it is packaged to generate a special effect project. Exemplarily, a special effect project is a data packet that contains all or the main information and data required for the operation of the special effect template. Afterwards, the target special effects template can be generated by publishing the special effects project to the platform or loading the special effects project into the application. The specific implementation process of generating the target special effects template based on the special effects project depends on how the target special effects template is loaded in the specific application scenario. I will not go into details here with examples one by one.
[0059] FIG6 is a flow chart of a method for generating a target special effect template provided by an embodiment of the present disclosure. The above embodiment will be described in more detail below in conjunction with FIG6. Referring to FIG6, first, the terminal device receives text input by the user through the interactive interface to obtain the demand information. Then, the description generation model is generated based on the target version information of the special effect tool. Then, the demand information is input into the description generation model to obtain the special effect description information. The special effect description information is input into the special effect engine corresponding to the special effect tool. The special effect engine generates the corresponding special effect project based on the multiple description fields in the special effect description information. Finally, the special effect project is loaded and the corresponding target special effect template is displayed on the terminal device side, thus generating the target special effect template.
[0060] In this embodiment, by receiving demand information input by the user, the demand information is used to describe the target generation requirements of the special effect template based on natural language; based on the demand information, special effect description information is generated, and the special effect description information is used to characterize the template features of the target special effect template that meets the target generation requirements; the special effect description information is processed by a special effect tool to generate a target special effect template. By converting the target generation requirements based on natural language description input by the user into special effect description information, and then processing the special effect description information using the special effect tool, a target special effect template that meets the above-mentioned target generation requirements is generated, thereby achieving the rapid generation of personalized target special effect templates, simplifying the generation steps of special effect templates, and improving the generation efficiency of special effect templates and the degree of diversification of special effect templates.
[0061] Referring to FIG7 , FIG7 is a second flow chart of the special effect template generation method provided by the embodiment of the present disclosure. Based on the embodiment shown in FIG2 , this embodiment further refines step S103 , and the special effect template generation method includes:
[0062] Step S201: receiving demand information input by a user, where the demand information is used to describe target generation requirements of a special effect template based on natural language.
[0063] Step S202: Generate special effect description information according to the demand information. The special effect description information includes a plurality of description fields. The description field corresponds to a feature dimension of the template feature of the target special effect template.
[0064] Step S203: parsing the description field in the special effect description information by a special effect tool to generate a target special effect template.
[0065] For example, after obtaining the special effect description information, the special effect description information is input into the special effect tool, and the special effect tool is used to construct the target special effect template according to the template features described by each description field in the special effect description information. The following is a detailed description of this process in conjunction with the specific implementation of the description fields in the special effect description information.
[0066] In a possible implementation, the special effect description information includes a first description field. As shown in FIG8 , a possible implementation of step S203 includes:
[0067] Step S2031: Process the first description field through a special effect tool to obtain a template layout, where the template layout is used to indicate the position coordinates of the special effect element in the target special effect.
[0068] Step S2032: Generate a target special effect template based on the template layout.
[0069] Exemplarily, the first description field, that is, the information used to describe the arrangement and position of the special effect elements, the field content of the first description field can be a position matrix representing the position of the special effect elements, or it can be an identifier representing the arrangement type of the special effect elements. For example, if the field value of the first description field is identifier #1, it means that the special effect elements are arranged in a circular array along the center point; for example, if the field value of the first description field is identifier #2, it means that the special effect elements are set in the center of the image. Afterwards, based on the information described in the first description field, the corresponding template layout is generated, or the template layout that is closest to it is selected. Among them, the template layout can be layout data that represents the position coordinates in the target special effect, and the special effect tool can realize the positioning of the special effect elements based on the template layout.
[0070] Furthermore, in a possible implementation, the specific implementation steps of step S2032 include:
[0071] Step S2032A: Obtain special effects materials according to the demand information.
[0072] Step S2032B: Based on the template layout, the special effect material is loaded at the position coordinates of the special effect element to generate a target special effect template.
[0073] Exemplarily, first, according to the content of the demand information input by the user, the corresponding special effects material, such as a special effects map, can be obtained, so that the content of the generated target special effects template matches the demand information. For example, the content of the demand information is "Help me generate a science fiction style background special effects template", then correspondingly, the terminal device downloads or generates "science fiction style" special effects material from the server, or based on the AIGC model. Afterwards, based on the template layout, the special effects material is loaded at the placeholder coordinates corresponding to the special effects element, thereby generating the target special effects template. After the target special effects template is triggered, the special effects material can be displayed at the position coordinates of the special effects element in the target special effects generated based on the target special effects template. Through the implementation method provided by the steps of this embodiment, the setting of the special effects element layout in the special effects template can be realized, so that the generated target special effects template can meet the target generation requirements corresponding to the demand information in terms of special effects element arrangement and special effects material dimensions.
[0074] In one possible implementation, the special effect description information includes a second description field, and the second description field is used to characterize the interactive logic features of the target special effect generated based on the target special effect template. Another possible implementation of step S203 includes:
[0075] Step S2033: Process the second description field through a special effect tool to obtain a target interaction component corresponding to the interaction logic feature.
[0076] Step S2034: Generate a target special effect template based on the target interactive component.
[0077] Exemplarily, the interactive logic features in the target special effect, that is, the interactive logic between the special effect elements in the target special effect and the video objects in the target video using the special effect template when the target special effect generated by the special effect template has an interactive function. For example, the visual effect of a target special effect is: "a ball of flame that moves with the hand of a character in the video". In this target special effect, "flame" is the special effect element, "character's hand" is the video object, and "flame moves with the hand" is the interactive logic feature, and the above-mentioned interactive logic feature is represented or described by the second description field. Afterwards, based on the second description field, the special effect tool is used for processing to obtain the interactive component that matches it, that is, the target interactive component, and then the target interactive component is packaged to generate a special effect project and generate a target special effect template.
[0078] Through the implementation method provided in the steps of this embodiment, the setting of the special effect interaction logic in the special effect template can be realized, so that the generated target special effect template can meet the target generation requirements corresponding to the demand information in the interaction logic dimension.
[0079] In one possible implementation, the special effect description information includes a third description field, which is used to characterize the associated display characteristics of the target special effect generated based on the target special effect template and the target video, wherein the target video is the application object of the target special effect template. Exemplarily, another possible implementation of step S203 includes:
[0080] Step S2035: Process the third description field through a special effect tool to obtain a first special effect algorithm for realizing the associated display feature.
[0081] Step S2036: Generate a target special effects template based on the first special effects algorithm.
[0082] Exemplarily, the associated display feature between the target special effect and the target video refers to the display feature with an association between the special effect element in the target special effect and the video object in the target video. More specifically, for example, the associated display feature includes a layer feature, that is, through the associated display feature, the layer where the target video or the video object in the target video is located, as well as the layer where the target special effect or the special effect element in the target special effect is located, can be determined, thereby realizing different video special effects such as "background special effects" (video objects are on the upper layer of special effect elements) and "face-changing special effects" (video objects are on the lower layer of special effect elements). The associated display feature represented by the third description field is processed using a special effect tool to obtain a first special effect algorithm that matches it, such as a separation algorithm, so as to realize the segmentation of video objects or special effect elements during the special effect loading process. Afterwards, the above-mentioned first special effect algorithm is packaged to generate a special effect project, and a target special effect template is generated.
[0083] Through the implementation method provided in the steps of this embodiment, the setting of associated display features in the special effects template can be realized, so that the generated target special effects template can meet the target generation requirements corresponding to the demand information in the layer display and occlusion relationship dimensions between the video object and the special effects element.
[0084] In one possible implementation, the special effect description information includes a fourth description field, which is used to characterize the mapping logic between special effect elements in a target special effect generated based on the target special effect template and a video screen of a target video, wherein the target video is an application object of the target special effect template. Another possible implementation of step S203 includes:
[0085] Step S2037: Processing the fourth description field with a special effect tool to obtain a second special effect algorithm for characterizing the mapping logic;
[0086] Step S2038: Generate a target special effects template based on the second special effects algorithm.
[0087] Exemplarily, the mapping logic between the special effect elements in the target special effect and the video screen of the target video means that the special effect elements in the target special effect can be changed dynamically, and the change of the special effect elements is related to the video screen of the target video. For example, the visual effect of a target special effect is: "a ball of flame that moves with the hand of the character in the video. When the hand of the character in the target video is open, it is a red flame; when the hand of the character in the target video is clenched, it is a blue flame." For the above-mentioned target special effect, when the hand movement of the character in the target video changes, the special effect material, or the display properties of the special effect material, will also change accordingly. This mapping logic is the mapping logic between the special effect elements in the target special effect and the video screen of the target video. The above-mentioned mapping logic is generated or loaded by the fourth description field after the fourth description field is processed based on the special effects tool to implement the above-mentioned mapping logic, that is, the second special effects algorithm.
[0088] Furthermore, in a possible implementation, the second special effects algorithm includes trigger parameters and corresponding mapping parameters, wherein the trigger parameters are used to characterize the image features of the video screen of the target video; and the mapping parameters are used to set the special effects material for implementing the special effects elements, and / or the display properties of the special effects material. Specifically, the second special effects algorithm implements at least one set of mapping logic, wherein each set of mapping logic includes trigger parameters and corresponding mapping parameters. Exemplarily, the mapping logic is represented as {para_1, para_2}, wherein para_1 is the mapping parameter and para_2 is the trigger parameter. The trigger parameters represent the trigger conditions based on the image features, such as "the character's hands are open" and "the character's hands are clenched" in the above example; and the corresponding mapping parameters represent the special effects material or display properties.
[0089] Through the implementation method provided in the steps of this embodiment, it is possible to set the mapping logic between the special effect elements in the target special effect realized by the special effect template and the video screen of the target video, so that the generated target special effect template can meet the target generation requirements corresponding to the demand information in the dynamic mapping function dimension of the special effect elements and the video screen.
[0090] It should be noted that the several possible implementations of step S203 described above may be performed separately to implement step S203, or two or more of them may be performed simultaneously to implement step S203. For example, as shown in FIG9 , the specific implementations of step S203 include:
[0091] Step S203A: Processing the first description field by a special effect tool to obtain a template layout, where the template layout is used to indicate the position coordinates of the special effect element in the target special effect;
[0092] Step S203B: Process the second description field using a special effect tool to obtain a target interaction component corresponding to the interaction logic feature;
[0093] Step S203C: Process the third description field using a special effect tool to obtain a first special effect algorithm for implementing the associated display feature.
[0094] Step S203D: Process the fourth description field using a special effects tool to obtain a second special effects algorithm for characterizing the mapping logic.
[0095] Step S203E: Generate a target special effect template based on the template layout, the target interactive component, at least one of the first special effect algorithm and the second special effect algorithm.
[0096] For example, the specific implementation process of the above steps S203A to S203D has been described in detail in the previous embodiment and will not be repeated here. Afterwards, the special effects engine of the special effects tool parses the above multiple description fields in the special effects description information, obtains the corresponding information, materials, components, and algorithms, and combines them to obtain a special effects project, and then generates a target special effects template on the terminal device side based on the special effects project. In this way, the control of multiple feature dimensions of the target special effects template is achieved, so that the generated target special effects template can meet the target generation requirements indicated by the demand information in all aspects, and improve the generated target special effects target to be more content-rich and personalized.
[0097] In this embodiment, the implementation of step S201-step S202 is the same as the implementation of step S101-step S102 in the embodiment shown in FIG. 2 of the present disclosure, and will not be described in detail here.
[0098] Corresponding to the special effect template generation method of the above embodiment, FIG10 is a structural block diagram of the special effect template generation device provided by the embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Referring to FIG10, the special effect template generation device 3 includes:
[0099] A receiving module 31 is configured to receive demand information input by a user, where the demand information is used to describe target generation requirements of a special effect template based on natural language;
[0100] The processing module 32 is used to generate special effect description information according to the demand information, and the special effect description information is used to characterize the template features of the target special effect template that meets the target generation requirements;
[0101] The generating module 33 is used to process the special effect description information through a special effect tool to generate a target special effect template.
[0102] In one embodiment of the present disclosure, the processing module 32 is specifically used to: generate a first prompt word based on the demand information, the first prompt word including at least one prompt word field, and the prompt word field is used to represent at least one limited dimension of the target generation requirement; generate special effect description information based on the first prompt word and the description generation model.
[0103] In one embodiment of the present disclosure, before generating special effect description information based on the first prompt word and the description generation model, the processing module 32 is also used to: obtain target version information corresponding to the special effect tool, the target version information is used to characterize the tool name and / or tool version of the special effect tool; and obtain the corresponding description generation model based on the target version information, wherein the description generation model is used to generate target special effect description information that is adapted to the target version information.
[0104] In one embodiment of the present disclosure, the special effect description information includes a first description field, which is used to characterize the position arrangement of special effect elements in the target special effect generated based on the target special effect template; the generation module 33 is specifically used to: process the first description field through the special effect tool to obtain the template layout, and the template layout is used to indicate the position coordinates of the special effect elements in the target special effect; based on the template layout, generate the target special effect template.
[0105] In one embodiment of the present disclosure, when the generation module 33 generates a target special effect template based on the template layout, it is specifically used to: obtain special effect materials according to demand information; based on the template layout, load the special effect materials at the position coordinates of the special effect elements to generate the target special effect template.
[0106] In one embodiment of the present disclosure, the special effect description information includes a second description field, which is used to characterize the interactive logic characteristics in the target special effect generated based on the target special effect template; the generation module 33 is specifically used to: process the second description field through the special effect tool to obtain the target interactive component corresponding to the interactive logic characteristics; and generate the target special effect template based on the target interactive component.
[0107] In one embodiment of the present disclosure, the special effect description information includes a third description field, which is used to characterize the associated display characteristics of the target special effect and the target video generated based on the target special effect template, wherein the target video is the application object of the target special effect template; the generation module 33 is specifically used to: process the third description field through the special effect tool to obtain the first special effect algorithm for realizing the associated display characteristics; and generate the target special effect template based on the first special effect algorithm.
[0108] In one embodiment of the present disclosure, the special effect description information includes a fourth description field, which is used to characterize the mapping logic between the special effect elements in the target special effect generated based on the target special effect template and the video screen of the target video, wherein the target video is the application object of the target special effect template; the generation module 33 is specifically used to: process the fourth description field through the special effect tool to obtain a second special effect algorithm for characterizing the mapping logic; and generate the target special effect template based on the second special effect algorithm.
[0109] In one embodiment of the present disclosure, the second special effects algorithm includes trigger parameters and corresponding mapping parameters, wherein the trigger parameters are used to characterize the image characteristics of the video screen of the target video; the mapping parameters are used to set the special effects materials for implementing special effects elements, and / or the display properties of the special effects materials.
[0110] In one embodiment of the present disclosure, the special effect description information includes multiple description fields, and the description field corresponds to a feature dimension of the template feature of the target special effect template; the generation module 33 is specifically used to: send the special effect description information to the special effect engine corresponding to the special effect tool; parse the various description fields in the special effect description information through the special effect engine to generate a special effect project; and generate a target special effect template based on the special effect project.
[0111] The receiving module 31, processing module 32 and generating module 33 are connected in sequence. The special effect template generating device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0112] FIG11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG11 , the electronic device 4 includes:
[0113] A processor 41, and a memory 42 communicatively connected to the processor 41;
[0114] Memory 42 stores computer-executable instructions;
[0115] The processor 41 executes the computer-executable instructions stored in the memory 42 to implement the special effect template generation method in the embodiments shown in Figures 2 to 9.
[0116] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .
[0117] The relevant explanations can be understood by referring to the relevant descriptions and effects corresponding to the steps in the embodiments corresponding to Figures 2 to 9, and no further details will be given here.
[0118] An embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the special effects template generation method provided in any of the embodiments corresponding to Figures 2 to 9 of the present disclosure.
[0119] In order to implement the above embodiment, the present disclosure further provides an electronic device.
[0120] Referring to FIG12 , there is shown a schematic diagram of the structure of an electronic device 900 suitable for implementing an embodiment of the present disclosure. The electronic device 900 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG12 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0121] As shown in FIG12 , the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0122] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG12 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0123] 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 computer-readable medium, and the computer program includes 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 via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0124] 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.
[0125] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0126] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0127] 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 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 a 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., via the Internet using an Internet Service Provider).
[0128] 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.
[0129] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0130] 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.
[0131] 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.
[0132] In a first aspect, according to one or more embodiments of the present disclosure, a method for generating a special effect template is provided, comprising:
[0133] Receive demand information input by a user, where the demand information is used to describe the target generation requirements of the special effects template based on natural language; generate special effects description information based on the demand information, where the special effects description information is used to characterize the template features of the target special effects template that meets the target generation requirements; process the special effects description information through a special effects tool to generate the target special effects template.
[0134] According to one or more embodiments of the present disclosure, generating special effect description information based on the requirement information includes: generating a first prompt word based on the requirement information, the first prompt word including at least one prompt word field, the prompt word field being used to characterize at least one limited dimension of the target generation requirement; generating the special effect description information based on the first prompt word and a description generation model.
[0135] According to one or more embodiments of the present disclosure, before generating the special effect description information based on the first prompt word and the description generation model, it also includes: obtaining the target version information corresponding to the special effect tool, the target version information is used to characterize the tool name and / or tool version of the special effect tool; according to the target version information, obtaining the corresponding description generation model, wherein the description generation model is used to generate target special effect description information adapted to the target version information.
[0136] According to one or more embodiments of the present disclosure, the special effect description information includes a first description field, and the first description field is used to characterize the position arrangement of special effect elements in the target special effect generated based on the target special effect template; processing the special effect description information by a special effect tool to generate the target special effect template includes: processing the first description field by the special effect tool to obtain a template layout, and the template layout is used to indicate the position coordinates of the special effect elements in the target special effect; generating the target special effect template based on the template layout.
[0137] According to one or more embodiments of the present disclosure, generating the target special effects template based on the template layout includes: obtaining special effects materials according to the demand information; and loading the special effects materials at the position coordinates of the special effects elements based on the template layout to generate the target special effects template.
[0138] According to one or more embodiments of the present disclosure, the special effect description information includes a second description field, and the second description field is used to characterize the interactive logic characteristics in the target special effect generated based on the target special effect template; processing the special effect description information by a special effect tool to generate the target special effect template includes: processing the second description field by the special effect tool to obtain the target interactive component corresponding to the interactive logic characteristics; and generating the target special effect template based on the target interactive component.
[0139] According to one or more embodiments of the present disclosure, the special effect description information includes a third description field, and the third description field is used to characterize the associated display characteristics of the target special effect and the target video generated based on the target special effect template, wherein the target video is the application object of the target special effect template; processing the special effect description information by a special effect tool to generate the target special effect template includes: processing the third description field by the special effect tool to obtain a first special effect algorithm for realizing the associated display characteristics; and generating the target special effect template based on the first special effect algorithm.
[0140] According to one or more embodiments of the present disclosure, the special effect description information includes a fourth description field, and the fourth description field is used to characterize the mapping logic between the special effect elements in the target special effect generated based on the target special effect template and the video screen of the target video, wherein the target video is the application object of the target special effect template; processing the special effect description information by a special effect tool to generate the target special effect template includes: processing the fourth description field by the special effect tool to obtain a second special effect algorithm for characterizing the mapping logic; and generating the target special effect template based on the second special effect algorithm.
[0141] According to one or more embodiments of the present disclosure, the second special effects algorithm includes trigger parameters and corresponding mapping parameters, wherein the trigger parameters are used to characterize the image characteristics of the video screen of the target video; the mapping parameters are used to set the special effects material for realizing the special effects element, and / or the display properties of the special effects material.
[0142] According to one or more embodiments of the present disclosure, the special effect description information includes multiple description fields, and the description field corresponds to a feature dimension of the template feature of the target special effect template; processing the special effect description information by a special effect tool to generate the target special effect template includes: sending the special effect description information to a special effect engine corresponding to the special effect tool; parsing each description field in the special effect description information by the special effect engine to generate a special effect project; and generating the target special effect template based on the special effect project.
[0143] In a second aspect, according to one or more embodiments of the present disclosure, a special effect template generation device is provided, comprising:
[0144] A receiving module, configured to receive demand information input by a user, wherein the demand information is used to describe target generation requirements of a special effect template based on a natural language;
[0145] A processing module, configured to generate special effect description information according to the demand information, wherein the special effect description information is used to characterize template features of a target special effect template that meets the target generation requirements;
[0146] A generation module is used to process the special effect description information through a special effect tool to generate the target special effect template.
[0147] According to one or more embodiments of the present disclosure, the processing module is specifically used to: generate a first prompt word based on the demand information, the first prompt word including at least one prompt word field, and the prompt word field is used to represent at least one limited dimension of the target generation requirement; generate the special effect description information based on the first prompt word and the description generation model.
[0148] According to one or more embodiments of the present disclosure, before generating the special effect description information based on the first prompt word and the description generation model, the processing module is also used to: obtain the target version information corresponding to the special effect tool, the target version information is used to characterize the tool name and / or tool version of the special effect tool; and obtain the corresponding description generation model based on the target version information, wherein the description generation model is used to generate target special effect description information adapted to the target version information.
[0149] According to one or more embodiments of the present disclosure, the special effect description information includes a first description field, which is used to characterize the position arrangement of special effect elements in the target special effect generated based on the target special effect template; the generation module is specifically used to: process the first description field through the special effect tool to obtain a template layout, and the template layout is used to indicate the position coordinates of the special effect elements in the target special effect; based on the template layout, generate the target special effect template.
[0150] According to one or more embodiments of the present disclosure, when the generation module generates the target special effects template based on the template layout, it is specifically used to: obtain special effects materials according to the demand information; based on the template layout, load the special effects materials at the position coordinates of the special effects elements to generate the target special effects template.
[0151] According to one or more embodiments of the present disclosure, the special effect description information includes a second description field, which is used to characterize the interactive logic characteristics in the target special effect generated based on the target special effect template; the generation module is specifically used to: process the second description field through the special effect tool to obtain the target interactive component corresponding to the interactive logic characteristics; and generate the target special effect template based on the target interactive component.
[0152] According to one or more embodiments of the present disclosure, the special effect description information includes a third description field, and the third description field is used to characterize the associated display characteristics of the target special effect and the target video generated based on the target special effect template, wherein the target video is the application object of the target special effect template; the generation module is specifically used to: process the third description field through the special effect tool to obtain a first special effect algorithm for realizing the associated display characteristics; and generate the target special effect template based on the first special effect algorithm.
[0153] According to one or more embodiments of the present disclosure, the special effects description information includes a fourth description field, and the fourth description field is used to characterize the mapping logic between the special effects elements in the target special effects generated based on the target special effects template and the video screen of the target video, wherein the target video is the application object of the target special effects template; the generation module is specifically used to: process the fourth description field through the special effects tool to obtain a second special effects algorithm for characterizing the mapping logic; and generate the target special effects template based on the second special effects algorithm.
[0154] According to one or more embodiments of the present disclosure, the second special effects algorithm includes trigger parameters and corresponding mapping parameters, wherein the trigger parameters are used to characterize the image characteristics of the video screen of the target video; the mapping parameters are used to set the special effects material for realizing the special effects element, and / or the display properties of the special effects material.
[0155] According to one or more embodiments of the present disclosure, the special effect description information includes multiple description fields, and the description field corresponds to a feature dimension of the template feature of the target special effect template; the generation module is specifically used to: send the special effect description information to the special effect engine corresponding to the special effect tool; parse the various description fields in the special effect description information by the special effect engine to generate a special effect project; and generate the target special effect template based on the special effect project.
[0156] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0157] The memory stores computer-executable instructions;
[0158] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effect template generation method described in the first aspect and various possible designs of the first aspect.
[0159] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the special effects template generation method described in the first aspect and various possible designs of the first aspect is implemented.
[0160] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the special effects template generation method described in the first aspect and various possible designs of the first aspect.
[0161] 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.
[0162] 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.
[0163] 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 method for generating a special effect template, comprising: Receive demand information input by a user, where the demand information is used to describe target generation requirements of a special effect template based on a natural language; Generate special effect description information according to the demand information, wherein the special effect description information is used to characterize template features of a target special effect template that meets the target generation requirements; The special effect description information is processed by a special effect tool to generate the target special effect template.
2. The method according to claim 1, wherein: The generating special effect description information according to the demand information includes: Generate a first prompt word according to the requirement information, wherein the first prompt word includes at least one prompt word field, and the at least one prompt word field is used to represent at least one limited dimension of the target generation requirement; The special effect description information is generated according to the first prompt word and the description generation model.
3. The method according to claim 2, wherein: Before generating the special effect description information according to the first prompt word and the description generation model, the method further includes: Obtaining target version information corresponding to the special effect tool, wherein the target version information is used to represent a tool name and / or tool version of the special effect tool; According to the target version information, the corresponding description generation model is obtained, wherein the description generation model is used to generate target special effect description information adapted to the target version information.
4. The method according to claim 1, wherein: The special effect description information includes a first description field, and the first description field is used to characterize the position arrangement of special effect elements in the target special effect generated based on the target special effect template; The step of processing the special effect description information by a special effect tool to generate the target special effect template includes: Processing the first description field by the special effect tool to obtain a template layout, where the template layout is used to indicate the position coordinates of the special effect element in the target special effect; Based on the template layout, the target special effect template is generated.
5. The method according to claim 4, wherein: The step of generating the target special effect template based on the template layout includes: Acquire special effect materials according to the demand information; Based on the template layout, the special effect material is loaded at the position coordinates where the special effect element is located to generate the target special effect template.
6. The method according to claim 1, wherein: The special effect description information includes a second description field, where the second description field is used to characterize interactive logic features in a target special effect generated based on the target special effect template; The step of processing the special effect description information by a special effect tool to generate the target special effect template includes: Processing the second description field by the special effect tool to obtain a target interaction component corresponding to the interaction logic feature; Based on the target interaction component, the target special effect template is generated.
7. The method according to claim 1, wherein: The special effect description information includes a third description field, and the third description field is used to characterize the associated display characteristics of the target special effect generated based on the target special effect template and the target video, wherein the target video is the application object of the target special effect template; The step of processing the special effect description information by a special effect tool to generate the target special effect template includes: Processing the third description field by the special effect tool to obtain a first special effect algorithm for realizing the associated display feature; Based on the first special effects algorithm, the target special effects template is generated.
8. The method according to claim 1, wherein: The special effect description information includes a fourth description field, and the fourth description field is used to characterize the mapping logic between the special effect elements in the target special effect generated based on the target special effect template and the video screen of the target video, wherein the target video is the application object of the target special effect template; The step of processing the special effect description information by a special effect tool to generate the target special effect template includes: Processing the fourth description field by the special effect tool to obtain a second special effect algorithm for characterizing the mapping logic; Based on the second special effects algorithm, the target special effects template is generated.
9. The method according to claim 8, wherein: The second special effect algorithm includes trigger parameters and corresponding mapping parameters, wherein the trigger parameters are used to characterize the image features of the video screen of the target video; the mapping parameters are used to set the special effect materials for implementing the special effect elements, and / or the display properties of the special effect materials.
10. The method according to claim 1, wherein: The special effect description information includes a plurality of description fields, each of the plurality of description fields corresponds to a feature dimension of a template feature of the target special effect template; The step of processing the special effect description information by a special effect tool to generate the target special effect template includes: Sending the special effect description information to a special effect engine corresponding to the special effect tool; Parsing each of the plurality of description fields in the special effect description information by the special effect engine to generate a special effect project; Based on the special effects project, the target special effects template is generated.
11. A special effect template generating device, comprising: A receiving module is configured to receive demand information input by a user, wherein the demand information is used to describe target generation requirements of a special effect template based on a natural language; A processing module is configured to generate special effect description information according to the requirement information, wherein the special effect description information is used to characterize template features of a target special effect template that meets the target generation requirement; The generation module is configured to process the special effect description information through a special effect tool to generate the target special effect template.
12. An electronic device comprising a processor and a memory, in, The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the special effect template generation method according to any one of claims 1 to 10.
13. A computer-readable storage medium storing computer-executable instructions, wherein: When the processor executes the computer-executable instruction, the special effect template generation method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Special effect template generation method and device, electronic equipment and storage medium
CN119946211A
Method and electronic equipment for loading effects in instant video
CN104780459A
Special effect engine, interactive special effect generation method using same and user interaction method
CN113157175A
Special effect making method and device, equipment and storage medium
CN116980705A
Image processing method and device
US20160350955A1