Driving method, device and storage medium of virtual digital human

By dynamically replacing the background during the virtual digital human driving process, the output content is matched with the background, which solves the problem of low immersion caused by a fixed background and improves the user experience and interaction depth.

CN123160736APending Publication Date: 2026-11-24ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510681767.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The fixed background settings in existing virtual digital human technologies result in low immersion, affecting user experience and the depth of interaction.

Method used

By acquiring the matching relationship between content and image materials, the background is dynamically replaced during the virtual digital human driving process, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background.

Benefits of technology

It enables flexible and varied virtual digital human backgrounds, enhances adaptability and expressiveness, improves interactive experience, and increases flexibility in dealing with different content scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160736A_ABST
    Figure CN123160736A_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, and storage medium for driving a virtual digital human. Relating to the field of computer vision, the method includes: acquiring a matching relationship between content and image materials; and during the driving process of the virtual digital human, replacing the background of the virtual digital human based on the matching relationship between the content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human. This invention solves the technical problem of poor driving flexibility of virtual digital humans in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision, and more specifically, to a driving method, apparatus, and storage medium for a virtual digital human. Background Technology

[0002] Virtual digital human technology is a comprehensive technology that combines computer graphics, artificial intelligence, and machine learning, aiming to create and manipulate virtual avatars with a lifelike appearance. These virtual digital humans can simulate human movements, expressions, and language, and are widely used in fields such as virtual customer service, online education, and live streaming.

[0003] In existing virtual human technologies, the background is typically configured once before the virtual human begins driving or performing, meaning a single image is chosen as the fixed background. This fixed background results in a low level of immersion in the viewing experience, further impacting the appeal of the virtual human content. For example, in live streaming, a single, fixed background may weaken the emotional connection with the audience, reducing the depth and breadth of interaction. Therefore, it is evident that existing technologies for driving virtual humans suffer from a lack of background flexibility and a low-quality user experience.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a method, apparatus, and storage medium for driving a virtual digital human, thereby at least addressing the technical problem of poor driving flexibility of virtual digital humans in the prior art.

[0006] To achieve the above objectives, according to one aspect of this application, a method for driving a virtual digital human is provided. The method includes: obtaining a matching relationship between content and image materials; and during the driving process of the virtual digital human, replacing the background of the virtual digital human based on the matching relationship between the content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human.

[0007] Furthermore, during the driving process of the virtual digital human, replacing the background of the virtual digital human based on the matching relationship between content and image materials includes: determining the screen to be driven by the virtual digital human based on the driving progress of the virtual digital human; acquiring the original video of the virtual digital human and acquiring multiple transparency channel data corresponding to the original video, the original video including multiple image frames, with transparency channel data corresponding one-to-one with the image frames; taking the image frame to be driven as the target image frame, and using the transparency channel data corresponding to the target image frame as the target transparency channel data; and replacing the background of the virtual digital human based on the target transparency channel data and the matching relationship between content and image materials.

[0008] Furthermore, based on the matching relationship between the target transparency channel data and content and the image material, the background replacement of the virtual digital human includes: determining the new screen to be driven based on the matching relationship between the target transparency channel data and content and the image material; and replacing the screen to be driven with the new screen to be driven during the driving process.

[0009] Furthermore, based on the target transparency channel data and the matching relationship between content and image materials, the determination of the new screen to be driven includes: obtaining the target content used to drive the screen to be driven; determining the target image material corresponding to the target content based on the matching relationship between content and image materials; removing the background of the screen to be driven based on the target transparency channel data to obtain the transparent background screen to be driven; and determining the new screen to be driven based on the transparent background screen to be driven and the target image material.

[0010] Further, removing the background of the image to be driven based on the target transparency channel data to obtain the transparent background image to be driven includes: determining a virtual digital human boundary mask image based on the target transparency channel data, wherein the virtual digital human boundary mask image includes background position markers and human subject position markers; using the virtual digital human boundary mask image to perform image masking processing on the image to be driven, so as to retain the pixels at the human subject position markers in the image to be driven and remove the pixels at the background position markers in the image to be driven, thereby obtaining the transparent background image to be driven.

[0011] Furthermore, the original video is the original source video of the virtual digital human within a preset time period. Before the driving process of the virtual digital human, the method also includes: acquiring the original video of the virtual digital human and making the original video transparent to obtain the processed video; extracting channel data from the processed video to obtain multiple transparent channel data; and marking the transparent channel data according to the image frames in the original video so that the image frames correspond one-to-one with the transparent channel data.

[0012] Furthermore, the original video is made transparent to obtain the processed video by: importing the original video into a preset offline background removal tool and performing background removal operation according to the preset offline background removal tool to obtain the original video after background removal; and exporting the original video after background removal from the preset offline background removal tool to obtain the processed video.

[0013] To achieve the above objectives, according to another aspect of this application, a method for driving a virtual digital human is provided, comprising: receiving a background replacement instruction triggered by a client during the driving process of the virtual digital human, wherein the background replacement instruction is used to instruct the replacement of the background of the virtual digital human; in a cloud server, responding to the background replacement instruction, obtaining the matching relationship between content and image materials; replacing the background of the virtual digital human according to the matching relationship between content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human; and sending the driving screen after background replacement to the client.

[0014] To achieve the above objectives, according to another aspect of this application, a driving device for a virtual digital human is provided. The device includes: a parameter configuration unit for acquiring the matching relationship between content and image materials; and a driving replacement unit for replacing the background of the virtual digital human based on the matching relationship between the content and image materials during the driving process of the virtual digital human, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human.

