Virtual object driving method, device, electronic device and storage medium

By extracting keywords and action video clips from the spoken text, splicing them together to generate a base video, and driving virtual objects to express the spoken text, it solves the problem of low naturalness and appeal of virtual object production videos, and achieves more efficient advertising and marketing effects. .

CN117354584BActive Publication Date: 2024-09-27BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311338839.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2024-09-27
Estimated Expiration
2043-10-16

AI Technical Summary

Technical Problem

In application scenarios such as video advertising and marketing, videos produced through virtual objects are less natural and less attractive, resulting in high production costs and poor results.

Method used

Keywords are extracted from the spoken text, the corresponding key action and style action video clips are determined, and the base video is spliced ​​according to the positional relationship, and the virtual object is driven to perform key actions and style actions to express the spoken text.

Benefits of technology

It improves the appeal and naturalness of virtual objects when expressing spoken texts, improves the display effect of videos, reduces production costs, and enhances the diversity of content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117354584B
    Figure CN117354584B
Patent Text Reader

Abstract

The present disclosure provides a virtual object driving method, device, electronic device and storage medium, which relate to the field of image processing technology, especially to the field of artificial intelligence technology and computer vision technology. The specific implementation scheme is: extracting keywords related to key actions from the spoken text; determining key action video clips corresponding to the keywords, and style action video clips related to the style attributes of the spoken text; splicing the key action video clips and the style action video clips according to the positional relationship between the keywords and the spoken text to generate a base video; and according to the base video, driving the virtual object to express the spoken text according to the key actions and the style actions corresponding to the style action video clips.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to the field of artificial intelligence technology and computer vision technology. Background Art

[0002] With the rapid development of science and technology, in application scenarios such as advertising marketing and knowledge sharing, text content can be expressed based on constructed virtual objects (also known as digital people), thereby improving the diversity of text expression and meeting the needs of related application scenarios. Summary of the invention

[0003] The present disclosure provides a virtual object driving method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, a virtual object driving method is provided, including: extracting keywords related to key actions from a spoken text; determining key action video clips corresponding to the keywords, and style action video clips related to the style attributes of the spoken text; splicing the key action video clips and the style action video clips to generate a base video based on the positional relationship between the keywords and the spoken text; and, based on the base video, driving the virtual object to express the spoken text according to the key actions and the style actions corresponding to the style action video clips.

[0005] According to another aspect of the present disclosure, a virtual object driving device is provided, including: a keyword extraction module, used to extract keywords related to key actions from a spoken text; a first determination module, used to determine key action video clips corresponding to the keywords, and style action video clips related to the style attributes of the spoken text; a splicing module, used to splice the key action video clips and the style action video clips according to the positional relationship between the keywords and the spoken text to generate a base video; and a virtual object driving module, used to drive the virtual object to express the spoken text according to the key actions and the style actions corresponding to the style action video clips based on the base video.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided by an embodiment of the present disclosure.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided by an embodiment of the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the method provided by the embodiment of the present disclosure when executed by a processor.

[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0011] Figure 1 An exemplary system architecture to which a virtual object driving method and device according to an embodiment of the present disclosure can be applied is schematically shown;

[0012] Figure 2 A flowchart of a virtual object driving method according to an embodiment of the present disclosure is schematically shown;

[0013] Figure 3A A schematic diagram schematically shows a key action video clip according to an embodiment of the present disclosure;

[0014] Figure 3B A schematic diagram schematically shows a key action video clip according to another embodiment of the present disclosure;

[0015] Figure 4 A schematic diagram schematically shows a base plate video according to an embodiment of the present disclosure;

[0016] Figure 5 A flowchart of a virtual object driving method according to another embodiment of the present disclosure is schematically shown;

[0017] Figure 6 A block diagram schematically shows a virtual object driving device according to an embodiment of the present disclosure; and

[0018] Figure 7 A schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0020] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.

[0021] The inventors found that in application scenarios such as video advertising and marketing, advertising and marketing videos can be produced by shooting video advertisements spoken by models in fixed scenes. However, shooting advertising and marketing videos with models may incur high shooting costs, while limiting the diversification of advertising and marketing videos, and having a negative impact on the coverage of advertising and marketing effects. Producing advertising and marketing videos with virtual objects has the characteristics of low production costs, diversified video content, and high production efficiency, but the videos produced based on virtual objects still have poor naturalness of expression and low attractiveness.

[0022] Embodiments of the present disclosure provide a virtual object driving method, device, electronic device and storage medium, the method comprising: extracting keywords related to key actions from a spoken text; determining key action video clips corresponding to the keywords, and style action video clips related to the style attributes of the spoken text; splicing the key action video clips and the style action video clips to generate a base video based on the positional relationship between the keywords and the spoken text; and, based on the base video, driving the virtual object to express the spoken text according to the key actions and the style actions corresponding to the style action video clips.

[0023] According to the embodiments of the present disclosure, by extracting keywords related to key actions from the spoken text, and determining key action video clips that can characterize key actions through the keywords, and determining style action video clips related to the style attributes of the spoken text, the virtual object can be driven to express spoken text through a base video obtained by splicing style action video clips and key action video clips, so that in the process of expressing the spoken text, the virtual object can reduce the relatively rigid expression posture of the virtual object when expressing the spoken text by coordinating the execution of key actions and style actions, thereby improving the appeal and naturalness of the virtual object in expressing the spoken text and improving the display effect of the spoken text.

[0024] It should be noted that the virtual object driving method, device, electronic device and storage medium provided in the embodiments of the present disclosure can be applied to advertising and marketing scenarios. For example, a marketing video for a product can be generated by the virtual object driving method provided in the embodiments of the present disclosure. However, it is not limited to this and can also be applied to other application scenarios, such as game animation, metaverse, museum tours and other scenarios. The embodiments of the present disclosure do not limit the application scenarios of the virtual object driving method.

[0025] Figure 1An exemplary system architecture to which the virtual object driving method and apparatus according to an embodiment of the present disclosure can be applied is schematically shown.

[0026] It should be noted that Figure 1 The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, the exemplary system architecture to which the content processing method and apparatus can be applied may include a terminal device, but the terminal device may implement the content processing method and apparatus provided by the embodiments of the present disclosure without interacting with the server.

[0027] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0028] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).

[0029] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0030] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for the content browsed by the user using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.

[0031] It should be noted that the virtual object driving method provided in the embodiment of the present disclosure can generally be executed by the terminal device 101, 102, or 103. Accordingly, the virtual object driving device provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103.

[0032] Alternatively, the virtual object driving method provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, the virtual object driving device provided in the embodiment of the present disclosure may generally be arranged in the server 105. The virtual object driving method provided in the embodiment of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the virtual object driving device provided in the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0033] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0034] Figure 2 The flowchart of the virtual object driving method according to the embodiment of the present disclosure is schematically shown.

[0035] like Figure 2 As shown, the method includes operations S210 to S240.

[0036] In operation S210, keywords related to key actions are extracted from the spoken text.

[0037] In operation S220, key action video segments corresponding to the keywords and style action video segments related to style attributes of the spoken text are determined.

