An image special effect processing method, device, equipment and medium
By generating different types of sub-images in the main image and obtaining processing commands through the operation nodes of the main image and sub-images, the problem of limited image effects processing methods is solved, and diversified image effects display and improved user creation experience are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2021-12-30
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, the number of special effects operation nodes for the main image is limited, resulting in a single method for image special effects processing and an inability to generate different types of sub-images.
By generating child container nodes connected to the main container node associated with the main graph, subgraphs are generated based on different graph types. Image effect processing commands are obtained through the operation nodes of the main graph and subgraphs, enabling diverse image effect processing.
It enriches the diversity of image effects processing, improves the display effect of image effects, and enhances the user's creative experience.
Smart Images

Figure CN116416120B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing technology, and in particular to an image special effects processing method, apparatus, device and medium. Background Technology
[0002] With the rapid development of internet technology and smart terminals, a large number of image effects can be provided to users to process images.
[0003] In related technologies, generating sub-images reduces the number of special effects operation nodes in the main image and improves rendering quality. However, although sub-images can be created in the main image, if the main image is a script type, then the created sub-image can only be a script type, resulting in a relatively simple image special effects processing method. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides an image special effects processing method, apparatus, device and medium.
[0005] This disclosure provides an image special effects processing method, the method comprising:
[0006] In response to a first generation request for a first target node in the main graph, a first child container node connected to the main container node associated with the main graph is generated; wherein, the first generation request includes a first graph type corresponding to the first target node;
[0007] A first subgraph is generated based on the first graph type and associated with the first sub-container node; wherein, the first subgraph includes at least one first operation node;
[0008] Based on the main operation node of the main image and the first operation node of the first sub-image, obtain image effect processing commands;
[0009] The target image is processed and displayed based on the image effects processing commands.
[0010] This disclosure also provides an image special effects processing apparatus, the apparatus comprising:
[0011] The response generation module is used to generate a first sub-container node connected to the main container node associated with the main graph in response to a first generation request for a first target node in the main graph; wherein, the first generation request includes a first graph type corresponding to the first target node;
[0012] A subgraph generation module is used to generate a first subgraph associated with the first sub-container node based on the first graph type; wherein the first subgraph includes at least one first operation node;
[0013] The instruction acquisition module is used to acquire image effect processing commands based on the main operation node of the main image and the first operation node of the first sub-image.
[0014] The processing and display module is used to process and display the target image based on the image effects processing command.
[0015] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the image effects processing method provided in this disclosure.
[0016] This disclosure also provides a computer-readable storage medium storing a computer program for performing the image effects processing method provided in this disclosure.
[0017] Compared with the prior art, the technical solution provided in this disclosure has the following advantages: The image effects processing solution provided in this disclosure, in response to a first generation request for a first target node in the main image, generates a first sub-container node connected to the main container node associated with the main image; wherein, the first generation request includes a first image type corresponding to the first target node, and a first sub-image associated with the first sub-container node is generated based on the first image type, wherein the first sub-image includes at least one first operation node; based on the main operation node of the main image and the first operation node of the first sub-image, an image effects processing command is obtained; and the target image is processed and displayed based on the image effects processing command. By adopting the above technical solution, different types of sub-images can be generated based on the target node in the main image during the image effects processing process, thereby enriching the diversity of image effects processing, allowing users to create richer images, and further improving the image effects display effect in image effects processing scenarios. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 A flowchart illustrating an image special effects processing method provided in this embodiment of the disclosure;
[0020] Figure 2 A schematic flowchart illustrating another image effects processing method provided in this embodiment of the disclosure;
[0021] Figure 3aA schematic diagram of an image effects processing interface provided in an embodiment of this disclosure;
[0022] Figure 3b A schematic diagram of another image effects processing interface provided in an embodiment of this disclosure;
[0023] Figure 3c A schematic diagram of yet another image effects processing interface provided in this disclosure embodiment; Figure 4a This is a schematic diagram of a container node connection provided in an embodiment of the present disclosure;
[0024] Figure 4b This is a schematic diagram of another container node connection provided in an embodiment of the present disclosure;
[0025] Figure 4c This is a schematic diagram of yet another container node connection provided in an embodiment of the present disclosure;
[0026] Figure 4d A schematic diagram of another container node connection provided in this disclosure embodiment;
[0027] Figure 5 This is a schematic diagram of the structure of an image special effects processing device provided in an embodiment of the present disclosure;
[0028] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0029] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0030] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0031] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0032] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0033] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0034] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0035] Figure 1 This is a flowchart illustrating an image effects processing method provided in an embodiment of this disclosure. The method can be executed by an image effects processing device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method includes:
[0036] Step 101: In response to the first generation request for the first target node in the main graph, generate a first child container node connected to the main container node associated with the main graph; wherein, the first generation request includes the first graph type corresponding to the first target node.
[0037] In a typical image effects processing workflow, there is only one main image and one main container node associated with the main image. The main image refers to a graph structure that includes at least one main operation node. Typically, when image editing software is opened, the system creates a main container node and a main image by default and associates the main container node with the main image. Specifically, the main image identifier corresponding to the main image is stored in the attribute information of the main container node; the main image identifier can uniquely identify a main image.
[0038] In this context, the first target node can be understood as the operation node displayed in the main graph. In this embodiment, the first graph type can be understood as the graph type corresponding to the first target node, such as a script graph, audio graph, shading graph, and material graph, etc. The graph type corresponding to the first target node in the main graph is different from the graph type corresponding to the main graph. A container node refers to a container component that constructs the graph structure as a node. In this embodiment, for data structures with hierarchical relationships between container nodes, an inverted tree is commonly used to represent the logical relationship. The main container node is the topmost node of the tree, and the first container node refers to the child node connected to the main container node. The main container node can connect to one or more first container nodes.
[0039] In this embodiment of the disclosure, in response to a first generation request for a first target node in the main image, generating a first sub-container node connected to the main container node includes: generating a first generation request based on a user's triggering operation on the first target node displayed in the main image of the image effects processing page, and generating a first sub-container node connected to the main container node in response to the first generation request. The image effects processing page refers to a page used for performing effects processing on the target image.
[0040] Specifically, during the image effects processing, the system can detect user actions on the image effects processing page. When user actions such as clicking or hovering on the first target node are detected, the system responds to the first generation request for the first target node in the main image and generates the first child container node connected to the main container node.
[0041] Step 102: Generate a first subgraph associated with the first sub-container node based on the first graph type; wherein the first subgraph includes at least one first operation node.
[0042] Here, the first subgraph refers to a graph structure that includes at least one first operation node. In some implementations, the first operation node corresponding to the first graph type is obtained, the first subgraph is generated based on the first operation node, and the first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node. The operation node refers to the control node that determines the special effect corresponding to the graph. The first operation node refers to the control node that determines the special effect corresponding to the first subgraph. The subgraph generated by combining at least one first operation node can achieve a special effect, such as controlling the opening of the mouth of the target object in the target image.
[0043] In this embodiment of the disclosure, after the first child container node connected to the main container node is generated, a first subgraph associated with the first child container node can be generated based on the first graph type.
[0044] Step 103: Based on the main operation node of the main image and the first operation node of the first sub-image, obtain the image effect processing command.
[0045] Step 104: Process and display the target image based on image effects processing commands.
[0046] In this embodiment of the disclosure, a first child container node connected to the main container node is generated, representing the connection relationship between the main container node and the first child container node, thereby representing the connection relationship between the main graph and the first subgraph. The main graph includes one or more main operation nodes and the connection relationship between the main operation nodes. Similarly, the first subgraph includes one or more first operation nodes and the connection relationship between the first operation nodes. Thus, based on the main operation nodes of the main graph and the first operation nodes of the first subgraph, image effect processing commands are obtained.
[0047] The target image can be a captured image or an image frame from a video, such as a video scene. Any image frame in the video can be used as the target image. Specifically, after obtaining the image effects processing command, the target image can be processed and displayed based on the image effects processing command, so that users can watch the special effects display effect corresponding to the video while watching the video.
[0048] It should be noted that there can be multiple first sub-images. When generating image effect operation instructions, the execution order of the image effect operation instructions can be determined according to the creation time of the first sub-image.
[0049] The image effects processing scheme provided in this disclosure, in response to a first generation request for a first target node in a main image, generates a first sub-container node connected to a main container node associated with the main image. The first generation request includes a first image type corresponding to the first target node. Based on the first image type, a first sub-image associated with the first sub-container node is generated. The first sub-image includes at least one first operation node. Based on the main operation node of the main image and the first operation node of the first sub-image, an image effects processing command is obtained. The target image is then processed and displayed based on the image effects processing command. By employing this technical solution, different types of sub-images can be generated based on the target node in the main image during image effects processing, thereby enriching the diversity of image effects processing, allowing users to create richer images, and further improving the image effects display effect in image effects processing scenarios.
[0050] In some embodiments, a creation request including a first graph type is received, a target container node connected to the main container node is generated, a target subgraph including a first target node is generated based on the first graph type, wherein the first target node is an empty operation node, a connection is established between the target node and any main operation node in the main graph, and the target graph identifier corresponding to the target subgraph is stored in the attribute information of the target sub-container node.
[0051] In this embodiment of the disclosure, in order to ensure that a subgraph of a different type from the main graph can be generated, a first target node of a different graph type than the main graph needs to be created in the main graph and displayed in the main graph. Specifically, a creation request is sent based on the user's trigger operation on the image effects processing page, and in response to the creation request, a target container node connected to the main container node is generated.
[0052] Here, the target container node refers to the child node connected to the main container node. The first graph type can be understood as the graph type corresponding to the first target node, such as a script graph, audio graph, shading graph, and material graph, etc.
[0053] In this embodiment of the disclosure, the first target node is an empty node, that is, a control node without a definite special effect. A target subgraph including the first target node is generated, and a connection is established between the first target node and any main operation node in the main graph. The target graph identifier corresponding to the target subgraph is stored in the attribute information of the target sub-container node, thereby realizing the display of the first target node in the main graph and realizing the generation of different types of subgraphs based on the trigger of the first target node.
[0054] In the above scheme, a first target node of a different type is generated in the main image. This allows for the generation of different types of sub-images based on the first target node during the image effects processing, making the image effects processing more flexible, further improving the effect of image effects display, and thus enhancing the user experience.
[0055] It should be noted that when image editing software is opened, the system typically creates a main container node and a main image by default. The main operation nodes included in the main image can be updated according to the application's needs. Therefore, when an update request for a main operation node in the main image is received, such as when the update request is to add a main operation node, the system can obtain the main operation node to be added and the target main operation node, and add the main operation node to be added after the target operation node. Or, if the update request is to replace a main operation node, the system can obtain the main operation node to be replaced and the target main operation node, and replace the main operation node to be replaced with the target main operation node, and so on.
[0056] This further enriches the image effects processing commands, enabling richer image creation and enhancing the image effects display effect in image effects processing scenarios.
[0057] In some embodiments, the image effects processing method may further include: generating a second sub-container node connected to the first container node in response to a second generation request for a second target node in a first sub-graph; wherein the second generation request includes a second graph type corresponding to the second target node; generating a second sub-graph associated with the second sub-container node based on the second graph type; wherein the second sub-graph includes at least one second operation node; and obtaining an image effects processing command based on the main operation node of the main graph and the first operation node of the first sub-graph, including: obtaining the image effects processing command based on the main operation node of the main graph, the first operation node of the first sub-graph, and the second operation node of the second sub-graph.
[0058] In this embodiment of the disclosure, the main container node may be connected to one or more first container nodes, and the first child container node may also be connected to one or more second child container nodes, wherein the second container node refers to the child node connected to the first container node.
[0059] In this context, the second target node in the first subgraph can be understood as the operation node displayed in the first subgraph. In this embodiment, the second graph type can be understood as the graph type corresponding to the second target node, such as a script graph, audio graph, or shading graph, etc. The graph type corresponding to the second target node in the first subgraph is different from the graph type corresponding to the first subgraph.
[0060] In this embodiment of the disclosure, in response to a second generation request for a second target node in the first sub-graph, generating a second sub-container node connected to the first container node includes: generating a second generation request based on a user's triggering operation on the second target node displayed in the first sub-graph of the image effects processing page, and generating a second sub-container node connected to the first container node in response to the second generation request.
[0061] It should be noted that the method for generating the second target node in the first subgraph is the same as the method for generating the first target node in the main graph. Please refer to the detailed description of the first target node in the main graph above, which will not be repeated here.
[0062] In this embodiment of the disclosure, after a second sub-container node connected to the first container node is generated, a second sub-graph associated with the second sub-container node can be generated based on the second graph type. The second sub-graph refers to a graph structure that includes at least one operation node. In some implementations, the second operation node corresponding to the second graph type is obtained, the second sub-graph is generated based on the second operation node, and the second graph identifier corresponding to the second sub-graph is stored in the attribute information of the second sub-container node.
[0063] In this embodiment, the connection relationship between the main container node and the first child container node represents the connection relationship between the main graph and the first subgraph, and the connection relationship between the first container node and the second child container node represents the connection relationship between the first subgraph and the second subgraph. The main graph includes at least one main operation node and the connection relationships between the main operation nodes. Similarly, the first subgraph includes at least one first operation node and the connection relationships between the first operation nodes, and the second subgraph includes at least one second operation node and the connection relationships between the second operation nodes. Therefore, image effect processing commands are obtained based on the main operation node of the main graph, the first operation node of the first subgraph, and the second operation node of the second subgraph.
[0064] Specifically, after obtaining the image effects processing command, the target image can be processed and displayed based on the image effects processing command.
[0065] In the above scheme, a second target node of a different type is displayed in the first sub-graph. This enables the generation of different types of sub-graphs based on the second target node in the first sub-graph during the image effects processing, further improving the effect of image effects display and thus enhancing the user experience.
[0066] In some embodiments, at least one first operation node corresponding to the first graph type and the connection relationship between the first operation nodes are obtained. Based on the connection relationship between at least one first operation node and the first operation node, a first subgraph is generated, and the first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node.
[0067] Here, an operation node refers to the control node that determines the special effect corresponding to the sub-image, and a first operation node refers to the control node that determines the special effect corresponding to the first sub-image. A sub-image generated by combining at least one first operation node can achieve a special effect, such as controlling the mouth opening of a target object in the target image. Different image types correspond to different operation nodes. Obtain at least one first operation node corresponding to the first image type and the connection relationship between the first operation nodes. For example, if the first image type is a script image, obtain the first operation nodes, such as A, B, and C, and the connection relationship between the operation nodes, such as A connecting to B and B connecting to C, thereby generating a first sub-image where the first operation node A is connected to the first operation node B and the first operation node B is connected to the first operation node C.
[0068] In this embodiment of the disclosure, the first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node, thereby enabling the acquisition of the connection relationship between the corresponding graphs based on the connection relationship between the container nodes.
[0069] The above solution can generate subgraphs that include different operation nodes, which further improves the effect of image special effects display and thus enhances the user experience.
[0070] In some embodiments, obtaining image effect processing commands based on the main operation node of the main graph and the first operation node of the first subgraph includes: obtaining main operation node relationship information based on the main graph, obtaining first operation node relationship information based on the first subgraph, and generating image effect processing commands based on the main operation node, the main operation node relationship information, the first operation node, and the first operation node relationship information.
[0071] Specifically, based on the connection information between the main container node and the first child container node, the connection relationship between the main graph and the first subgraph can be determined. Based on the main graph, the main operation node and its relationship information are obtained. Based on the first subgraph, the first operation node and its relationship information are obtained, thereby determining the image effect processing command. For example, based on the main graph, the main operation nodes are obtained as D, E, and F, and the connection relationship between the operation nodes is D connected to E and E connected to F. Based on the first subgraph, the first operation nodes are obtained as A, B, and C, and the connection relationship between the operation nodes is A connected to B and B connected to C. The connection order of the operation nodes DEFABC is determined, thereby obtaining the image effect processing command corresponding to DEFABC.
[0072] The above solution can quickly obtain image effects processing commands, making image effects processing smoother and further improving the display effect of image effects.
[0073] In some embodiments, in response to a transfer request, the container node to be transferred and the container node to be connected are obtained, the container node to be transferred is disconnected from the original container node, and the container node to be transferred is connected to the container node to be connected.
[0074] In this embodiment of the disclosure, a transfer request is generated based on the user's selection of a sub-image in the image effects processing page. In response to the transfer request, a container node to be transferred and a container node to be connected are obtained. The container node to be transferred can be a child node connected to the main container node or a child node connected to a sub-container node. The container node to be connected can be one of the following: a child node connected to the main container node, a child node connected to the main container node, and a child node connected to a sub-container node.
[0075] Specifically, after obtaining the container node to be transferred and the container node to be connected, the container node to be transferred is disconnected from the original container node, and a connection is established between the container node to be transferred and the container node to be connected. Transfer based on container node connection can realize the transfer of direct connection relationship of graph.
[0076] In the above solution, the order of special effects operations corresponding to any sub-image can be replaced to further meet the user's special effects processing needs and improve the user experience.
[0077] In some embodiments, in response to a deletion request, the container node to be deleted is obtained, the graph identifier to be deleted is obtained based on the attribute information in the container node to be deleted, the graph to be deleted is obtained based on the graph identifier, the container node to be deleted and the graph to be deleted are deleted, and if the parent and child container nodes corresponding to the container node to be deleted are obtained, the connection between the parent and child container nodes is established.
[0078] In this embodiment of the disclosure, the container node to be deleted can be a child node connected to the main container node or a child node connected to a child container node.
[0079] In this embodiment of the disclosure, the attribute information of each container node stores the associated graph identifier. The graph identifier can uniquely identify a graph, which usually refers to the subgraph identifier. Therefore, after obtaining the container node to be deleted, the graph identifier to be deleted is obtained based on the attribute information of the container node to be deleted, thereby obtaining the graph to be deleted. The graph to be deleted can be directly deleted. When deleting the container node to be deleted, if the parent and child container nodes corresponding to the container node to be deleted are obtained, the connection between the parent and child container nodes is established.
[0080] In the above solution, depending on the application scenario, the relevant effects can be removed by deleting container nodes and corresponding graphs, thereby further meeting user needs and improving the user experience.
[0081] Figure 2 This is a flowchart illustrating another image effects processing method provided in this embodiment of the present disclosure. This embodiment further optimizes the above-described image effects processing method based on the previous embodiment. For example... Figure 2 As shown, the method includes:
[0082] Step 201: Receive a creation request including the first graph type, generate a target container node connected to the main container node, generate a target subgraph including the first target node based on the first graph type, wherein the first target node is an empty operation node, establish a connection between the target node and any main operation node in the main graph, and store the target graph identifier corresponding to the target subgraph in the attribute information of the target sub-container node.
[0083] For example, Figure 3a This is a schematic diagram of an image effects processing interface provided in an embodiment of the present disclosure. The diagram shows an image effects processing page, which includes a main image of type script image J. The main image can only generate script-related operation nodes, such as script operation nodes J1, J2, and J3, as well as a first target node X. The main image J generated by the combination of script operation nodes J1, J2, and J3 can achieve a special effect. The first target node X is an empty operation node of a different image type than the main image and is connected to script operation node J3 in the main image.
[0084] Step 202: In response to the first generation request for the first target node in the main graph, generate a first child container node connected to the main container node associated with the main graph, wherein the first generation request includes the first graph type corresponding to the first target node.
[0085] Step 203: Obtain at least one first operation node and the connection relationship between the first operation nodes corresponding to the first graph type. Based on the connection relationship between at least one first operation node and the first operation node, generate a first subgraph and store the first graph identifier corresponding to the first subgraph in the attribute information of the first sub-container node.
[0086] For example, with Figure 3a Taking the main image as an example, if a generation request is sent based on script operation nodes J1, J2, and J3, the generated sub-image will still be a script image. To further improve the diversity of creation, it is possible to... Figure 3aThe first target node X in the image is clicked or other operations to generate the first generation request, thereby generating the first child container node connected to the main container node associated with the main image, such as... Figure 4a As shown, the connection between the main container node R and the first child container node S1, the association between the main container node R and the main graph J, and the association between the first child container node S1 and the first subgraph A are shown.
[0087] Figure 4a The document also shows other first child container nodes S1n that are parallel to the first child container node S1, meaning that one or more first child container nodes can be generated according to the application scenario.
[0088] It is understandable that the first generation request generated based on the first target node includes the first graph type corresponding to the first target node. That is, the graph type of the generated first subgraph is the same as the first graph type corresponding to the first target node. For example, if the first graph type corresponding to the first target node is audio graph A, only audio-related operation nodes can be generated, such as audio operation node A1, audio operation node A2, and audio operation node A3. Figure 3b As shown, the first subgraph A generated by combining audio operation nodes A1, A2, and A3 can achieve a special effect, such as singing.
[0089] Furthermore, to further enhance the possibilities for material creation, a second target node can be generated in the first sub-graph using the processing method of step 201, such as... Figure 3b As shown, the second target node Y is generated. The second target node Y is a no-operation node of a different graph type than the first subgraph, and is connected to the audio operation node A3 in the first subgraph.
[0090] Step 204: In response to the second generation request for the second target node in the first subgraph, generate a second sub-container node connected to the first container node; wherein the second generation request includes a second graph type corresponding to the second target node; generate a second subgraph associated with the second sub-container node based on the second graph type; wherein the second subgraph includes at least one second operation node.
[0091] For example, with Figure 3b Taking the first subgraph as an example, if a generation request is sent based on audio operation nodes A1, A2, and A3, the generated second subgraph will still be an audio graph. To further improve the diversity of creation, we can... Figure 3b The second target node Y in the graph is clicked or other operations to generate a second generation request, thereby generating a second sub-container node connected to the first sub-container node associated with the first subgraph, such as... Figure 4bAs shown, the connection between the main container node R and the first child container node S1, the association between the main container node R and the main graph J, the association between the first child container node S1 and the first subgraph A, the connection between the first container node S1 and the second child container node S2, and the association between the second container node S2 and the second subgraph S.
[0092] Figure 4b The document also shows other first child container nodes S2n that are parallel to the second child container node S2, meaning that one or more second child container nodes can be generated according to the application scenario.
[0093] It is understandable that the second generation request generated based on the second target node includes the second graph type corresponding to the second target node. That is, the graph type of the generated second subgraph is the same as the first graph type corresponding to the second target node. For example, if the second graph type corresponding to the second target node is a shading graph S, only shading-related operation nodes can be generated, such as shading operation nodes S1, S2, and S3. Figure 3c As shown.
[0094] Furthermore, to further enhance the possibilities for material creation, a third target node can be generated in the second sub-graph using the processing method of step 201, such as... Figure 3c As shown, the third target node Z is generated. The third target node Z is a no-operation node of a different graph type than the second subgraph, and is connected to the coloring operation node S3 in the second subgraph.
[0095] Step 205: Based on the main operation node of the main graph, obtain the main operation node relationship information; based on the first operation node of the first subgraph, obtain the first operation node relationship information; and generate image effect processing commands based on the main operation node, the main operation node relationship information, the first operation node, and the first operation node relationship information.
[0096] After step 205, steps 206 and / or steps 207-208 can be executed, in the following specific order. Figure 2 This is just an example.
[0097] For example, based on Figure 3a The main operation node in the main diagram shown can be used to obtain the connection relationships between script operation nodes J1, J2, and J3, as well as... Figure 3bThe first operation node of the first subgraph shown can obtain the connection relationship between audio operation nodes A1, A2 and A3, and the connection relationship between the main container node and the first sub-container node can determine the connection relationship between the main graph and the first subgraph. Finally, the execution order of the image effect processing command is determined to be: execute script operation node J1, script operation node J2, script operation node J3, audio operation node A1, audio operation node A2 and audio operation node A3.
[0098] Step 206: In response to the transfer request, obtain the container node to be transferred and the container node to be connected, disconnect the container node to be transferred from the original container node, and establish a connection between the container node to be transferred and the container node to be connected.
[0099] For example, with Figure 4b For example, the container node to be transferred is the second container node S2, and the container node to be connected is the main container node R. The second container node S2 is disconnected from the original container node (the first child container node S1), and a connection is established between the second container node S2 and the main container node R. Figure 4c As shown.
[0100] Step 207: In response to the deletion request, obtain the container node to be deleted, obtain the graph identifier to be deleted based on the attribute information in the container node to be deleted, and obtain the graph to be deleted based on the graph identifier.
[0101] Step 208: Delete the container node to be deleted and the graph to be deleted. If the parent and next-level container nodes corresponding to the container node to be deleted are obtained, establish the connection between the parent and next-level container nodes.
[0102] In this embodiment of the disclosure, the attribute information of each container node stores the associated graph identifier. The graph identifier can uniquely identify a graph, which usually refers to the subgraph identifier. Therefore, after obtaining the container node to be deleted, the graph identifier to be deleted is obtained based on the attribute information of the container node to be deleted, thereby obtaining the graph to be deleted. The graph to be deleted can be directly deleted. When deleting the container node to be deleted, if the parent and child container nodes corresponding to the container node to be deleted are obtained, the connection between the parent and child container nodes is established.
[0103] For example, with Figure 4b For example, if the container node to be deleted is the first child container node S1, and the graph to be deleted is the first subgraph A, then the first child container node S1 and the first subgraph A are deleted. If the parent container node of the first child container node S1 is the main container node R, and the next-level container node is the second container node S2, then a connection is established between the main container node R and the second container node S2. Figure 4dAs shown.
[0104] The image effects processing scheme provided in this disclosure can generate different types of sub-images based on the target node trigger in the main image during the image effects processing process, and can generate different types of next-layer sub-images based on the target node trigger in the sub-image. This enriches the diversity of image effects processing, allows users to create richer images, and further improves the image effects display effect in image effects processing scenarios.
[0105] Figure 5 This is a schematic diagram of an image effects processing device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and is generally integrated into an electronic device. Figure 5 As shown, the device includes:
[0106] The response generation module 301 is used to generate a first sub-container node connected to the main container node associated with the main graph in response to a first generation request for a first target node in the main graph; wherein, the first generation request includes a first graph type corresponding to the first target node;
[0107] The subgraph generation module 302 is used to generate a first subgraph associated with the first sub-container node based on the first graph type; wherein the first subgraph includes at least one first operation node;
[0108] The instruction acquisition module 303 is used to acquire image effect processing commands based on the main operation node of the main image and the first operation node of the first sub-image.
[0109] The processing and display module 304 is used to process and display the target image based on the image effect processing command.
[0110] Optionally, the device further includes:
[0111] A receiving and generating module is used to receive a creation request including the first graph type and generate a target container node connected to the main container node.
[0112] The first generation module is used to generate a target subgraph including the first target node based on the first graph type; wherein the first target node is a no-operation node;
[0113] A storage module is established to establish a connection between the target node and any main operation node in the main graph, and to store the target graph identifier corresponding to the target subgraph in the attribute information of the target subcontainer node.
[0114] Optionally, the response generation module 301 is further configured to generate a second sub-container node connected to the first container node in response to a second generation request for the second target node in the first sub-graph; wherein the second generation request includes a second graph type corresponding to the second target node;
[0115] The subgraph generation module 302 is further configured to generate a second subgraph associated with the second sub-container node based on the second graph type; wherein the second subgraph includes at least one second operation node;
[0116] The instruction acquisition module 303 is also used to acquire the image effect processing command based on the main operation node of the main image, the first operation node of the first sub-image, and the second operation node of the second sub-image.
[0117] Optionally, the subgraph generation module 302 is specifically used for:
[0118] Obtain at least one first operation node corresponding to the first graph type and the connection relationship between the first operation nodes;
[0119] The first subgraph is generated based on the connection relationship between the at least one first operation section and the first operation node;
[0120] The first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node.
[0121] Optionally, the instruction acquisition module 303 is specifically used for:
[0122] Obtain the main operation node relationship information based on the main graph;
[0123] Obtain the first operation node relationship information based on the first subgraph;
[0124] The image effect processing command is generated based on the main operation node, the main operation node relationship information, the first operation node, and the first operation relationship information.
[0125] Optionally, the device further includes:
[0126] The first response acquisition module is used to acquire the container node to be transferred and the container node to be connected in response to the transfer request;
[0127] The disconnect module is used to disconnect the container node to be transferred from the original container node;
[0128] The container node connection module is used to establish a connection between the container node to be transferred and the container node to be connected.
[0129] Optionally, the device further includes:
[0130] The second response acquisition module is used to acquire the container node to be deleted in response to the deletion request;
[0131] The graph identifier acquisition module is used to acquire the graph identifier to be deleted based on the attribute information in the container node to be deleted;
[0132] The image acquisition module is used to acquire the image to be deleted based on the image identifier to be deleted;
[0133] The processing module is used to delete the container node to be deleted and the graph to be deleted, and, if the parent and next-level container nodes corresponding to the container node to be deleted are obtained, to establish a connection between the parent and next-level container nodes.
[0134] The image effects processing apparatus provided in this disclosure can execute the image effects processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.
[0135] This disclosure also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the image effects processing method provided in any embodiment of this disclosure.
[0136] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. See below for details. Figure 6 The diagram illustrates a structural schematic suitable for implementing the electronic device 400 in the embodiments of this disclosure. The electronic device 400 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0137] like Figure 6 As shown, electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 408 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. Processing device 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0138] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0139] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 409, or installed from a storage device 408, or installed from a ROM 402. When the computer program is executed by the processing device 401, it performs the functions defined in the image effects processing method of embodiments of this disclosure.
[0140] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0141] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0142] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0143] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to a first generation request for a first target node in a main graph, generate a first sub-container node connected to a main container node associated with the main graph, wherein the first generation request includes a first graph type corresponding to the first target node; generate a first sub-graph associated with the first sub-container node based on the first graph type, wherein the first sub-graph includes at least one first operation node; obtain an image effects processing command based on the main operation node of the main graph and the first operation node of the first sub-graph; and process and display the target image based on the image effects processing command.
[0144] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0145] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0146] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0147] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0148] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0149] According to one or more embodiments of this disclosure, this disclosure provides an image special effects processing method, including:
[0150] In response to a first generation request for a first target node in the main graph, a first child container node connected to the main container node associated with the main graph is generated; wherein, the first generation request includes a first graph type corresponding to the first target node;
[0151] A first subgraph is generated based on the first graph type and associated with the first sub-container node; wherein, the first subgraph includes at least one first operation node;
[0152] Based on the main operation node of the main image and the first operation node of the first sub-image, obtain image effect processing commands;
[0153] The target image is processed and displayed based on the image effects processing commands.
[0154] According to one or more embodiments of this disclosure, the image effects processing method provided by this disclosure further includes, before responding to the first generation request for the first target node in the main image:
[0155] Receive a creation request including the first graph type, and generate a target container node connected to the main container node;
[0156] A target subgraph including the first target node is generated based on the first graph type; wherein, the first target node is a no-operation node;
[0157] Establish a connection between the target node and any main operation node in the main graph, and store the target graph identifier corresponding to the target subgraph in the attribute information of the target subcontainer node.
[0158] According to one or more embodiments of this disclosure, the image special effects processing method provided in this disclosure further includes:
[0159] In response to a second generation request for a second target node in the first subgraph, a second subcontainer node connected to the first container node is generated; wherein, the second generation request includes a second graph type corresponding to the second target node;
[0160] A second subgraph is generated based on the second graph type and associated with the second sub-container node; wherein the second subgraph includes at least one second operation node;
[0161] Based on the main operation node of the main image and the first operation node of the first sub-image, image effect processing commands are obtained, including:
[0162] Based on the main operation node of the main image, the first operation node of the first sub-image, and the second operation node of the second sub-image, the image effect processing command is obtained.
[0163] According to one or more embodiments of this disclosure, in the image effects processing method provided by this disclosure, generating a first sub-graph associated with the first sub-container node based on the first graph type includes:
[0164] Obtain at least one first operation node corresponding to the first graph type and the connection relationship between the first operation nodes;
[0165] The first subgraph is generated based on the connection relationship between the at least one first operation section and the first operation node;
[0166] The first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node.
[0167] According to one or more embodiments of this disclosure, in the image effects processing method provided by this disclosure, obtaining image effects processing commands based on the main operation node of the main image and the first operation node of the first sub-image includes:
[0168] Obtain the main operation node relationship information based on the main graph;
[0169] Obtain the first operation node relationship information based on the first subgraph;
[0170] The image effect processing command is generated based on the main operation node, the main operation node relationship information, the first operation node, and the first operation relationship information.
[0171] According to one or more embodiments of this disclosure, the image special effects processing method provided in this disclosure further includes:
[0172] In response to the transfer request, obtain the container node to be transferred and the container node to be connected;
[0173] Disconnect the container node to be transferred from the original container node;
[0174] Establish a connection between the container node to be transferred and the container node to be connected.
[0175] According to one or more embodiments of this disclosure, the image special effects processing method provided in this disclosure further includes:
[0176] In response to a deletion request, retrieve the container node to be deleted;
[0177] Based on the attribute information in the container node to be deleted, obtain the graph identifier to be deleted;
[0178] Based on the identifier of the image to be deleted, obtain the image to be deleted;
[0179] The container node to be deleted and the graph to be deleted are deleted. If the parent and child container nodes corresponding to the container node to be deleted are obtained, a connection is established between the parent and child container nodes.
[0180] According to one or more embodiments of this disclosure, this disclosure provides an image special effects processing apparatus, including:
[0181] The response generation module is used to generate a first sub-container node connected to the main container node associated with the main graph in response to a first generation request for a first target node in the main graph; wherein, the first generation request includes a first graph type corresponding to the first target node;
[0182] A subgraph generation module is used to generate a first subgraph associated with the first sub-container node based on the first graph type; wherein the first subgraph includes at least one first operation node;
[0183] The instruction acquisition module is used to acquire image effect processing commands based on the main operation node of the main image and the first operation node of the first sub-image.
[0184] The processing and display module is used to process and display the target image based on the image effects processing command.
[0185] According to one or more embodiments of this disclosure, the image effects processing apparatus provided in this disclosure further includes:
[0186] A receiving and generating module is used to receive a creation request including the first graph type and generate a target container node connected to the main container node.
[0187] The first generation module is used to generate a target subgraph including the first target node based on the first graph type; wherein the first target node is a no-operation node;
[0188] A storage module is established to establish a connection between the target node and any main operation node in the main graph, and to store the target graph identifier corresponding to the target subgraph in the attribute information of the target subcontainer node.
[0189] According to one or more embodiments of the present disclosure, in the image effects processing apparatus provided by the present disclosure, the response generation module is further configured to generate a second sub-container node connected to the first container node in response to a second generation request for a second target node in the first sub-graph; wherein, the second generation request includes a second graph type corresponding to the second target node;
[0190] The subgraph generation module is further configured to generate a second subgraph associated with the second sub-container node based on the second graph type; wherein the second subgraph includes at least one second operation node;
[0191] The instruction acquisition module is also used to acquire the image effect processing command based on the main operation node of the main image, the first operation node of the first sub-image, and the second operation node of the second sub-image.
[0192] According to one or more embodiments of this disclosure, in the image effects processing apparatus provided by this disclosure, the sub-image generation module is specifically used for:
[0193] Obtain at least one first operation node corresponding to the first graph type and the connection relationship between the first operation nodes;
[0194] The first subgraph is generated based on the connection relationship between the at least one first operation section and the first operation node;
[0195] The first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node.
[0196] According to one or more embodiments of this disclosure, in the image effects processing apparatus provided by this disclosure, the instruction acquisition module is specifically used for:
[0197] Obtain the main operation node relationship information based on the main graph;
[0198] Obtain the first operation node relationship information based on the first subgraph;
[0199] The image effect processing command is generated based on the main operation node, the main operation node relationship information, the first operation node, and the first operation relationship information.
[0200] According to one or more embodiments of this disclosure, the image effects processing apparatus provided in this disclosure further includes:
[0201] The first response acquisition module is used to acquire the container node to be transferred and the container node to be connected in response to the transfer request;
[0202] The disconnect module is used to disconnect the container node to be transferred from the original container node;
[0203] The container node connection module is used to establish a connection between the container node to be transferred and the container node to be connected.
[0204] According to one or more embodiments of this disclosure, the image effects processing apparatus provided in this disclosure further includes:
[0205] The second response acquisition module is used to acquire the container node to be deleted in response to the deletion request;
[0206] The graph identifier acquisition module is used to acquire the graph identifier to be deleted based on the attribute information in the container node to be deleted;
[0207] The image acquisition module is used to acquire the image to be deleted based on the image identifier to be deleted;
[0208] The processing module is used to delete the container node to be deleted and the graph to be deleted, and, if the parent and next-level container nodes corresponding to the container node to be deleted are obtained, to establish a connection between the parent and next-level container nodes.
[0209] According to one or more embodiments of this disclosure, this disclosure provides an electronic device, including:
[0210] processor;
[0211] Memory used to store the processor's executable instructions;
[0212] The processor is configured to read the executable instructions from the memory and execute the instructions to implement any of the image effects processing methods provided in this disclosure.
[0213] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium storing a computer program for performing an image effects processing method as described in any of the present disclosure.
[0214] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0215] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0216] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An image special effects processing method, characterized in that, include: In response to a first generation request for a first target node in the main graph, a first child container node connected to the main container node associated with the main graph is generated; wherein, the first generation request includes a first graph type corresponding to the first target node; A first subgraph is generated based on the first graph type and associated with the first sub-container node; wherein, the first subgraph includes at least one first operation node; Based on the main operation node of the main image and the first operation node of the first sub-image, obtain image effect processing commands; The target image is processed and displayed based on the image effects processing commands.
2. The image special effects processing method as described in claim 1, characterized in that, Prior to responding to the first generation request for the first target node in the main graph, the method further includes: Receive a creation request including the first graph type, and generate a target sub-container node connected to the main container node; A target subgraph including the first target node is generated based on the first graph type; wherein, the first target node is a no-operation node; Establish a connection between the first target node and any main operation node in the main graph, and store the target graph identifier corresponding to the target subgraph in the attribute information of the target subcontainer node.
3. The image special effects processing method as described in claim 1, characterized in that, Also includes: In response to a second generation request for a second target node in the first subgraph, a second subcontainer node connected to the first subcontainer node is generated; wherein, the second generation request includes a second graph type corresponding to the second target node; A second subgraph is generated based on the second graph type and associated with the second sub-container node; wherein the second subgraph includes at least one second operation node; Based on the main operation node of the main image and the first operation node of the first sub-image, image effect processing commands are obtained, including: Based on the main operation node of the main image, the first operation node of the first sub-image, and the second operation node of the second sub-image, the image effect processing command is obtained.
4. The image special effects processing method as described in claim 1, characterized in that, The step of generating a first subgraph associated with the first sub-container node based on the first graph type includes: Obtain at least one first operation node corresponding to the first graph type and the connection relationship between the first operation nodes; The first subgraph is generated based on the at least one first operation node and the connection relationship between the first operation nodes; The first graph identifier corresponding to the first subgraph is stored in the attribute information of the first sub-container node.
5. The image special effects processing method as described in claim 1, characterized in that, The image effect processing command is obtained based on the main operation node of the main image and the first operation node of the first sub-image, including: Obtain the main operation node relationship information based on the main graph; Obtain the first operation node relationship information based on the first subgraph; The image effects processing command is generated based on the main operation node, the main operation node relationship information, the first operation node, and the first operation node relationship information.
6. The image special effects processing method as described in claim 1, characterized in that, Also includes: In response to the transfer request, obtain the container node to be transferred and the container node to be connected; Disconnect the container node to be transferred from the original container node; Establish a connection between the container node to be transferred and the container node to be connected.
7. The image special effects processing method as described in claim 1, characterized in that, Also includes: In response to a deletion request, retrieve the container node to be deleted; Based on the attribute information in the container node to be deleted, obtain the graph identifier to be deleted; Based on the identifier of the image to be deleted, obtain the image to be deleted; Delete the container node to be deleted and the graph to be deleted; If the parent and child container nodes corresponding to the container node to be deleted are obtained, a connection is established between the parent and child container nodes.
8. An image special effects processing device, characterized in that, include: The response generation module is used to generate a first sub-container node connected to the main container node associated with the main graph in response to a first generation request for a first target node in the main graph; wherein, the first generation request includes a first graph type corresponding to the first target node; A subgraph generation module is used to generate a first subgraph associated with the first sub-container node based on the first graph type; wherein the first subgraph includes at least one first operation node; The instruction acquisition module is used to acquire image effect processing commands based on the main operation node of the main image and the first operation node of the first sub-image. The processing and display module is used to process and display the target image based on the image effects processing command.
9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the image effects processing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for executing the image effects processing method according to any one of claims 1-7.