[0015] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is running, it controls the device where the computer-readable storage medium is located to execute any kind of virtual digital human driving method.

[0016] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a driving method for performing any kind of virtual digital human.

[0017] According to another aspect of this application, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of a driving method for a virtual digital human as described above.

[0018] In this embodiment of the invention, by obtaining the matching relationship between content and image materials, the background of the virtual digital human is replaced according to the matching relationship between content and image materials during the driving process of the virtual digital human, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human, thus solving the technical problem of poor driving flexibility of virtual digital humans in the prior art.

[0019] By establishing a matching relationship between content and image assets, an efficient basis for content and image matching is provided. During the driving process, this matching relationship is used as a foundation to dynamically change the background of the virtual digital human as the content output by the virtual digital human changes. This achieves the effect of matching the content output by the virtual digital human with the image assets presented in the background. This not only enables flexible and varied background display but also further enhances the adaptability and expressiveness of the virtual digital human under different content, allowing it to be applicable to different content scenarios, enhancing the interactive experience of the virtual digital human, and thus improving the flexibility of the virtual digital human in handling different content during the driving process. Attached Figure Description

[0020] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0021] Figure 1 A hardware structure block diagram of a computer terminal for implementing a driving method for a virtual digital human is shown.

[0022] Figure 2 This is a flowchart of a virtual digital human driving method provided according to an embodiment of this application;

[0023] Figure 3 This is a schematic diagram of the processing from the screen to be driven to the new screen to be driven, according to an embodiment of this application.

[0024] Figure 4 This is a schematic diagram of the transparency processing provided according to an embodiment of this application;

[0025] Figure 5 This is a schematic diagram of a driving device for a virtual digital human according to an embodiment of this application;

[0026] Figure 6 This is a flowchart of another driving method for a virtual digital human according to an embodiment of this application;

[0027] Figure 7 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] It should be noted that all information and data involved in this application (including but not limited to data used for training and analysis) are information and data authorized by the user or fully authorized by all parties. For example, if there is an interface between this system and the relevant user or organization, before obtaining the relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information only after receiving consent from the aforementioned user or organization.

[0031] Example 1

[0032] According to an embodiment of the present invention, a method for driving a virtual digital human is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0033] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing a driving method for a virtual digital human is shown. Figure 1As shown, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0034] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0035] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the virtual digital human driving method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned virtual digital human driving method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0036] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0037] The display can be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0038] Under the aforementioned operating environment, this application provides the following: Figure 2 The driving method for the virtual digital human shown. Figure 2 This is a flowchart of the driving method for a virtual digital human according to Embodiment 1 of the present invention.

[0039] Step S201: Obtain the matching relationship between content and image materials.

[0040] Optionally, the matching relationship between content and image materials is used to establish a mapping relationship between content and background, so that when the virtual digital human outputs specific content, it can use the matching relationship between content and image materials to determine the image materials that match the content. The aforementioned content can be text that the virtual digital human needs to broadcast, or audio that the virtual digital human needs to broadcast, which contains the corresponding content; the image materials corresponding to the content are images associated with the content, used to enhance the visual effect of the content expression. For example, if the content or audio is "weather - rain", then the image material is "rain scene image", and if the content or audio is "weather - snow", then the image material is "snow scene image".

[0041] Optionally, the matching relationship between content and image materials can be obtained by reading a configuration file.

[0042] For example, the configuration file can be:

[0043] {"Moonlight before my bed":"Moonlight in the bedroom.jpg","Looking up at the bright moon":"Full moon in the night sky.jpg","Thinking of my hometown":"Hometown mountains and rivers.jpg"};

[0044] The configuration file can be a JSON key-value pair, where the key is the content and the key is the storage path of the image material (e.g., a relative path). Based on any content (e.g., "Bright moonlight before my bed"), the storage path of the corresponding image material can be obtained by searching in the configuration file, and then the image material can be obtained by reading the file at that storage path. Accordingly, the matching relationship between content and image material is constructed by defining multiple contents for driving the virtual digital human, obtaining the image material corresponding to each content and storing the image material, and constructing the configuration file based on the content and the storage path of the image material. There are multiple ways to obtain the image material corresponding to each content. It can be either by searching the image material library based on the content to obtain the image material corresponding to the content, or by inputting the content into the text-to-image model to generate the image material corresponding to the content. This application does not limit the source of the image material, that is, it does not limit the construction method of the matching relationship between content and image material. The matching relationship between content and image material is used to characterize the matching criteria between content and image material. As long as it meets the matching criteria, it can be used as the data basis for the background replacement of this application. Based on the above description of the embodiments of this application, those skilled in the art can construct a suitable configuration file according to actual needs for reading when obtaining the matching relationship between content and image materials.

[0045] Step S202: During the driving process of the virtual digital human, the background of the virtual digital human is replaced according to the matching relationship between the content and the image material, so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human.

[0046] Optionally, all original driving screens of the virtual digital human share the same unified background. During real-time driving of the virtual digital human, the content to be output by the virtual digital human can be detected in real time. Whenever content is detected, the corresponding image material is obtained based on the matching relationship between the content and image materials, and this image material is used as the background of the driving screen corresponding to the content to be output. In other words, the unified background is replaced by this image material. Therefore, during real-time driving of the virtual digital human, as the content output by the virtual digital human in the driving screen changes, the image material presented in the background of the virtual digital human also changes accordingly. Through this background replacement, the virtual digital human can not only present diverse background visual effects according to content changes, but also make the interaction process of the virtual digital human closer to real-world scenarios, creating a more immersive interactive experience and improving user engagement and satisfaction.