[0038] In operation S230, the key action video clips and the style action video clips are spliced ​​together according to the positional relationship between the keywords and the spoken text to generate a base video.

[0039] In operation S240, based on the base video, the virtual object is driven to express the spoken text according to the key actions and the style actions corresponding to the style action video clip.

[0040] According to the embodiments of the present disclosure, oral broadcasting can be a media communication method expressed by pronunciation, and the relevant objects can spread the content of the oral broadcast text by expressing it by pronunciation according to the oral broadcast text. It should be understood that the oral broadcast text can be expressed by a character (such as a signed host), or by driving a virtual object (such as a cartoon character, an authorized entity character image) to express the oral broadcast text.

[0041] According to the embodiments of the present disclosure, key actions may include actions that enhance the expressive appeal of keywords, such as clapping, waving, etc., or actions used to strengthen the semantic expression of keywords, such as actions related to the size of objects corresponding to keywords, actions used to emphasize the sequence of outstanding advantages of the marketed products (such as gesture action 1, etc.). The embodiments of the present disclosure do not limit the specific types of key actions, as long as they can correspond to keywords. Key action video clips can be video clips of virtual objects performing key actions, or can also be video clips of other characters, cartoon characters, etc. performing key actions.

[0042] According to an embodiment of the present disclosure, the style attribute of the spoken text may include a style related to the overall display effect of the spoken text, such as a calm and natural style, a high-pitched and intense style, etc., or may also include a style suitable for displaying text fragments in the spoken text. The style attribute may be obtained by presetting a style attribute label for the spoken text, or may be obtained by processing the spoken text based on a neural network algorithm. The embodiment of the present disclosure does not limit the specific method of obtaining the style attribute.

[0043] According to the embodiments of the present disclosure, by splicing key action video clips and style action video clips, the obtained base video can be used to display key actions in the parts corresponding to the keywords in the spoken text, and the base video can be used to display style actions corresponding to the style attributes of the spoken text. Therefore, by driving virtual objects based on the base video, the virtual objects can perform key actions while expressing the spoken text and the keywords, thereby improving the expressive appeal of the spoken text, strengthening the ability to disseminate semantic information during the keyword expression process, and enabling the virtual objects to display the style of the spoken text by performing style actions in the process of expressing other text clips other than the spoken text, thereby improving the naturalness and affinity of the virtual object expression and improving the expression and display effect of the spoken text.

[0044] It should be noted that, by driving the virtual object to express the spoken text, it may include obtaining a two-dimensional display result or a three-dimensional display result of the virtual object expressing the spoken text and performing key actions and style actions in the interactive interface. The two-dimensional display result or the three-dimensional display result may be accompanied by spoken audio expressing the spoken text, or the two-dimensional display result or the three-dimensional display result may also include obtaining a two-dimensional video or a three-dimensional video of the virtual object speaking the spoken text by driving the lip shape of the virtual object.

[0045] According to an embodiment of the present disclosure, the key action may include at least one of the following: a direction indication action, a number indication action, a greeting action, and a keyword imitation action.

[0046] According to an embodiment of the present disclosure, directional indication actions may include actions of pointing in any direction such as upward, downward, left, or right by using an arm or a handheld tool, or may also include actions of pointing in the direction of background objects such as icons and objects in the video background. By determining key action video clips corresponding to directional indication actions, virtual objects may be subsequently driven to perform directional indication actions to enhance the user's understanding of the semantics of the keywords.

[0047] According to the embodiments of the present disclosure, digital indication actions may include actions that represent any number such as 1, 2, 3, etc. through gestures, limbs, hand-held tools, etc. By determining the key action video clips corresponding to the digital indication actions, the virtual object can be subsequently driven to cooperate in performing the digital indication actions in the process of expressing the spoken text keywords, thereby improving the appeal of the virtual object in expressing the spoken text. The digital indication actions can be associated with digital keywords such as "first" and "a kind".

[0048] According to an embodiment of the present disclosure, the greeting action may include actions accompanied by greeting keywords such as "hello" and "goodbye".

[0049] According to the embodiments of the present disclosure, keyword imitation actions may include actions of imitating attribute keywords such as size and shape of objects or organisms. By driving virtual objects to perform keyword imitation actions for imitating attribute keywords, virtual objects can enable users to understand the semantics of keywords more intuitively and quickly during the process of expressing spoken text, thereby improving the display effect of spoken text.

[0050] According to an embodiment of the present disclosure, key actions may also include other types of actions that display keyword semantics, such as key actions that match keywords such as "Come on", "Admire", etc., or actions used to strengthen keyword semantic understanding, such as jumping, pacing, turning in circles, etc. Key actions may also include a combination of multiple specific actions, such as walking a few steps to the left and then walking back to the original position, walking a few steps to the right and then walking back to the original position, jumping up and then returning to the original position, etc.

[0051] According to an embodiment of the present disclosure, a keyword is associated with key pronunciation time information, and the key pronunciation time information represents a key pronunciation moment or a key pronunciation time period when a virtual object expresses the keyword. For example, the key pronunciation time information may include a pronunciation timestamp of the keyword.

[0052] According to an embodiment of the present disclosure, determining a key action video clip corresponding to a keyword may include: determining an intermediate key action video clip from a library of candidate key action video clips according to the keyword; and time-aligning the intermediate key action video clip with the keyword according to key pronunciation time information to obtain the key action video clip.

[0053] According to the embodiments of the present disclosure, the intermediate key action video clip can be determined from the library of candidate key action video clips through the association relationship between the keywords and the candidate key action video clips, or the intermediate key action video clip can be determined through the similarity between the semantic features representing the keywords and the semantic features of the keywords associated with the candidate key action video clip. The embodiments of the present disclosure do not limit the specific method for determining the intermediate key action video clip.

[0054] According to the embodiments of the present disclosure, since the key pronunciation time information can indicate the pronunciation moment or pronunciation time period when the virtual object needs to express the keyword, the intermediate key action video clip is time-aligned with the keyword, so that the obtained key action video clip can establish an association relationship with the key pronunciation time, so that the display moment or display time period of the key action video clip in the spliced ​​base video matches the pronunciation moment or pronunciation time period when the virtual object expresses the keyword, so that the virtual object can accurately perform the key action corresponding to the keyword in the process of expressing the keyword of the spoken text, avoiding the negative impact of the spoken text expression caused by the time misalignment of the action execution and the pronunciation expression.

[0055] According to an embodiment of the present disclosure, the virtual object driving method may further include: determining key pronunciation time information associated with the keyword based on the spoken audio used to express the spoken text.

[0056] According to the embodiments of the present disclosure, the spoken video can be obtained by processing the spoken text based on a speech synthesis algorithm, for example, the spoken text can be processed based on a TTS (Text To Speech) algorithm to obtain the spoken audio. However, this is not limited to this, and the spoken audio can also be obtained by other methods, such as pre-recording. The embodiments of the present disclosure do not limit the specific method of determining the spoken audio, as long as the spoken audio can accurately express the text content of the spoken text.

