Special effect template generation method and device, electronic equipment and storage medium
By receiving user demand information and generating special effect description information, and using special effect tools to process and generate target special effect templates, the problem of fixed styles and limited types of special effect templates in the existing technology is solved, and personalized, fast and efficient special effect template generation is achieved.
Patent Information
- Application Number
- CN202311444526.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the special effect templates provided by video editing software and platforms have problems such as fixed styles and limited types, which affect the application effect of the special effect templates in videos.
By receiving the demand information input by the user, special effect description information is generated, and the information is processed using the special effect tool to generate the target special effect template. This method allows users to realize personalized special effect template generation based on the target generation requirements of the special effect template based on natural language.
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 CN119946211A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of artificial intelligence technology, and in particular to a special effect template generation method, device, electronic device and storage medium. Background Art
[0002] 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 in the video, the purpose of improving the visual expressiveness of the video is achieved.
[0003] However, in the prior art, the special effects templates are manually edited and preset in advance in the platform or application, and have problems such as fixed styles and limited types, which affect the application effect of the special effects templates in the video. Summary of the invention
[0004] The embodiments of the present disclosure provide a special effect template generation method, device, electronic device and storage medium to overcome the problem that video templates have fixed styles and limited types.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for generating a special effect template, comprising:
[0006] 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 natural language; generate special effect description information based on 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; and process the special effect description information through a special effect tool to generate the target special effect template.
[0007] In a second aspect, an embodiment of the present disclosure provides a special effect template generation device, comprising:
[0008] A receiving module, used 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;
[0009] A processing module, used 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;
[0010] A generation module is used to process the special effect description information through a special effect tool to generate the target special effect template.
[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0012] The memory stores computer-executable instructions;
[0013] 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.
[0014] 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.
[0015] 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.
[0016] The special effects template generation method, device, electronic device and storage medium provided in this embodiment receive demand information input by a user, 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, the special effects description information is used to characterize the template features of the target special effects template that meets the target generation requirements; and process the special effects description information through a special effects tool to generate the target special effects template. By converting the target generation requirements based on natural language description input by the user into special effects description information, and then processing the special effects description information using a special effects tool, a target special effects template that meets the above target generation requirements is generated, thereby realizing the rapid generation of personalized target special effects templates, simplifying the generation steps of special effects templates, and improving the generation efficiency of special effects templates and the degree of diversification of special effects templates. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.
[0018] Figure 1 An application scenario diagram of the special effect template generation method provided in the embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of a process for generating a special effect template provided in an embodiment of the present disclosure Figure 1 ;
[0020] Figure 3 A schematic diagram of an interaction for a user to input demand information provided by an embodiment of the present disclosure;
[0021] Figure 4 for Figure 2 A flowchart of a specific implementation method of step S102 in the illustrated embodiment;
[0022] Figure 5 for Figure 2 A flowchart of a specific implementation method of step S103 in the illustrated embodiment;
[0023] Figure 6 A flow chart of generating a target special effect template provided by an embodiment of the present disclosure;
[0024] Figure 7 A schematic diagram of a process for generating a special effect template provided in an embodiment of the present disclosure Figure 2 ;
[0025] Figure 8 for Figure 7 A flowchart of a specific implementation method of step S203 in the illustrated embodiment;
[0026] Fig. 9 for Figure 7 A flowchart of another specific implementation of step S203 in the illustrated embodiment;
[0027] Fig.10 A structural block diagram of a special effect template generation device provided in an embodiment of the present disclosure;
[0028] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0029] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0031] 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.
[0032] The application scenarios of the embodiments of the present disclosure are explained below:
[0033] Figure 1 An application scenario diagram of the special effect template generation method provided in the embodiment of the present disclosure. The special effect template generation method provided in the embodiment of the present disclosure can be applied to applications with special effect generation functions. More specifically, it can be applied to application scenarios for making special effect templates and adding video special effects to videos. The execution subject of this embodiment can be a terminal device running the above-mentioned application with 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. Figure 1 As shown in , taking a terminal device as an example, the terminal device is, for example, a smart phone. The terminal device shoots the user through a camera unit and displays the user's selfie video (preview video) in a viewfinder interface; thereafter, in response to the user's operation, the target special effect template is loaded, so that the corresponding special effects are displayed in the above selfie video, such as the virtual "glasses" shown in the figure, thereby realizing the application scenario of adding video special effects to the video.
[0034] In the prior art, in the process of adding special effects to videos, the special effects templates provided in the platform or application are usually used. Users can select one or more of the preset special effects templates provided in the platform or application and apply them to the video, thereby adding special effects to the video. However, since the special effects templates are pre-generated, there are problems such as fixed styles and limited types, which often result in users being unable to obtain target special effects that match the video content or that the user is interested in, thereby affecting the application effect of the special effects templates in the video.
[0035] The disclosed embodiment provides a special effect template generation method to solve the above-mentioned problem.
[0036] refer to Figure 2 , Figure 2 A schematic diagram of a process for generating a special effect template provided in an embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a terminal device, and the special effect template generation method includes:
[0037] 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.
[0038] For example, reference Figure 1 As shown in the schematic diagram of the application scenario, in this embodiment, before the terminal device selects the target special effect template, it can generate the required personalized special effect template in real time through the demand information input by the user. Specifically, in a 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 voices 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 effect based on natural language. Exemplarily, the demand information can be a piece of text, and its corresponding text content is "Help me generate a science fiction style background special effect template."
[0039] Figure 3 This is a schematic diagram of an interaction for a user to input demand information provided by an embodiment of the present disclosure. Figure 3 The above step S101 is introduced. Figure 3 As shown, 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 set. In response to the user's click operation on the "Generate Template" control, the 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). After that, 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 input text and generates demand information; or directly uses the input text obtained after the above recognition as demand information to execute subsequent steps.
[0040] Step S102: Generate special effect description information according to the demand information, where the special effect description information is used to characterize template features of a target special effect template that meets the target generation requirements.
[0041] 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, the 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 feature 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 using the features under the corresponding feature dimensions respectively represented by the field values of multiple description fields. On the other hand, after being processed, the demand information can also characterize one or more limited dimensions corresponding to the target generation requirements, and can be mapped to the corresponding feature dimensions through the above-mentioned limited dimensions, thereby realizing the conversion of demand information to special effects description information.
[0042] In one possible implementation, Figure 4 As shown, the specific implementation of step S102 includes:
[0043] Step S1021: Generate a first prompt word according to the demand information, the first prompt word includes 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.
[0044] Step S1022: Generate special effect description information based on the first prompt word and the description generation model.
[0045] Exemplarily, first, the terminal device generates a first prompt word corresponding to 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 repeated here, and can be set according to the specific implementation of the subsequent description generation model using the first prompt word.
[0046] 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 matching the special effect tool used subsequently can be generated. For example, when the special effect tool is tool_A, the description generation model retrieved 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 retrieved 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.
[0047] Furthermore, in a possible implementation, before step S1022, the method further includes:
[0048] Step S1020: Obtain the target version information corresponding to the special effect tool, and obtain the corresponding description generation model according to the target version information.
[0049] 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 compatible with the target version information.
[0050] Exemplarily, before using the 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 uses the special effect description information later, 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, so as to specifically call 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 description generation models to be selected, and the terminal device determines a target description generation model that matches it from multiple description generation models to be selected according to the target version information, and then processes the first prompt word based on the target description generation model to obtain the target special effect description information.
[0051] Step S103: Process the special effect description information through a special effect tool to generate a target special effect template.
[0052] Exemplarily, after obtaining the special effect description information, the special effect description information is loaded through 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 correspondingly generated. Further, 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 realize the above special effect elements. Furthermore, the special effect tool can generate the target special effect template by packaging and compiling the above template layout and special effect materials.
[0053] In a possible implementation, the special effect description information includes multiple description fields, such as Figure 5 As shown, the specific implementation of step S103 includes:
[0054] Step S1031: Send the special effect description information to the special effect engine corresponding to the special effect tool.
[0055] Step S1032: parse each description field in the special effect description information through the special effect engine to generate a special effect project.
[0056] Step S1033: Generate a target special effects template based on the special effects project.
[0057] 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, and 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 the loading method of the target special effects template in the specific application scenario, and will not be repeated here with examples one by one.
[0058] Figure 6A flowchart of generating a target special effect template is provided in the embodiment of the present disclosure. Figure 6 For a more detailed description of the above embodiments, refer to Figure 6 As shown, first, the terminal device receives the text input by the user through the interactive interface to obtain the demand information. Then, the description generation model is generated through 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, and 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 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, that is, the target special effect template is generated.
[0059] In this embodiment, by receiving the 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; special effect description information is generated 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; the special effect description information is processed by the special effect tool to generate the target special effect template. By converting the target generation requirements based on the natural language description input by the user into special effect description information, and then using the special effect tool to process the special effect description information, a target special effect template that meets the above target generation requirements is generated, thereby realizing 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 diversification of special effect templates.
[0060] refer to Figure 7 , Figure 7 A schematic diagram of a process for generating a special effect template provided in an embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the embodiment shown, step S103 is further refined, and the special effect template generation method includes:
[0061] 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.
[0062] Step S202: Generate special effect description information according to the demand information, the special effect description information includes a plurality of description fields, and the description field corresponds to a feature dimension of the template feature of the target special effect template.
[0063] Step S203: parsing the description field in the special effect description information through a special effect tool to generate a target special effect template.
[0064] Exemplarily, 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 introduction to this process in conjunction with the specific implementation of the description field in the special effect description information.
[0065] In a possible implementation, the special effect description information includes a first description field, such as Figure 8 As shown, a possible implementation of step S203 includes:
[0066] 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.
[0067] Step S2032: Generate a target special effect template based on the template layout.
[0068] Exemplarily, the first description field is 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 that characterizes the position of the special effect elements, or can be an identifier that characterizes 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, a corresponding template layout is generated, or a template layout that is closest to it is selected. Among them, the template layout can be layout data that characterizes 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. The specific principle is the existing technology and will not be repeated here.
[0069] Furthermore, in a possible implementation manner, the specific implementation steps of step S2032 include:
[0070] Step S2032A: Obtain special effect materials according to demand information.
[0071] Step S2032B: Based on the template layout, the special effect material is loaded at the position coordinates where the special effect element is located to generate a target special effect template.
[0072] 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 materials 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 a 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.
[0073] In a possible implementation, 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. Another possible implementation of step S203 includes:
[0074] Step S2033: Process the second description field through a special effect tool to obtain a target interaction component corresponding to the interaction logic feature.
[0075] Step S2034: Generate a target special effect template based on the target interactive component.
[0076] Exemplarily, the interactive logic feature 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 fire that moves with the hand of a character in the video". In the 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.
[0077] 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.
[0078] In a possible implementation, 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; illustratively, another possible implementation of step S203 includes:
[0079] 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.
[0080] Step S2036: Generate a target special effects template based on the first special effects algorithm.
[0081] Exemplarily, the associated display feature of the target special effect and the target video refers to the display feature with the 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, and the layer where the target special effect or the special effect element in the target special effect is located can be determined, so as to achieve different video special effects such as "background special effects" (video objects are in the upper layer of special effect elements) and "face-changing special effects" (video objects are in 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 achieve 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.
[0082] 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.
[0083] In a possible implementation, 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; another possible implementation of step S203 includes:
[0084] Step S2037: Processing the fourth description field by a special effect tool to obtain a second special effect algorithm for characterizing the mapping logic;
[0085] Step S2038: Generate a target special effects template based on the second special effects algorithm.
[0086] 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 hands of the character in the video. When the hands of the character in the target video are open, it is a red flame; when the hands of the character in the target video are clenched, it is a blue flame." For the above-mentioned target special effect, when the hand movements of the characters in the target video change, the special effect material, or the display properties of the special effect material, will 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 composed of the fourth description field. After the fourth description field is processed based on the special effects tool, an algorithm for implementing the above-mentioned mapping logic, i.e., the second special effects algorithm, is generated or loaded.
[0087] 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 element, and / or the display properties of the special effects material. Specifically, the second special effects algorithm implements at least one set of mapping logics, wherein each set of mapping logics includes trigger parameters and corresponding mapping parameters. Exemplarily, the mapping logic is represented as {para_1, para_2}, wherein para_1 is a mapping parameter and para_2 is a trigger parameter. The trigger parameters characterize 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 examples; and the corresponding mapping parameters characterize the special effects material or display properties.
[0088] 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.
[0089] It should be noted that the several possible implementations of step S203 can be performed separately to implement step S203, or two or more of them can be performed simultaneously to implement step S203. For example, Fig. 9 As shown, the specific implementation of step S203 includes:
[0090] Step S203A: Processing 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;
[0091] Step S203B: Process the second description field by using a special effect tool to obtain a target interaction component corresponding to the interaction logic feature;
[0092] Step S203C: Process the third description field through a special effect tool to obtain a first special effect algorithm for realizing the associated display feature.
[0093] Step S203D: Process the fourth description field through a special effect tool to obtain a second special effect algorithm for characterizing the mapping logic.
[0094] Step S203E: Generate a target special effect template based on the template layout, the target interactive component, and at least one of the first special effect algorithm and the second special effect algorithm.
[0095] Exemplarily, the specific implementation process of the above steps S203A-S203D has been described in detail in the previous embodiments 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 respectively, and 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. Thereby, 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.
[0096] In this embodiment, the implementation method of step S201-step S202 is the same as that of the present disclosure. Figure 2 The implementation methods of step S101 and step S102 in the illustrated embodiment are the same and will not be described in detail here.
[0097] Corresponding to the special effect template generation method of the above embodiment, Fig.10 This is a structural block diagram of a special effect template generation device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Fig.10 , the special effect template generating device 3 comprises:
[0098] A receiving module 31 is used 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 a natural language;
[0099] 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;
[0100] 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.
[0101] In one embodiment of the present disclosure, the processing module 32 is specifically used to: generate a first prompt word according to the demand information, the first prompt word includes at least one prompt word field, and the prompt word field is used to characterize at least one limited dimension of the target generation requirement; generate special effect description information according to the first prompt word and the description generation model.
[0102] 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.
[0103] 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 a 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.
[0104] 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.
[0105] 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; based on the target interactive component, generate the target special effect template.
[0106] 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 a special effect tool to obtain a first special effect algorithm for realizing the associated display characteristics; and generate a target special effect template based on the first special effect algorithm.
[0107] 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.
[0108] 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 features of the video screen of the target video; the mapping parameters are used to set the special effects materials for implementing the special effects elements, and / or the display properties of the special effects materials.
[0109] 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 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.
[0110] The receiving module 31, the processing module 32 and the 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.
[0111] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.11 As shown, the electronic device 4 includes:
[0112] A processor 41, and a memory 42 communicatively connected to the processor 41;
[0113] The memory 42 stores computer executable instructions;
[0114] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 9 The special effect template generation method in the illustrated embodiment.
[0115] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .
[0116] For related instructions, please refer to Figure 2-Figure 9 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.
[0117] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 9 A special effects template generation method provided in any one of the corresponding embodiments.
[0118] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.
[0119] refer to Fig.12 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and 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, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0120] like Fig.12 As shown, 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 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. 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.
[0121] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0122] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a 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 executed.
[0123] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.
[0124] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0125] 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.
[0126] 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 an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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).
[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0129] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0130] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may 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.
[0131] 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:
[0132] 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 natural language; generate special effect description information based on 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; and process the special effect description information through a special effect tool to generate the target special effect template.
[0133] According to one or more embodiments of the present disclosure, generating special effect description information according to the requirement information includes: generating a first prompt word according to 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 according to the first prompt word and a description generation model.
[0134] According to one or more embodiments of the present disclosure, before generating the special effect description information according to the first prompt word and the description generation model, it also includes: obtaining 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.
[0135] 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; the processing of 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; based on the template layout, generating the target special effect template.
[0136] According to one or more embodiments of the present disclosure, generating the target special effect template based on the template layout includes: acquiring special effect materials according to the demand information; and loading the special effect materials at the position coordinates of the special effect elements based on the template layout to generate the target special effect template.
[0137] 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; the processing of 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.
[0138] 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.
[0139] 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; generating the target special effect template based on the second special effect algorithm.
[0140] 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 image features of the video screen of the target video; the mapping parameters are used to set special effects materials for implementing the special effects elements, and / or display properties of the special effects materials.
[0141] 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 special effect description information is processed by a special effect tool to generate the target special effect template, including: 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 effects engine to generate a special effect project; and generating the target special effect template based on the special effects project.
[0142] In a second aspect, according to one or more embodiments of the present disclosure, a special effect template generation device is provided, comprising:
[0143] A receiving module, used 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;
[0144] A processing module, used 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;
[0145] A generation module is used to process the special effect description information through a special effect tool to generate the target special effect template.
[0146] According to one or more embodiments of the present disclosure, the processing module is specifically used to: generate a first prompt word according to the demand information, the first prompt word including at least one prompt word field, and the prompt word field is used to characterize at least one limited dimension of the target generation requirement; generate the special effect description information according to the first prompt word and the description generation model.
[0147] According to one or more embodiments of the present disclosure, before generating the special effect description information according to the first prompt word and the description generation model, the processing module 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 according to the target version information, wherein the description generation model is used to generate target special effect description information adapted to the target version information.
[0148] 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; 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.
[0149] According to one or more embodiments of the present disclosure, when the generation module generates the target special effect template based on the template layout, it is specifically used to: obtain special effect materials according to the 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.
[0150] 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; 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; based on the target interactive component, generate the target special effect template.
[0151] 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.
[0152] 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; the generation module 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.
[0153] 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 image features of the video screen of the target video; the mapping parameters are used to set special effects materials for implementing the special effects elements, and / or display properties of the special effects materials.
[0154] 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 description fields in the special effect description information by the special effects engine to generate a special effect project; and generate the target special effect template based on the special effects project.
[0155] 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;
[0156] The memory stores computer-executable instructions;
[0157] 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.
[0158] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. 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.
[0159] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, 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.
[0160] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0161] 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 are 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.
[0162] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for generating a special effect template, characterized in that: include: 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, characterized in that: 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 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, characterized in that 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, where 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, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that The second special effect 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 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, characterized in that The special effect description information includes a plurality of description fields, each of which corresponds to a feature dimension of a 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; The special effect engine parses each description field in the special effect description information to generate a special effect project; Based on the special effects project, the target special effects template is generated.
11. A special effect template generation device, characterized in that: include: A receiving module, used 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, used 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; A generation module is used to process the special effect description information through a special effect tool to generate the target special effect template.
12. An electronic device, characterized in that: include: Processor and memory; 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, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the special effect template generation method according to any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Special effect template file generation method and device, special effect template file application method and device, equipment and medium
CN117252955A
Method and device for generating special effect template file, application method, device, equipment and medium
CN117252955B
Video generation model training method and device, electronic equipment and storage medium
CN120358394A
Special effect template generation method and apparatus, electronic device, and storage medium
EP4804514A1
Special effect template generation method and apparatus, electronic device, and storage medium
WO2025092871A1