[0047] For example, a virtual digital human will read and explain the ancient poem "The bright moonlight shines before my bed, I wonder if it is frost on the ground. I raise my head to gaze at the bright moon, I lower my head to think of my hometown." This content has four lines. The matching relationship between content and image materials assigns different image materials to these four lines: "The bright moonlight shines before my bed" corresponds to an image of moonlight shining through the window onto the bed; "I wonder if it is frost on the ground" corresponds to an image of the ground slightly tinged with frost; "I raise my head to gaze at the bright moon" corresponds to an image of a person looking up at the bright full moon hanging outside the window; and "I lower my head to think of my hometown" corresponds to an image of a person lost in thought, with distant mountains and their hometown appearing in the background. As the content read by the virtual digital human changes, the background of the virtual digital human is replaced with image materials that match the content.

[0048] The technical solution of this application can be applied to 2D virtual digital human scenes. It should be noted that, while existing 3D virtual digital humans can switch backgrounds, they are based on 3D modeling and are rendered in real-time using a 3D engine. The rendering process of each element in the image is relatively independent, making background replacement easy to conceive and implement. In contrast, 2D virtual digital humans primarily replace some 2D content based on original materials. In 2D virtual digital humans, the virtual human and background are a single entity, making it difficult to separate the background from the virtual human and replace the background. Therefore, it is difficult to conceive of a background replacement driving method. Based on these differences in underlying principles, the 3D virtual digital human background switching solution cannot be transferred to 2D virtual digital human scenes. Furthermore, in existing technologies, 2D virtual digital humans only have a uniform and fixed background set once when a session is started (i.e., before the driving process). The background cannot be replaced during the virtual digital human's driving process. However, the technical solution of this application can achieve background replacement during the 2D virtual digital human's driving process.

[0049] In summary, this application provides an efficient basis for matching content and image materials through the matching relationship between content and image materials. During the driving process, this matching relationship is used as a foundation to dynamically replace the background of the virtual digital human as the content output by the virtual digital human changes. This achieves the effect of matching the content output by the virtual digital human with the image materials presented in the background. This not only enables flexible and varied background display but also further enhances the adaptability and expressiveness of the virtual digital human under different content conditions, allowing it to be applied to different content scenarios and enhancing the interactive experience. Therefore, the driving method for virtual digital humans in this application improves the flexibility of virtual digital humans in responding to different content during the driving process.

[0050] To improve the smoothness of background replacement, optionally, during the virtual digital human's operation, replacing the virtual digital human's background based on the matching relationship between content and image materials includes the following steps:

[0051] The first step is to determine the screen to be driven for the virtual digital human based on its driving progress.

[0052] Optionally, during the real-time driving process of the virtual digital human, the driving progress is continuously monitored, and the corresponding screen to be driven is obtained based on the driving progress. The screen to be driven can be the screen that will be driven after a preset time interval of the driving progress, and the preset time interval is the reserved time for replacing the background of the screen to be driven.

[0053] For example, if the current driving progress is driving the scene at the 3rd second, and the content output by the virtual digital human at this time is "Bright moonlight before my bed", with a preset interval of 10 seconds, then the scene to be driven corresponding to the current driving progress is the scene to be driven at the 13th second, and the content to be driven at the 13th second is "I bow my head and think of my hometown".

[0054] The second step is to acquire the original video of the virtual digital human and obtain the multiple transparency channel data corresponding to the original video. The original video includes multiple image frames, and the transparency channel data corresponds one-to-one with the image frames.

[0055] Optionally, the original video of the virtual digital human is a green screen source video, that is, in the original video, the virtual digital human speaks in front of a green background. Multiple transparency channel data are extracted from the original video. The transparency channel data is data where the background is 0 and the virtual digital human body is 1. Each transparency channel data corresponds to one image frame.

[0056] For example, the original video includes image frame 1, image frame 2, ..., image frame n. The storage format of the alpha channel data can be a PNG single-channel image. The alpha channel data includes alpha channel data 1, alpha channel data 2, ..., alpha channel data n. Each group of alpha channel data with the same number corresponds to an image frame.

[0057] The third step is to take the image frame to which the image to be driven belongs as the target image frame, and use the transparency channel data corresponding to the target image frame as the target transparency channel data.

[0058] Optionally, the image to be driven is the image containing the specific lip movements of the virtual digital human that will be displayed, and it is related to the content that the virtual digital human will output. The target image frame is the image frame in the original video that corresponds to the image to be driven in terms of content, and is used to provide alpha channel data for background replacement, i.e., target alpha channel data.

[0059] For example, if the frame to be driven is the 13th second of the video, the frame corresponding to the 13th second is found from all the image frames of the original video, which is the target image frame. Then, through the one-to-one correspondence between image frames and alpha channel data, the alpha channel data corresponding to the target image frame is found, and the alpha channel data corresponding to the target image frame is used as the target alpha channel data.

[0060] The fourth step is to replace the background of the virtual digital human based on the matching relationship between the target transparent channel data and content and the image material.