[0057] In one embodiment of the present disclosure, the key pronunciation time information may be a pronunciation timestamp for expressing the keyword, and the pronunciation timestamp is used to characterize the keyword pronunciation moment for expressing the keyword. The keyword pronunciation timestamp corresponding to the keyword may be obtained by performing keyword pronunciation detection on the spoken audio. In this way, the virtual object may be driven to perform the key action corresponding to the keyword while pronouncing the keyword, thereby improving the naturalness and fit between the virtual object pronunciation expression and the action execution.

[0058] In one embodiment of the present disclosure, the key pronunciation time information can also be the keyword pronunciation time period. The keyword and the intermediate key action video clip can be time-aligned through the keyword pronunciation time period, and the duration of the intermediate key action video clip can be appropriately extended or shortened to make the duration of the key action video clip match the keyword pronunciation time period, thereby facilitating the control of the virtual object to adapt the execution action of the key action according to the pronunciation duration of the keyword.

[0059] In one embodiment of the present disclosure, the key pronunciation time information may also include the keyword pronunciation moment and the keyword pronunciation time period, so as to accurately control the virtual object to express the spoken text while cooperating in executing key actions.

[0060] According to an embodiment of the present disclosure, a key action video clip includes a key action video frame and an action interpolation frame connected to the key action video frame in time sequence. The action interpolation frame can be obtained by processing a conversion action video frame based on an interpolation algorithm. The conversion action video frame represents a first conversion posture from a key action to a style action. For example, the first conversion posture can be a posture of crossing both hands in front of the body, so that the conversion transition between a standing style action and a key action can be achieved through the first conversion posture.

[0061] According to an embodiment of the present disclosure, the transition action video frame may further represent a second transition gesture for transitioning between different key actions. The second transition gesture may include, for example, a forearm raising, so that the digital indication type action representing the indication number "1" may be converted into the digital indication type action representing the indication number "2" through the second transition gesture.

[0062] It should be understood that the number of frames of the action interpolation may be one or more, and the implementation of the present disclosure does not limit the number of frames of the action interpolation.

[0063] It should be noted that the first conversion posture represented by the action frame insertion may be a static posture, or may also be a dynamic posture.

[0064] Figure 3A A schematic diagram of a key action video clip according to an embodiment of the present disclosure is schematically shown.

[0065] like Figure 3A As shown, the key action video sub-segment 311 can be obtained by connecting multiple key action video frames in time sequence. At least one key action video frame in the key action video sub-segment 311 can be processed based on the interpolation algorithm to obtain action interpolation frame 312 and action interpolation frame 313, and then the key action video sub-segment 311, action interpolation frame 312 and action interpolation frame 313 are spliced ​​to obtain the key action video segment 310.

[0066] Figure 3BA schematic diagram of a key action video clip according to another embodiment of the present disclosure is schematically shown.

[0067] like Figure 3B As shown, the key action video sub-segment 321 can be obtained by connecting multiple key action video frames in time sequence, and the starting key action video frame and the ending key action video frame of the key action video sub-segment 321 can be connected to the basic action video frames 322 and 323 respectively. The basic action video frames 322 and 323 can represent the natural drooping of the hands, but are not limited to this, and can also represent other types of basic actions, such as clenching the hands, overlapping the hands, and spreading the hands. At least one of the basic action video frames 322 and 323 can be processed based on the interpolation algorithm to obtain the action interpolation frame 324 and the action interpolation frame 325, and then the key action video segment 320B is obtained by splicing the key action video sub-segment 321, the action interpolation frame 324, and the action interpolation frame 325.

[0068] According to the embodiments of the present disclosure, by processing the basic action video frames through the interpolation algorithm, the obtained action interpolation frames can be more naturally transitioned to the key action, thereby improving the naturalness of the action of the key action video clip.

[0069] According to an embodiment of the present disclosure, the library of key action video clips to be selected includes at least one key action video clip to be selected.

[0070] According to the embodiments of the present disclosure, the key action video clips to be selected can be obtained by filming the characters performing key actions after informing the relevant characters of the purpose of the video and obtaining the characters' authorization. For example, a video clip in which the characters' basic actions are consistent can be filmed under the condition that the characters' clothing, glasses, and hairstyles are consistent. Basic actions can be, for example, clenching hands, overlapping hands, spreading hands, etc., and the gestures and positions can be kept consistent after the actions are performed. At the same time, the standard position of the characters and the relative position of the camera are kept unchanged, and video clips of the characters performing basic actions are filmed. The positions can change between different basic actions, but the basic actions need to return to the standard position after the execution is completed. It is also possible to film a video of the characters performing one or more key actions, and instruct the characters to maintain the basic actions for 3 seconds after completing a key action, and then continue to perform other key actions. Action video material can be obtained. Key action sub-segments are obtained by video editing, and by splicing the basic action video frames and the key action video frames, or retaining the key action video sub-segments containing the basic action video frames, the key action identifiers can be marked on the key action video clips during or after the shooting process. It can be based on interpolation algorithms, such as FILM (Frame Interpolation for Large Motion), The key action video sub-segments are pre-processed by interpolation algorithms such as Video Enhancement with Task-Oriented Flow to obtain the selected key action video segments containing action interpolation frames. The selected key action video segments are annotated and a mapping relationship between the selected key action segments and the keyword action_id is established to build a library of selected key action segments. The selected key action segments in the library can be stored based on data formats such as json and npy, and can also be annotated based on action_data (key action segment data), frames (key action segment frame number), and key_frame (key action start frame number).

[0071] According to an embodiment of the present disclosure, the virtual object driving method may further include: performing a three-dimensional conversion on the obtained two-dimensional reference video frame to obtain a three-dimensional reference video frame; and determining a key action video segment to be selected based on the three-dimensional reference video frame and the virtual object video frame representing the virtual object.

[0072] According to an embodiment of the present disclosure, a two-dimensional reference video frame represents a reference object performing a key action, and the reference object may be different from a virtual object. When a new action is added to the library of video clips for selected key actions, the two-dimensional reference video frame obtained by recording the reference object performing the key action can be expanded to a video clip for selected key action in which a virtual object different from the reference object performs the key action, thereby avoiding re-recording of the virtual object and reducing the recording time of the video clip for selected key action. At the same time, since the video clip for selected key action generated according to the two-dimensional reference video frame can represent the virtual object performing the key action, driving the virtual object to perform the key action according to the video clip for selected key action can improve the accuracy of the action execution of the virtual object, reduce the computing power consumption caused by cross-object action migration, and improve the driving efficiency of the virtual object.

[0073] According to the embodiments of the present disclosure, the obtained two-dimensional reference video frame can be converted into three dimensions based on the SMPL model (Skinned Multi-Person Linear Model). For example, the two-dimensional action key point features in the two-dimensional reference video frame can be extracted based on the openpose algorithm, and the two-dimensional action key point features can be mapped to the three-dimensional space through the structured SMPL model. The two-dimensional key actions can be mapped to the standard three-dimensional space model through the action calibration and redirection technology to achieve the three-dimensional conversion of the two-dimensional reference video frame. Alternatively, the obtained two-dimensional reference video frame can be converted into three dimensions based on other types of three-dimensional conversion algorithms, which is not limited by the embodiments of the present disclosure.

