Animation generation method and device, electronic equipment and computer readable storage medium
Through natural language semantic recognition and animation material matching technology, animations are automatically generated, which solves the problems of tedious and low-efficiency animation creation process and achieves efficient and low-cost animation generation.
Patent Information
- Application Number
- CN202310185255.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
The animation creation process is cumbersome, low-efficiency, and high-cost, and it is difficult to quickly generate high-quality animations with existing technology.
By obtaining input text information, perform natural language semantic recognition, extract feature information of animation elements, and match animation materials to generate target animations based on these feature information, simplifying the animation generation process.
It realizes the automation of animation generation, improves creation efficiency, reduces costs, and simplifies the operation process, allowing users to directly obtain the target animation by inputting text information.
Smart Images

Figure CN118537464A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an animation generation method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of science and technology, more and more users like to watch animations, and the creation and editing of animations has also become a hot research topic in the animation field.
[0003] At present, the process of creating animation is usually: the user manually creates the script, the characters and backgrounds corresponding to the script and other animation resources, and then generates the animation based on the animation resources. This process is relatively cumbersome, with low creation efficiency and high cost. Summary of the invention
[0004] The embodiments of the present application provide a visual animation generation method, device, electronic device and computer-readable storage medium, which can solve the technical problems of complicated animation generation process and low efficiency.
[0005] The present application provides an animation generation method, including:
[0006] Get the input text information;
[0007] Performing semantic recognition on the text information to display recognition results, wherein the recognition results include key information recognized based on natural language semantics, and the key information includes multiple animation element feature information;
[0008] In response to the animation generation operation for the text information, a target animation corresponding to the text information is generated, where the target animation is an animation generated based on animation materials matching the animation element feature information.
[0009] Accordingly, an embodiment of the present application provides an animation generating device, comprising:
[0010] The acquisition module is used to obtain the input text information;
[0011] A display module, used to perform semantic recognition on the text information to display the recognition result, wherein the recognition result includes key information recognized based on natural language semantics, and the key information includes multiple animation element feature information;
[0012] The generating module is used to generate a target animation corresponding to the text information in response to an animation generating operation for the text information, wherein the target animation is an animation generated based on animation materials matching the animation element feature information.
[0013] Optionally, the generation module is specifically used to perform:
[0014] In response to the animation generation operation for the text information, a plurality of animation element feature information is screened out from the key information;
[0015] Animation materials matching each of the above-mentioned animation element characteristic information are determined, and a target animation corresponding to the above-mentioned text information is generated according to the animation materials matching each of the above-mentioned animation element characteristic information.
[0016] Optionally, the generation module is specifically used to perform:
[0017] According to the key information, determine the type of animation material corresponding to the text information;
[0018] Get the animation material collection corresponding to the above animation material type;
[0019] Animation materials matching each of the above animation element feature information are selected from the above animation material collection.
[0020] Optionally, the generation module is specifically used to perform:
[0021] Selecting a plurality of first candidate animation materials that match each of the above animation element feature information from the above animation material set;
[0022] Determine the emotional attribute information corresponding to the text information according to the key information;
[0023] According to the above-mentioned emotional attribute information, the animation material matching each of the above-mentioned animation element feature information is screened out from the above-mentioned multiple first candidate animation materials.
[0024] Optionally, the generation module is specifically used to perform:
[0025] Get the attribute information of the input object of the above text information;
[0026] Animation materials matching each of the above animation element feature information and the above attribute information are selected from the above animation material collection.
[0027] Optionally, the generation module is specifically used to perform:
[0028] Filtering out an initial animation material sub-set matching the above attribute information from the above animation material set;
[0029] Animation materials matching each of the above animation element feature information are screened out from the above initial animation material subset.
[0030] Optionally, the generation module is specifically used to perform:
[0031] Determine a target object matching the input object according to the attribute information;
[0032] The sub-set corresponding to the target object in the animation material set is used as the initial animation material sub-set matching the attribute information.
[0033] Optionally, the generation module is specifically used to perform:
[0034] Get historical matching records;
[0035] The historical animation material corresponding to the historical feature information matching each of the above animation element feature information in the above historical matching record is used as the animation material matching each of the above animation element feature information.
[0036] Optionally, the generation module is specifically used to perform:
[0037] Determine the timeline information of the animation material matching the characteristic information of each animation element;
[0038] The animation material matching the characteristic information of each animation element is displayed on the above timeline information to obtain the target animation corresponding to the above text information.
[0039] Optionally, the display module is specifically used to execute:
[0040] Performing semantic recognition on the text information to obtain key information corresponding to the text information, wherein the key information includes reference information and multiple animation element feature information;
[0041] Determine the referent object corresponding to the above-mentioned referential information;
[0042] According to the reference information, the reference object and the animation element feature information, a recognition result is determined and displayed.
[0043] Optionally, the display module is specifically used to execute:
[0044] Performing semantic recognition on the text information to obtain key information corresponding to the text information, wherein the key information includes fuzzy description information and multiple animation element feature information;
[0045] Predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information;
[0046] According to the fuzzy description information, the prediction information and the animation element feature information, a recognition result is determined and displayed.
[0047] Optionally, the display module is specifically used to execute:
[0048] Determine the scene attribute information corresponding to the text information according to the key information;
[0049] Based on the scene attribute information and the fuzzy description information, prediction information corresponding to the fuzzy description information is predicted.
[0050] Optionally, the display module is also used to perform:
[0051] Performing storyboard detection on the target animation to obtain each storyboard corresponding to the target animation;
[0052] Display the target animation and the feature information of the clip animation elements corresponding to each of the storyboards.
[0053] Optionally, the animation generating device further includes:
[0054] Modify the module to execute:
[0055] In response to an editing operation on the feature information of the segment animation element corresponding to the storyboard, the storyboard is edited to obtain an edited storyboard;
[0056] Based on the above-mentioned edited storyboard, an edited animation corresponding to the above-mentioned text information is generated.
[0057] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the animation generation method provided in the embodiment of the present application.
[0058] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any animation generation method provided in the embodiment of the present application.
[0059] In addition, an embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, any one of the animation generation methods provided in the embodiment of the present application is implemented.
[0060] In an embodiment of the present application, input text information is obtained, and semantic recognition is performed on the text information to display the recognition result, which includes key information recognized based on natural language semantics, and the key information includes multiple animation element feature information. In response to an animation generation operation for the text information, a target animation corresponding to the text information is generated, and the target animation is an animation generated based on animation materials that match the animation element feature information. This enables the user to obtain the target animation corresponding to the text information as long as he inputs the text information, without the user having to perform other operations, thereby simplifying the operation of generating animations, improving the efficiency of creating animations, and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1 is a schematic diagram of a scene of an animation generation process provided by an embodiment of the present application;
[0063] Figure 2 is a flowchart of an animation generation method provided in an embodiment of the present application;
[0064] Figure 3 is a schematic diagram of a target animation provided in an embodiment of the present application;
[0065] Figure 4 is a flowchart of another animation generation method provided in an embodiment of the present application;
[0066] Figure 5 is a schematic diagram of an animation generation method provided in an embodiment of the present application;
[0067] Figure 6 is a structural schematic diagram of an animation generating device provided in an embodiment of the present application;
[0068] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0070] The embodiments of the present application provide an animation generation method, device, electronic device and computer readable storage medium. The animation generation device can be integrated in an electronic device, which can be a server or a terminal.
[0071] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0072] Furthermore, multiple servers may form a blockchain, and the servers are nodes on the blockchain.
[0073] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0074] For example, Figure 1 As shown, the terminal obtains the input text information and performs semantic recognition on the text information to display the recognition result, which includes key information recognized based on natural language semantics, and the key information includes multiple animation element feature information. In response to the animation generation operation for the text information, the multiple animation element feature information is sent to the server. The server determines the animation material that matches each animation element feature information, and returns the animation material that matches each animation element feature information to the terminal. The terminal then generates the target animation corresponding to the text information based on the animation material that matches each animation element feature information.
[0075] In addition, the term "plurality" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood as implying relative importance.
[0076] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0077] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0078] In this embodiment, the description will be made from the perspective of the animation generating device. To facilitate the description of the animation generating method of the present application, the following will be described in detail with the animation generating device integrated in the terminal, that is, with the terminal as the execution subject.
[0079] See also Figure 2 , Figure 2 : is a flowchart of an animation generation method provided by an embodiment of the present application. The animation generation method may include:
[0080] S201: Obtain input text information.
[0081] The text information refers to information that describes the content of the animation and is composed of characters, which is the basis for generating the target animation. The text information may include at least one sentence.
[0082] Other terminals can send the input text information to the terminal, and the terminal can obtain the input text information. Alternatively, the terminal can display a text input interface, and then obtain the input text information in response to an editing operation on the text input interface, wherein the terminal can obtain the input text information through an input device in response to an editing operation on the text input interface.
[0083] The text input interface may exist in the client, and the existence form of the client may be set according to actual conditions. For example, the client may be an application, a mini-program, or a web page, which is not limited in the embodiments of the present application.
[0084] An input device refers to a tool for information exchange between a user and an electronic device. An input device may include at least one of a keyboard, a mouse, a camera, a scanner, and a voice acquisition device.
[0085] When the input device is a camera, the terminal can respond to the editing operation on the text input interface, recognize and extract the image acquired by the camera, and thus obtain the input text information. When the input device is a voice acquisition device, the terminal can respond to the editing operation on the text input interface, recognize and convert the voice acquired by the voice acquisition device, and obtain the text information corresponding to the acquired voice, and the text information corresponding to the acquired voice is the input text information.
[0086] S202: Perform semantic recognition on the text information to display the recognition result, where the recognition result includes key information recognized based on natural language semantics, and the key information includes multiple animation element feature information.
[0087] Semantic recognition is an important component of Natural Language Processing (NLP) technology. Semantic recognition refers to the technology of identifying the meaning of each word in text information and determining the content expressed by the text information based on the meaning of each word in the text information.
[0088] Key information refers to information in text information that plays a role in determining the content expressed by the text information, and it can exist in the form of words or sentences. This embodiment of the application is not limited here.
[0089] For example, if the text information is “There is a turtle and a rabbit in the forest”, the key information of the text information refers to “forest”, “one”, “turtle” and “rabbit”.
[0090] The animation element feature information refers to information corresponding to the necessary factors constituting the target animation. For example, the animation element feature information may refer to one of the character feature information, action feature information, expression feature information, background feature information, prop feature information, location feature information and dialogue feature information in the animation.
[0091] In some embodiments, semantic recognition is performed on text information to display the recognition result, including:
[0092] Perform sentence segmentation on the text information to obtain the sentences corresponding to the text information;
[0093] Perform semantic recognition on each sentence to obtain the key information corresponding to the text information;
[0094] Based on the key information, determine the recognition results and display the recognition results.
[0095] Sentence segmentation refers to the process of separating text information to make it easier to understand. For example, if the text information is "There is a tortoise and a rabbit in the forest and they are racing", after the text information is segmented, the sentence "There is a tortoise and a rabbit in the forest" and the sentence "They are racing" can be obtained.
[0096] After obtaining the key information, the terminal can display the key information as the recognition result, or, after obtaining the key information, the terminal can also display the text information and the key information as the recognition results at the same time, or, after obtaining the key information, the terminal can also determine the user expression intention corresponding to the text information based on the key information, and then display the key information and the user expression intention corresponding to the text information as the recognition result.
[0097] For example, if the text information is "There is a tortoise and a rabbit in the forest and they are racing", the key information corresponding to the text information may be "forest", "one", "tortoise", "rabbit", "they" and "race", and the user's expression intention of the text information is "the tortoise and the rabbit are racing". The key information and the user's expression intention corresponding to the text information are then displayed as the recognition result.
[0098] After the terminal obtains the text information, if the text information has been manually segmented by the input object, the terminal can first perform a segmentation check on the text information. In the case where the segmentation method of the text information is correct, when segmenting the text information, the terminal can directly segment the text information according to the segmentation method of the text information. In the case where the segmentation method of the text information is incorrect, the terminal can re-segment the sentences in the text information with the incorrect segmentation method according to the correct segmentation method, thereby obtaining each sentence corresponding to the text information.
[0099] If the text information has not been manually segmented by the input object, the terminal can directly segment the text information.
[0100] A correct segmentation method refers to a segmentation method that facilitates correct understanding of the text information after the segmentation is processed, and an incorrect segmentation method refers to a segmentation method that affects understanding of the text information after the segmentation is processed.
[0101] For example, if the text information is "There are a tortoise and a rabbit in the forest, and they are racing", and the text information has been manually segmented by the user, and the manual segmentation method of the text information by the user is the correct segmentation method, then the text information is segmented directly according to the segmentation method in the text information to obtain the sentences "There are a tortoise and a rabbit in the forest" and "They are racing".
[0102] For another example, the text information “There are a tortoise and a rabbit in the forest, and they are racing” has been manually segmented by the user, but the user's manual segmentation of the text information is an incorrect segmentation method. Then, according to the correct segmentation method, the text information “There are a tortoise and a rabbit in the forest, and they are racing” is re-segmented to obtain the sentences “There are a tortoise and a rabbit in the forest” and “They are racing” corresponding to the text information.
[0103] The correct segmentation method may be pre-stored in the terminal so that the terminal can segment the text information according to the correct segmentation method.
[0104] Alternatively, in the case where the text information contains an incorrect segmentation method, the terminal may also display the sentence with the incorrect segmentation method in a first highlighting mode (the first highlighting mode may be, for example, a highlighting display), and display the correct segmentation method of the sentence with the incorrect segmentation method, and then, in response to a confirmation operation of the input object of the text information, re-segment the sentence with the incorrect segmentation method according to the correct segmentation method, or, in response to a cancellation operation of the input object, use the incorrect segmentation method in the text information as the segmentation method of the sentence with the incorrect segmentation method in the text information, that is, at this time, the segmentation method of the sentence with the incorrect segmentation method is not modified.
[0105] After obtaining each sentence in the text information, the terminal can perform semantic recognition on each sentence, thereby obtaining key information corresponding to the text information. The terminal can perform semantic recognition on each sentence simultaneously, or the terminal can perform semantic recognition on each sentence according to a preset sentence order, thereby obtaining key information corresponding to the text information. The preset sentence order can be a pre-set order or the order of each sentence in the text information.
[0106] Optionally, the process of semantic recognition of each sentence can be: segment the sentence to obtain the words corresponding to the sentence, then analyze the part of speech of each word in the sentence to obtain the part of speech of each word (the part of speech of a word can be, for example, a verb, noun, etc.), and then, according to the part of speech of each word, filter out key information from each word.
[0107] Alternatively, the process of semantic recognition of each sentence can also be: the terminal can first identify the sentence components of each sentence to obtain subject-predicate-object feature sentences, time feature sentences or place feature sentences, etc., and then identify the meaning of the subject-predicate-object feature sentences, time feature sentences and place feature sentences to obtain the key information corresponding to the text information.
[0108] For example, the text information "A long time ago, a tortoise and a rabbit were racing" corresponds to the sentences "A long time ago" and "The tortoise and the rabbit are racing". After performing sentence component analysis on the sentences "A long time ago" and "The tortoise and the rabbit are racing", it can be determined that the sentence "A long time ago" is a time feature sentence, and the sentence "The tortoise and the rabbit are racing" is a subject-predicate-object sentence. The time feature sentence is identified by meaning, and the key information "time feature information" is obtained. The subject-predicate-object sentence is identified by meaning, and the key information "role feature information (tortoise and rabbit)" and the key information "action feature information (racing)" are obtained.
[0109] In an embodiment of the present application, text information is segmented to obtain sentences corresponding to the text information, and then semantic recognition is performed on each sentence to obtain key information corresponding to the text information. The key information is used as a recognition result, and the recognition result is displayed, so that the input object does not need to manually segment the text information, or when the input object makes mistakes in segmenting the text information, the sentences with the mistakes can be re-segmented.
[0110] In some other embodiments, semantic recognition is performed on text information to display the recognition result, including:
[0111] Perform semantic recognition on the text information to obtain key information corresponding to the text information, the key information including reference information and multiple animation element feature information;
[0112] Determine the referent object corresponding to the referential information;
[0113] The recognition result is determined based on the reference information, the reference object and the feature information of the animation elements, and the recognition result is displayed.
[0114] There is usually some referential information in text information. For example, the referential information can be "this", "that", "these", "those", "it", "she" or "he". When the terminal generates the target animation, it is necessary to clarify the referential object corresponding to the referential information. Therefore, in an embodiment of the present application, after obtaining the key information in the text information, if the referential information exists in the key information, the referential object corresponding to the referential information is first determined, and then the referential information, the referential object and the animation element feature information are used as the recognition result, and the recognition result is displayed.
[0115] For example, the text information is "The rabbit and the turtle are good friends, they go to school together every day", "they" is the reference information, and the referent of the reference information is "the rabbit and the turtle". At this time, the recognition result is "The rabbit and the turtle are good friends, they (the rabbit and the turtle) go to school together every day".
[0116] After displaying the recognition result, if the reference object corresponding to the reference information determined by the terminal is wrong, the input object can modify the reference object corresponding to the reference information. At this time, the terminal can respond to the modification operation of the reference object and modify the reference object corresponding to the reference information to the reference object corresponding to the modification operation, thereby improving the accuracy of the reference object, thereby making the obtained target animation more accurate.
[0117] The reference object corresponding to the reference information determined by the terminal is wrong, which means that the reference object corresponding to the reference information determined by the terminal is different from the object that the input object wants to refer to. For example, when the text information is "The rabbit and the turtle go to school together, and it is very happy", the reference information is "it", and the input object uses "it" to refer to the rabbit. However, the terminal determines that the reference object corresponding to the reference information is the turtle. At this time, the reference object corresponding to the reference information determined by the terminal is wrong.
[0118] It should be noted that the reference object corresponding to the reference information may be animation element feature information, or may not be animation element feature information.
[0119] In some other embodiments, semantic recognition is performed on text information to display the recognition result, including:
[0120] Perform semantic recognition on the text information to obtain key information corresponding to the text information, the key information includes fuzzy description information and multiple animation element feature information;
[0121] Predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information;
[0122] The recognition result is determined based on the fuzzy description information, prediction information and animation element feature information, and the recognition result is displayed.
[0123] Fuzzy description information refers to information whose meaning cannot be clearly understood. When there is fuzzy description information in text information, it is not conducive to understanding the content expressed by the text information, which may lead to errors in the subsequent process of generating the target animation. Therefore, in the embodiment of the present application, in order to improve the accuracy of the target animation, the terminal can predict the fuzzy description information, obtain the prediction information corresponding to the fuzzy description information, and then use the fuzzy description information, prediction information and animation element feature information as the recognition result, and display the recognition result.
[0124] For example, the text information includes "the story takes place during the Northern Song Dynasty", and "the story takes place during the Northern Song Dynasty" is a clear time feature information, so the subsequent time in the text can be set according to the time feature information. For another example, the text information includes "in ancient times, there was a village", "in ancient times" and "village" are key information, and the key information "in ancient times" is a time feature information that cannot be confirmed, that is, "in ancient times" is a fuzzy description information. The terminal can determine the prediction information corresponding to "in ancient times" as "virtual time". At this time, the recognition result is "in ancient times (virtual time), there was a village".
[0125] Optionally, after displaying the prediction information, the terminal may modify the prediction information corresponding to the fuzzy description information to the information corresponding to the information modification operation in response to the information modification operation on the prediction information, so that the input object can modify the prediction information corresponding to the fuzzy description information. For example, the prediction information "virtual time" in the above case may be modified to "virtual time-no historical background".
[0126] In some other embodiments, predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information includes:
[0127] Determine scene attribute information corresponding to the text information based on the key information;
[0128] According to the scene attribute information and the fuzzy description information, prediction information corresponding to the fuzzy description information is predicted.
[0129] The scene attribute information corresponding to the text information refers to information indicating the nature of the scene corresponding to the text information. The nature of the scene corresponding to the text information may be the emotional nature of the scene corresponding to the text information, that is, the scene attribute information includes emotional attribute information. The emotional attribute information refers to information expressing the emotions involved in the text information. For example, the emotional attribute information may be the tone or atmosphere corresponding to the scene of the text information. The tone corresponding to the scene of the text information refers to the emotion that the input object wants to express through the scene corresponding to the text information. The atmosphere corresponding to the scene of the text information refers to the spiritual expression of the scene of the text information giving people a certain strong feeling.
[0130] Alternatively, the properties of the scene corresponding to the text information may also be the style properties of the scene corresponding to the text information, that is, the scene attribute information may include style attribute information, and the style attribute information refers to the picture features of the scene corresponding to the text information, which may include the brightness, virtual-real contrast and color of the scene corresponding to the text information.
[0131] For example, the scene attribute information is the emotional attribute information, and the text information is "After Xiao Ming got the test paper, he found that his score was not passing, and his mood was very average." The "average" in the text information is fuzzy descriptive information. According to the key information "score", "failed" and "mood", it can be determined that the emotional attribute information corresponding to the text information is sadness. At this time, it can be guessed that the predicted information corresponding to "average" is sadness.
[0132] For another example, the scene attribute information is the style attribute information, and the text information is "In the forest, the sun is shining, and the tortoise and the rabbit are racing." In the text information, "In the forest" is fuzzy description information. According to the key information "sunny," it can be determined that the scene corresponding to the text information is a vibrant scene. At this time, it can be guessed that the prediction information corresponding to "In the forest" is "In the vibrant forest."
[0133] It should be noted that if the key information contains scene attribute information corresponding to the text information, the process of determining the scene attribute information corresponding to the text information according to the key information may be: filtering out the scene attribute information corresponding to the text information from the key information.
[0134] For example, the text information is “There is a ghost story in a forest”, the key information corresponding to the text information is “ghost story” and “forest”, and “ghost story” is the scene attribute information corresponding to the text information.
[0135] If the scene attribute information corresponding to the text information does not exist in the key information, the process of determining the scene attribute information corresponding to the text information based on the key information may be: determining the content expressed by the text information based on the key information, and determining the scene attribute information corresponding to the text information based on the content expressed by the text information.
[0136] For example, the text information is "In the forest, the sun is shining, and the tortoise and the rabbit are racing", and the key information corresponding to the text information is "forest", "sunny", "tortoise", "rabbit" and "racing". "Forest" is fuzzy descriptive information. According to the key information, it can be determined that the content expressed by the text information is "The sun is shining when the tortoise and the rabbit are racing in the forest", then the scene attribute information corresponding to the text information is a vibrant scene.
[0137] In an embodiment of the present application, the scene attribute information corresponding to the text information is first determined based on the key information, and then the prediction information corresponding to the fuzzy description information is predicted based on the scene attribute information and the fuzzy description information to improve the accuracy of the prediction information.
[0138] S203 . In response to the animation generation operation for the text information, generate a target animation corresponding to the text information, where the target animation is an animation generated based on animation materials matching the animation element feature information.
[0139] After the terminal displays the recognition result, if the user modifies the recognition result, then in response to the animation generation operation for the text information, a target animation corresponding to the text information is generated according to the modified recognition result; if the user does not modify the recognition result, then in response to the animation generation operation for the text information, a target animation corresponding to the text information is generated according to the recognition result.
[0140] Among them, generating the target animation corresponding to the text information according to the modified recognition result may refer to generating the target animation corresponding to the text information according to the animation element feature information in the modified recognition result. Generating the target animation corresponding to the text information according to the recognition result may refer to generating the target animation corresponding to the text information according to the animation element feature information in the recognition result.
[0141] Optionally, generating a target animation corresponding to the text information according to the animation material matching the characteristic information of each animation element includes:
[0142] Determine the timeline information of the animation material matching the characteristic information of each animation element;
[0143] The animation material matching the characteristic information of each animation element is displayed on the timeline information to obtain the target animation corresponding to the text information.
[0144] After obtaining the animation material that matches the characteristic information of each animation element, the terminal can determine the timeline information of the animation material that matches the characteristic information of each animation element based on the key information, and then display the animation material that matches the characteristic information of each animation element on the timeline information, thereby obtaining the target animation corresponding to the text information.
[0145] Among them, the terminal can display the animation material matching the feature information of each animation element on the timeline information through the preview editing engine to obtain the target animation corresponding to the text information. The preview editing engine can be selected according to the actual situation. For example, the preview editing engine can be a Unity engine or a UE engine, which is not limited in the embodiment of the present application.
[0146] Optionally, the process of displaying the animation material matching the feature information of each animation element on the timeline information through the preview editing engine may be:
[0147] The terminal sends the animation material that matches the characteristic information of each animation element to the preview editing engine. The preview editing engine determines the loading resources of the animation material that matches the characteristic information of each animation element, loads the animation material that matches the characteristic information of each animation element according to the loading resources, and then generates timeline information according to the key information, mounts the loaded animation material that matches the characteristic information of each animation element on the timeline information, and obtains the target animation corresponding to the text information.
[0148] The loaded resources may include picture resources, animation resources, voice resources, music resources, etc. The loaded resources may be cached in the terminal, or the terminal may also obtain the loaded resources through a network request. After obtaining the loaded resources and determining that the loaded resources are not damaged, the terminal may pass the path of the loaded resources to the preview editing engine so that the preview editing engine may obtain the loaded resources according to the path of the loaded resources.
[0149] After obtaining the target animation, the terminal can preview the target animation through the preview editing engine, or modify the target animation, or export the target animation as a target video. Among them, when the preview editing engine is the Unity engine, the cat technology in the Unity engine can be used to directly export the target animation as a target video, which is convenient for subsequent dissemination.
[0150] It should be noted that different animation materials may have different forms after loading. For example, when the animation material that matches the animation element feature information is dialogue voice information, the dialogue voice information is loaded as a file using Audio resources; and when the animation material that matches the animation element feature information is an image, the image is loaded as a texture.
[0151] In an embodiment of the present application, through the preview editing engine, the animation material matching the characteristic information of each animation element is displayed on the timeline information, and the target animation corresponding to the text information is obtained, so that the user can quickly preview the target animation, and can modify the target animation in real time, and export the target animation as a target video with one click, thereby improving the efficiency of publishing the target video.
[0152] In an embodiment of the present application, after obtaining input text information, the terminal performs semantic recognition on the text information based on natural language processing to display the recognition result corresponding to the text information, and then automatically generates a target animation corresponding to the text information in response to an animation generation operation for the text information. The target animation is an animation generated based on animation materials that match the feature information of the animation elements. This enables the input object to obtain the target animation corresponding to the text information as long as it inputs the text information. The input object does not need to perform other operations, nor does it need to have professional knowledge. This simplifies the operation of generating animations, improves the convenience and efficiency of creating animations, and reduces costs.
[0153] Furthermore, in the related art, in the process of generating an animation, the input object needs to first select a character picture corresponding to the character in the text information before inputting text information. If a new character whose character picture has not been selected appears in the text information during the process of the input object inputting text information, the input object needs to exit the text information input interface, first select the character picture of the new character, and then return to the text information input interface, resulting in an incoherent process of the input object inputting text information, cumbersome operation, and reduced user experience.
[0154] In the embodiment of the present application, after the terminal obtains the input text information and displays the recognition result corresponding to the text information (the recognition result includes the animation element feature information), the terminal automatically generates a target animation corresponding to the text information in response to the animation generation operation for the text information. The target animation is an animation generated according to the animation material matching the animation element feature information. The input object does not need to select a character picture corresponding to the character in the text information before inputting the text information, so that in the process of inputting the text information, there will be no phenomenon of a new character without selecting a character picture. This allows the input object to be coherent in the process of inputting text information, and the creation will not be interrupted by any interactive logic, thereby simplifying the operation and improving the user experience. The recognition result and the target animation are displayed to the input object, which can give the input object a visual result, so that the input object can feel the results of its own creation, further improving the user experience.
[0155] Optionally, if the key information only includes animation element feature information, the terminal can directly determine the animation material that matches the animation element feature information, and generate a target animation corresponding to the text information based on the animation material that matches the animation element feature information. If the key information not only includes the animation element feature information but also includes other information, the terminal can first filter out the animation element feature information from the key information, and then determine the animation material that matches the animation element feature information, and generate a target animation corresponding to the text information based on the animation material that matches the animation element feature information.
[0156] That is, in response to the animation generation operation for the text information, the process of generating the target animation corresponding to the text information according to the animation element feature information in the recognition result may be:
[0157] In response to the animation generation operation for the text information, determining the animation material matching the animation element feature information;
[0158] Generate target animation corresponding to text information based on animation materials matching the animation element feature information.
[0159] Alternatively, in response to the animation generation operation for the text information, the process of generating the target animation corresponding to the text information according to the animation element feature information in the recognition result may also be:
[0160] In response to the animation generation operation for the text information, a plurality of animation element feature information is screened out from the key information;
[0161] Animation materials matching the characteristic information of each animation element are determined, and target animations corresponding to the text information are generated according to the animation materials matching the characteristic information of each animation element.
[0162] The animation material refers to unorganized, scattered image materials. The animation material matching the animation element feature information may refer to the animation material containing the animation element feature information. For example, if the animation element feature information is character feature information and the character is a rabbit, the animation material matching the character feature information may refer to an image containing a rabbit. For another example, if the animation element feature information is schoolbag prop feature information, the animation material matching the schoolbag prop feature information may refer to an image containing a schoolbag.
[0163] It should be noted that, when the animation element feature information is dialogue feature information, the animation material matching the animation element feature information may refer to dialogue voice information corresponding to the dialogue feature information.
[0164] Optionally, speech synthesis technology (Text To Speech, TTS) can be used to determine the conversation speech information corresponding to the conversation feature information based on the conversation feature information. The type of speech synthesis technology can be selected according to actual conditions. For example, an end-to-end neural network model or traditional speech synthesis technology (traditional speech synthesis technology includes a front-end module and a back-end module) can be used. The embodiments of the present application are not limited here.
[0165] When the conversation voice information corresponding to the conversation feature information is determined by using the traditional speech synthesis technology, the process of determining the conversation voice information corresponding to the conversation feature information may be:
[0166] Performing phoneme processing on the dialogue feature information to obtain a phoneme sequence corresponding to the dialogue feature information;
[0167] Extract features from the phoneme sequence to obtain spectral features corresponding to the dialogue features;
[0168] According to the spectral features, the dialogue speech information corresponding to the dialogue feature information is generated.
[0169] Optionally, the process of determining the animation material matching the feature information of each animation element may be:
[0170] Get a collection of pre-stored preset animation materials;
[0171] Determine the similarity between the animation element characteristics and each animation material in the preset animation material set;
[0172] According to the animation materials whose similarity is equal to or greater than the preset similarity, the animation materials matching the feature information of the animation elements are screened out from the preset animation material set.
[0173] However, the preset animation material set includes animation materials of various animation material types, so that the number of animation materials included in the preset animation material set is relatively large, resulting in a slow speed when filtering out animation materials matching the animation element feature information from the preset animation material set.
[0174] Therefore, in some embodiments, determining the animation material matching the feature information of each animation element includes:
[0175] According to the key information, determine the type of animation material corresponding to the text information;
[0176] Get the animation material collection corresponding to the animation material type;
[0177] Animation materials matching the characteristic information of each animation element are selected from the animation material collection.
[0178] Among them, the terminal can determine the story type corresponding to the text information according to the key information (the story type can be, for example, a fairy tale, a fable, a life story or a science fiction story, etc.), and then determine the animation material type corresponding to the text information according to the story type.
[0179] The preset story type and the preset animation material type can be pre-associated in a preset mapping table. After obtaining the story type corresponding to the text information, the story type is matched with the preset story type in the preset mapping table, and the preset animation material type corresponding to the preset story type that matches the story type is used as the animation material type corresponding to the text information.
[0180] The animation material matching each animation element feature information may exist in one animation material set, or the animation material matching each animation element feature information may exist in different animation material sets, which is not limited in the embodiments of the present application.
[0181] Since there are many types of animation materials, for example, the character feature information is rabbit feature information, but the animation materials that match the character feature information include images of real rabbits and images of cartoon rabbits. Therefore, in an embodiment of the present application, the type of animation material corresponding to the text information can be determined based on the key information, and an animation material set corresponding to the animation material type can be obtained, and then the animation material that matches each animation element feature information can be screened out from the animation material set, so that only the similarity between the animation material in the animation material set and the animation element feature information needs to be calculated. The number of animation materials included in the animation material set is less than the number of animation materials included in the preset animation material set, which greatly reduces the time for obtaining the animation material that matches the animation element feature information, improves the speed of obtaining the animation material that matches each animation element feature information, and can make the animation material that matches each animation element feature information conform to the context of the text information, and finally makes the target animation generated according to the animation material that matches each animation element feature information more in line with the needs of the input object.
[0182] It should be noted that the animation material in the animation material set whose similarity to the animation element feature information is equal to or greater than the similarity may be one type or multiple types.
[0183] When there are multiple animation materials with similarity equal to or greater than a preset similarity in the animation material set, any one of the animation materials with similarity equal to or greater than the preset similarity can be used as the animation material matching the animation element feature information.
[0184] Alternatively, it is also possible to filter out animation materials that match the characteristic information of each animation element from animation materials having a similarity equal to or greater than a preset similarity based on the attribute information of the input object of the key information or text information. In other words, it is possible to filter out animation materials that match the characteristic information of each animation element from an animation material collection based on the attribute information of the input object of the key information or text information, so as to further improve the matching degree between the target animation and the text information, thereby making the target animation more in line with the needs of the input object.
[0185] When the animation material matching the feature information of each animation element is selected from the animation material set according to the key information, the process of selecting the animation material matching the feature information of each animation element from the animation material set may be:
[0186] Selecting a plurality of first candidate animation materials that match the feature information of each animation element from the animation material collection;
[0187] According to the key information, determine the emotional attribute information corresponding to the text information;
[0188] According to the emotional attribute information, an animation material matching the characteristic information of each animation element is screened out from a plurality of first candidate animation materials.
[0189] When there are multiple animation materials in the animation material set whose similarity is equal to or greater than the preset similarity, the animation materials whose similarity is equal to or greater than the preset similarity can be used as the first candidate animation materials. Because there are multiple emotional attribute information corresponding to the text information (the emotional attribute information can be the atmosphere or tone corresponding to the text information, for example, the atmosphere corresponding to the text information may be horror or joy), the animation materials matching the characteristic information of each animation element can be screened out from the multiple first candidate animation materials according to the emotional attribute information of the text information, further improving the matching degree between the target animation generated according to the animation materials matching the characteristic information of each animation element and the text information, so that the target animation better meets the needs of the input object.
[0190] For example, the feature information of the animation elements is the feature information of the rabbit character, and the animation material set includes images containing scary rabbits and images containing cute rabbits, that is, the first candidate animation materials are images containing scary rabbits and images containing cute rabbits, and the atmosphere of the text information is a scary atmosphere. If the image containing cute rabbits is used as the animation material that matches the feature information of the rabbit character, the target animation generated based on the image of the cute rabbit has a low degree of matching with the text information, which does not meet the needs of the input object. In the present application, the first candidate animation materials "image containing scary rabbits" and "image containing cute rabbits" are first screened out from the animation material set, and then, based on the emotional attribute information of the text information, it is determined that the image containing happy rabbits is used as the animation material that matches the feature information of the rabbit character, thereby improving the matching degree between the target animation generated based on the image containing happy rabbits and the text information, further meeting the needs of the input object and improving the user experience.
[0191] When the animation material matching the feature information of each animation element is selected from the animation material set according to the attribute information of the input object, the process of selecting the animation material matching the feature information of each animation element from the animation material set may be:
[0192] Get the attribute information of the input object of the text information;
[0193] Animation materials matching the characteristic information of each animation element and the attribute information are selected from the animation material collection.
[0194] The attribute information of the input object may refer to information indicating the characteristics of the input object, which may include static attribute information and dynamic attribute information. The static attribute information may be, for example, at least one of the gender information of the input object and the personality information of the input object, and the dynamic attribute information may be, for example, at least one of the preference information of the input object, the geographic location information of the input object and the age information of the input object.
[0195] The process of selecting the animation material that matches the characteristic information of each animation element and the attribute information from the animation material set may be:
[0196] Screening out a plurality of second candidate animation materials matching the feature information of each animation element from the animation material collection;
[0197] Animation materials matching the attribute information are screened out from the plurality of second candidate animations.
[0198] At this time, there are multiple animation materials with similarity equal to or greater than the preset similarity in the animation material set, that is, the animation materials with similarity equal to or greater than the preset similarity can be used as the second candidate animation materials.
[0199] For example, the input object prefers Peter Rabbit, and the animation material characteristic information is rabbit character characteristic information, then the multiple second candidate animation materials include images containing Peter Rabbit and images containing Dutch Rabbit, and then the image containing Peter Rabbit is filtered out from the multiple second candidate animation materials as the animation material matching the rabbit character characteristic information.
[0200] Alternatively, the process of selecting the animation material that matches the characteristic information of each animation element and the attribute information from the animation material collection may also be:
[0201] Filter out an initial animation material sub-collection matching the attribute information from the animation material collection;
[0202] Animation materials matching the characteristic information of each animation element are screened out from the initial animation material subset.
[0203] For example, the input object prefers Peter Rabbit, Maine Coon and Ragdoll cats, and the animation material feature information is rabbit character feature information. Then, the initial animation material subset may include images containing Peter Rabbit, images containing Maine Coon cats and images containing Ragdoll cats, and then the images containing Peter Rabbit are filtered out from the initial animation material subset as the animation material matching the rabbit character feature information.
[0204] In an embodiment of the present application, the attribute information of the input object of the text information is first obtained, and then the animation material that matches the characteristic information of each animation element and the attribute information is screened out from the animation material collection, so as to further improve the matching degree between the target animation generated according to the animation material matching the characteristic information of each animation element and the text information, so that the target animation better meets the needs of the input object.
[0205] Optionally, in order to further improve the speed of obtaining the initial animation material subset, the initial animation material subset matching the attribute information is screened out from the animation material set, including:
[0206] Determine a target object that matches the input object based on the attribute information;
[0207] The sub-collection corresponding to the target object in the animation material collection is used as the initial animation material sub-collection matching the attribute information.
[0208] The target object that matches the input object can be understood as an object that has some commonality with the input object. For example, the target object can be an object that belongs to the same age group as the input object.
[0209] In an embodiment of the present application, a subset corresponding to a target object matching an input object in an animation material set is directly used as an initial animation material subset matching the attribute information. There is no need to match the animation materials in the animation material set one by one based on the attribute information, thereby improving the speed of obtaining the initial animation material subset.
[0210] In other embodiments, in order to increase the speed of obtaining the animation material matching the feature information of each animation element, the process of determining the animation material matching the feature information of each animation element may be:
[0211] Get historical matching records;
[0212] The historical animation material corresponding to the historical feature information that matches each animation element feature information in the historical matching record is used as the animation material that matches each animation element feature information.
[0213] The historical matching records may be historical matching records of input objects, or may be historical matching records of clients, that is, historical matching records of all objects recorded in the client.
[0214] In an embodiment of the present application, the historical animation material corresponding to the historical feature information that matches each animation element feature information in the historical matching record is directly used as the animation material that matches each animation element feature information. There is no need to match the animation element feature information with the animation material one by one, thereby improving the speed of obtaining the animation material that matches each animation element feature information.
[0215] In other embodiments, in order to improve the flow of the target animation, the process of selecting the animation material matching the feature information of each animation element from the animation material collection may be:
[0216] Selecting a third candidate animation material that matches the feature information of each animation element from the animation material collection;
[0217] Determining the popularity information of the third candidate animation material;
[0218] The third candidate animation material with the highest heat information is used as the animation material matching the feature information of each animation element.
[0219] The popularity information of the third candidate animation material can be obtained by dividing the number of times each third candidate animation material is used by the total number of times all third candidate animation materials are used. Alternatively, the popularity information of the third candidate animation material can also be determined based on the traffic of the existing animation corresponding to the third candidate animation material. The higher the traffic of the existing animation corresponding to the third candidate animation material, the higher the popularity information of the third candidate animation material.
[0220] For example, the animation element characteristic information is the rabbit character characteristic information, and the third candidate animation materials matching the rabbit character characteristic information include an image containing Peter Rabbit, an image containing a rogue rabbit, and an image containing a blue rabbit. The existing animation containing the image of Peter Rabbit has the highest traffic, so the image containing Peter Rabbit is used as the animation material matching each animation element characteristic information.
[0221] In an embodiment of the present application, third candidate animation materials that match the characteristic information of each animation element are first screened out from the animation material set, and then the popularity information of the third candidate animation materials is determined. Finally, the third candidate animation material with the highest popularity information is used as the animation material that matches the characteristic information of each animation element, so as to improve the flow of the target animation generated according to the animation material that matches the characteristic information of each animation element.
[0222] In some other embodiments, after generating a target animation corresponding to the text information in response to the animation generation operation for the text information, the method further includes:
[0223] Show target animation.
[0224] In order to facilitate modification of the target animation, in other embodiments, after generating the target animation corresponding to the text information in response to the animation generation operation for the text information, the method further includes:
[0225] Performing storyboard detection on the target animation to obtain the storyboards corresponding to the target animation;
[0226] Displays the target animation and the corresponding clip animation element feature information of each storyboard.
[0227] Storyboards refer to charts that break down and explain the target animation in units of one shot. Storyboard detection is performed on the target animation to obtain the corresponding storyboards of the target animation, and then the target animation and the feature information of the corresponding segment animation elements of each storyboard are displayed so that the target animation can be edited.
[0228] For example, Figure 3 As shown, the target animation and multiple storyboards are displayed, and the feature information of the segment animation elements of storyboard 4 among the multiple storyboards includes background feature information, character feature information (meow and woof), dialogue feature information (a mouse that speaks English, called Mickey Mouse), expression feature information (shock and blinking) and action feature information (akimbo).
[0229] After the terminal displays the target animation and storyboard, the terminal can edit the storyboard in response to the editing operation on the characteristic information of the fragment animation elements corresponding to the storyboard, obtain the edited storyboard, and generate the edited animation corresponding to the text information based on the edited storyboard, so as to modify the target animation and make the edited animation more in line with the requirements of the input object.
[0230] The editing operation can be selected according to the actual situation. For example, the editing operation can be the deletion of the characteristic information of the segment animation elements, the replacement of the characteristic information of the segment animation elements (such as the character), the extension of the time, or the adjustment of the order of the characteristic information of the segment animation elements, etc. The embodiments of the present application are not limited here.
[0231] Optionally, the terminal can edit the storyboard through the preview editing engine in response to the editing operation on the feature information of the segment animation element corresponding to the storyboard, obtain the edited storyboard, and generate the edited animation corresponding to the text information according to the edited storyboard. The preview editing engine can be a Unity engine, that is, the Unity engine can be used as a preview component and an animation editing component.
[0232] From the above, it can be seen that in an embodiment of the present application, input text information is obtained, and semantic recognition is performed on the text information to display the recognition result, the recognition result includes key information recognized based on natural language semantics, the key information includes multiple animation element feature information, and in response to the animation generation operation for the text information, a target animation corresponding to the text information is generated, the target animation is an animation generated based on animation materials that match the animation element feature information, so that the user only needs to input text information to obtain the target animation corresponding to the text information, without the user performing other operations, thereby simplifying the operation of generating animation, improving the efficiency of creating animation, and reducing costs.
[0233] The method described in the above embodiment is further described in detail below with examples.
[0234] See also Figure 4 , Figure 4 A schematic diagram of a flow chart of an animation generation method provided in an embodiment of the present application. The flow chart of the animation generation method may include:
[0235] S401: The terminal displays a text input interface of the client, and obtains input text information in response to an editing operation on the text input interface.
[0236] S402. The terminal performs semantic recognition on the text information based on natural speech processing technology to obtain key information, which includes reference information, fuzzy description information and multiple animation element feature information.
[0237] The terminal can generate a recognition toolkit (NLP SDK) based on natural speech processing technology and embed the recognition toolkit into the client, so that the recognition toolkit in the client can perform semantic recognition on text information to obtain key information.
[0238] Optionally, the terminal can use a recognition toolkit in the client to segment the text information to obtain sentences corresponding to the text information, and then perform semantic recognition on each sentence to obtain key information corresponding to the text information. The key information may include, for example, subject-predicate-object feature sentences, time feature sentences, or location feature sentences. The subject-predicate-object feature sentences, time feature sentences, or location feature sentences may include animation element feature information, reference information, and fuzzy description information. The animation element feature information may include character feature information (for example, the subject-predicate-object feature sentence may include a character), action feature information, expression feature information, background feature information, prop feature information, location feature information, and dialogue feature information. The fuzzy description information refers to information whose meaning cannot be clearly understood.
[0239] Among them, the terminal can perform semantic recognition on each sentence through different sentence component recognition strategies of the recognition toolkit in the client, so as to obtain key information, so that when one of the sentence component recognition strategies changes, other sentence component recognition strategies are not affected, which is convenient for subsequent maintenance and expansion.
[0240] Different sentence component identification strategies may include subject identification strategy, predicate identification strategy, time identification strategy, and place identification strategy, etc.
[0241] In the embodiment of the present application, key information such as time, place and characters in text information (long paragraphs of copy) is automatically extracted through natural speech processing technology.
[0242] S403: The terminal determines the referent object corresponding to the referent information, and extracts keywords from the key information, where the keywords include animation element feature words corresponding to the animation element feature information.
[0243] For example, the text message is "A long time ago, there was a tortoise and a rabbit in the forest, and they were racing. The rabbit ran very fast, and after running for a while, it began to sleep; the tortoise ran very slowly, but it never rested for a moment, and kept running. Finally, the tortoise crossed the finish line first, and the rabbit said regretfully: I will never be proud again."
[0244] The text information contains referential information "they", "it" and "I". The referents of "they" are the tortoise and the rabbit, the referent of the first "it" is the rabbit, the referent of the second "it" is the tortoise, and the referent of "I" is the rabbit.
[0245] The keywords are "a long time ago", "in the forest", "rabbit", "tortoise", "run", "sleep", "run and run", "ran past", "end" and "said", among which the animation element characteristic words can be "in the forest", "rabbit", "tortoise", "run", "sleep", "run and run", "ran past", "end" and "said", that is, the animation element characteristic words can be keywords indicating places, keywords indicating characters or keywords indicating actions, etc.
[0246] S404: The terminal determines the scene attribute information corresponding to the text information according to the keyword, and predicts the prediction information corresponding to the fuzzy description information according to the scene attribute information and the fuzzy description information.
[0247] For example, the text message is "A long time ago, there was a tortoise and a rabbit in the forest, and they were racing. The rabbit ran very fast, and after running for a while, it began to sleep; the tortoise ran very slowly, but it never rested for a moment, and kept running. Finally, the tortoise crossed the finish line first, and the rabbit said regretfully: I will never be proud again."
[0248] Because there is no specific time for "a long time ago", "a long time ago" is a vague descriptive information. According to the keywords, "a long time ago" is determined to be a virtual time without historical background. That is, the prediction information corresponding to "a long time ago" is "virtual time, no historical background".
[0249] S405: The terminal displays the reference information, the reference object, the fuzzy description information, the prediction information and the animation element characteristic words as the recognition results.
[0250] For example, the text message is "A long time ago, there was a tortoise and a rabbit in the forest, and they were racing. The rabbit ran very fast, and after running for a while, it began to sleep; the tortoise ran very slowly, but it did not rest for a moment and kept running. Finally, the tortoise ran across the finish line first, and the rabbit said regretfully: I will never be proud again.
[0251] The recognition result may be "A long time ago (virtual time - no historical background), there was a tortoise and a rabbit in the forest, and they (the rabbit and the tortoise) were racing. The rabbit ran very fast, and it (the rabbit) ran for a while and then began to sleep; the tortoise ran very slowly, but it (the tortoise) never rested for a moment and kept running. In the end, the tortoise crossed the finish line first, and the rabbit said regretfully: I (the rabbit) will never be proud again.".
[0252] Among them, the gray marked areas represent the recognized keywords. Optionally, different types of keywords can also be marked in different marking methods. For example, keywords representing time can be marked in a first marking method (the first marking method can be gray marking, for example), keywords representing location can be marked in a second marking method (the second marking method can be green marking, for example), keywords representing roles can be marked in a third marking method (the third marking method can be yellow marking, for example), and keywords representing actions can be marked in a fourth marking method (the fourth marking method can be red marking, for example), which is not limited in the embodiments of the present application.
[0253] In an embodiment of the present application, after obtaining text information, the terminal automatically performs speech recognition on the text through natural speech processing technology to obtain key information, and then determines the referent object of the reference information in the key information, and extracts keywords from the key information. Based on the keywords, the predicted information of the fuzzy descriptive information in the key information is determined. Then, the keywords, referent information, referent object, fuzzy descriptive information and predicted information are displayed as recognition results to realize automatic recognition of the text information, so as to generate a target animation corresponding to the text information according to the recognition results, without the need for the input object to perform other operations, so that the input object can directly edit large paragraphs of text, and the editing process does not disturb the input object, thereby improving the convenience of generating the target animation.
[0254] For example, Figure 5 As shown, after acquiring the text information, the end point performs sentence segmentation processing on the text information to obtain the sentences corresponding to the text information, and then performs semantic recognition on the sentences to obtain the key information corresponding to the text information. The key information may include subject, predicate, and object feature sentences, time feature sentences, or location feature sentences, etc. Next, the referent of the reference information is determined, and keywords are extracted from the key information. Based on the keywords, the prediction information of the fuzzy description information is determined. Finally, the keywords, referent information, referent, fuzzy description information, and prediction information are displayed as recognition results.
[0255] S406: In response to the animation generation operation for the text information, the terminal sends the animation element characteristic words to the server corresponding to the client through the client.
[0256] S407: The server obtains the historical matching records of all objects of the client, and determines whether there is a historical feature word matching each animation element feature word in the historical matching records.
[0257] S408. If there are historical feature words matching each animation element feature word in the historical matching record, the server uses the historical animation material corresponding to the historical feature words matching each animation element feature word in the historical matching record as the animation material matching each animation element feature word.
[0258] In an embodiment of the present application, keywords may be recorded in a server so that if a user uses similar keywords, a recommendation of animation material may be quickly given.
[0259] S409: If there is no historical feature word matching each animation element feature word in the historical matching record, the server selects multiple animation element feature words from the keywords, and determines the animation material type corresponding to the text information based on the keywords.
[0260] S4010. The server obtains an animation material set corresponding to the animation material type, and selects animation materials matching each animation element characteristic word from the animation material set.
[0261] For example, when the animation element characteristic word is a character characteristic word, the animation material that matches the character characteristic word may be an image containing the character; when the animation element characteristic word is a prop characteristic word, the animation material that matches the prop characteristic word may be an image containing the prop; when the animation element characteristic word is a background characteristic word, the animation material that matches the background characteristic word may be an image containing the background; when the animation element characteristic word is an expression characteristic word, the animation material that matches the expression characteristic word may be an image containing the expression; when the animation element characteristic word is an action characteristic word, the animation material that matches the action characteristic word may be an image containing the action.
[0262] In the embodiment of the present application, the resource files (animation material collection) corresponding to the keywords are automatically matched, and the animation material with the highest matching degree is returned.
[0263] S4011. The server returns the animation material matching each animation element characteristic word to the client.
[0264] S4012. The terminal determines the timeline information of the animation material matching each animation element characteristic word through the client, and displays the animation material matching each animation element characteristic word on the timeline information to obtain the target animation corresponding to the text information.
[0265] It should be noted that, if there is dialogue in the text information, the dialogue in the text information can be converted into speech in the target animation through speech synthesis technology (Text to Speech, TTS).
[0266] In an embodiment of the present application, after the input object has edited the text information, the target animation can be automatically generated based on the default resources (animation materials that match the characteristic words of the animation elements) without the input object having to perform other operations, making the process of creating the target animation continuous and easy to operate.
[0267] S4013. The terminal performs storyboard detection on the target animation, obtains each storyboard corresponding to the target animation, and displays the target animation and the feature words of the segment animation elements corresponding to each storyboard.
[0268] S4014. The terminal edits the storyboard in response to the editing operation on the characteristic words of the segment animation elements corresponding to the storyboard to obtain an edited storyboard, and generates an edited animation corresponding to the text information based on the edited storyboard.
[0269] S4015. The terminal exports a video corresponding to the edited animation in response to the export operation on the edited animation.
[0270] In an embodiment of the present application, after the terminal generates the target animation, the target animation may be adjusted to obtain an edited animation, so that the edited animation better meets the requirements of the input object.
[0271] In the embodiment of the present application, the text information is semantically identified through natural language processing technology to obtain reference information, fuzzy description information and animation element characteristic words, and then the reference object corresponding to the reference information and the prediction information corresponding to the fuzzy description information are determined. Then the reference information, the reference object, the fuzzy description information, the prediction information and the animation element characteristic words are displayed, and the target animation is generated according to the animation material matching the animation element characteristic words, so that the target animation can be automatically generated as long as the input object enters the text information, without the need for other operations on the input object, simplifying the animation generation process and improving the efficiency and convenience of animation generation.
[0272] The specific implementation method and corresponding beneficial effects in the embodiments of the present application can be specifically referred to the above-mentioned animation generation method embodiments, and the embodiments of the present application will not be described here.
[0273] In order to better implement the animation generation method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above animation generation method. The meanings of the terms are the same as those in the above animation generation method, and the specific implementation details can refer to the description in the method embodiment.
[0274] For example, Figure 6As shown, the animation generating device may include:
[0275] The acquisition module 601 is used to acquire input text information;
[0276] A display module 602 is used to perform semantic recognition on text information to display recognition results, where the recognition results include key information recognized based on natural language semantics, and the key information includes multiple animation element feature information;
[0277] The generation module 603 is used to generate a target animation corresponding to the text information in response to the animation generation operation for the text information, where the target animation is an animation generated according to animation materials matching the animation element feature information.
[0278] Optionally, the generating module 603 is specifically configured to execute:
[0279] In response to the animation generation operation for the text information, a plurality of animation element feature information is screened out from the key information;
[0280] Animation materials matching the characteristic information of each animation element are determined, and target animations corresponding to the text information are generated according to the animation materials matching the characteristic information of each animation element.
[0281] Optionally, the generating module 603 is specifically configured to execute:
[0282] According to the key information, determine the type of animation material corresponding to the text information;
[0283] Get the animation material collection corresponding to the animation material type;
[0284] Animation materials matching the characteristic information of each animation element are selected from the animation material collection.
[0285] Optionally, the generating module 603 is specifically configured to execute:
[0286] Selecting a plurality of first candidate animation materials that match the feature information of each animation element from the animation material collection;
[0287] According to the key information, determine the emotional attribute information corresponding to the text information;
[0288] According to the emotional attribute information, an animation material matching the characteristic information of each animation element is screened out from a plurality of first candidate animation materials.
[0289] Optionally, the generating module 603 is specifically configured to execute:
[0290] Get the attribute information of the input object of the text information;
[0291] Animation materials matching the characteristic information of each animation element and the attribute information are selected from the animation material collection.
[0292] Optionally, the generating module 603 is specifically configured to execute:
[0293] Filter out an initial animation material sub-collection matching the attribute information from the animation material collection;
[0294] Animation materials matching the characteristic information of each animation element are screened out from the initial animation material subset.
[0295] Optionally, the generating module 603 is specifically configured to execute:
[0296] Determine a target object that matches the input object based on the attribute information;
[0297] The sub-collection corresponding to the target object in the animation material collection is used as the initial animation material sub-collection matching the attribute information.
[0298] Optionally, the generating module 603 is specifically configured to execute:
[0299] Get historical matching records;
[0300] The historical animation material corresponding to the historical feature information that matches each animation element feature information in the historical matching record is used as the animation material that matches each animation element feature information.
[0301] Optionally, the generating module 603 is specifically configured to execute:
[0302] Determine the timeline information of the animation material matching the characteristic information of each animation element;
[0303] The animation material matching the characteristic information of each animation element is displayed on the timeline information to obtain the target animation corresponding to the text information.
[0304] Optionally, the display module 602 is specifically configured to execute:
[0305] Perform semantic recognition on the text information to obtain key information corresponding to the text information, the key information including reference information and multiple animation element feature information;
[0306] Determine the referent object corresponding to the referential information;
[0307] The recognition result is determined based on the reference information, the reference object and the feature information of the animation elements, and the recognition result is displayed.
[0308] Optionally, the display module 602 is specifically configured to execute:
[0309] Perform semantic recognition on the text information to obtain key information corresponding to the text information, the key information includes fuzzy description information and multiple animation element feature information;
[0310] Predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information;
[0311] The recognition result is determined based on the fuzzy description information, prediction information and animation element feature information, and the recognition result is displayed.
[0312] Optionally, the display module 602 is specifically configured to execute:
[0313] Determine scene attribute information corresponding to the text information based on the key information;
[0314] According to the scene attribute information and the fuzzy description information, prediction information corresponding to the fuzzy description information is predicted.
[0315] Optionally, the display module 602 is further configured to execute:
[0316] Performing storyboard detection on the target animation to obtain the storyboards corresponding to the target animation;
[0317] Displays the target animation and the corresponding clip animation element feature information of each storyboard.
[0318] Optionally, the animation generating device further includes:
[0319] Modify the module to execute:
[0320] In response to an editing operation on the feature information of the segment animation element corresponding to the storyboard, the storyboard is edited to obtain an edited storyboard;
[0321] Generate an edited animation corresponding to the text information based on the edited storyboard.
[0322] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0323] The present application also provides an electronic device, which may be a server or a terminal, etc. Figure 7 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0324] The electronic device may include components such as a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, a power supply 703, and an input unit 704. Those skilled in the art will appreciate that Figure 7The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0325] The processor 701 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing computer programs and / or modules stored in the memory 702, and calling data stored in the memory 702. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0326] The memory 702 can be used to store computer programs and modules. The processor 701 executes various functional applications and data processing by running the computer programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0327] The electronic device also includes a power supply 703 for supplying power to each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 703 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0328] The electronic device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0329] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 701 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 702 according to the following instructions, and the processor 701 will run the computer programs stored in the memory 702, thereby realizing various functions, such as:
[0330] Get the input text information;
[0331] Perform semantic recognition on text information to display recognition results, which include key information recognized based on natural language semantics, and the key information includes multiple animation element feature information;
[0332] In response to the animation generation operation for the text information, a target animation corresponding to the text information is generated, where the target animation is an animation generated based on animation materials matching the animation element feature information.
[0333] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the animation generation method above, which will not be elaborated here.
[0334] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0335] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any animation generation method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0336] Get the input text information;
[0337] Perform semantic recognition on text information to display recognition results, which include key information recognized based on natural language semantics, and the key information includes multiple animation element feature information;
[0338] In response to the animation generation operation for the text information, a target animation corresponding to the text information is generated, where the target animation is an animation generated based on animation materials matching the animation element feature information.
[0339] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments and will not be described in detail here.
[0340] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0341] Since the computer program stored in the computer-readable storage medium can execute the steps in any animation generation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any animation generation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0342] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned animation generation method.
[0343] The above is a detailed introduction to an animation generation method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An animation generation method, characterized in that: include: Get the input text information; Performing semantic recognition on the text information to display recognition results, wherein the recognition results include key information recognized based on natural language semantics, and the key information includes multiple animation element feature information; In response to the animation generation operation for the text information, a target animation corresponding to the text information is generated, where the target animation is an animation generated based on animation materials matching the animation element feature information.
2. The animation generation method according to claim 1, characterized in that: The step of generating a target animation corresponding to the text information in response to the animation generating operation for the text information includes: In response to an animation generation operation for the text information, a plurality of animation element feature information is screened out from the key information; Animation materials matching each of the animation element feature information are determined, and a target animation corresponding to the text information is generated according to the animation materials matching each of the animation element feature information.
3. The animation generation method according to claim 2, characterized in that: The step of determining the animation material matching the feature information of each animation element comprises: Determining the type of animation material corresponding to the text information according to the key information; Obtain an animation material set corresponding to the animation material type; Animation materials matching each of the animation element feature information are screened out from the animation material set.
4. The animation generation method according to claim 3, characterized in that: The step of selecting the animation material matching each of the animation element feature information from the animation material set includes: Filtering out a plurality of first candidate animation materials matching each of the animation element feature information from the animation material set; Determining emotional attribute information corresponding to the text information according to the key information; According to the emotional attribute information, the animation material matching each of the animation element feature information is screened out from the plurality of first candidate animation materials.
5. The animation generation method according to claim 3, characterized in that: The step of selecting the animation material matching each of the animation element feature information from the animation material set includes: Acquire attribute information of an input object of the text information; Animation materials matching the characteristic information of each animation element and the attribute information are selected from the animation material set.
6. The animation generation method according to claim 5, characterized in that: The step of selecting the animation material that matches the feature information of each animation element and the attribute information from the animation material set includes: Filtering out an initial animation material subset matching the attribute information from the animation material set; Animation materials matching each of the animation element feature information are screened out from the initial animation material subset.
7. The animation generation method according to claim 6, characterized in that: The step of selecting an initial animation material subset matching the attribute information from the animation material set includes: Determining a target object matching the input object according to the attribute information; The sub-set corresponding to the target object in the animation material set is used as an initial animation material sub-set matching the attribute information.
8. The animation generation method according to claim 2, characterized in that: The step of determining the animation material matching the feature information of each animation element comprises: Get historical matching records; The historical animation material corresponding to the historical characteristic information matching each of the animation element characteristic information in the historical matching record is used as the animation material matching each of the animation element characteristic information.
9. The animation generation method according to claim 2, characterized in that: The step of generating a target animation corresponding to the text information according to the animation material matching the feature information of each animation element comprises: Determine the timeline information of the animation material matching the characteristic information of each animation element; The animation material matching the characteristic information of each animation element is displayed on the timeline information to obtain the target animation corresponding to the text information.
10. The animation generation method according to claim 1, characterized in that: The performing semantic recognition on the text information to display the recognition result includes: Performing semantic recognition on the text information to obtain key information corresponding to the text information, wherein the key information includes reference information and multiple animation element feature information; Determine a reference object corresponding to the reference information; According to the reference information, the reference object and the animation element feature information, a recognition result is determined and displayed.
11. The animation generation method according to claim 1, characterized in that: The performing semantic recognition on the text information to display the recognition result includes: Performing semantic recognition on the text information to obtain key information corresponding to the text information, wherein the key information includes fuzzy description information and multiple animation element feature information; Predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information; According to the fuzzy description information, the prediction information and the animation element feature information, a recognition result is determined and displayed.
12. The animation generation method according to claim 11, characterized in that: The predicting the fuzzy description information to obtain prediction information corresponding to the fuzzy description information includes: Determining scene attribute information corresponding to the text information according to the key information; Prediction information corresponding to the fuzzy description information is predicted based on the scene attribute information and the fuzzy description information.
13. The animation generation method according to any one of claims 1 to 12, characterized in that: After generating a target animation corresponding to the text information in response to the animation generation operation for the text information, the method further includes: Performing storyboard detection on the target animation to obtain each storyboard corresponding to the target animation; Display the target animation and the segment animation element feature information corresponding to each of the storyboards.
14. The animation generation method according to claim 13, characterized in that: After displaying the target animation and the segment animation element feature information corresponding to each storyboard, the method further includes: In response to an editing operation on the feature information of the segment animation element corresponding to the storyboard, the storyboard is edited to obtain an edited storyboard; According to the edited storyboard, an edited animation corresponding to the text information is generated.
15. An animation generating device, characterized in that: include: The acquisition module is used to obtain the input text information; A display module, used for performing semantic recognition on the text information to display the recognition result, wherein the recognition result includes key information recognized based on natural language semantics, and the key information includes multiple animation element feature information; A generation module is used to generate a target animation corresponding to the text information in response to an animation generation operation for the text information, wherein the target animation is an animation generated based on animation materials matching the animation element feature information.
16. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the animation generation method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the animation generation method according to any one of claims 1 to 14.
18. A computer program product, characterized in that The computer program product stores a computer program, and the computer program is suitable for being loaded by a processor to execute the animation generation method according to any one of claims 1 to 14.
Citation Information
Cited By
Video generation method and electronic equipment
CN120455755A
A video generation method and electronic device
CN120455755B
Animation character design method and system based on text content
CN120525982A
An animation character design method and system based on text content
CN120525982B