[0061] Optionally, the target transparency channel data is alpha channel data, which marks the positional differences between the background and the virtual digital human subject. Based on the target transparency channel data, the background portion of the virtual digital human can be determined, i.e., the position of the background can be determined. By querying the content to be output based on the matching relationship between the content and the image material, the image material can be determined, i.e., the replacement object for the background can be determined. Given that the position of the background and the replacement object for the background are determined, those skilled in the art can use various methods to replace the background of the virtual digital human, such as traditional image processing, image synthesis, and deep learning models.

[0062] In summary, by proactively acquiring the screen to be driven based on the driving progress and pre-determining the target channel data based on the original video, the timeliness of background replacement can be ensured. Dynamic background replacement can be achieved without re-recording the original video of the virtual digital human or interrupting the driving process, providing a continuous visual experience and improving the smoothness of background replacement.

[0063] To reduce the complexity of background replacement, optionally, the background of the virtual digital human can be replaced based on the matching relationship between the target transparency channel data and content and the image material. This includes: determining the new screen to be driven based on the matching relationship between the target transparency channel data and content and the image material; and replacing the screen to be driven with the new screen during the driving process.

[0064] Optionally, as the driving progress progresses, since the target transparency channel data represents the positional difference between the digital human subject and the background in the screen to be driven (see the above section for an introduction to the target transparency channel data), and the content-image material matching relationship represents the target image material to be displayed after the background is replaced and matches the target content to be output, there are multiple ways to determine the new screen to be driven corresponding to the driving progress based on the target transparency channel data and the content-image material matching relationship. The process can be as follows: First, determine the target pixels to be replaced (i.e., the background pixels) in the image to be driven based on the target alpha channel data. Then, replace the target pixels of the image with the corresponding pixels of the image material to be displayed to obtain the new image to be driven. Second, first, obtain the transparent background image to be driven based on the target alpha channel data and the image to be driven. Then, overlay the transparent background image to be driven onto the target image material to obtain the new image to be driven. Third, train a background replacement model that takes the image to be driven, its content, alpha channel data, and the matching relationship between the content and the image material as input, and the new image to be driven as output. This model can be trained using labeled training data on a convolutional neural network. Then, input the image to be driven, the target content, the target alpha channel data, and the matching relationship between the content and the image material corresponding to the driving progress into the background replacement model to obtain the new image to be driven. After determining the new image to be driven corresponding to the driving progress, the image to be driven can be replaced with this new image. When the driving progress advances to the image to be driven, the driving will be based on the new image to be driven, thus displaying the virtual digital human background after background replacement.

[0065] For example, before using the solution of this application to replace the background, the original driving process of the virtual digital human was displayed with a uniform background. Assuming the entire process lasts for 15 seconds, each second can correspond to a driving screen. Therefore, the background of the driving screens from the 1st to the 15th second is the uniform background. The original driving process of the virtual digital human was to drive these driving screens sequentially to realize the virtual digital human display process. However, after using the solution of this application to replace the background, after obtaining the new screen to be driven, the new screen to be driven can be used to replace the screen to be driven during the driving process. The new screen to be driven for the 4th second can be determined and replaced when the driving progress reaches the 1st second, the new screen to be driven for the 5th second can be determined and replaced when the driving progress reaches the 2nd second, and so on until the new screen to be driven for the 15th second is determined and replaced.

[0066] In summary, by integrating background replacement into the driver process and separating the driver logic from the background replacement logic, the mixing of background replacement and driver processes is avoided. This not only allows time for background replacement but also does not affect the progress of the entire driver process, thus reducing the complexity of background replacement.

[0067] To improve the real-time performance of background replacement, optionally, the process of determining the new screen to be driven based on the target transparency channel data and the matching relationship between the content and the image material includes: obtaining the target content used to drive the screen to be driven; determining the target image material corresponding to the target content based on the matching relationship between the content and the image material; removing the background of the screen to be driven based on the target transparency channel data to obtain the transparent background screen to be driven; and determining the new screen to be driven based on the transparent background screen to be driven and the target image material.

[0068] Figure 3 This is a schematic diagram illustrating the processing from the screen to be driven to a new screen to be driven, according to an embodiment of this application. Figure 3 Taking the image frame to be driven and the corresponding target transparency channel data as an example, the image frame to be driven can be a driving image with a mouth shape. The background of the image frame to be driven is removed according to the target transparency channel data to obtain the transparent background image to be driven. Then, based on the transparent background image to be driven and the target image material, the new image to be driven is determined.

[0069] For example, if the scene to be driven is at the 13-second mark, and the virtual digital human outputs "Looking down, I think of my hometown" when the scene is driven, then the target content used to drive the scene is "Looking down, I think of my hometown." By searching the content and image material matching relationship for the content "Looking down, I think of my hometown," the corresponding image material is "A scene of a hometown road under soft moonlight." The target image material is then "A scene of a hometown road under soft moonlight." Alpha channel technology can be used to determine the background pixels in the scene to be driven based on the target transparency channel data. Then, these background pixels are removed to eliminate the original background and obtain a transparent background scene to be driven. This transparent background scene can then be overlaid on the target image material; that is, the transparent background scene to be driven is used as the upper layer, and the target image material is used as the lower layer to achieve image overlay, resulting in a new scene to be driven.

[0070] In summary, by accurately identifying the image material based on the target content and the matching relationship between the content and the image material, and using the target transparency channel data to precisely remove the background of the image to be driven, a transparent background image containing only the virtual digital human figure is obtained, which in turn determines the new image to be driven. Real-time background replacement requires low computing power and has almost no impact on the latency of the original driving chain, thus maximizing the real-time performance and smoothness of background replacement. Furthermore, this method decouples the creation process of the transparent background image to be driven from that of the target image material. When facing scenarios with flexible changes in requirements (e.g., the target image material needs to be changed), only the image material in the content-image material matching relationship needs to be updated, avoiding any impact on the creation of the transparent background image to be driven, thereby enhancing the customization and adaptability of background replacement in applications.