[0074] According to an embodiment of the present disclosure, the three-dimensional reference video frames and the virtual object video frames can be processed based on a neural network algorithm to obtain the key action video clips to be selected. For example, the three-dimensional reference video frames and the virtual object video frames can be processed based on an attention network algorithm.

[0075] According to the embodiments of the present disclosure, the key actions of the reference object can also be recorded by a motion capture device to obtain a three-dimensional reference video frame, and the three-dimensional reference video frame can be processed based on a retargeting technology to obtain a selected key action video clip related to the virtual object, so that the selected key action video clip can be suitable for representing complex and high-precision key actions.

[0076] According to an embodiment of the present disclosure, determining a candidate key action video segment based on a three-dimensional reference video frame and a virtual object video frame representing a virtual object may include: performing feature extraction on the three-dimensional reference video frame to obtain reference action attribute features; and determining the candidate key action video segment based on the virtual object video frame and the reference action attribute features.

[0077] According to the embodiments of the present disclosure, feature extraction can be performed on the three-dimensional reference video frame based on the attention network algorithm to obtain basic action attribute features that characterize action attributes such as amplitude and speed of basic actions.

[0078] According to an embodiment of the present disclosure, the benchmark action attribute feature includes at least one of the following features related to the key action: an action amplitude feature, an action speed feature, and an action display angle feature.

[0079] According to the embodiments of the present disclosure, the motion amplitude feature, the motion speed feature, and the motion display angle feature can respectively characterize the motion amplitude, motion speed, and viewing angle of the key action performed by the reference object, and the virtual object attribute features can be updated based on any one or more of the motion amplitude feature, the motion speed feature, and the motion display angle feature, so that the updated features can characterize the virtual object performing the key action, thereby generating a candidate key action video clip related to the virtual object based on the updated features.

[0080] According to an embodiment of the present disclosure, determining a candidate key action video clip based on a virtual object video frame and benchmark action attribute features may include: extracting features from a virtual object video frame representing a virtual object to obtain virtual object attribute features; updating the virtual object video frame based on the benchmark action attribute features to obtain a target virtual object video frame; determining an initial key action video frame representing a key action performed by the virtual object based on the virtual object attribute features and the target virtual object video frame; and generating a candidate key action video clip based on the initial key action video frame.

[0081] According to an embodiment of the present disclosure, feature extraction can be performed on virtual object video frames based on a neural network algorithm to obtain virtual object attribute features. For example, virtual object video frames can be processed based on a LoRA (Low Rank Adaption) model, and the obtained virtual object attribute features may include features that characterize object attributes such as facial attributes, clothing attributes, and object body attributes of the virtual object.

[0082] According to the embodiments of the present disclosure, the virtual object video frame and the benchmark action attribute features can be fused through a fusion function, such as a concat() function, so as to obtain a three-dimensional video frame (target virtual object video frame) representing the virtual object performing a key action, so that the target virtual object video frame can reduce the action error generated by the virtual object performing the key action. Alternatively, the virtual object video frame and the benchmark action attribute features can be fused based on an attention network algorithm. The embodiments of the present disclosure do not limit the specific fusion method of fusing the virtual object video frame and the benchmark action attribute features.

[0083] In one embodiment of the present disclosure, the action display angle of the virtual object in the virtual object video frame (for example, the angle for viewing the key action) can be modified based on the action display angle feature, so that the obtained selected key action video clips can display the key action from a variety of action display angles, thereby improving the richness of the selected key action video clip library.

[0084] According to the embodiments of the present disclosure, virtual object attribute features and target virtual object video frames can be processed based on conditional generative adversarial networks, and the consistency between multiple initial key action video frames can be maintained by controlling the random noise and the generation area of ​​the virtual object, so as to control the virtual object to obtain a more accurate initial key action video frame. The generated selected key action video clips are natural and smooth, meeting the viewing needs of users.

[0085] According to an embodiment of the present disclosure, based on the style attribute corresponding to the spoken text, a style action video clip matching the style attribute can be determined from the to-be-selected style action video clip library. The to-be-selected style action video clip library can be obtained by shooting a target object such as a person performing a style action through motion capture technology, or can be based on a video or video frame of a reference object performing a style action, to obtain a to-be-selected style action video clip of a virtual object performing the style action.

[0086] According to the embodiments of the present disclosure, the style actions may include calm and natural actions, such as keeping the hands still for most of the time, occasionally spreading the hands, waving hands and other speech-aiding actions. It may also include emotionally intense actions, such as hand actions such as swinging arms with a large amplitude or a fast swing speed. The style action video clips of emotionally intense actions can represent a stronger sense of urgency and appeal. However, it is not limited to this. Other types of style actions can also be set based on actual needs to obtain style action video clips to enhance the expression effect of the virtual object expressing the spoken text.

[0087] According to the embodiments of the present disclosure, one or more spoken-word style attributes may be determined for the spoken-word text. The embodiments of the present disclosure do not limit the number of style attributes of the spoken-word text.

[0088] According to an embodiment of the present disclosure, the virtual object driving method may further include: performing style attribute detection on the spoken text to obtain the style attribute.

[0089] According to the embodiments of the present disclosure, the spoken text can be processed based on a pre-trained neural network model to obtain a classification result of style attributes. For example, the semantic features of the spoken text can be extracted based on an attention network algorithm, and the classification result of style attributes can be obtained based on the semantic features of the spoken text, thereby determining the style attributes of the spoken text. For example, the spoken text can be processed based on a Transformer model to obtain a classification result of the overall style attributes of the spoken text.

[0090] According to the embodiments of the present disclosure, when style attributes of the entire spoken text are detected, the obtained style attributes can be matched with the overall semantic information of the spoken text, thereby driving the virtual object to express the spoken text in a more uniform style action, thereby enhancing the user's viewing experience.

[0091] According to an embodiment of the present disclosure, the virtual object driving method may further include: determining at least one style text segment from the spoken text, wherein the style text segment is independent of keywords; and performing style attribute detection on the style text segment to obtain segment style attributes corresponding to the style text segment, the style attributes including at least one segment style attribute, and the segment style attributes being associated with at least one style action video segment.

[0092] According to an embodiment of the present disclosure, a style text fragment may include text content other than keywords in the spoken text, for example, the spoken text is "Hello friends (keywords), today I will introduce to you...", where "Hello" can be a keyword, and "friends" and "Today I will introduce to you..." can be two style text fragments.

[0093] According to an embodiment of the present disclosure, style attribute detection is performed on a style text segment, which may be to input one or more style text segments into a style detection model (e.g., a Transformer model), and output a segment style attribute corresponding to the style text segment. The segment style attribute may characterize the style of the style text segment. Accordingly, the segment style attribute may be associated with one or more style action video segments to be selected, and by constructing a mapping relationship between the segment style attribute and the style action video segment to be selected, it is possible to determine the style action video segment corresponding to the style text segment from the library of style action video segments to be selected according to the segment style attribute. In the case where the style text segment includes multiple style text segments, the style action video segment corresponding to the spoken text may include the style action video segments corresponding to each of the multiple style text segments.

