Animation processing method and device
By receiving and adjusting animation resources, generating and playing target animations, the problem of low efficiency in animation production is solved, the processing efficiency and accuracy of animation resources are improved, and the user experience is enhanced.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-29
- Publication Date
- 2026-04-07
AI Technical Summary
Current technologies suffer from low efficiency in adjusting and previewing animations during production, which negatively impacts user experience.
An animation processing method is provided, which receives animation resources uploaded by the terminal, generates an initial animation and plays it, displays an adjustment component, responds to adjustment messages to adjust the initial animation, obtains the target animation and plays it.
It improves the efficiency and accuracy of animation resource processing, reduces the time spent managing animation resources across platforms, and enhances the user experience.
Smart Images

Figure CN114443719B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an animation processing method. This application also relates to an animation processing apparatus, a computing device, and a computer-readable storage medium. Background Technology
[0002] In recent years, with the rapid development and iteration of the Internet industry, network infrastructure and terminal equipment, people's pursuit of animation production has also been constantly upgrading. In the animation production process, according to the production requirements, the animation needs to be adjusted and previewed until the expected effect is achieved.
[0003] Currently, designers import their finished animations into animation engines for preview. During the preview process, discrepancies often arise between the actual animation and the one created by the designer. In such cases, the designer needs to readjust the animation and then import the adjusted animation back into the animation engine for preview, which greatly affects the animation production efficiency and user experience. Summary of the Invention
[0004] In view of this, embodiments of this application provide an animation processing method. This application also relates to an animation processing apparatus, a computing device, and a computer-readable storage medium, to solve the problems of poor adjustment and preview efficiency in the animation production process in the prior art, which affects user experience.
[0005] According to a first aspect of the embodiments of this application, an animation processing method is provided, including:
[0006] Receive animation resources uploaded by the terminal;
[0007] Based on the animation resources, generate an initial animation and play the initial animation;
[0008] Display adjustment components, respond to adjustment messages from the adjustment components, adjust the initial animation to obtain the target animation, and play the target animation.
[0009] According to a second aspect of the embodiments of this application, an animation processing apparatus is provided, comprising:
[0010] The receiving module is configured to receive animation resources uploaded by the terminal;
[0011] The playback module is configured to generate an initial animation based on the animation resource and play the initial animation.
[0012] An adjustment module is configured to display an adjustment component, and in response to an adjustment message from the adjustment component, adjust the initial animation to obtain a target animation, and play the target animation.
[0013] According to a third aspect of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the computer instructions to implement the steps of the animation processing method.
[0014] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the animation processing method.
[0015] This application provides an animation processing method applied to an animation processing platform, comprising: receiving animation resources uploaded by a terminal; generating an initial animation based on the animation resources; playing the initial animation; displaying an adjustment component; adjusting the initial animation in response to an adjustment message from the adjustment component to obtain a target animation; and playing the target animation.
[0016] This application provides an animation processing method that utilizes an animation processing platform to adjust and preview initial animation resources, reducing the time spent managing animation resources across platforms, improving the processing efficiency of animation resources, and adjusting animation resources in response to adjustment messages from adjustment components, thereby further improving the accuracy of animation resource processing. Attached Figure Description
[0017] Figure 1 This is a flowchart of an animation processing method provided in an embodiment of this application;
[0018] Figure 2 This is a schematic diagram of a target resource list in an animation processing method provided in an embodiment of this application;
[0019] Figure 3a This is a first type of initial animation diagram provided in an embodiment of this application;
[0020] Figure 3b This is a first type of target animation diagram provided in an embodiment of this application;
[0021] Figure 4a This is a second type of initial animation diagram provided in one embodiment of this application;
[0022] Figure 4b This is a second type of target animation diagram provided in an embodiment of this application;
[0023] Figure 5a This is a third type of initial animation diagram provided in one embodiment of this application;
[0024] Figure 5b This is a third type of target animation diagram provided in an embodiment of this application;
[0025] Figure 6aThis is the fourth type of initial animation diagram provided in one embodiment of this application;
[0026] Figure 6b This is the fourth type of target animation diagram provided in one embodiment of this application;
[0027] Figure 7 This is a flowchart of another animation processing method provided in one embodiment of this application;
[0028] Figure 8 This is an interface diagram of an animation processing platform provided in one embodiment of this application;
[0029] Figure 9 This is a schematic diagram of the structure of an animation processing device provided in one embodiment of this application;
[0030] Figure 10 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation
[0031] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0032] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0033] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0034] First, the terms and concepts involved in one or more embodiments of this application will be explained.
[0035] Frame-by-frame animation is a common form of animation. Its principle is to break down the animation action into "continuous keyframes", that is, to draw different content frame by frame on the timeline and play it continuously to form an animation.
[0036] Skeletal animation: In skeletal animation, the model has a skeletal structure composed of interconnected "bones". Animation is generated for the model by changing the orientation and position of the bones.
[0037] ID: ID (Identity Document) is an abbreviation for various proprietary terms such as identity card number, account number, unique code, exclusive number, industrial design, country abbreviation, legal term, general account, decoder, software company, etc.
[0038] Canvas: Canvas represents a Hyper Text Markup Language (HTML) canvas element. Canvas does not have its own behavior, but it defines an Application Programming Interface (API) to support scripted client-side drawing operations.
[0039] This application provides an animation processing method, and also relates to an animation processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0040] Figure 1 The flowchart shown is an embodiment of an animation processing method provided in this application, applied to an animation processing platform, and specifically includes the following steps:
[0041] Step 102: Receive animation resources uploaded by the terminal.
[0042] In this embodiment, the terminal selects any pre-made animation resource and uploads it to the animation processing platform, which then receives the uploaded animation resource. If the upload fails, the terminal re-uploads the animation resource.
[0043] It should be noted that the animations uploaded by the receiving terminal to the animation processing platform can be skeletal animations or frame-by-frame animations. The animation resource includes its configuration information and image information. The configuration information includes, but is not limited to, the animation resource's ID, name, address, lock status, and list of animation resources. The image information refers to the animation frames. The lock status of an animation resource indicates whether it is locked; when locked, the animation processing platform cannot adjust the animation resource.
[0044] Step 104: Generate an initial animation based on the animation resource, and play the initial animation.
[0045] In this embodiment of the application, after receiving the animation resources uploaded by the terminal, the animation processing platform can load the uploaded animation resources into a preset canvas to generate an initial animation, or it can use other software that supports animation production to generate an initial animation based on the animation resources.
[0046] In one possible implementation, the animation processing platform receives animation resources uploaded by the terminal, including skeletal animation and image resources. By fusing the image resources with the skeletal animation, an initial animation can be generated. For example, the animation processing platform fuses an image of "clothes" onto the body of the skeletal animation; after fusion, the initial animation is obtained.
[0047] In another possible implementation, the animation processing platform receives frame-by-frame animation resources uploaded by the terminal. In this case, the animation resource carries configuration information. Based on this configuration information, the platform locates the corresponding target animation frames and merges these target frames to form the initial animation. The configuration information can include the animation resource's ID, name, address, etc.
[0048] In one optional implementation, after acquiring each animation resource uploaded by the terminal, the animation processing platform can directly load the acquired animation resource into a preset canvas for animation generation and playback preview. That is, based on the animation resource, an initial animation is generated and played. Specifically, this may include the following steps:
[0049] Load the animation resources onto the preset canvas to generate multiple animation groups and play buttons for each animation group, and display each play button.
[0050] Upon detecting that the first play button has been triggered, the initial animation in the first animation group corresponding to the first play button is played.
[0051] In this embodiment, the animation generated by loading animation resources into a preset canvas is typically long, requiring a significant amount of time for previewing and preventing targeted selective previewing. Therefore, the animation processing platform can generate multiple animation groups corresponding to the animation resources and display a play button for each animation group. The platform then previews the initial animation in the first animation group corresponding to the first play button, which is one of the play buttons for each animation group.
[0052] In practical applications, when displaying play buttons, the animation processing platform can show the duration of the animation group corresponding to each button, or it can show the first frame of each animation group, enabling clear and quick selection of the desired animation group for preview. It should be noted that the animation processing platform recognizes that the triggering method for each play button can be a click or a long press of a play button for a preset time to prevent accidental activation. When the platform detects that the first play button has been triggered by the user, it can either directly play the initial animation in the first animation group corresponding to that button, or it can send a confirmation window to the user upon receiving confirmation information from the confirmation window before playing the initial animation in the first animation group corresponding to that button. This specification does not impose any limitations on this embodiment; the specific choice should be made according to the actual situation.
[0053] For example, the animation resources are loaded onto a preset canvas to generate an initial animation with a duration of 30 minutes. The initial animation from minutes 1 to 10 is divided into animation group 1, the initial animation from minutes 11 to 20 is divided into animation group 2, and the initial animation from minutes 21 to 30 is divided into animation group 3. Play button 1 for animation group 1, play button 2 for animation group 2, and play button 3 for animation group 3 are generated. The generated play button 1, play button 2, and play button 3, as well as the first frame image of each animation group, are displayed. At this time, you can select from the above three play buttons. If the animation processing platform detects that the trigger duration of play button 2 exceeds the preset time of 2 seconds, it will directly play the initial animation in animation group 2 corresponding to play button 2.
[0054] By applying the above embodiments, the animation resources are loaded onto a preset canvas, generating multiple animation groups and corresponding play buttons for each animation group. This reduces the time it takes for the animation processing platform to find the target preview animation, improves the efficiency of animation preview, and further enhances the user experience.
[0055] In another optional implementation, the acquired animation resources uploaded by the terminal can be first stored in a target resource list, and then the required animation resources can be selected from the target resource list for animation generation and playback preview. That is, the step of generating an initial animation based on the animation resources and playing the initial animation includes:
[0056] Upon receiving a resource list request message, the resource list interface is opened, and the target resource list, which includes multiple animation resources, is displayed in the resource list interface.
[0057] Receive a selection instruction for a first animation resource in the target resource list, generate a first initial animation based on the first animation resource, and play the first initial animation.
[0058] In this embodiment, after receiving a resource list request message, the animation processing platform opens a resource list interface, displaying a target resource list. The target resource list includes multiple animation resources, each including its name, preview image, address link, and runtime memory usage. The animation processing platform can quickly and accurately select a first animation resource from the target resource list, generate a first initial animation based on the selected first animation resource, and play the first initial animation.
[0059] For example, such as Figure 2 As shown, Figure 2 This illustration shows a schematic diagram of a target resource list in an animation processing method according to an embodiment of this application; the target resource list displays preview images of each resource, facilitating user selection of animation resources. For example, Figure 2 The target resource list shown includes a first preview image, a second preview image, a third preview image, a fourth preview image, and a fifth preview image. Each preview image corresponds to a generate address button and a delete button. After receiving the selection instruction for the animation resource corresponding to the second preview image, the animation processing platform loads the animation resource corresponding to the second preview image into a preset canvas and generates the initial animation corresponding to the second preview image. Alternatively, other software that supports animation production can be used to generate the initial animation corresponding to the second preview image based on the animation resource corresponding to the second preview image. This application embodiment does not impose any restrictions on this, and the specific selection is made according to the actual situation.
[0060] According to the embodiments of this application, upon receiving a resource list request message, a resource list interface is opened and a target resource list is displayed in the resource list interface. The terminal receives a selection instruction for a first animation resource in the target resource list, generates a first initial animation based on the first animation resource, and plays the first initial animation. This provides a fast and accurate selection list of animation resources, improves the efficiency of animation processing, and further improves the accuracy of animation resource processing.
[0061] In practical applications, the animation resources uploaded by the terminal can be merged with pre-saved animation resources to obtain a final list of selectable target resources for selecting animation resources to generate and preview the animation. That is, after the step of receiving the animation resources uploaded by the terminal, the method further includes:
[0062] Cache the animation resources to the cached resource list;
[0063] Before the steps of opening the resource list interface and displaying the target resource list in the resource list interface, the method further includes:
[0064] Retrieve a pre-saved list of preset resources from the database;
[0065] Based on the animation resource identification information, the cached resource list is merged with the preset resource list to obtain the target resource list.
[0066] In this embodiment, after receiving the animation resource uploaded by the terminal, the animation processing platform caches the animation resource in the cached resource list, retrieves the pre-saved preset resource list from the database, and merges the cached resource list with the preset resource list based on the animation resource identification information to obtain the target resource list. The identification information of the animation resource includes, but is not limited to, the name of the animation resource and the memory occupied. This embodiment does not limit this information and the selection is made according to the actual situation.
[0067] By applying the embodiments of this application, the cached resource list and the preset resource list are merged based on the animation resource identification information. That is, the animation resources are classified according to their representation information, and the target resource list is clearly and concisely displayed, which improves the processing efficiency of animation resources and further improves the accuracy of animation resource processing.
[0068] Step 106: Display the adjustment component, adjust the initial animation in response to the adjustment message of the adjustment component to obtain the target animation, and play the target animation.
[0069] In this embodiment, the animation processing platform generates an initial animation based on the animation resources uploaded by the terminal, plays the initial animation, previews the initial animation corresponding to the animation resources, and can display an adjustment component. The user can initiate an adjustment message based on the adjustment component. At this time, the animation processing platform can respond to the adjustment message of the adjustment component, adjust the initial animation to obtain the target animation, and play the target animation.
[0070] It should be noted that an adjustment component refers to a component that can receive or generate adjustment messages, including but not limited to adjustment buttons and adjustment input boxes. There are many ways to trigger an adjustment component, such as clicking or dragging an adjustment button. Adjustment messages include, but are not limited to, deletion, replacement, and scaling information; this application embodiment does not impose any limitations on these, and the appropriate method should be selected based on the actual situation.
[0071] In a first optional implementation, the adjustment message includes object replacement information, which includes target object address information. The initial animation is adjusted in response to the adjustment message from the adjustment component to obtain the target animation. Specifically, this may include the following steps:
[0072] Based on the target object address information, obtain the target object;
[0073] The target animation is obtained by replacing the object in the initial animation with the target object.
[0074] In this embodiment, after the animation processing platform plays the initial animation, it can respond to the adjustment message from the adjustment component. This adjustment message includes target object address information. It should be noted that the target object refers to characters, cartoon characters, objects, etc., in the target animation. This embodiment does not impose any limitations on this; the choice is made based on the actual situation. In other words, the animation processing platform responds to the target object address information, obtains the target object, and replaces the objects in the initial animation with the target object to obtain the target animation.
[0075] For example, such as Figure 3a and Figure 3b As shown, Figure 3a This application illustrates a first type of initial animation diagram provided in an embodiment of the present application. Figure 3b This illustration shows a first type of target animation diagram provided in an embodiment of this application.
[0076] Initial animation Figure 3a The object in the initial animation is a "little mouse". At this point, the animation processing platform needs to replace the "little mouse" object in the initial animation with the target object "children's car". This is achieved by adjusting the interface to respond to the address information of the target object "children's car", obtaining the target object "children's car" based on its address information, and then resetting the initial animation. Figure 3a Replace the object "Little Mouse" in the middle with the target object "Children's Car" to obtain the target animation. Figure 3b For target animation Figure 3b Play it.
[0077] By applying the embodiments of this application, the animation processing platform can preview the adjusted target animation in response to the address information of the target object, without manually replacing the objects in the initial animation with the target object, obtaining the adjusted target animation, and then sending the target animation to another platform for preview. This improves the processing efficiency of animation resources. Furthermore, the animation processing platform directly obtains the target object based on its address information and automatically replaces the objects in the initial animation with the target object to obtain the target animation, avoiding errors that may occur when manually replacing the target object, further improving the accuracy of animation resource processing.
[0078] In a second optional implementation, the adjustment message includes background replacement information, which includes target image address information. The adjustment of the initial animation in response to the adjustment component's adjustment message to obtain the target animation may specifically include the following steps:
[0079] Obtain the target image based on the target image address information;
[0080] The background image in the initial animation is replaced with the target image to obtain the target animation.
[0081] In this embodiment, the initial animation includes an animation background image and an object. After the animation processing platform plays the initial animation, it responds to the background replacement information of the adjustment component, which includes the target image address information. It should be noted that the target image refers to the background image in the target animation. That is, the animation processing platform obtains the target image based on the target image address information and replaces the background image in the initial animation with the target image to obtain the target animation.
[0082] For example, such as Figure 4a and Figure 4b As shown, Figure 4a This application illustrates a second type of initial animation diagram provided in one embodiment. Figure 4b A second type of target animation diagram provided in an embodiment of this application is shown.
[0083] Initial animation Figure 4a The background image in the initial animation is a "diagonal line". Now, the background image "diagonal line" in the initial animation needs to be replaced with the target image "small square". The animation processing platform responds to the address information of the target image "small square", obtains the target image "small square" based on the address information, and then processes the initial animation... Figure 4a Replace the background image "diagonal lines" in the image with the target image "small squares" to obtain the target animation. Figure 4b For target animation Figure 4b Play it.
[0084] According to the embodiments of this application, in response to the target image address information, the terminal can preview the adjusted target animation without manually replacing the background image in the initial animation with the target image, and then sending the target animation to another platform for preview. This improves the processing efficiency of animation resources. Furthermore, by directly obtaining the target image based on the target image address information and automatically replacing the background image in the initial animation with the target image to obtain the target animation, errors caused by manually replacing the background image are avoided, further improving the accuracy of animation resource processing.
[0085] In a third optional implementation, the adjustment message includes object adjustment information, which includes coordinate information of the part to be adjusted and an adjustment scale message. The initial animation is adjusted in response to the adjustment message from the adjustment component to obtain the target animation. Specifically, this may include the following steps:
[0086] Based on the coordinate information, determine the parts of the object in the initial animation that need to be adjusted;
[0087] Based on the adjustment scale message, the part to be adjusted is adjusted to obtain the adjusted target animation.
[0088] In this embodiment of the application, after the animation processing platform plays the initial animation, it can also adjust the position of the object in the initial animation. That is, the animation processing platform responds to the coordinate information of the part to be adjusted and the adjustment scale message in the initial animation, determines the part to be adjusted based on the coordinate information of the part to be adjusted, adjusts the initial animation according to the adjustment scale message, and generates the target animation.
[0089] It should be noted that the part to be adjusted refers to the part of the object in the initial animation that you want to adjust, and the adjustment scale information refers to the specific parameters for adjusting the object in the initial animation. In practical applications, the part to be adjusted in the initial animation can be a part of the object or the entire object. The adjustment scale can be scaling by 10%, increasing by 10 units, etc. This application embodiment does not impose any restrictions on this, and the specific choice should be made according to the actual situation.
[0090] One possible implementation is, such as Figure 5a and Figure 5b As shown, Figure 5a This application illustrates a third type of initial animation diagram provided in one embodiment. Figure 5b A third type of target animation diagram provided in an embodiment of this application is shown.
[0091] like Figure 5a As shown, when the object "mouse" in the initial animation needs to be moved down by 3 units, the animation processing platform responds to the coordinate information (3, 5), (9, 5), (2, 15), (10, 15) of the part to be adjusted and the adjustment scale message "move down 3 units along the y-axis". Based on the coordinate information (3, 5), (9, 5), (2, 15), (10, 15), the animation processing platform determines that the part to be adjusted in the initial animation is the entire object "mouse". Based on the adjustment scale message "move down 3 units along the y-axis", the platform determines that the coordinate information of the adjusted object "mouse" is (3, 2), (9, 2), (2, 12), (10, 12), thus obtaining the adjusted target animation. Figure 5b For target animation Figure 5b Play it.
[0092] Another possible implementation, such as Figure 6a and Figure 6b As shown, Figure 6a This application illustrates a fourth type of initial animation diagram provided in one embodiment. Figure 6b This illustrates a fourth type of target animation diagram provided in one embodiment of this application.
[0093] Initial animation such as Figure 6aAs shown, when it is necessary to enlarge the object in the initial animation by one time, the animation processing platform responds to the coordinate information (4,4), (8,4), (4,8), (8,8) of the part to be adjusted and the adjustment scale message "enlarge by one time". Based on the coordinate information (4,4), (8,4), (4,8), (8,8), the animation processing platform determines that the part to be adjusted in the initial animation is the entire object "mouse". Based on the adjustment scale message "enlarge by one time", the platform determines the coordinate information of the adjusted object "mouse" to be (2,2), (10,2), (2,10), (10,10), thus obtaining the adjusted target animation. Figure 6b For target animation Figure 6b Play it.
[0094] Using the embodiments of this application, the animation processing platform responds to the coordinate information of the part to be adjusted and the adjustment scale message, allowing the terminal to preview the adjusted target animation. This eliminates the need to manually select the part to be adjusted in the initial animation, perform movements or scaling on it, and then send the target animation to another platform for preview. This improves the processing efficiency of animation resources. Furthermore, by directly adjusting the initial animation based on the coordinate information of the part to be adjusted and the adjustment scale message, the animation processing platform avoids errors that may occur during manual adjustments, further improving the accuracy of animation resource processing.
[0095] In a fourth optional implementation, if the initial animation is generated based on a first animation resource selected from the target resource list, the adjustment message may further include an object deletion message. In this case, the step of adjusting the initial animation in response to the adjustment message of the adjustment component to obtain the target animation may be implemented as follows:
[0096] In response to the animation deletion message of the adjustment component, the first animation resource corresponding to the first initial animation in the target resource list is deleted, and an updated target resource list is obtained;
[0097] The updated target resource list is displayed on the resource list interface;
[0098] Receive a selection instruction for a second animation resource in the updated target resource list, and generate a target animation based on the second animation resource.
[0099] In this embodiment, after generating and playing the first initial animation, the animation processing platform can adjust the previewed first initial animation. Specifically, the animation processing platform responds to the animation deletion message from the adjustment component; this adjustment message can be an animation deletion message. In response to the animation deletion message from the adjustment component, the animation processing platform can delete the first animation resource corresponding to the first initial animation in the target resource list, update the target resource list, and reselect the second animation resource to generate the target animation.
[0100] One possible implementation is, such as Figure 2 As shown, following the example of step 104 above, after the animation processing platform plays the initial animation corresponding to the second preview image, if the preview shows that the initial animation corresponding to the second preview image does not meet the requirements, the animation resource corresponding to the second preview image is deleted using the delete button in the target resource list, the target resource list is updated, and the updated target resource list is displayed in the resource list interface. The animation processing platform receives a selection instruction for the animation resource corresponding to the third preview image, loads the animation resource corresponding to the third preview image into a preset canvas, and generates the initial animation corresponding to the third preview image. Alternatively, other animation-supporting software can be used to generate the initial animation corresponding to the third preview image based on the animation resource corresponding to the third preview image. This application embodiment does not impose any restrictions on this; the specific choice depends on the actual situation.
[0101] Another possible implementation, such as Figure 2 As shown, following the example of step 104 above, after the animation processing platform plays the initial animation corresponding to the second preview image, it generates the address information of the animation resource corresponding to the second preview image through the generate address button corresponding to the second preview image, uploads the animation resource to the resource server, and saves the address information of the animation resource to the database.
[0102] In practical applications, in addition to the above-mentioned scheme where the animation processing platform adjusts the initial animation, if the animation processing platform does not receive an adjustment message from the adjustment component, it means that the initial animation meets the requirements. In this case, the animation processing platform sends the initial animation that meets the requirements to the terminal to complete the processing of the animation resources.
[0103] By applying the embodiments of this application, the animation processing platform can respond to the animation deletion message, delete the corresponding animation resource in the target resource list, update the target resource list, release the memory occupied by the animation resource, improve the processing efficiency of animation resources, and further improve the accuracy of animation resource processing.
[0104] The solution provided in this application receives animation resources uploaded by a terminal; an initial animation is generated based on the animation resources and played; an adjustment component is displayed, and the initial animation is adjusted in response to adjustment messages from the adjustment component to obtain a target animation, which is then played. Adjusting and previewing the initial animation resources through an animation processing platform reduces the time spent managing animation resources across platforms, improves the processing efficiency of animation resources, and further enhances the accuracy of animation resource processing by adjusting the animation resources in response to adjustment messages from the adjustment component.
[0105] Figure 7 This application provides a flowchart of another animation processing method according to an embodiment, which specifically includes the following steps:
[0106] Step 702: Upload animation resources.
[0107] like Figure 8 As shown, Figure 8 This diagram illustrates an interface of an animation processing platform according to an embodiment of this application. The user clicks... Figure 8 In the menu, select the file, choose the animation resource, and click as shown. Figure 8 The upload file button shown allows you to upload the animation resource to the animation processing platform.
[0108] Step 704: Determine if the upload was successful; if the upload failed, proceed to step 706; if the upload was successful, proceed to step 708.
[0109] Step 706: The terminal re-uploads the animation resources.
[0110] Step 708: Cache the animation resources to the cache list.
[0111] Step 710: Generate the animation group and each play button, and preview the animation group.
[0112] The animation resources are loaded onto a preset canvas, generating multiple animation groups and corresponding play buttons for each group, which are then displayed. The animation processing platform previews the initial animation in the first animation group corresponding to the first play button.
[0113] Step 712: Object replacement.
[0114] Utilizing animation processing platforms such as Figure 8 The object input box shown allows you to enter object replacement information for the initial animation. The animation processing platform responds to this information, which includes the target object's address. Based on this address, it retrieves the target object, replaces the object in the initial animation with the target object, and obtains the target animation.
[0115] Step 714: Background replacement.
[0116] Utilizing animation processing platforms such as Figure 8 The background input box shown allows you to enter background replacement information for the initial animation. The animation processing platform responds to this information, which includes the target image address. Based on the target image address, the platform retrieves the target image and replaces the background image in the initial animation with the target image, thus obtaining the target animation.
[0117] Step 716: Object adjustment.
[0118] Utilizing animation processing platforms such as Figure 8 The coordinate input box shown is used to input the object adjustment message for the initial animation. The animation processing platform responds to the object adjustment information for the initial animation. The object adjustment information includes the coordinate information of the part to be adjusted and the adjustment scale message. Based on the coordinate information, the part of the object to be adjusted in the initial animation is determined. Based on the adjustment scale message, the part to be adjusted is adjusted to obtain the adjusted target animation.
[0119] Step 718: The terminal requests a list of resources.
[0120] Click as Figure 8 The list operation buttons shown request a list of resources.
[0121] Step 720: Display the list of target resources.
[0122] After receiving the resource list request message, the animation processing platform retrieves the pre-saved preset resource list from the database, merges the cached resource list with the preset resource list based on the animation resource identification information, obtains the target resource list, opens the resource list interface, and displays the target resource list in the resource list interface.
[0123] Step 722: Select the first animation resource.
[0124] Receive the selection instruction for the first animation resource in the target resource list, generate the first initial animation based on the first animation resource, and play the first initial animation.
[0125] Step 724: Delete the first animation resource.
[0126] The animation processing platform responds to the terminal's animation deletion message for the first initial animation, deletes the first animation resource corresponding to the first initial animation from the target resource list, obtains an updated target resource list, and displays the updated target resource list in the resource list interface.
[0127] Step 726: Select the second animation resource.
[0128] Receive the selection instruction for the second animation resource in the updated target resource list, and generate the target animation based on the second animation resource.
[0129] Step 728: Click the Generate Address button.
[0130] The animation processing platform can also respond to the address generation instruction for the first animation resource and generate the address information of the first animation resource.
[0131] Step 730: Save the animation resource address.
[0132] The first animation resource is uploaded to the resource server, and the address information of the first animation resource is saved to the database.
[0133] Step 732: Generate and preview the animation.
[0134] According to the embodiments of this application, animation resources uploaded by a terminal are received; an initial animation is generated based on the animation resources and played; an adjustment component is displayed, and in response to adjustment messages from the adjustment component, the initial animation is adjusted to obtain a target animation, which is then played. Adjusting and previewing the initial animation resources through an animation processing platform reduces the time spent managing animation resources across platforms and improves the processing efficiency of animation resources. Furthermore, adjusting the animation resources in response to adjustment messages from the adjustment component further improves the accuracy of animation resource processing.
[0135] Corresponding to the above method embodiments, this application also provides an animation processing apparatus embodiment. Figure 9 A schematic diagram of the structure of an animation processing apparatus according to an embodiment of this application is shown. Figure 9 As shown, this device is used in an animation processing platform and includes:
[0136] The receiving module 902 is configured to receive animation resources uploaded by the terminal;
[0137] The playback module 904 is configured to generate an initial animation based on the animation resource and play the initial animation.
[0138] The adjustment module 906 is configured to display the adjustment component, and in response to the adjustment message of the adjustment component, adjusts the initial animation to obtain the target animation and plays the target animation.
[0139] In an optional implementation, the playback module 904 is further configured to:
[0140] Load the animation resources onto the preset canvas to generate multiple animation groups and play buttons for each animation group, and display each play button.
[0141] Upon detecting that the first play button has been triggered, the initial animation in the first animation group corresponding to the first play button is played.
[0142] In an optional implementation, the playback module 904 is further configured to:
[0143] Upon receiving a resource list request message, the resource list interface is opened, and the target resource list, which includes multiple animation resources, is displayed in the resource list interface.
[0144] Receive a selection instruction for a first animation resource in the target resource list, generate a first initial animation based on the first animation resource, and play the first initial animation.
[0145] In one alternative embodiment, the apparatus further includes a cache module configured to:
[0146] Cache the animation resources to the cached resource list;
[0147] The merge module is configured as follows:
[0148] Retrieve a pre-saved list of preset resources from the database;
[0149] Based on the animation resource identification information, the cached resource list is merged with the preset resource list to obtain the target resource list.
[0150] In an optional implementation, the adjustment message includes an animation deletion message; the adjustment module 906 is further configured to:
[0151] In response to the animation deletion message of the adjustment component, the first animation resource corresponding to the first initial animation in the target resource list is deleted, and an updated target resource list is obtained;
[0152] The updated target resource list is displayed on the resource list interface;
[0153] Receive a selection instruction for a second animation resource in the updated target resource list, and generate a target animation based on the second animation resource.
[0154] In an optional implementation, the adjustment message includes object replacement information, which includes target object address information; the adjustment module 906 is further configured to:
[0155] Based on the target object address information, obtain the target object;
[0156] The target animation is obtained by replacing the object in the initial animation with the target object.
[0157] In an optional implementation, the adjustment message includes background replacement information, which includes target image address information; the adjustment module 906 is further configured to:
[0158] Obtain the target image based on the target image address information;
[0159] The background image in the initial animation is replaced with the target image to obtain the target animation.
[0160] In an optional implementation, the adjustment message includes object adjustment information, which includes coordinate information of the part to be adjusted and adjustment scale information; the adjustment module 906 is further configured to:
[0161] Based on the coordinate information, determine the parts of the object in the initial animation that need to be adjusted;
[0162] Based on the adjustment scale message, the part to be adjusted is adjusted to obtain the adjusted target animation.
[0163] The solution provided in this application receives animation resources uploaded by a terminal; an initial animation is generated based on the animation resources and played; an adjustment component is displayed, and the initial animation is adjusted in response to adjustment messages from the adjustment component to obtain a target animation, which is then played. Adjusting and previewing the initial animation resources through an animation processing platform reduces the time spent managing animation resources across platforms, improves the processing efficiency of animation resources, and further enhances the accuracy of animation resource processing by adjusting the animation resources in response to adjustment messages from the adjustment component.
[0164] The above is an illustrative scheme of an animation processing apparatus according to this embodiment. It should be noted that the technical solution of this animation processing apparatus and the technical solution of the above-described animation processing method belong to the same concept. For details not described in detail in the technical solution of the animation processing apparatus, please refer to the description of the technical solution of the above-described animation processing method.
[0165] Figure 10 A structural block diagram of a computing device 1000 according to an embodiment of this application is shown. The components of the computing device 1000 include, but are not limited to, a memory 1010 and a processor 1020. The processor 1020 is connected to the memory 1010 via a bus 1030, and a database 1050 is used to store data.
[0166] The computing device 1000 also includes an access device 1040, which enables the computing device 1000 to communicate via one or more networks 1060. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 1040 may include one or more of any type of wired or wireless network interface (e.g., Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (World Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0167] In one embodiment of this application, the aforementioned components of the computing device 1000 and Figure 10 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 10 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0168] The computing device 1000 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 1000 can also be a mobile or stationary server.
[0169] When the processor 1020 executes the computer instructions, it performs the following steps:
[0170] Receive animation resources uploaded by the terminal;
[0171] Based on the animation resources, generate an initial animation and play the initial animation;
[0172] Display adjustment components, respond to adjustment messages from the adjustment components, adjust the initial animation to obtain the target animation, and play the target animation.
[0173] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above-described animation processing method belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-described animation processing method.
[0174] One embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, perform the following steps:
[0175] Receive animation resources uploaded by the terminal;
[0176] Based on the animation resources, generate an initial animation and play the initial animation;
[0177] Display adjustment components, respond to adjustment messages from the adjustment components, adjust the initial animation to obtain the target animation, and play the target animation.
[0178] The above is an illustrative embodiment of a computer-readable storage medium. It should be noted that the technical solution of this storage medium and the technical solution of the above-described animation processing method belong to the same concept. Details not described in detail in the technical solution of the storage medium can be found in the description of the technical solution of the above-described animation processing method.
[0179] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0180] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0181] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0182] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0183] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. An animation processing method, characterized in that, Applied to an animation processing platform, the method includes: Receive animation resources uploaded by the terminal; Based on the animation resources, generate an initial animation and play the initial animation; The display adjustment component, in response to the adjustment message of the adjustment component, adjusts the initial animation to obtain the target animation, and plays the target animation; wherein: The adjustment component includes an adjustment input box; The adjustment message includes object adjustment information input from the adjustment input box, and the object adjustment information includes the coordinate information of the part to be adjusted and the adjustment scale message; The step of adjusting the initial animation in response to the adjustment message from the adjustment component to obtain the target animation includes: Based on the coordinate information, determine the parts of the object in the initial animation that need to be adjusted; Based on the adjustment scale message, the part to be adjusted is adjusted to obtain the adjusted target animation; The step of generating an initial animation based on the animation resource and playing the initial animation includes: The animation resources are loaded onto a preset canvas, generating multiple animation groups of preset duration and corresponding play buttons for each animation group, and each play button is displayed. Upon detecting that the first play button has been triggered, the initial animation in the first animation group corresponding to the first play button is played.
2. The animation processing method according to claim 1, characterized in that, The step of generating an initial animation based on the animation resource and playing the initial animation includes: Upon receiving a resource list request message, the resource list interface is opened, and the target resource list, which includes multiple animation resources, is displayed in the resource list interface. Receive a selection instruction for a first animation resource in the target resource list, generate a first initial animation based on the first animation resource, and play the first initial animation.
3. The animation processing method according to claim 2, characterized in that, After the step of receiving the animation resources uploaded by the receiving terminal, the method further includes: Cache the animation resources to the cached resource list; Before the steps of opening the resource list interface and displaying the target resource list in the resource list interface, the method further includes: Retrieve a pre-saved list of preset resources from the database; Based on the animation resource identification information, the cached resource list is merged with the preset resource list to obtain the target resource list.
4. The animation processing method according to claim 2, characterized in that, The adjustment message includes an animation deletion message; The step of adjusting the initial animation in response to the adjustment message from the adjustment component to obtain the target animation includes: In response to the animation deletion message of the adjustment component, the first animation resource corresponding to the first initial animation in the target resource list is deleted, and an updated target resource list is obtained; The updated target resource list is displayed on the resource list interface; Receive a selection instruction for a second animation resource in the updated target resource list, and generate a target animation based on the second animation resource.
5. The animation processing method according to claim 1, characterized in that, The adjustment message includes object replacement information, which includes target object address information; The step of adjusting the initial animation in response to the adjustment message from the adjustment component to obtain the target animation includes: Based on the target object address information, obtain the target object; The target animation is obtained by replacing the object in the initial animation with the target object.
6. The animation processing method according to claim 1, characterized in that, The adjustment message includes background replacement information, which includes target image address information; The step of adjusting the initial animation in response to the adjustment message from the adjustment component to obtain the target animation includes: Obtain the target image based on the target image address information; The background image in the initial animation is replaced with the target image to obtain the target animation.
7. An animation processing device, characterized in that, The device, applied to an animation processing platform, includes: The receiving module is configured to receive animation resources uploaded by the terminal; The playback module is configured to generate an initial animation based on the animation resource and play the initial animation. An adjustment module is configured to display an adjustment component, respond to an adjustment message from the adjustment component, adjust the initial animation to obtain a target animation, and play the target animation; wherein: The adjustment module includes an adjustment input box; The adjustment message includes object adjustment information input from the adjustment input box, and the object adjustment information includes the coordinate information of the part to be adjusted and the adjustment scale message; The adjustment module is also used to determine the parts of the object to be adjusted in the initial animation based on the coordinate information; Based on the adjustment scale message, the part to be adjusted is adjusted to obtain the adjusted target animation; The playback module is also used for: The animation resources are loaded onto a preset canvas, generating multiple animation groups of preset duration and corresponding play buttons for each animation group, and each play button is displayed. Upon detecting that the first play button has been triggered, the initial animation in the first animation group corresponding to the first play button is played.
8. A computing device, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that, When the processor executes the computer instructions, it implements the steps of the method according to any one of claims 1-6.
9. A computer-readable storage medium storing computer instructions, characterized in that, When executed by a processor, the computer instructions implement the steps of the method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Content-based video segmentation
CN105518783A
Animation processing method and device, computer readable storage medium and computer equipment
CN112073794A
Data processing method and device
CN113656736A