[0071] To improve the accuracy of background replacement, optionally, removing the background of the image to be driven based on the target transparency channel data to obtain the transparent background image to be driven includes: determining a virtual digital human boundary mask image based on the target transparency channel data, wherein the virtual digital human boundary mask image includes background position markers and human subject position markers; using the virtual digital human boundary mask image to perform image masking processing on the image to be driven, so as to retain the pixels at the human subject position markers in the image to be driven and remove the pixels at the background position markers in the image to be driven, thereby obtaining the transparent background image to be driven.

[0072] For example, the target transparency channel data is alpha channel data, where the subject data is 1 and the background data is 0. This target transparency channel data can be used as a virtual digital human boundary mask image. The background position identifier can be that the background area is marked as 0, and the subject position identifier can be that the virtual digital human outline area is marked as 1. In this embodiment, the above scheme can be implemented using the Image.paste() method in the image processing library of Python (a commonly used programming language for image processing). The mask, image, and box parameters of the Image.paste() method can be used. The mask parameter is set to the virtual digital human boundary mask image, the image parameter is set to the image to be driven, and the box parameter is set to a preset area with the same size as the image to be driven. The preset area can be a blank area. Each pixel value in the mask image determines whether the corresponding pixel in the image to be driven is pasted onto the preset area. Since the background data is 0, the background part will not be added to the preset area, while the virtual digital human outline area can be added to the preset area. The output of the Image.paste() method is the transparent background image to be driven.

[0073] In summary, using the same virtual digital human boundary mask image allows for stable background removal across all driving stages, preventing inconsistencies in the human figure's outline within the transparent background at different driving stages. This provides a seamless visual experience, eliminating any abrupt transitions between scenes during the driving process. Furthermore, the virtual digital human boundary mask image accurately removes the background from the driving scenes, eliminating any traces of the original background (e.g., green screen) and precisely preserving the pixel positions of the main human figure, thus improving the accuracy of background replacement.

[0074] To improve the real-time performance of background replacement, the original video can optionally be the original source video of the virtual digital human within a preset time period. Before the virtual digital human driving process, the method further includes: acquiring the original video of the virtual digital human and making the original video transparent to obtain the processed video; extracting channel data from the processed video to obtain multiple transparent channel data; and marking the transparent channel data according to the image frames in the original video so that the image frames correspond one-to-one with the transparent channel data.

[0075] Optionally, before the virtual digital human's driving process, the original source video of the virtual digital human within a preset time period is acquired. The original source video is a green screen video, meaning the background of the virtual digital human is a uniform green screen. The preset time period can be a first time period or a second time period. The start time of the first time period is later than the time corresponding to the driving progress, and the end time of the first time period is later than the time corresponding to the scene to be driven. The second time period is the entire time period of the original source video of the virtual digital human. Image processing techniques (e.g., image segmentation techniques can divide the pixels in an image into foreground and background parts based on graph cuts, thereby making the background transparent) or deep learning algorithms (e.g., natural image masking generative adversarial neural networks can achieve accurate background transparency based on the adversarial process between the generator and the discriminator) can be used to make the original video transparent. The processed video is a transparent background video file, and the processed background can be in WebM format; that is, this transparency processing is background transparency processing. Image processing tools can be used to extract each frame of the processed video, resulting in multiple transparency channel data (also known as alpha channel data). In the transparency channel data, the background data is 0, and the virtual digital human subject data is 1. The transparency channel data can be stored as a single-channel image in PNG format. Following the frame order, the transparency channel data is labeled with the same number as the image frame.

[0076] Figure 4 This is a schematic diagram of the transparency processing provided according to an embodiment of this application. Figure 4 The original video and the processed video are shown as an example. The original video is a green screen video, while the processed video is a video with a transparent background.

[0077] For example, if the original source video of a virtual human is 30 seconds long, and the current driving progress is at the 3rd second, with the corresponding driving frame at the 6th second, then the original video can be either the source video from the 4th to the 7th second (i.e., the first time segment) or the entire 30 seconds of source video (i.e., the second time segment). In other words, the alpha channel data corresponding to the driving frame can be prepared before the driving frame is driven, or the alpha channel data corresponding to all the driving frames can be prepared before the virtual human is driven. Since creating alpha channel data involves distinguishing between the virtual human outline and the background outline, this process consumes significant computing resources and is time-consuming. The above solution pre-processes the necessary alpha channel data offline before the background of the driving frame is replaced, so that it can be obtained during subsequent background replacement, greatly reducing the computational consumption in the real-time driving process and improving the real-time performance of background replacement.

[0078] In summary, by performing transparency processing and marking on the original video in advance, a large number of computational tasks are moved forward, making full use of offline computing capabilities to improve the efficiency of background replacement and avoiding the computational time spent on creating transparent channel data, thereby significantly improving the real-time performance of background replacement in the subsequent virtual digital human driving process.

[0079] To improve the adaptability of the driving method for virtual digital humans, optionally, the original video is made transparent to obtain the processed video, which includes: importing the original video into a preset offline background removal tool and performing background removal operation according to the preset offline background removal tool to obtain the original video after background removal; exporting the original video after background removal from the preset offline background removal tool to obtain the processed video.