[0094] According to an embodiment of the present disclosure, the style text segment is associated with style pronunciation time information, and the style pronunciation time information represents the style pronunciation moment or style pronunciation time period when the virtual object expresses the style text segment.

[0095] According to an embodiment of the present disclosure, the style pronunciation moment may represent the start moment of pronunciation expression of the style text segment, and the style pronunciation time period may represent the time period of pronunciation expression of the style text segment.

[0096] According to an embodiment of the present disclosure, before splicing the key action video clip and the style action video clip in the initial video clip sequence, the virtual object driving method may further include: time-aligning the style action video clip with the style text clip according to the style pronunciation time information.

[0097] According to an embodiment of the present disclosure, time-aligning a style action video clip with a style text clip can include marking the playback time and / or playback time period of the style action video clip according to the style pronunciation time information, so that the virtual object can be driven to perform the style action corresponding to the style text clip according to the style pronunciation time information based on the time-aligned style action video clip, and express the style text clip at the same time, thereby improving the fit between the virtual object's oral text expression and the style action execution, and thereby improving the overall display effect of the oral text expression.

[0098] According to an embodiment of the present disclosure, the keyword may include multiple keywords. According to the positional relationship between the multiple keywords in the spoken text and the spoken text, the order between the key action video clips corresponding to the multiple keywords may be determined.

[0099] According to an embodiment of the present disclosure, splicing key action video clips and style action video clips according to the positional relationship between keywords and spoken texts includes: sorting multiple key action video clips according to the positional relationship between each of the multiple keywords and the spoken text to obtain a key video clip sequence; inserting the style action video clips corresponding to the style text clips into the key video clip sequence according to the positional relationship between the style text clips and the keywords to obtain an initial video clip sequence; and splicing the key action video clips and the style action video clips in the initial video clip sequence to obtain a base video.

[0100] According to an embodiment of the present disclosure, the base video may include key action video clips and style action video clips arranged in the order of text expression of the spoken text. Driving the virtual object according to the base video can enable the virtual object to perform key actions corresponding to keywords according to the semantic order of the spoken text in the process of expressing the spoken text, and perform style actions corresponding to the style text clips.

[0101] According to the embodiments of the present disclosure, the keywords are time-aligned with the key action video clips according to the key pronunciation time information, and the style action video clips are time-aligned with the style text clips according to the style pronunciation time information. Then, based on the time-aligned style action video clips and style text clips, the virtual object is driven to accurately perform the key action corresponding to the keyword in the process of expressing the keyword, and to accurately perform the style action corresponding to the style text clip in the process of expressing the style text clip, so that the oral expression of the virtual object can be driven to be consistent with the action execution, thereby improving the overall effect of the oral text expression.

[0102] Figure 4 A schematic diagram of a base plate video according to an embodiment of the present disclosure is schematically shown.

[0103] like Figure 4As shown, the base video 400 can be obtained by splicing the style action video clip 410, the key action video clip 420, the style action video clip 430, the key action video clip 440, and the style action video clip 450. The style action video clip 410, the key action video clip 420, the style action video clip 430, the key action video clip 440, and the style action video clip 450 can correspond to the style text clip "Friends of XX community," the keyword "Hello," the style text clip "Today I will introduce to you," the keyword "a," and the style text clip "new product" in the spoken text. For example, the style action video clip 410 can be annotated according to the style pronunciation time information corresponding to the style text clip "Friends of XX community," the style action video clip 430 can be annotated according to the style pronunciation time information corresponding to the style text clip "Today I will introduce to you," and the style action video clip 450 can be annotated according to the style pronunciation time information corresponding to the style text clip "new product". For another example, time alignment can be performed according to the style pronunciation time information and style text segments corresponding to each of them, and the key action video segment 420 can be annotated according to the key pronunciation time information corresponding to the keyword "hello," and the key action video segment 440 can be annotated according to the key pronunciation time information corresponding to the keyword "a". In this way, the style action video segment 410, the key action video segment 420, the style action video segment 430, the key action video segment 440, and the style action video segment 450 can be time-aligned with the style text segment "Friends of XX community," the keyword "hello," the style text segment "Today I will introduce to you," the keyword "a", and the style text segment "new product".

[0104] like Figure 4 As shown, the style action video clip 410 may include a style action video sub-clip 411 and action interpolation frames 412 and 413. The action interpolation frames 412 and 413 may be obtained by processing at least one video frame of the style action video sub-clip 411 based on an interpolation algorithm. The key action video clip 420 may include a key action video sub-clip 421 and action interpolation frames 422 and 423. The action interpolation frames 422 and 423 may be obtained by processing at least one video frame of the key action video sub-clip 421 based on an interpolation algorithm. After the style action video clip 410 and the key action video clip 420 are spliced, the style action corresponding to the style action video clip 410 in the base video 400 may be naturally transitioned to the key action corresponding to the key action video clip 420 based on the action interpolation frames 413 and 422, so that the base video clip 400 can naturally connect different actions, thereby improving the naturalness of the actions in the video.

[0105] It should be noted that Figure 4 The length of the video segments (including but not limited to the style action video segment 410 ) shown in is only for schematically representing the video segments and is not used to limit the duration of the video segments.

[0106] According to an embodiment of the present disclosure, the spoken text is associated with the spoken audio, and the spoken audio is used to express the spoken text. According to the base video, driving the virtual object to express the spoken text according to the key action and the style action corresponding to the style action video clip may include: driving the virtual object to perform the style action and the key action according to the base video to obtain the action video; and processing the spoken audio and the action video according to the lip shape driving algorithm to obtain the target video representing the virtual object expressing the spoken text.

[0107] According to the embodiments of the present disclosure, based on the style action video clips and key action video clips in the base video, the virtual object can be driven to perform style actions and key actions in the semantic order of the spoken text, and an action video of the virtual object performing style actions and key actions in the semantic order can be generated. By processing the spoken audio and action video according to the lip shape driving algorithm, the lip shape of the virtual object in the obtained target video can be adapted to the pronunciation of the spoken audio, and the virtual object can perform the spoken audio pronunciation in accordance with the pronunciation expression nodes of the style text clips or keywords while the lip shape is adapted to perform the spoken audio pronunciation, so that the target video can make the virtual object close to the spoken expression level of the real person, improve the spoken presentation effect of the spoken text, and further improve the content dissemination effect of the spoken text.

[0108] According to the embodiments of the present disclosure, the lip-shaped driving algorithm may include a Wav2Lip model algorithm, but is not limited thereto. It may also be based on other types of lip-shaped driving algorithms, such as a deformation inpainting network (DINet) algorithm, etc. The embodiments of the present disclosure do not limit the specific type of the lip-shaped driving algorithm, and those skilled in the art may choose according to actual needs.

[0109] According to an embodiment of the present disclosure, processing spoken audio and action video according to a lip shape driving algorithm to obtain a target video representing a virtual object expressing spoken text may also include processing spoken audio according to a lip shape driving algorithm to generate a universal facial image corresponding to the lip shape of the spoken text. This can avoid the influence of details such as texture and teeth, making the mouth shape and expression of the generated facial image more accurate. Then, based on an image translation model such as pix2pix or vid2vid, the universal facial image is processed to personalize the expression, mouth shape and other detail features of the virtual object. Since the image translation model has sufficient prior knowledge, the generated target video frame has strong expressiveness and high clarity in terms of personalized features such as texture details, teeth, dimples, etc., thereby improving the display effect of the target video.

