Animation style video generation method and device, equipment and medium
Through the animation style video generation method, users can personalize video creation based on the selected animation style and input text content, solving the problem of lack of personality in existing tools and limited creative space, and achieving rich video generation and user Friendly creative experience.
Patent Information
- Application Number
- CN202411516031.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-18
AI Technical Summary
Existing animation style text generation tools usually provide prefabricated animation templates, limiting the user's creative space, resulting in the lack of personality in the generated videos, and having difficulty handling large amounts of text and customizing animation styles.
By confirming the animation style selected by the user, receiving the text content and text style input by the user, confirming the corresponding animation templates and elements based on this information, generating and rendering animation effects, matching and outputting personalized animation videos, and allowing users to use the video Make modifications and adjustments.
Provides rich animation style selection to meet the video needs of different themes and styles, giving the content stronger expressiveness, allowing users to customize text styles and animation effects according to their needs, quickly create diverse personalized video works, and reduce The creative threshold has been strengthened and users’ creative confidence and fun are enhanced.
Smart Images

Figure CN119478141A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of image processing technology and natural language processing technology, and in particular to an animation style video generation method, device, equipment and medium. Background Art
[0002] As the demand for digital content grows rapidly, there are still some challenges in achieving high-quality, personalized animation-style text generation videos on the web. Current solutions often require users to have professional video editing skills, or only provide limited template selection, which limits users' ability to create diverse animation-style videos on the web. In addition, existing products still have some shortcomings in user experience and visual effects.
[0003] Many existing animation-style text generation tools tend to provide pre-made animation templates, which limits the user's creative space and makes it difficult for users to flexibly adjust animation elements, resulting in a lack of personality in the generated videos. In addition, some tools may have difficulties in processing large amounts of text and customized animation styles, limiting their applicability in practical applications. Summary of the invention
[0004] The present invention provides an animation style video generation method, device, computer equipment and medium to solve the technical problem that animation style text generation tools tend to provide pre-made animation templates, which leads to the lack of personality of the generated video.
[0005] In a first aspect, a method for generating an animation-style video is provided, comprising:
[0006] Confirm the current animation style selected by the user;
[0007] Receive the text content and text style selected by the user;
[0008] Determine the animation template and animation element corresponding to the current animation style according to the text content and text style;
[0009] Performing animation effect generation and rendering processing on the animation template and the animation elements and generating a first animation video;
[0010] Matching the text content with the first animation video in time sequence, and outputting a second animation video in the current animation style;
[0011] Receive user modification processing on the text content, visual style and animation timing of the second animation video, and output a third animation video in the current animation style.
[0012] In a second aspect, a device for generating an animation-style video is provided, comprising:
[0013] The style selection module is used to confirm the current animation style selected by the user;
[0014] A text receiving module, used to receive the text content input by the user and the text style selected;
[0015] An animation confirmation module, used to confirm the animation template and animation elements corresponding to the current animation style according to the text content and text style;
[0016] A generation and rendering module, used to perform animation effect generation and rendering processing on the animation template and the animation element and generate a first animation video;
[0017] A timing matching module, used for performing timing matching between the text content and the first animation video, and outputting a second animation video in a current animation style;
[0018] The modification output module is used to receive the user's modification processing of the text content, visual style and animation timing of the second animation video, and output the third animation video under the current animation style.
[0019] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned animation style video generation method when executing the computer program.
[0020] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned animation style video generation method are implemented.
[0021] The scheme implemented by the above-mentioned animation-style video generation method, device, computer equipment and storage medium can provide a rich selection of animation styles to meet the needs of videos of different themes and styles, and give the content a stronger expressiveness; text styles and animation effects can be customized according to needs, and diversified personalized video works can be created quickly; and it can be easily created on the web page, providing non-professional users with a more friendly video creation tool, lowering the creation threshold, and enhancing the user's confidence and fun in creation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0024] Figure 1 is a schematic diagram of an application environment of a method for generating an animation style video in one embodiment of the present invention;
[0025] Figure 2 is a flow chart of a method for generating an animation style video in one embodiment of the present invention;
[0026] Figure 3 yes Figure 1 A schematic flow chart of a specific implementation of step S102;
[0027] Figure 4 yes Figure 1 A schematic flow chart of a specific implementation of step S103;
[0028] Figure 5 yes Figure 1 A schematic flow chart of a specific implementation of step S104;
[0029] Figure 6 yes Figure 1 A schematic flow chart of a specific implementation of step S105;
[0030] Figure 7 yes Figure 1 A schematic diagram of a specific implementation process of step S106
[0031] Figure 8 is another flowchart of a method for generating an animation style video in one embodiment of the present invention;
[0032] Fig. 9 is a structural schematic diagram of an animation style video generating device in one embodiment of the present invention;
[0033] Fig.10 is a schematic diagram of a structure of a computer device in one embodiment of the present invention;
[0034] Fig.11 It is another structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The animation style video generation method provided by the embodiment of the present invention can be applied in Figure 1 In an application environment, the client communicates with the server through a network, and the network is used to provide a medium for a communication link between the terminal device and the server. The terminal device can be a variety of electronic devices with a display screen and supporting web browsing, including but not limited to computers, smart phones, etc. The server can receive the text content and text style input by the user on the user interface of the client, and perform animation selection, generation and rendering processing according to the user input to achieve the output of the animation video. The present invention is described in detail below through specific embodiments.
[0037] See also Figure 2 As shown, Figure 2 A schematic flow chart of a method for generating an animation-style video provided by an embodiment of the present invention includes the following steps S101 to S106.
[0038] S101, confirming the current animation style selected by the user;
[0039] In this step, the user interface provides users with a variety of animation styles to choose from, such as cartoon, hand-painted, abstract, etc. Each style has unique visual effects and characteristics; to help users make choices, a preview effect is provided for each style, allowing users to view the animation effect in real time before making a choice.
[0040] S102, receiving text content input by a user and a text style selected;
[0041] S103, confirming the animation template and animation elements corresponding to the current animation style according to the text content and text style;
[0042] In steps S102 to S103, after the text content and text style input by the user in the graphical interface are parsed, the corresponding animation templates and animation elements are matched in the template library and element library.
[0043] S104, performing animation effect generation and rendering processing on the animation template and the animation elements to generate a first animation video;
[0044] S105, performing time sequence matching between the text content and the first animation video, and outputting a second animation video in the current animation style;
[0045] S106: receiving a modification request from a user for text content, visual style, and animation timing of the second animation video, and outputting a third animation video in the current animation style.
[0046] In steps S104 to S106, in response to the user's operations of adding animation effects, timing matching, and effect adjustment on the animation template and animation elements in the user interface, a third animation video in the current animation style can be output.
[0047] In this embodiment, the animation style video generation process based on steps S101 to S106 provides users with a variety of animation style options to meet the needs of videos of different themes and styles, giving the content stronger expressiveness; text styles and animation effects can be customized according to needs, and diversified personalized video works can be quickly created; and convenient creation can be carried out on the web page, providing non-professional users with a more friendly video creation tool, lowering the creation threshold, and enhancing user confidence and fun in creation.
[0048] In one embodiment, if Figure 3 As shown, step S102 includes:
[0049] S201, receiving text content input by a user, where the text content includes at least one of a title, a plot, and a description;
[0050] S202: Receive a text style selected by a user for text content, where the text style includes at least one of a font, a font size, a color, a text animation effect, and a transition method.
[0051] In this embodiment, a text box for receiving user input is set in the user interface, and the text box includes but is not limited to a title box, a plot box, and a description box. A style bar is set under each text box, and the style bar defines a variety of text styles such as font, font size, color, text animation effect, and transition mode. The text content entered by the user in each text box and the selected text style are received and sent to the analysis model for subsequent parsing processing.
[0052] In one embodiment, if Figure 4 As shown, step S103 includes:
[0053] S301, performing scene and action analysis on the title, plot and description of the text content, outputting an adapted scene set and action set, and obtaining a corresponding animation template according to the user's screening and combination of the scene set and action set;
[0054] S302: Output an adaptive animation element set according to the text style of the text content, and obtain corresponding animation elements according to the user's screening of the animation element set.
[0055] In this embodiment, based on the text content and text style received in the aforementioned steps S201 to S202, a semantic analysis model (such as a Word2Vec model, a GloVe model, and a Transformer model, etc.) can be used to perform text analysis on the text content and extract key information, and an adapted scene set and action set are matched according to the extracted key information and fed back to the user interface for the user to perform personalized combination and use; based on the user's screening and combination of the scene set and the action set, the corresponding animation template and animation element can be obtained; it should be understood that if the user does not perform screening and combination, the default animation template and animation element are used.
[0056] In one embodiment, if Figure 5 As shown, step S104 includes:
[0057] S401, using the front-end graphics library and the animation library to perform DOM operations on the animation template and the animation element, so as to add animation effects to the animation template and the animation element;
[0058] S402: Render the animation template and animation elements after the DOM operation to generate a first animation video.
[0059] In this embodiment, based on the animation template and animation elements confirmed in the aforementioned steps S301 to S302, a front-end graphics library (such as SVG, Canvas) and an animation library (such as GreenSock Animation Platform) are used to realize generation and rendering of animation effects, and generate a first animation video.
[0060] In some embodiments of generating and rendering animation effects, for example, SVG may be used to achieve the generation and rendering of animation effects. SVG is an XML-based image format that can be directly embedded in the user interface and can be controlled and animated by CSS and JavaScript. The specific steps are as follows:
[0061] First create the SVG element: Use it in the user interface <svg>The tag creates an SVG element and defines its width and height.
[0062] Then add graphic elements: add various graphics to the SVG element, such as rectangles, circles, paths, etc.
[0063] Then apply CSS styles: CSS styles can be used to control the appearance of SVG elements, such as color, size, border, etc.
[0064] Finally, use JavaScript to add animation: Through JavaScript and DOM operations of SVG elements, animation effects such as moving, scaling, and rotating can be achieved.
[0065] In one embodiment, if Figure 6 As shown, step S105 includes:
[0066] S501, confirming the key frame animation of the text content in the first animation video;
[0067] S502, defining the states of the animation elements in the key frame animation at different time points, and performing transition processing on the states at different time points through the timeline;
[0068] S503, binding states at different time points to corresponding animation elements;
[0069] S504: Delay the start time of the corresponding animation element so that the appearance time of the corresponding text content and the corresponding animation element match, and output a second animation video in the current animation style.
[0070] In this embodiment, steps S501 to S504 match the text content and the animation elements in time sequence, which can produce a smooth animation effect. The time sequence matching method can use key frame animation and tween animation and other technologies.
[0071] In some embodiments of the timing matching method, for example, CSS keyframe animation can be used to implement the specific process of timing matching. The CSS keyframe animation technology can define the state of animation elements at different time points, and then transition these states through the timeline. The keyframes of text and other animation elements can be synchronously controlled. The specific steps are:
[0072] First, define the HTML structure;
[0073] Then, use CSS to create animations, which mainly includes defining keyframe animations and applying them to animation elements. Defining keyframe animations means: using @keyframes to define animations and specify the state of elements at different time points. Applying animations to elements means: using animation properties to bind animations to specified animation elements and set duration, delay, etc.
[0074] Finally, for timing matching, you can set animation-delay to delay the start time of the corresponding animation element so that the appearance time of the corresponding text content and the animation element completely matches.
[0075] In one embodiment, if Figure 7 As shown, step S106 includes:
[0076] S601, in response to the user's text editing and word-level control modification operation on the text content of the second animation video, re-rendering the animation effect of the second animation video and outputting a third animation video in the current animation style;
[0077] S602: in response to the user's modification operation of the font, color, gradient, shadow and highlight effects of the visual style of the second animation video, re-render the animation effects of the second animation video and output a third animation video in the current animation style;
[0078] S603: In response to the user's modification operation of the animation speed and duration of the animation timing of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video in the current animation style is output.
[0079] In this embodiment, based on the second animation video outputted in the aforementioned steps S501 to S504, the user can modify and adjust it in a variety of ways. The adjustment methods can be divided into several categories, which respectively involve the text content, visual style, animation timing, interactivity, etc. of the animation. According to the user's modification, the embodiment of the above animation generation method is newly executed, and a modified third animation video can be output. The specific modification and adjustment methods are as follows.
[0080] The first is the modification of text content, which mainly includes implementing editing and word-level control;
[0081] Real-time editing means: receiving the modified text entered by the user in the corresponding text box;
[0082] Word-level control means: independently setting animation effects for specific words, phrases or sentences, such as adding different animation effects (such as flashing, scaling, and rotation) to a word;
[0083] The text content modification is implemented by using front-end frameworks such as JavaScript or React so that changes in text input can trigger the regeneration and rendering of animation effects.
[0084] The second is the modification of visual style, mainly font style modification and color theme modification;
[0085] Font style modification means: receiving the font type (such as serif, sans serif, handwriting, etc.) reselected by the user for the corresponding text content;
[0086] Color theme modification means: accepting users to select different text colors, background colors, or even gradient effects for each letter or word through the color palette;
[0087] Font style modification and color theme modification are achieved by changing the font through the font-family property of CSS or using a dynamic style sheet; dynamic color modification can be achieved by combining JavaScript and CSS.
[0088] Visual style modification also includes modification of gradient, shadow and highlight effects, which mainly refers to: receiving the gradient background effect added by the user to the text, or adding highlights and shadows to the text to enhance the visual effect; and receiving different filter effects (blur, inverted color, embossing, etc.) selected by the user for the corresponding animation effect;
[0089] The modification of gradient, shadow and highlight effects is achieved by using the text-shadow or filter property of CSS to control the shadow or filter effect.
[0090] The third type is to modify the animation timing, which mainly includes adjusting the animation duration and easing effect selection;
[0091] Adjusting the duration of the animation means: allowing the user to adjust the duration of each animation through the slider to control the display speed of the animation;
[0092] Easing effect selection means: receiving different easing effects (such as linear, elastic, and fade-in and fade-out) selected by the user to control the transition effect of the animation;
[0093] The animation timing modification is achieved by modifying the animation-duration in CSS or the duration parameter of GSAP to achieve the animation duration.
[0094] In one embodiment, if Figure 8 As shown, the animation style video generation method of the present invention also includes:
[0095] S701, in response to a user's packaging operation on a third animation video, obtaining a video stream;
[0096] S702: In response to the user's uploading operation on the video stream, send it to the associated social media platform.
[0097] In this embodiment, a convenient sharing option is provided. In response to the user's sharing operation, the third animation video can be automatically packaged and a video stream (such as an MP4 format video) can be obtained; and it can be quickly forwarded to the associated social media platform.
[0098] Based on the implementation example of the aforementioned animation video generation method, an innovative solution for generating videos with animation-style text on a web page is implemented; users can easily generate personalized animation-style videos without professional skills, meeting the video content requirements in different scenarios, and bringing users a richer visual experience and creative fun.
[0099] The embodiment of the present invention provides an animation style video generation device, which corresponds one-to-one to the animation style video generation method in the above embodiment. Fig. 9 As shown, the animation style video generation device includes a style selection module 801, a text receiving module 802, an animation confirmation module 803, a generation and rendering module 804, a timing matching module 805 and a modification output module 806.
[0100] The style selection module 801 is used to confirm the current animation style selected by the user;
[0101] The text receiving module 802 is used to receive the text content input by the user and the text style selected;
[0102] Animation confirmation module 803, used to confirm the animation template and animation elements corresponding to the current animation style according to the text content and text style;
[0103] A generation and rendering module 804, used to perform animation effect generation and rendering processing on the animation template and the animation element and generate a first animation video;
[0104] A timing matching module 805 is used to perform timing matching between the text content and the first animation video, and output a second animation video in the current animation style;
[0105] The modification output module 806 is used to receive the modification processing of the text content, visual style and animation timing of the second animation video by the user, and output the third animation video under the current animation style.
[0106] In one embodiment, the text receiving module 902 is specifically configured to:
[0107] Receiving text content input by a user, the text content including at least one of a title, a plot, and a description;
[0108] A text style selected by a user for text content is received, where the text style includes at least one of a font, a font size, a color, a text animation effect, and a transition method.
[0109] In one embodiment, the animation confirmation module 903 is specifically used to:
[0110] Perform scene and action analysis on the title, plot and description of the text content, output the adapted scene set and action set, and obtain the corresponding animation template according to the user's screening and combination of the scene set and action set;
[0111] According to the text style of the text content, an adaptive animation element set is output, and according to the user's screening and processing of the animation element set, the corresponding animation element is obtained.
[0112] In one embodiment, the generating and rendering module 904 is specifically configured to:
[0113] Utilize the front-end graphics library and animation library to perform DOM operations on the animation template and animation elements to achieve adding animation effects to the animation template and animation elements.
[0114] The animation template and animation elements after the DOM operation are rendered to generate a first animation video.
[0115] In one embodiment, the timing matching module 905 is specifically configured to:
[0116] Confirm the key frame animation of the text content in the first animation video;
[0117] Define the states of animation elements in keyframe animation at different time points, and perform transition processing on the states at different time points through the timeline;
[0118] Bind the states at different time points to the corresponding animation elements;
[0119] The start time of the corresponding animation element is delayed so that the appearance time of the corresponding text content and the corresponding animation element matches, and the second animation video under the current animation style is output.
[0120] In one embodiment, the modified output module 906 is specifically configured to:
[0121] In response to the user's modification operation of text editing and word-level control on the text content of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video in the current animation style is output;
[0122] In response to the user's modification operation of the font, color, gradient, shadow and highlight effects on the visual style of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video under the current animation style is output;
[0123] In response to the user's modification operation of the animation speed and duration of the animation timing of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video in the current animation style is output.
[0124] In one embodiment, the animation style video generating device is further used for:
[0125] In response to the user's packaging operation on the third animation video, a video stream is obtained;
[0126] In response to the user uploading the video stream, it is sent to the associated social media platform.
[0127] For the specific definition of the animation style video generation device, please refer to the definition of the animation style video generation method above, which will not be repeated here. Each module in the above animation style video generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0128] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps of a server side of an animation style video generation method.
[0129] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, the functions or steps on the client side of an animation style video generation method are implemented.
[0130] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0131] Confirm the current animation style selected by the user;
[0132] Receive the text content and text style selected by the user;
[0133] Determine the animation template and animation elements corresponding to the current animation style according to the text content and text style;
[0134] Performing animation effect generation and rendering processing on the animation template and the animation elements and generating a first animation video;
[0135] Match the text content with the first animation video in time sequence, and output a second animation video in the current animation style;
[0136] Receive the modification processing of the text content, visual style and animation timing of the second animation video by the user, and output the third animation video under the current animation style.
[0137] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0138] Confirm the current animation style selected by the user;
[0139] Receive the text content and text style selected by the user;
[0140] Determine the animation template and animation elements corresponding to the current animation style according to the text content and text style;
[0141] Performing animation effect generation and rendering processing on the animation template and the animation elements and generating a first animation video;
[0142] Match the text content with the first animation video in time sequence, and output a second animation video in the current animation style;
[0143] Receive the modification processing of the text content, visual style and animation timing of the second animation video by the user, and output the third animation video under the current animation style.
[0144] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0145] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0146] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0147] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.< / svg>
Claims
1. A method for generating an animation style video, characterized in that: include: Confirm the current animation style selected by the user; Receive the text content and text style selected by the user; Determine the animation template and animation element corresponding to the current animation style according to the text content and text style; Performing animation effect generation and rendering processing on the animation template and the animation elements and generating a first animation video; Matching the text content with the first animation video in time sequence, and outputting a second animation video in the current animation style; Receive user modification processing on the text content, visual style and animation timing of the second animation video, and output a third animation video in the current animation style.
2. The method for generating an animation-style video according to claim 1, wherein: The receiving of the text content input by the user and the text style selected by the user includes: Receiving text content input by a user, wherein the text content includes at least one of a title, a plot, and a description; A text style selected by a user for the text content is received, where the text style includes at least one of a font, a font size, a color, a text animation effect, and a transition method.
3. The method for generating an animation-style video according to claim 2, wherein: The step of determining the animation template and animation elements corresponding to the current animation style according to the text content and the text style includes: Performing scene and action analysis on the title, plot and description of the text content, outputting an adapted scene set and action set, and obtaining a corresponding animation template according to the user's screening and combination of the scene set and action set; According to the text style of the text content, an adapted animation element set is output, and according to the screening process of the animation element set by the user, a corresponding animation element is obtained.
4. The method for generating an animation-style video according to claim 1, wherein: The step of performing animation effect generation and rendering processing on the animation template and the animation element and generating a first animation video includes: Perform DOM operations on the animation template and animation elements using the front-end graphics library and animation library to achieve adding animation effects to the animation template and animation elements; The animation template and animation elements after the DOM operation are rendered to generate a first animation video.
5. The method for generating an animation-style video according to claim 1, wherein: The step of performing time sequence matching between the text content and the first animation video and outputting a second animation video in a current animation style includes: Confirming the key frame animation of the text content in the first animation video; Defining the states of the animation elements in the key frame animation at different time points, and performing transition processing on the states at different time points through a timeline; Bind the states at different time points to the corresponding animation elements; The start time of the corresponding animation element is delayed so that the appearance time of the corresponding text content and the corresponding animation element matches, and the second animation video under the current animation style is output.
6. The method for generating an animation-style video according to claim 1, wherein: The receiving of the modification process of the text content, visual style and animation timing of the second animation video by the user, and outputting the third animation video in the current animation style, comprises: In response to the user's modification operation of text editing and word-level control on the text content of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video in the current animation style is output; In response to a user modifying the font, color, gradient, shadow and highlight effects of the visual style of the second animation video, re-rendering the animation effects of the second animation video and outputting a third animation video in the current animation style; In response to the user's modification operation of the animation speed and duration of the animation timing of the second animation video, the animation effect of the second animation video is re-rendered and a third animation video in the current animation style is output.
7. The method for generating an animation-style video according to claim 1, wherein: Also includes: In response to a user's packaging operation on the third animation video, a video stream is obtained; In response to a user uploading operation on the video stream, the video stream is sent to a related social media platform.
8. An animation style video generation device, characterized in that: include: The style selection module is used to confirm the current animation style selected by the user; A text receiving module, used to receive the text content input by the user and the text style selected; An animation confirmation module, used to confirm the animation template and animation elements corresponding to the current animation style according to the text content and text style; A generation and rendering module, used to perform animation effect generation and rendering processing on the animation template and the animation element and generate a first animation video; A timing matching module, used for performing timing matching between the text content and the first animation video, and outputting a second animation video in a current animation style; The modification output module is used to receive the user's modification processing of the text content, visual style and animation timing of the second animation video, and output the third animation video under the current animation style.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for generating an animation-style video according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for generating an animation-style video according to any one of claims 1 to 7 are implemented.