[0080] For example, you can import an original video of a virtual digital human standing in front of a green screen into a preset offline background removal tool, remove the background using the tool, and then export the processed video. The preset offline background removal tool can be either image processing software or a packaged API service.

[0081] In summary, using a preset offline matting tool to make the original video transparent can make full use of offline computing power to significantly reduce computing resource consumption. Since the offline matting tool is easy to apply in different implementation scenarios and does not need to consider the influence of network factors, the above solution can flexibly adapt to implementation scenarios with different network conditions, thus improving the adaptability of the driving method of virtual digital humans.

[0082] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0084] Example 2

[0085] According to embodiments of the present invention, a driving device for a virtual digital human for implementing the above-described driving method for a virtual digital human is also provided, such as... Figure 5 As shown, the device includes a parameter configuration unit 501 and a drive replacement unit 502.

[0086] Specifically, the parameter configuration unit 501 is used to obtain the matching relationship between the content and the image material.

[0087] The driving replacement unit 502 is used to replace the background of the virtual digital human according to the matching relationship between the content and the image material during the driving process of the virtual digital human, so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human.

[0088] The virtual digital human driving device provided in this application embodiment obtains the matching relationship between content and image materials through the parameter configuration unit 501. The matching relationship includes multiple pieces of associated data, which include content and corresponding image materials. During the driving process of the virtual digital human, the driving replacement unit 502 replaces the background of the virtual digital human according to the matching relationship between content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human. This solves the technical problem of poor driving flexibility of virtual digital humans in the prior art, thereby achieving the technical effect of improving the driving flexibility of virtual digital humans.

[0089] Optionally, in the driving device for the virtual digital human provided in this application embodiment, the driving replacement unit 502 includes: a screen determination subunit, used to determine the screen to be driven for the virtual digital human based on the driving progress of the virtual digital human; an original data subunit, used to acquire the original video of the virtual digital human and acquire multiple transparency channel data corresponding to the original video, wherein the original video includes multiple image frames and the transparency channel data corresponds one-to-one with the image frames; a target transparency subunit, used to take the image frame to which the screen to be driven belongs as the target image frame and use the transparency channel data corresponding to the target image frame as the target transparency channel data; and a background replacement subunit, used to replace the background of the virtual digital human based on the target transparency channel data and the matching relationship between the content and the image material.

[0090] Optionally, in the driving device for the virtual digital human provided in this application embodiment, the background replacement subunit includes: a new screen module, used to determine the new screen to be driven based on the target transparency channel data and the matching relationship between the content and the image material; and a continuous replacement module, used to replace the screen to be driven with the new screen to be driven during the driving process.

[0091] Optionally, in the driving device for the virtual digital human provided in this application embodiment, the new screen module includes: an image material submodule, used to obtain target content for driving the screen to be driven, and determine the target image material corresponding to the target content based on the matching relationship between the content and the image material; a transparent background submodule, used to remove the background of the screen to be driven based on the target transparency channel data to obtain a transparent background screen to be driven; and a new screen determination submodule, used to determine the new screen to be driven based on the transparent background screen to be driven and the target image material.

[0092] Optionally, in the driving device for the virtual digital human provided in this application embodiment, the transparent background submodule includes: a mask acquisition component, used to determine a virtual digital human boundary mask image based on target transparency channel data, wherein the virtual digital human boundary mask image includes a background position marker and a human subject position marker; and a screen addition component, used to perform image masking processing on the screen to be driven using the virtual digital human boundary mask image, so as to retain the pixels at the human subject position marker in the screen to be driven and remove the pixels at the background position marker in the screen to be driven, thereby obtaining a transparent background screen to be driven.

[0093] Optionally, in the virtual digital human driving device provided in this application embodiment, the original video is the original material video of the virtual digital human within a preset time period. The device further includes: a transparency processing subunit, used to acquire the original video of the virtual digital human before the driving process of the virtual digital human, and to perform transparency processing on the original video to obtain the processed video; a channel extraction subunit, used to extract channel data from the processed video to obtain multiple transparent channel data; and a frame-by-frame marking subunit, used to mark the transparent channel data according to the image frames in the original video so that the image frames correspond one-to-one with the transparent channel data.

[0094] Optionally, in the driving device for the virtual digital human provided in this application embodiment, the transparency processing subunit includes: a background removal module, used to import the original video into a preset offline background removal tool, and perform background removal operation according to the preset offline background removal tool to obtain the original video after background removal; and a video export module, used to export the original video after background removal from the preset offline background removal tool to obtain the processed video.

[0095] It should be noted that the parameter configuration unit 501 and the driver replacement unit 502 mentioned above correspond to steps S201 to S202 in Embodiment 1. The two units and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules, as part of the device, can run in the computer terminal 10 provided in Embodiment 1.

[0096] Example 3

[0097] According to embodiments of this application, another method for driving a virtual digital human is also provided, such as... Figure 6 As shown, the method includes:

[0098] S601, Receive a background replacement instruction triggered by the client during the driving process of the virtual digital human, wherein the background replacement instruction is used to instruct the background of the virtual digital human to be replaced;

[0099] S602, in the cloud server, responds to the background replacement command and obtains the matching relationship between the content and the image material; based on the matching relationship between the content and the image material, it replaces the background of the virtual digital human so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human.

[0100] S603 sends the driver screen with the replaced background to the client.