[0110] Figure 5 A flowchart of a virtual object driving method according to another embodiment of the present disclosure is schematically shown.

[0111] like Figure 5 As shown, the virtual object driving method of this embodiment may include a preparation stage 510 and an implementation stage 520. In the preparation stage 510, the shooting content may be determined according to the more popular key actions and style actions. While determining the shooting content, keywords corresponding to the key actions may also be constructed, such as keywords such as "below", "lower side", and "below the video" corresponding to the key action pointing downward, and a keyword list may be obtained based on the keyword construction.

[0112] With the authorization of the subject, the action video shooting and editing steps can be performed. For example, video of the subject performing key actions and style actions can be shot according to the shooting content, and the shot material video can be edited to obtain key action video sub-clips and style action video sub-clips. The key action video sub-clips and style action video sub-clips can then be processed based on the interpolation algorithm to obtain selected key action video clips and selected style action video clips containing action interpolations.

[0113] During the process of shooting and editing action videos, the start and end frames of the shot video can be marked. The marked start and end frames are required to be the basic action before the start of the key action or style and the basic action after the end of the action. The marking can be done using a player that displays the current frame number (Jianying or video editor) or using a picture sequence number. After marking, the action video material can be segmented according to the marked frame number to obtain multiple key action video sub-segments or style action video sub-segments, where the length of the style action video sub-segments can be shorter. The key action video sub-segments and style action video sub-segments are processed by the interpolation algorithm, so that the first and last parts of the selected key action video segments or the selected style action video segments each contain standard action interpolation frames, so that in the subsequent splicing operation, no interpolation calculation is required and they can be directly spliced, reducing extra time.

[0114] Then, the step of constructing an action video clip library can be executed. For example, based on the mapping relationship between keywords and the selected key action video clips, and the mapping relationship between style attributes and the selected style action video clips, a selected key action video clip library and a selected style action video clip library can be constructed respectively, thereby completing the preparation stage 510.

[0115] like Figure 5 As shown, in the implementation stage 520, an advertisement copy may be obtained, and the advertisement copy may be a spoken text that needs to be spoken by a virtual object. The copy is parsed to obtain keywords and style text segments. The positional relationship between the keywords obtained by parsing and the advertisement copy may be used to generate a keyword ranking result (keyword sequence), and a key action sequence may be generated based on the keyword ranking result.

[0116] In the step of retrieving and annotating video clips, the key action word_aciton and the key action video clip in the key action sequence can be annotated with timestamps to achieve time alignment between the keyword and the key video clip. For example, the key action word_aciton can include the timestamp begin_time and the key action identifier action_id:2. The key action can be represented by the following method: word_aciton{ begin_time:0,action_id:2}. Based on speech synthesis technology (such as Text To Speech, TTS), the advertising copy can be processed to convert the advertising copy into spoken audio, and the timestamp of each word pronunciation in the advertising copy (representing the pronunciation time information) can be obtained, so that the timestamp of the keyword can be determined. The key pronunciation time information can be represented by the timestamp of the keyword.

[0117] For another example, for the advertising copy "Hello friends in xx area (action), today I will introduce to you...", an action sequence of style action 1 + style action 2 + key action (key action corresponding to "Hello") + style action 3 can be generated, and the base video can be further generated by splicing the retrieved style action video clips and key action video clips.

[0118] It should be noted that, in the case where, in two consecutive key action video clips, the duration of the first key action video clip is too long, resulting in the inability to execute the key action corresponding to the second key action video clip after the first key action is completed, the second key action video clip can be deleted, or the second key action video clip can be supplemented by a style action video clip to ensure the continuity of the base video.

[0119] According to the obtained base video, the virtual object can be driven to perform actions and express the advertising copy to obtain the target video. It should be noted that the target video can be a two-dimensional video or a three-dimensional video, and the embodiment of the present disclosure does not limit the dimension of the target video.

[0120] Figure 6 A block diagram of a virtual object driving device according to an embodiment of the present disclosure is schematically shown.

[0121] like Figure 6 As shown, the virtual object driving device 600 includes: a keyword extraction module 610, a first determination module 620, a splicing module 630 and a virtual object driving module.

[0122] The keyword extraction module 610 is used to extract keywords related to key actions from the spoken text.

[0123] The first determination module 620 is used to determine the key action video clips corresponding to the keywords and the style action video clips related to the style attributes of the spoken text.

[0124] The splicing module 630 is used to splice the key action video clips and the style action video clips according to the positional relationship between the keywords and the spoken text to generate a base video.

[0125] The virtual object driving module 640 is used to drive the virtual object to express the spoken text according to the key actions and the style actions corresponding to the style action video clips based on the base video.

[0126] According to an embodiment of the present disclosure, a keyword is associated with key pronunciation time information, and the key pronunciation time information represents a key pronunciation moment or a key pronunciation time period when a virtual object expresses the keyword;

[0127] According to an embodiment of the present disclosure, the first determination module includes: an intermediate key action video segment determination submodule and a key action video segment determination submodule.

[0128] The intermediate key action video segment determination submodule is used to determine the intermediate key action video segment from the candidate key action video segment library according to the keywords.

[0129] The key action video segment determination submodule is used to time-align the intermediate key action video segment with the keyword according to the key pronunciation time information to obtain the key action video segment.

[0130] According to an embodiment of the present disclosure, the library of key action video clips to be selected includes at least one key action video clip to be selected.

[0131] The virtual object driving device also includes: a three-dimensional reference video frame obtaining module and a to-be-selected key action video segment determining module.

[0132] The 3D reference video frame acquisition module is used to perform 3D conversion on the obtained 2D reference video frame to obtain a 3D reference video frame. The 2D reference video frame represents the key action performed by the reference object, which is different from the virtual object.

[0133] The module for determining the key action video segment to be selected is used to determine the key action video segment to be selected according to the three-dimensional reference video frame and the virtual object video frame representing the virtual object.

[0134] According to an embodiment of the present disclosure, the module for determining the key action video segment to be selected includes: a submodule for obtaining a reference action attribute feature and a submodule for obtaining the key action video segment to be selected.

[0135] The reference action attribute feature acquisition submodule is used to extract features from the three-dimensional reference video frame to obtain reference action attribute features.

[0136] The submodule for obtaining the video clip of the key action to be selected is used to determine the video clip of the key action to be selected according to the virtual object video frame and the attribute characteristics of the benchmark action.

[0137] According to an embodiment of the present disclosure, the submodule for obtaining the key action video clip to be selected includes: a virtual object attribute feature obtaining unit, an updating unit, an initial key action video frame determining unit and a key action video clip generating unit to be selected.

[0138] The virtual object attribute feature obtaining unit is used to extract features from a virtual object video frame representing the virtual object to obtain the virtual object attribute features.

[0139] The updating unit is used to update the virtual object video frame according to the reference action attribute feature to obtain the target virtual object video frame.

