Video generation method and device based on digital human, equipment, medium and product
By generating digital human images and interpreting video clips, it solves the problem of manual production of video introductions and improves the interest and user appeal of video introductions.
Patent Information
- Application Number
- CN202410730143.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-11
AI Technical Summary
Existing video introduction production relies on manual cutting and splicing, which is inefficient and boring, and cannot attract audiences.
By obtaining the target video and generating a digital human image, split the video clips, extract text content and rhythm frequency, use the digital human image to interpret the video clips, and generate a digital human profile video associated with the video content.
There is no need for manual editing, which improves the interest and user viewing attraction of the introduction video, and solves the problem of boring video introductions and reliance on manual labor.
Smart Images

Figure CN118764696A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a method, device, equipment, medium and product for generating a video based on a digital human. Background Art
[0002] In the prior art, when making a video content introduction, the content is often described in text for display, which is long and boring and cannot attract the audience; or video clips are manually cut and spliced and accompanied by voice to make an introduction video. However, making an introduction video is time-consuming, labor-intensive and manual, and has low efficiency. Summary of the invention
[0003] The embodiments of the present application provide a method, device, equipment, medium and product for generating a video based on a digital human, so as to solve the problem that the existing video introduction is boring and relies on manual work.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for generating a video based on a digital human, comprising:
[0006] Get the target video;
[0007] Acquire a digital human image corresponding to at least one target person in the target video;
[0008] Divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment;
[0009] The digital human image is used to interpret the text content introduction of the target video clip to obtain a digital human video clip.
[0010] Optionally, obtaining corresponding target video segment information according to the target video segment includes:
[0011] According to the shot time of each shot in the target video, split the target video into at least one target video segment, and remove the target video segments whose frame numbers are lower than a preset frame number threshold from the target video segments to obtain a first target video segment set;
[0012] Identifying entity information in target video clips in the first target video clip set, and removing target video clips that do not contain people, to obtain a second target video clip set;
[0013] The text content of the target video segment in the second target video segment set is extracted to obtain a text content introduction corresponding to the target video segment.
[0014] Optionally, extracting the text content of the target video segment in the second target video segment set to obtain a text content introduction corresponding to the target video segment includes:
[0015] Convert all audio and / or subtitles in the target video segments in the second target video segment set into text to obtain a corpus dataset;
[0016] According to the probability of two adjacent words appearing in the corpus in the corpus data set, a corpus rationality probability is obtained, and a target video segment whose corpus rationality probability meets a preset requirement is used as a main target video segment;
[0017] The text content of the main target video segment is extracted to obtain a text content brief introduction of the corresponding target video segment.
[0018] Optionally, the target video segment information further includes: a rhythm frequency of the target video segment;
[0019] After obtaining the text content introduction corresponding to the target video segment according to the second target video segment set, the method further includes:
[0020] Extracting the rhythm frequency of the audio in the target video segment and the action changes of the characters in the target video segment related to the audio in the target video segment from the second target video segment set;
[0021] Obtaining the rhythm frequency of the target video clip according to the rhythm frequency of the audio and the action change of the character related to the audio;
[0022] According to the rhythm frequency of the target video clip, the rhythm frequency of the limb position and the position change speed corresponding to the digital human image is predicted.
[0023] Optionally, the step of interpreting the text content introduction of the target video clip by the digital human image to obtain the digital human video clip includes:
[0024] According to the text content introduction of the target video clip and the rhythm frequency of the target video clip, the limb position and position change speed corresponding to the digital human image are adjusted to obtain a digital human animation corresponding to the target video clip;
[0025] According to the text content introduction of the target video clip, a dynamic picture of a digital human image having the style of the target video clip is loaded into a corresponding scene to obtain a corresponding digital human video clip.
[0026] Optionally, obtaining a digital human image corresponding to at least one target person in the target video includes:
[0027] The target video is identified, all characters in the target video or characters that meet preset appearance requirements are taken as the target characters, the target characters are modeled, and a digital human image corresponding to the at least one target character is obtained.
[0028] In a second aspect, an embodiment of the present application provides a video generation device based on a digital human, comprising:
[0029] A first acquisition module, used to acquire a target video;
[0030] A second acquisition module, used to acquire a digital human image corresponding to at least one target person in the target video;
[0031] A first processing module, configured to divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment;
[0032] The second processing module is used to interpret the text content introduction of the target video clip through the digital human image to obtain a digital human video clip.
[0033] Optionally, the first processing module includes:
[0034] A first processing submodule is used to split the target video into at least one target video segment according to the shot time of each shot in the target video, and remove the target video segment whose frame number is lower than a preset frame number threshold in the target video segment to obtain a first target video segment set;
[0035] A second processing submodule is used to identify entity information in the target video segments in the first target video segment set, and remove the target video segments that do not contain people, to obtain a second target video segment set;
[0036] The third processing submodule is used to extract the text content of the target video segment in the second target video segment set to obtain the text content introduction corresponding to the target video segment.
[0037] Optionally, the third processing submodule includes:
[0038] a conversion submodule, configured to convert all audio and / or subtitles in the target video segments in the second target video segment set into text to obtain a corpus data set;
[0039] A fourth processing submodule is used to obtain a corpus rationality probability according to the probability of two adjacent words appearing in the corpus in the corpus data set, and to use the target video segment whose corpus rationality probability meets the preset requirements as the main target video segment;
[0040] The fifth processing submodule is used to extract the text content of the main target video segment to obtain a text content introduction of the corresponding target video segment.
[0041] Optionally, the target video segment information further includes a rhythm frequency of the target video segment;
[0042] Also includes:
[0043] a sixth processing submodule, configured to extract the rhythm frequency of the audio in the target video segment in the second target video segment set and the action changes of the characters in the target video segment related to the audio;
[0044] A seventh processing submodule, configured to obtain the rhythm frequency of the target video segment according to the rhythm frequency of the audio and the action change of the character related to the audio;
[0045] The eighth processing submodule is used to predict the rhythm frequency of the limb position and position change speed corresponding to the digital human image according to the rhythm frequency of the target video clip.
[0046] Optionally, the second processing module includes:
[0047] A modeling submodule, for adjusting the limb position and position change speed corresponding to the digital human image according to the text content introduction of the target video segment and the rhythm frequency of the target video segment, so as to obtain a digital human animation corresponding to the target video segment;
[0048] The video generation submodule is used to load the dynamic picture of the digital human image with the style of the target video clip into the corresponding scene according to the text content introduction of the target video clip, so as to obtain the corresponding digital human video clip.
[0049] Optionally, the second acquisition module includes:
[0050] The ninth processing submodule is used to identify the target video, take all characters in the target video or characters that meet the preset appearance requirements as the target characters, model the target characters, and obtain a digital human image corresponding to the at least one target character.
[0051] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the digital human-based video generation method as described in any one of the first aspects.
[0052] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the digital human-based video generation method as described in any one of the first aspects are implemented.
[0053] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the digital human-based video generation method as described in any one of the first aspects.
[0054] In the present application, at least one target person appearing in a target video is modeled to obtain a digital human image corresponding to the at least one target person; and the main content of the target video is extracted; based on the digital human image and the target video clip information, a digital human introduction video associated with the video content is obtained, and the content of the target video is introduced by the digital human, so that the plot introduction does not need to rely on manual editing, and the fun of the introduction video is improved, the user viewing attraction rate is increased, and the problem that the existing video introduction is boring and relies on manual editing is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0056] Figure 1 is a flow chart of a method for generating a video based on a digital human provided in an embodiment of the present application;
[0057] Figure 2 This is a schematic diagram of a display page of a method for generating a video based on a digital human provided in an embodiment of the present application;
[0058] Figure 3 It is a structural schematic diagram of a video generation device based on a digital human provided in an embodiment of the present application;
[0059] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] 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 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 ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] Please refer to Figure 1 The embodiment of the present application provides a method for generating a video based on a digital human, comprising:
[0062] Step 11: Get the target video;
[0063] In the embodiment of the present application, the target video can be determined based on the video selected by the user, or the video in the video application can be actively selected as the target video before the user enters the video application, so that when the user enters the playback page of the target video, the video of the digital human image interpreted according to the content introduction of the target video can be played, and the digital human screen of each segment of the target video is displayed "The digital human takes you through the plot", and the digital human plot is dynamically displayed on the screen. After the effect ends, it jumps to the corresponding video segment time point to start playing, so that the plot introduction does not need to rely on manual editing, and the fun of the introduction video is improved, thereby increasing the user viewing attraction rate.
[0064] Step 12: Acquire a digital human image corresponding to at least one target person in the target video;
[0065] In the embodiment of the present application, optionally, modeling at least one target person appearing in the target video to obtain a digital human image corresponding to the at least one target person includes:
[0066] The target video is identified, and all characters in the target video or characters that meet preset appearance requirements are taken as the target characters.
[0067] In the embodiment of the present application, the digital human image can adopt a preset digital human image template, or it can automatically generate digital human images of all characters appearing in the target video at the initial stage of importing the target video based on factors such as service performance and time consumption, or use a character recognition algorithm to detect characters in the target video that meet preset appearance requirements, that is, characters that appear a large number of times or relatively more to generate digital human images. This can effectively capture the main information of the target video, effectively filter out useless information, and enhance the accuracy of the introduction of the target video; it can also generate digital human images of the main characters in the target video based on the user's preferences in the current video application and the user's choice, thereby increasing the user's interest and experience in watching the movie.
[0068] Step 13: Divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment;
[0069] In an embodiment of the present application, the target video is split to obtain multiple target video segments, so that key video segments can be selected based on the target video segments, and the characters, scenes, actions and emotions in the key video segments can be identified to extract text information in the key video segments, and the rhythm frequency of the video segments can be detected as information for the digital human to interpret the introduction video. The content introduction of the target video segment is interpreted by the digital human image corresponding to the character in the target video, so that the digital human introduction video is more in line with the content of the video itself, thereby improving the experience of the audience users.
[0070] Step 14: The text content introduction of the target video clip is interpreted by the digital human image to obtain a digital human video clip.
[0071] In an embodiment of the present application, the digital human image is modeled according to the information of each target video clip to obtain a digital human image related to the target video clip information, wherein the target video clip information includes a text content introduction of the target video clip and a rhythm frequency of the target video clip; and the dynamic picture of the digital human image is loaded into the corresponding scene to enable the digital human to interpret the main content of each target video clip, and can formulate rules based on the actual situation and the speech speed and action of the previous and next clips to generate a digital human action picture with a "transition effect", and finally obtain a digital human video clip. By introducing the content of the target video through the digital human, the plot introduction does not need to rely on manual editing, thereby improving the fun of the introduction video and the user viewing attraction rate.
[0072] In an embodiment of the present application, after obtaining each digital human video clip, the digital human video clips can be spliced together according to actual conditions to generate a content introduction of the target video; it is also possible not to splice the digital human video clips and play them separately as introduction screens of each clip; it is also possible to simultaneously obtain the digital human video clips of each target video clip and the digital human video clip of the target video and display them on the client, so that when the user is on the homepage of the video application, the digital human video clip of the whole or part of the clip can be played to watch the target video or the concise content of the target video clip, and when a certain section is played and the user clicks on the digital human introduction screen to watch further, the main film of the target video can be jumped to the specified time point of the target video according to the timestamp of the corresponding target video clip to start playing; and when the user is on the playback page of the video application, the digital human video clips of each target video clip of the target video can be displayed below, please refer to Figure 2 , it can be marked as "Digital human takes you through the plot" according to the actual situation, providing users with choices. When users choose to travel through the plot, the plot of the digital human video clip is dynamically displayed on the screen. After the effect ends, it jumps to the corresponding video clip time point to start playing. Users can interact with and preview the digital human video clip on the page prompt, so that the plot introduction does not need to rely on manual editing, which improves the fun of the introduction video and the user viewing attraction rate.
[0073] In an embodiment of the present application, at least one target person appearing in a target video is modeled to obtain a digital human image corresponding to the at least one target person; and the main content of the target video is extracted; based on the digital human image and the target video clip information, a digital human introduction video associated with the video content is obtained, and the content of the target video is introduced by the digital human, so that the plot introduction does not need to rely on manual editing, and the fun of the introduction video is improved, the user viewing attraction rate is increased, and the problem that the existing video introduction is boring and relies on manual editing is solved.
[0074] In the embodiment of the present application, optionally, obtaining corresponding target video segment information according to the target video segment includes:
[0075] According to the shot time of each shot in the target video, split the target video into at least one target video segment, and remove the target video segments whose frame numbers are lower than a preset frame number threshold from the target video segments to obtain a first target video segment set;
[0076] Identifying entity information in target video clips in the first target video clip set, and removing target video clips that do not contain people, to obtain a second target video clip set;
[0077] The text content of the target video segment in the second target video segment set is extracted to obtain a text content introduction corresponding to the target video segment.
[0078] In the embodiment of the present application, the target video is identified by a shot edge detection algorithm and the target video is split into at least one target video segment according to the shot time of each shot in the target video. One shot is considered as a group of target video segments. Shot switching means that one target video segment ends and the next target video segment starts. The target video segments whose frame numbers are lower than a preset frame number threshold are removed from the target video segments to obtain a first target video segment set, wherein the preset frame number threshold can be set to 500 frames according to actual conditions.
[0079] The entity information in the target video segments in the first target video segment set is traversed according to the recognition algorithm to generate segment entities; wherein the entity information includes at least one of the following: scene, character, action and emotional element, and the character, the scene in which it appears, the recognized action and emotional element information contained in a segment entity together constitute the segment entity, that is, a complete segment of the target video is split into these segment entity sets; then the scene, character, action and emotional element algorithm is used to recognize the entity information, and the scene, character, action and emotional element contained in the entity segment is detected; and the target video segment that does not contain the character is removed to obtain the second target video segment set;
[0080] And by using scenes, characters, actions, and emotional elements, a sentence is generated based on grammar through natural language processing (NLP), that is, the text content introduction corresponding to the target video clip to express the main content of the target video clip. The content of the target video is introduced by digital humans, so that the plot introduction does not need to rely on manual editing, which improves the fun of the introduction video and the user's viewing attraction. The main content of the plot is interpreted by digital humans, which is richer, more intuitive and easier to understand than the text introduction, and the user experience will be better; it is also more natural and coherent than the cut and spliced video clips, and more intuitive and easy to understand.
[0081] In the embodiment of the present application, optionally, extracting the text content of the target video segment in the second target video segment set to obtain the text content introduction corresponding to the target video segment includes:
[0082] Convert all audio and / or subtitles in the target video segments in the second target video segment set into text to obtain a corpus dataset;
[0083] According to the probability of two adjacent words appearing in the corpus in the corpus data set, a corpus rationality probability is obtained, and a target video segment whose corpus rationality probability meets a preset requirement is used as a main target video segment;
[0084] The text content of the main target video segment is extracted to obtain a text content brief introduction of the corresponding target video segment.
[0085] In the embodiment of the present application, obtaining the text content introduction corresponding to the target video segment according to the target video segment in the second target video segment set specifically includes:
[0086] Extracting complete subtitles from the target video segments in the second target video segment set or converting the audio into text to obtain a corpus data set; wherein the corpus data set is a set of data of complete subtitle corpus or corpus converted from audio into text in the target video segment, which is used as a judgment basis for subsequent probability calculation; for example: if the target video is a movie, extract the lines of the entire movie; if the target video is a TV series, extract the lines of all episodes, and use the extracted complete corpus as the corpus data set;
[0087] In an embodiment of the present application, a one-sentence summary of the main content of the target video clip includes at least one of the following: scene, character, action and emotional elements, and the probability of two adjacent words in the sentence occurring in the original video is determined based on experience to obtain the probability of corpus rationality.
[0088] Specifically, for example, the following sentences: ①, Xiao Ming is playing football on the playground; ②, Xiao Ming is laughing happily on the playground; among them, the probability of the word "Xiao Ming" appearing in the corpus dataset is P(Xiao Ming); the probability of "Xiao Ming on the playground" appearing in the corpus dataset is P(on the playground|Xiao Ming), that is, the probability of "Xiao Ming" being followed by the word "on the playground"; the probability of "playing football on the playground" appearing in the corpus dataset is P(playing football|on the playground), that is, the probability of "playing football" being followed by the word "on the playground";
[0089] Finally, the probability of sentence ① appearing in the corpus dataset is: P(①) = P(Xiao Ming) × P(on the playground | Xiao Ming) × P(playing football | on the playground); the probability of sentence ② appearing in the corpus dataset can be obtained in the same way. Therefore, the probability of the main content of the target video clip based on the corpus rationality of the target video is:
[0090] Among them, P(1) is the probability of the first word of the sentence appearing, P(2|1) is the probability of the second word of the sentence appearing after the first word, and so on, finally obtaining the probability P(R) of each sentence appearing based on the target video;
[0091] The target video segment whose corpus rationality probability meets the preset requirements is taken as the main target video segment; for example: if the corpus rationality probabilities are not much different, that is, the corpus rationality probabilities are all above 90%, they cannot be used as screening criteria, if the corpus rationality probabilities are greatly different, the maximum probability among the corpus rationality probabilities can be directly used as the main content of the segment; when the corpus rationality probabilities are not much different and are all above 90%, continue to judge the duration of the action and emotional elements in the sentence, for example: playing football for 20 seconds and laughing happily for 3 seconds, then the sentence content of playing football with a longer appearance time is selected as the main content of the target video segment, and the start and end time points of the target video segment are recorded, and finally a text content introduction of the corresponding target video segment is obtained.
[0092] In an embodiment of the present application, a text content summary of the corresponding target video clip is obtained by calculating the probability of rationality of the corpus in the sentence, thereby improving the accuracy of the interpretation of the target video clip based on the text content summary, and interpreting the content summary of the target video clip through a digital human image corresponding to the character in the target video, so that the digital human introduction video is more in line with the content of the video itself, thereby improving the experience of the audience users.
[0093] In the embodiment of the present application, optionally, the target video segment information further includes: a rhythm frequency of the target video segment;
[0094] After obtaining the text content introduction corresponding to the target video segment according to the second target video segment set, the method further includes:
[0095] Extracting the rhythm frequency of the audio in the target video segment and the action changes of the characters in the target video segment related to the audio in the target video segment from the second target video segment set;
[0096] Obtaining the rhythm frequency of the target video clip according to the rhythm frequency of the audio and the action change of the character related to the audio;
[0097] According to the rhythm frequency of the target video clip, the rhythm frequency of the limb position and the position change speed corresponding to the digital human image is predicted.
[0098] In the embodiment of the present application, the target video segment information also includes the rhythm frequency of the target video segment. The rhythm frequency of the target video segment is detected by a rhythm detection algorithm, wherein the rhythm frequency of the target video segment is obtained according to the speech speed of a word audio and the speed of change of the body position information of the corresponding character before and after saying the word, that is, the action style corresponding to the fast speech speed is concise and light, and the action style of each part corresponding to the slow speech speed is soft and slow;
[0099] Specifically, according to the main content of the target video segment in the second target video segment set, that is, according to the character, scene, action, and emotional elements, the target video segment is split, and the audio of the corresponding word appearing in the corpus data set according to the start and end time of the corresponding segment is extracted, and the image frame of the person who said the sentence is extracted; thus, multiple audio segments and multiple frames of images of the character, scene, action, and emotional elements appearing in the corresponding target video segment can be obtained;
[0100] According to the audio clip and the multiple frames of images, the character image frames corresponding to the slow, medium and fast speech speeds of the audio of a word are obtained, and according to the character image frames, the body position information of the corresponding character before and after saying the word (for example, position information such as head angle, hand gesture height, body amplitude and leg movement) is obtained, as well as the speed of change of these position information at different speech speeds, for example, when the speech speed is slow, the head of the character slowly shifts 30 degrees from left to right; or when the speech speed is fast, the legs of the character are quickly lifted and kicked out;
[0101] In summary, we can obtain the position information and change speed of key parts of the body at different speech speeds corresponding to characters, scenes, actions, and emotional elements. Different statistical standards and reference systems are set for each part; as shown in Table 1, body parts include but are not limited to the four categories listed in the following table, and the statistics are all average values:
[0102] Table 1
[0103]
[0104]
[0105] Among them, the limb position information and change duration in Table 1 are all average values. There are 7 times when Xiao Ming speaks slowly, so 7 pieces of head start position information, end position information, change duration and change position information can be obtained;
[0106] Assumption: Calculate the starting position of the head as S_L. For example, if the angle is 30° to the left, it is recorded as -30, and if the angle is 30° to the right, it is recorded as 30. The average value of S_L can be calculated according to the following formula:
[0107]
[0108] Where m is the number of header information; in the calculation of the average value of the header start position information S_L, m is 7, | S_L i | is the absolute value of the starting position information value of the i-th head; there are different statistical standards and reference systems for each other part, which are not listed one by one.
[0109] Thus, the position and speed of each body part change at different speaking speeds for each word can be obtained, and the speaking speed distribution of each word can be obtained according to the above table. The speaking speed distribution of all words in each sentence is combined, and the speaking speed with the most distribution and the average limb position information and position change speed corresponding to the speaking speed are taken as the reference value for the rhythm frequency of the gestures and limb movements of the digital human image, and the rhythm frequency of the target video clip is obtained.
[0110] In the embodiment of the present application, the rhythm frequency of the video clip is detected as information for the digital human to interpret the introduction video, and the content introduction of the target video clip is interpreted by the digital human image corresponding to the character in the target video, so that the digital human introduction video is more in line with the content of the video itself, thereby improving the experience of the audience users.
[0111] In the embodiment of the present application, optionally, the step of interpreting the text content introduction of the target video clip by the digital human image to obtain the digital human video clip includes:
[0112] According to the text content introduction of the target video clip and the rhythm frequency of the target video clip, the limb position and position change speed corresponding to the digital human image are adjusted to obtain a digital human animation corresponding to the target video clip;
[0113] According to the text content introduction of the target video clip, a dynamic picture of a digital human image having the style of the target video clip is loaded into a corresponding scene to obtain a corresponding digital human video clip.
[0114] In the embodiment of the present application, the relationship between words and actions (changes in various body parts) is obtained based on the text content introduction of the target video clip and the rhythm frequency of the target video clip, such as words, word speed, body position corresponding to the word speed, and position change speed corresponding to the word speed. Among them, words with only lip position changes and other small changes can be ignored.
[0115] The data of the text introduction of each target video clip as shown in Table 1 is taken out to obtain the action-related information corresponding to the text introduction content of each target video clip, and modeling is performed according to the digital human image and the target video clip information to obtain a digital human image with the style of the target video clip; wherein the speech speed of the digital human image with the style of the target video clip is the action style of the text introduction content, the action style corresponding to the fast speech speed is concise and light, and the action style of each part corresponding to the slow speech speed is soft and slow.
[0116] Then detect the scene words in the text introduction as shown in Table 1, load the generated dynamic picture of the digital human image with the style of the target video clip into the corresponding scene, obtain the corresponding digital human video clip, and realize the digital human to interpret the main content of each target video clip. According to the actual situation, the rules can be formulated in combination with the speech speed and action of the previous and next clips to generate a digital human action picture with a "transition effect", and finally obtain the digital human video clip. The digital human introduces the content of the target video, so that the plot introduction does not need to rely on manual editing, which improves the fun of the introduction video and the user viewing attraction rate.
[0117] In the embodiment of the present application, optionally, modeling at least one target person appearing in the target video to obtain a digital human image corresponding to the at least one target person includes:
[0118] The target video is identified, and all characters in the target video or characters that meet preset appearance requirements are taken as the target characters.
[0119] In the embodiment of the present application, the digital human image can adopt a preset digital human image template, or it can automatically generate digital human images of all characters appearing in the target video at the initial stage of importing the target video based on factors such as service performance and time consumption, or use a character recognition algorithm to detect characters in the target video that meet preset appearance requirements, that is, characters that appear a large number of times or relatively more to generate digital human images. This can effectively capture the main information of the target video, effectively filter out useless information, and enhance the accuracy of the introduction of the target video; it can also generate digital human images of the main characters in the target video based on the user's preferences in the current video application and the user's choice, thereby increasing the user's interest and experience in watching the movie.
[0120] Please refer to Figure 3 The embodiment of the present application provides a video generation device based on a digital human, comprising:
[0121] A first acquisition module 31, used to acquire a target video;
[0122] A second acquisition module 32, used to acquire a digital human image corresponding to at least one target person in the target video;
[0123] A first processing module 33 is used to divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment;
[0124] The second processing module 34 is used to interpret the text content introduction of the target video clip through the digital human image to obtain a digital human video clip.
[0125] In the embodiment of the present application, optionally, the first processing module includes:
[0126] A first processing submodule is used to split the target video into at least one target video segment according to the shot time of each shot in the target video, and remove the target video segment whose frame number is lower than a preset frame number threshold in the target video segment to obtain a first target video segment set;
[0127] A second processing submodule is used to identify entity information in the target video segments in the first target video segment set, and remove the target video segments that do not contain people, to obtain a second target video segment set;
[0128] The third processing submodule is used to extract the text content of the target video segment in the second target video segment set to obtain the text content introduction corresponding to the target video segment.
[0129] In the embodiment of the present application, optionally, the third processing submodule includes:
[0130] a conversion submodule, configured to convert all audio and / or subtitles in the target video segments in the second target video segment set into text to obtain a corpus data set;
[0131] A fourth processing submodule is used to obtain a corpus rationality probability according to the probability of two adjacent words appearing in the corpus in the corpus data set, and to use the target video segment whose corpus rationality probability meets the preset requirements as the main target video segment;
[0132] The fifth processing submodule is used to extract the text content of the main target video segment to obtain a text content introduction of the corresponding target video segment.
[0133] In the embodiment of the present application, optionally, the target video segment information further includes a rhythm frequency of the target video segment;
[0134] Also includes:
[0135] a sixth processing submodule, configured to extract the rhythm frequency of the audio in the target video segment in the second target video segment set and the action changes of the characters in the target video segment related to the audio;
[0136] A seventh processing submodule, configured to obtain the rhythm frequency of the target video segment according to the rhythm frequency of the audio and the action change of the character related to the audio;
[0137] The eighth processing submodule is used to predict the rhythm frequency of the limb position and position change speed corresponding to the digital human image according to the rhythm frequency of the target video clip.
[0138] In the embodiment of the present application, optionally, the second processing module includes:
[0139] A modeling submodule, for adjusting the limb position and position change speed corresponding to the digital human image according to the text content introduction of the target video segment and the rhythm frequency of the target video segment, so as to obtain a digital human animation corresponding to the target video segment;
[0140] The video generation submodule is used to load the dynamic picture of the digital human image with the style of the target video clip into the corresponding scene according to the text content introduction of the target video clip, so as to obtain the corresponding digital human video clip.
[0141] In the embodiment of the present application, optionally, the second acquisition module includes:
[0142] The ninth processing submodule is used to identify the target video, take all characters in the target video or characters that meet the preset appearance requirements as the target characters, model the target characters, and obtain a digital human image corresponding to the at least one target character.
[0143] The digital human-based video generation device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0144] The present application embodiment provides an electronic device 40, see Figure 4 As shown, Figure 4 This is a principle block diagram of an electronic device 40 of an embodiment of the present application, including a processor 41, a memory 42, and a program or instruction stored in the memory 42 and executable on the processor 41. When the program or instruction is executed by the processor, any step in the digital human-based video generation method of the present application is implemented.
[0145] An embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of an embodiment of a method for generating a video based on a digital human as described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0146] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0147] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0148] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0149] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0150] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a service classification device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0152] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for generating a video based on a digital human, characterized in that: include: Get the target video; Acquire a digital human image corresponding to at least one target person in the target video; Divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment; The text content introduction of the target video clip is interpreted by the digital human image to obtain a digital human video clip.
2. The method for generating a video based on a digital human according to claim 1, characterized in that: The obtaining corresponding target video segment information according to the target video segment includes: According to the shot time of each shot in the target video, split the target video into at least one target video segment, and remove the target video segments whose frame numbers are lower than a preset frame number threshold from the target video segments to obtain a first target video segment set; Identifying entity information in target video clips in the first target video clip set, and removing target video clips that do not contain people, to obtain a second target video clip set; The text content of the target video segment in the second target video segment set is extracted to obtain a text content introduction corresponding to the target video segment.
3. The method for generating a video based on a digital human according to claim 2, characterized in that: The step of extracting the text content of the target video segment in the second target video segment set to obtain a text content introduction corresponding to the target video segment includes: Convert all audio and / or subtitles in the target video segments in the second target video segment set into text to obtain a corpus dataset; According to the probability of two adjacent words appearing in the corpus in the corpus data set, a corpus rationality probability is obtained, and a target video segment whose corpus rationality probability meets a preset requirement is used as a main target video segment; The text content of the main target video segment is extracted to obtain a text content introduction of the corresponding target video segment.
4. The method for generating a video based on a digital human according to claim 2, characterized in that: The target video segment information also includes: the rhythm frequency of the target video segment; After obtaining the text content introduction corresponding to the target video segment according to the second target video segment set, the method further includes: Extracting the rhythm frequency of the audio in the target video segment and the action changes of the characters in the target video segment related to the audio in the target video segment from the second target video segment set; Obtaining the rhythm frequency of the target video clip according to the rhythm frequency of the audio and the action change of the character related to the audio; According to the rhythm frequency of the target video clip, the rhythm frequency of the limb position and the position change speed corresponding to the digital human image is predicted.
5. The method for generating a video based on a digital human according to claim 4, characterized in that: The step of interpreting the text content introduction of the target video clip by the digital human image to obtain the digital human video clip includes: According to the text content introduction of the target video clip and the rhythm frequency of the target video clip, the limb position and position change speed corresponding to the digital human image are adjusted to obtain a digital human animation corresponding to the target video clip; According to the text content introduction of the target video clip, a dynamic picture of a digital human image having the style of the target video clip is loaded into a corresponding scene to obtain a corresponding digital human video clip.
6. The method for generating a video based on a digital human according to any one of claims 1 to 5, characterized in that: The step of obtaining a digital human image corresponding to at least one target person in the target video includes: The target video is identified, all characters in the target video or characters that meet preset appearance requirements are taken as the target characters, the target characters are modeled, and a digital human image corresponding to the at least one target character is obtained.
7. A video generation device based on digital human, characterized in that: include: A first acquisition module, used to acquire a target video; A second acquisition module, used to acquire a digital human image corresponding to at least one target person in the target video; A first processing module, configured to divide the target video into at least one target video segment, and obtain corresponding target video segment information according to the target video segment, wherein the target video segment information includes a text content introduction of the target video segment; The second processing module is used to interpret the text content introduction of the target video clip through the digital human image to obtain a digital human video clip.
8. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the method for generating a video based on a digital human as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps in the method for generating a video based on a digital human as claimed in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the method for generating a video based on a digital human as claimed in any one of claims 1 to 6.
Citation Information
Cited By
Target video generation method and apparatus, and electronic device and medium
WO2026208815A1