[0101] The virtual digital human driving method provided in this application embodiment receives a background replacement instruction triggered by a client during the virtual digital human driving process. This instruction directs the replacement of the virtual digital human's background. In a cloud server, in response to the background replacement instruction, the matching relationship between content and image materials is obtained. This matching relationship includes multiple pieces of associated data, including content and corresponding image materials. The background of the virtual digital human is replaced based on the matching relationship, ensuring that the content output by the virtual digital human in the driving screen matches the image materials presented in the background. The driving screen with the replaced background is then sent to the client. This method solves the technical problem of poor driving flexibility in existing virtual digital human technologies, thereby improving the driving flexibility of virtual digital humans.

[0102] In the cloud server, the driving method for the virtual digital human is the same as that in Example 1, and will not be repeated here.

[0103] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0104] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0105] Example 4

[0106] Embodiments of the present invention can provide a computer terminal, which can be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the computer terminal can also be replaced by a mobile terminal or other terminal device.

[0107] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.

[0108] In this embodiment, the computer terminal described above can execute the program code for the following steps in the virtual digital human driving method: obtaining the matching relationship between content and image materials; during the driving process of the virtual digital human, replacing the background of the virtual digital human according to the matching relationship between content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human.

[0109] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the virtual digital human driving method: determining the screen to be driven for the virtual digital human based on the driving progress of the virtual digital human; acquiring the original video of the virtual digital human and acquiring multiple transparency channel data corresponding to the original video, wherein the original video includes multiple image frames and the transparency channel data corresponds one-to-one with the image frames; taking the image frame to be driven as the target image frame and using the transparency channel data corresponding to the target image frame as the target transparency channel data; and replacing the background of the virtual digital human based on the matching relationship between the target transparency channel data and the content and the image material.

[0110] Optionally, the aforementioned computer terminal can execute program code for the following steps in the virtual digital human driving method: determining the new screen to be driven based on the matching relationship between the target transparency channel data and content and the image material; and replacing the screen to be driven with the new screen to be driven during the driving process.

[0111] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the virtual digital human driving method: obtaining the target content for driving the screen to be driven; determining the target image material corresponding to the target content based on the matching relationship between the content and the image material; removing the background of the screen to be driven based on the target transparency channel data to obtain the transparent background screen to be driven; and determining the new screen to be driven based on the transparent background screen to be driven and the target image material.

[0112] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the virtual digital human driving method: determining a virtual digital human boundary mask image based on the target transparency channel data, wherein the virtual digital human boundary mask image includes a background position marker and a human subject position marker; using the virtual digital human boundary mask image to perform image masking processing on the screen to be driven, so as to retain the pixels at the human subject position marker in the screen to be driven and remove the pixels at the background position marker in the screen to be driven, thereby obtaining a transparent background screen to be driven.

[0113] Optionally, the computer terminal described above can execute the program code for the following steps in the virtual digital human driving method: acquiring the original video of the virtual digital human and making the original video transparent to obtain the processed video; extracting channel data from the processed video to obtain multiple transparent channel data; marking the transparent channel data according to the image frames in the original video so that the image frames correspond one-to-one with the transparent channel data.

[0114] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the virtual digital human driving method: importing the original video into a preset offline background removal tool, and performing background removal operation according to the preset offline background removal tool to obtain the original video after background removal; exporting the original video after background removal from the preset offline background removal tool to obtain the processed video.

[0115] Optionally, Figure 7 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 7 As shown, the electronic device may include: one or more ( Figure 7 (Only one is shown) processor 602, memory 604, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0116] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual digital human driving method and device in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned virtual digital human driving method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0117] The processor can access the information and application programs stored in the memory via the transmission device to perform the above steps.

[0118] This invention provides a scheme for driving a virtual digital human. By acquiring the matching relationship between content and image materials, where the matching relationship includes multiple pieces of associated data, including content and corresponding image materials, the background of the virtual digital human is replaced according to the matching relationship during the driving process. This ensures that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human, solving the technical problem of poor driving flexibility of virtual digital humans in the prior art, thereby achieving the technical effect of improving the driving flexibility of virtual digital humans.

[0119] Those skilled in the art will understand that Figure 7 The structure shown is for illustrative purposes only. The computer terminal can also be a smartphone, tablet, handheld computer, mobile internet device (MID), PAD, or other terminal device. Figure 7 This does not limit the structure of the aforementioned electronic devices. For example, a computer terminal may also include components that are more... Figure 7 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 7 The different configurations shown.

[0120] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0121] Example 5

[0122] Embodiments of the present invention also provide a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the driving method for the virtual digital human provided in Embodiment 1.

[0123] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0124] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: obtaining the matching relationship between content and image materials; and during the driving process of the virtual digital human, replacing the background of the virtual digital human according to the matching relationship between content and image materials, so that the content output by the virtual digital human in the driving screen matches the image materials presented in the background of the virtual digital human.

[0125] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: determining the screen to be driven by the virtual digital human based on the driving progress of the virtual digital human; acquiring the original video of the virtual digital human and acquiring multiple transparency channel data corresponding to the original video, wherein the original video includes multiple image frames and the transparency channel data corresponds one-to-one with the image frames; taking the image frame to be driven as the target image frame and using the transparency channel data corresponding to the target image frame as the target transparency channel data; and replacing the background of the virtual digital human based on the matching relationship between the target transparency channel data and the content and the image material.