[0140] The initial key action video frame determining unit is used to determine the initial key action video frame representing the virtual object performing the key action according to the virtual object attribute characteristics and the target virtual object video frame.

[0141] The unit for generating a key action video segment to be selected is used to generate a key action video segment to be selected according to an initial key action video frame.

[0142] According to an embodiment of the present disclosure, the benchmark action attribute feature includes at least one of the following features related to the key action: an action amplitude feature, an action speed feature, and an action display angle feature.

[0143] According to an embodiment of the present disclosure, the virtual object driving device further includes: a key pronunciation time information determination module.

[0144] The key pronunciation time information determination module is used to determine the key pronunciation time information associated with the keyword based on the spoken audio used to express the spoken text.

[0145] According to an embodiment of the present disclosure, a key action video clip includes a key action video frame and an action interpolation frame connected in time sequence with the key action video frame. The action interpolation frame is obtained by processing a conversion action video frame based on an interpolation algorithm. The conversion action video frame represents a first conversion posture of converting a key action to a style action, or the conversion action video frame represents a second conversion posture of an action conversion between different key actions.

[0146] According to an embodiment of the present disclosure, the virtual object driving apparatus further includes: a first style attribute detection module.

[0147] The first style attribute detection module is used to perform style attribute detection on the spoken text to obtain style attributes.

[0148] According to an embodiment of the present disclosure, the virtual object driving device further includes: a style text segment determination module and a second style attribute detection module.

[0149] The style text segment determination module is used to determine at least one style text segment from the spoken text, wherein the style text segment is irrelevant to the keyword.

[0150] The second style attribute detection module is used to perform style attribute detection on the style text segment to obtain segment style attributes corresponding to the style text segment, wherein the style attributes include at least one segment style attribute, and the segment style attribute is associated with at least one style action video segment.

[0151] According to an embodiment of the present disclosure, a keyword includes a plurality.

[0152] According to an embodiment of the present disclosure, the splicing module includes: a key video segment sequence obtaining submodule, an initial video segment sequence obtaining submodule and a splicing submodule.

[0153] The key video clip sequence acquisition submodule is used to sort multiple key action video clips according to the positional relationship between each of the multiple keywords and the spoken text to obtain a key video clip sequence.

[0154] The initial video clip sequence obtaining submodule is used to insert the style action video clip corresponding to the style text clip into the key video clip sequence according to the positional relationship between the style text clip and the keyword to obtain the initial video clip sequence.

[0155] The splicing submodule is used to splice the key action video clips and the style action video clips in the initial video clip sequence to obtain the base video.

[0156] According to an embodiment of the present disclosure, the style text segment is associated with style pronunciation time information, and the style pronunciation time information represents the style pronunciation moment or style pronunciation time period when the virtual object expresses the style text segment.

[0157] According to an embodiment of the present disclosure, the virtual object driving apparatus further includes a time alignment module.

[0158] The time alignment module is used to time-align the style action video clips with the style text clips according to the style pronunciation time information.

[0159] According to an embodiment of the present disclosure, the spoken text is associated with the spoken audio, and the spoken audio is used to express the spoken text.

[0160] According to an embodiment of the present disclosure, the virtual object driving module includes: an action video obtaining submodule and a target video obtaining submodule.

[0161] The action video acquisition submodule is used to drive the virtual object to perform style actions and key actions according to the base video to obtain the action video.

[0162] The target video acquisition submodule is used to process the spoken audio and action video according to the lip-driven algorithm to obtain a target video representing the spoken text expressed by the virtual object.

[0163] According to an embodiment of the present disclosure, the key action includes at least one of the following: a direction indication action, a number indication action, a greeting action, and a keyword imitation action.

[0164] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0165] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0166] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0167] According to an embodiment of the present disclosure, a computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.

[0168] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0169] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0170] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0171] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as a virtual object driving method. For example, in some embodiments, the virtual object driving method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the virtual object driving method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the virtual object driving method in any other appropriate manner (e.g., by means of firmware).

[0172] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0173] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0174] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0175] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0176] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0177] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.

[0178] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0179] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A virtual object driving method, comprising: Extract keywords related to key actions from spoken text; Determining key action video clips corresponding to the keywords and style action video clips related to style attributes of the spoken text; splicing the key action video clip and the style action video clip according to the positional relationship between the keyword and the spoken text to generate a base video; as well as According to the base video, the virtual object is driven to express the spoken text according to the key action and the style action corresponding to the style action video clip.

2. The method according to claim 1, wherein: The keyword is associated with key pronunciation time information, and the key pronunciation time information represents a key pronunciation moment or a key pronunciation time period when the virtual object expresses the keyword; The step of determining the key action video clip corresponding to the keyword includes: Determine an intermediate key action video segment from a library of key action video segments to be selected according to the keyword; According to the key pronunciation time information, the intermediate key action video clip is time-aligned with the keyword to obtain the key action video clip.

3. The method according to claim 2, wherein: The library of key action video clips to be selected includes at least one key action video clip to be selected; The method further comprises: Performing a three-dimensional conversion on the obtained two-dimensional reference video frame to obtain a three-dimensional reference video frame, wherein the two-dimensional reference video frame represents a reference object performing the key action, and the reference object is different from the virtual object; and The key action video segment to be selected is determined according to the three-dimensional reference video frame and the virtual object video frame representing the virtual object.

4. The method according to claim 3, wherein: The determining the to-be-selected key action video segment according to the three-dimensional reference video frame and the virtual object video frame representing the virtual object comprises: Extracting features from the three-dimensional reference video frame to obtain reference action attribute features; and The key action video segment to be selected is determined according to the virtual object video frame and the benchmark action attribute feature.

5. The method according to claim 4, wherein: The determining, according to the virtual object video frame and the benchmark action attribute feature, the to-be-selected key action video segment comprises: Extracting features from a virtual object video frame representing the virtual object to obtain virtual object attribute features; Update the virtual object video frame according to the benchmark action attribute feature to obtain a target virtual object video frame; Determining, according to the virtual object attribute feature and the target virtual object video frame, an initial key action video frame representing that the virtual object performs the key action; and The key action video segment to be selected is generated according to the initial key action video frame.

6. The method according to claim 4, wherein: The benchmark action attribute feature includes at least one of the following features related to the key action: Movement amplitude characteristics, movement speed characteristics, and movement display angle characteristics.

7. The method according to claim 2, further comprising: According to the spoken audio used to express the spoken text, key pronunciation time information associated with the keyword is determined.

8. The method according to claim 1, wherein: The key action video clip includes a key action video frame and an action interpolated frame connected in time sequence with the key action video frame, wherein the action interpolated frame is obtained by processing a conversion action video frame based on an interpolation algorithm, and the conversion action video frame represents a first conversion posture of converting the key action to the style action, or the conversion action video frame represents a second conversion posture of the action conversion between different key actions.

9. The method according to claim 1, further comprising: Perform style attribute detection on the spoken text to obtain the style attribute.

10. The method according to claim 1, further comprising: Determining at least one style text segment from the spoken text, wherein the style text segment is unrelated to the keyword; and Performing style attribute detection on the style text segment to obtain segment style attributes corresponding to the style text segment, wherein the style attributes include at least one segment style attribute, and the segment style attribute is associated with at least one style action video segment.

11. The method according to claim 10, wherein: The keywords include multiple; The step of splicing the key action video clip and the style action video clip according to the positional relationship between the keyword and the spoken text comprises: According to the positional relationship between each of the plurality of keywords and the spoken text, the plurality of key action video clips are sorted to obtain a key video clip sequence; According to the positional relationship between the style text segment and the keyword, inserting the style action video segment corresponding to the style text segment into the key video segment sequence to obtain an initial video segment sequence; and The key action video clip and the style action video clip in the initial video clip sequence are spliced ​​together to obtain the base video.

12. The method according to claim 11, wherein: The style text segment is associated with style pronunciation time information, and the style pronunciation time information represents the style pronunciation moment or style pronunciation time period when the virtual object expresses the style text segment; Before splicing the key action video clip and the style action video clip in the initial video clip sequence, the method further includes: The style action video segment is time-aligned with the style text segment according to the style pronunciation time information.

13. The method according to claim 1, wherein: The spoken text is associated with the spoken audio, and the spoken audio is used to express the spoken text; Wherein, according to the base video, driving the virtual object to express the spoken text according to the key action and the style action corresponding to the style action video clip includes: Driving the virtual object to perform the style action and the key action according to the base video to obtain an action video; and The spoken audio and the action video are processed according to a lip-driven algorithm to obtain a target video representing the virtual object expressing the spoken text.

14. The method according to any one of claims 1 to 13, wherein: The key actions include at least one of the following: Direction indication actions, number indication actions, greeting actions, and keyword imitation actions.

15. A virtual object driving device, comprising: Keyword extraction module, used to extract keywords related to key actions from spoken text; A first determination module is used to determine a key action video segment corresponding to the keyword and a style action video segment related to the style attribute of the spoken text; A splicing module, used for splicing the key action video clip and the style action video clip according to the positional relationship between the keyword and the spoken text to generate a base video; as well as A virtual object driving module is used to drive the virtual object to express the spoken text according to the key action and the style action corresponding to the style action video clip based on the base video.

16. The device according to claim 15, wherein: The keyword is associated with key pronunciation time information, and the key pronunciation time information represents a key pronunciation moment or a key pronunciation time period when the virtual object expresses the keyword; Wherein, the first determining module includes: An intermediate key action video segment determination submodule is used to determine an intermediate key action video segment from a library of to-be-selected key action video segments according to the keyword; The key action video segment determination submodule is used to time-align the intermediate key action video segment with the keyword according to the key pronunciation time information to obtain the key action video segment.

17. The device according to claim 16, wherein: The library of key action video clips to be selected includes at least one key action video clip to be selected; The device also includes: a three-dimensional reference video frame acquisition module, configured to perform three-dimensional conversion on the acquired two-dimensional reference video frame to obtain a three-dimensional reference video frame, wherein the two-dimensional reference video frame represents a reference object performing the key action, and the reference object is different from the virtual object; and The module for determining the key action video segment to be selected is used to determine the key action video segment to be selected according to the three-dimensional reference video frame and the virtual object video frame representing the virtual object.

18. The device according to claim 17, wherein: The module for determining the key action video clips to be selected includes: A reference action attribute feature acquisition submodule is used to extract features from the three-dimensional reference video frame to obtain reference action attribute features; and The submodule for obtaining the key action video segment to be selected is used to determine the key action video segment to be selected according to the virtual object video frame and the benchmark action attribute feature.

19. The device according to claim 18, wherein: The submodule for obtaining the key action video clip to be selected includes: A virtual object attribute feature obtaining unit, used to extract features from a virtual object video frame representing the virtual object to obtain virtual object attribute features; An updating unit, configured to update the virtual object video frame according to the reference action attribute feature to obtain a target virtual object video frame; an initial key action video frame determining unit, configured to determine an initial key action video frame representing that the virtual object performs the key action according to the virtual object attribute characteristics and the target virtual object video frame; and The candidate key action video segment generating unit is used to generate the candidate key action video segment according to the initial key action video frame.

20. The device according to claim 18, wherein The benchmark action attribute feature includes at least one of the following features related to the key action: Movement amplitude characteristics, movement speed characteristics, and movement display angle characteristics.

21. The apparatus of claim 16, further comprising: The key pronunciation time information determination module is used to determine the key pronunciation time information associated with the keyword based on the spoken audio used to express the spoken text.

22. The device according to claim 15, wherein: The key action video clip includes a key action video frame and an action interpolated frame connected in time sequence with the key action video frame, wherein the action interpolated frame is obtained by processing a conversion action video frame based on an interpolation algorithm, and the conversion action video frame represents a first conversion posture of converting the key action to the style action, or the conversion action video frame represents a second conversion posture of the action conversion between different key actions.

23. The apparatus of claim 15, further comprising: The first style attribute detection module is used to perform style attribute detection on the spoken text to obtain the style attribute.

24. The apparatus of claim 15, further comprising: a style text segment determination module, configured to determine at least one style text segment from the spoken text, wherein the style text segment is irrelevant to the keyword; and The second style attribute detection module is used to perform style attribute detection on the style text segment to obtain segment style attributes corresponding to the style text segment, wherein the style attributes include at least one segment style attribute, and the segment style attribute is associated with at least one style action video segment.

25. The device according to claim 24, wherein The keywords include multiple; Wherein, the splicing module includes: A key video clip sequence obtaining submodule is used to sort the multiple key action video clips according to the positional relationship between each of the multiple keywords and the spoken text to obtain a key video clip sequence; an initial video clip sequence obtaining submodule, configured to insert the style action video clip corresponding to the style text clip into the key video clip sequence according to the positional relationship between the style text clip and the keyword, so as to obtain an initial video clip sequence; and The splicing submodule is used to splice the key action video clip and the style action video clip in the initial video clip sequence to obtain the base video.

26. The device according to claim 25, wherein The style text segment is associated with style pronunciation time information, and the style pronunciation time information represents the style pronunciation moment or style pronunciation time period when the virtual object expresses the style text segment; Wherein, the device further comprises: A time alignment module is used to time-align the style action video segment with the style text segment according to the style pronunciation time information.

27. The device according to claim 15, wherein: The spoken text is associated with the spoken audio, and the spoken audio is used to express the spoken text; Wherein, the virtual object driving module includes: an action video obtaining submodule, configured to drive the virtual object to perform the style action and the key action according to the base video to obtain an action video; and The target video acquisition submodule is used to process the spoken audio and the action video according to the lip-driven algorithm to obtain a target video representing the virtual object expressing the spoken text.

28. The device according to any one of claims 15 to 27, wherein: The key actions include at least one of the following: Direction indication actions, number indication actions, greeting actions, and keyword imitation actions.

29. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 14.

30. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-14.

31. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Virtual digital object modeling method and device, equipment and storage medium

    CN113901296A

  • Virtual character control method and device, equipment and storage medium

    CN114596391A

  • Video generation method and device, electronic equipment and storage medium

    CN115942039A

  • Systems and methods for virtual interaction

    US20160057083A1

  • KR20230103665A