[0126] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: determining a new frame to be driven based on the matching relationship between the target transparency channel data and content and the image material; and replacing the frame to be driven with the new frame to be driven during the driving process.

[0127] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: obtaining target content for driving the screen to be driven; determining the target image material corresponding to the target content based on the matching relationship between the content and the image material; removing the background of the screen to be driven based on the target transparency channel data to obtain a transparent background screen to be driven; and determining a new screen to be driven based on the transparent background screen to be driven and the target image material.

[0128] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: determining a virtual digital human boundary mask image based on the target transparency channel data, wherein the virtual digital human boundary mask image includes a background position marker and a human subject position marker; using the virtual digital human boundary mask image to perform image masking processing on the screen to be driven, so as to retain the pixels at the human subject position marker in the screen to be driven and remove the pixels at the background position marker in the screen to be driven, thereby obtaining a transparent background screen to be driven.

[0129] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: acquiring the original video of the virtual digital human and making the original video transparent to obtain a processed video; extracting channel data from the processed video to obtain multiple transparent channel data; and marking the transparent channel data according to the image frames in the original video so that the image frames correspond one-to-one with the transparent channel data.

[0130] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: importing the original video into a preset offline background removal tool, and performing background removal operation according to the preset offline background removal tool to obtain the original video after background removal; exporting the original video after background removal from the preset offline background removal tool to obtain the processed video.

[0131] This application also provides a computer program product that, when executed on a data processing device, is suitable for performing driving method steps of a virtual digital human.

[0132] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0133] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0134] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0135] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0136] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0137] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0138] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A driving method for a virtual digital human, characterized in that, include: Obtain the matching relationship between content and image materials; During the driving process of the virtual digital human, the background of the virtual digital human is replaced according to the matching relationship between the content and the image material, so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human.

2. The method according to claim 1, characterized in that, In the process of driving the virtual digital human, replacing the background of the virtual digital human based on the matching relationship between the content and the image material includes: Based on the driving progress of the virtual digital human, determine the screen to be driven for the virtual digital human; The original video of the virtual digital human is obtained, and multiple transparency channel data corresponding to the original video are obtained. The original video includes multiple image frames, and the transparency channel data corresponds one-to-one with the image frames. The image frame to which the image to be driven belongs is taken as the target image frame, and the transparency channel data corresponding to the target image frame is taken as the target transparency channel data; Based on the target transparency channel data and the matching relationship between the content and the image material, the background of the virtual digital human is replaced.

3. The method according to claim 2, characterized in that, Based on the target transparency channel data and the matching relationship between the content and the image material, the background replacement of the virtual digital human includes: Based on the target transparency channel data and the matching relationship between the content and the image material, the new frame to be driven is determined; During the driving process, the new screen to be driven is used to replace the screen to be driven.

4. The method according to claim 3, characterized in that, Based on the target transparency channel data and the matching relationship between the content and the image material, the new frame to be driven includes: Obtain the target content used to drive the screen to be driven, and determine the target image material corresponding to the target content based on the matching relationship between the content and the image material; The background of the image to be driven is removed based on the target transparency channel data to obtain the transparent background image to be driven; Based on the transparent background image to be driven and the target image material, a new image to be driven is determined.

5. The method according to claim 4, characterized in that, The background of the image to be driven is removed based on the target transparency channel data to obtain a transparent background image to be driven, including: Based on the target transparency channel data, a virtual digital human boundary mask image is determined, wherein the virtual digital human boundary mask image includes a background position marker and a human subject position marker; The virtual digital human boundary mask image is used to perform image masking processing on the image to be driven, so as to retain the pixels at the position marker of the human body in the image to be driven and remove the pixels at the position marker of the background in the image to be driven, so as to obtain a transparent background image to be driven.

6. The method according to claim 2, characterized in that, The original video is the original source video of the virtual digital human within a preset time period. Before the driving process of the virtual digital human, the method further includes: The original video of the virtual digital human is obtained, and the original video is made transparent to obtain the processed video; The processed video is subjected to channel data extraction to obtain multiple transparent channel data; The alpha channel data is marked according to the image frames in the original video so that there is a one-to-one correspondence between the image frames and the alpha channel data.

7. The method according to claim 6, characterized in that, The original video is made transparent to obtain the processed video, which includes: The original video is imported into a preset offline background removal tool, and the background removal operation is performed according to the preset offline background removal tool to obtain the original video after the background is removed. Export the original video after background removal using the preset offline background removal tool to obtain the processed video.

8. A method for driving a virtual digital human, characterized in that, include: Receive a background replacement instruction triggered by the client during the driving process of the virtual digital human, wherein the background replacement instruction is used to instruct the background of the virtual digital human to be replaced; In the cloud server, in response to the background replacement command, the matching relationship between the content and the image material is obtained; the background of the virtual digital human is replaced according to the matching relationship between the content and the image material, so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human; The driver screen with the replaced background is sent to the client.

9. A driving device for a virtual digital human, characterized in that, include: The parameter configuration unit is used to obtain the matching relationship between content and image materials; The driving replacement unit is used to replace the background of the virtual digital human according to the matching relationship between the content and the image material during the driving process of the virtual digital human, so that the content output by the virtual digital human in the driving screen matches the image material presented in the background of the virtual digital human.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the computer-readable storage medium is located to perform the driving method for the virtual digital human as described in any one of claims 1 to 7.

11. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, executes the driving method for the virtual digital human according to any one of claims 1 to 7.

12. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the driving method for the virtual digital human as described in any one of claims 1 to 7.