A method, apparatus and device for generating a virtual avatar video

By decoupling and using matching-driven element display, the problem of low production efficiency of live streaming content is solved, enabling the rapid generation of high-quality virtual avatar videos.

CN123185431APending Publication Date: 2026-11-27BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611486070.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the production efficiency of live streaming content is low, especially when changing hosts, products or scenes, it is necessary to rebuild the shooting location, resulting in high production costs and long iteration cycles for video materials.

Method used

By decoupling the various image elements and displaying them on the element subpages based on matching degree, elements with a high matching degree with the selected elements are prioritized, reducing the time spent on blind matching and improving the efficiency of video material generation.

Benefits of technology

By dynamically adjusting the display order of elements, users can quickly select suitable combinations of elements to generate high-quality virtual avatar videos, thus improving the efficiency of video material generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185431A_ABST
    Figure CN123185431A_ABST
Patent Text Reader

Abstract

The present disclosure provides a virtual image video generation method, device and equipment, which belongs to the technical field of computers. In the virtual image video generation method, in response to a virtual image configuration instruction, an element selection page for configuring a virtual image is displayed, and the element selection page includes multiple element subpages; in the case that a first image element in a first element subpage is selected, in response to a switching instruction for switching to a second element subpage, multiple second image elements to be selected are displayed in the second element subpage; in response to a virtual image configuration instruction, a virtual image configured based on the image elements selected in each element subpage is displayed, and in response to a video generation instruction, a virtual image video is generated according to the configured virtual image. Thus, the generation efficiency of video materials can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, and device for generating virtual avatar videos. Background Technology

[0002] With the rapid development of the live-streaming e-commerce industry, the production of live-streaming content typically revolves around three elements: "people," "products," and "location." "People" refers to the host explaining the products, "products" refers to the goods being promoted, and "location" refers to the background and setting of the live-streaming room. In traditional live-action shooting, the host, products, and setting are fixed in the same video clip during filming. Any change to any element (such as changing the product, setting, or host) requires rebuilding the shooting location and re-recording, resulting in high production costs and long iteration cycles for the video footage.

[0003] The emergence of digital human technology can improve the efficiency of video generation. A digital human is a virtual character created using technologies such as computer graphics, speech synthesis, and image generation. Based on digital human technology, broadcasters can freely choose a suitable digital human character within their live stream and configure elements such as live stream skins, stickers, and background decorations, thereby generating video footage based on the configured virtual character.

[0004] In related technologies, configuring various elements often requires a significant amount of time to experiment with different combinations of elements in order to construct a suitable virtual avatar and thus produce video footage with the expected viewing quality. Therefore, generating video footage using the methods described in these technologies is inefficient. Summary of the Invention

[0005] This disclosure provides a method, apparatus, and device for generating virtual avatar videos, which can improve the efficiency of video material generation. The technical solution of this disclosure is as follows.

[0006] Firstly, a method for generating virtual avatar videos is provided, the method comprising: In response to a virtual avatar configuration command, a selection page for configuring the virtual avatar is displayed, which includes multiple sub-pages for each element. When a first image element is selected in the first element subpage, in response to a switching instruction to switch to the second element subpage, multiple second image elements to be selected are displayed in the second element subpage. The display order of the multiple second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element. In response to the virtual avatar configuration command, the configured virtual avatar is displayed based on the avatar elements selected in each of the element subpages, and in response to the video generation command, a virtual avatar video is generated based on the configured virtual avatar.

[0007] Secondly, a device for generating virtual avatar videos is provided, the device comprising: The page display module is used to respond to the virtual avatar configuration command and display an element selection page for configuring the virtual avatar, wherein the element selection page includes multiple element subpages; The element display module is used to display multiple second image elements to be selected in the second element subpage in response to a switching instruction to switch to the second element subpage when the first image element in the first element subpage is selected. The display order of the multiple second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element. The video generation module is used to respond to the virtual avatar configuration command, display the configured virtual avatar based on the avatar elements selected in each of the element subpages, and generate a virtual avatar video based on the configured virtual avatar in response to the video generation command.

[0008] In some embodiments, the image element display module is specifically used for: When multiple candidate second image elements are displayed in the second element subpage, sorting annotation text is displayed in the second element subpage. The sorting annotation text indicates that the second image elements whose matching degree with the first image element meets the preset conditions are displayed first.

[0009] In some embodiments, the image element display module is specifically used for: When multiple second image elements to be selected are displayed in the second element subpage, for a preset number of second image elements that appear first in the display order, element recommendation text is displayed in the display area of ​​the preset number of second image elements. The element recommendation text is used to guide the selection of the preset number of second image elements.

[0010] In some embodiments, the apparatus further includes a matching degree display module, used for: In response to the matching degree detection command, matching degree prompt information is displayed for the selected image elements in each of the element subpages. The matching degree prompt information represents the matching degree between any two image elements.

[0011] In some embodiments, the matching degree display module is specifically used for: For matching scores less than or equal to a preset threshold, the matching score is displayed in a way different from the default style in the matching score prompt information, and correction information for the matching score is displayed simultaneously. The correction information is used to guide the replacement of the selected image elements associated with the matching score.

[0012] In some embodiments, the matching degree display module is specifically used for: In response to the correction instruction applied in the matching degree prompt information, switch to the feature subpage corresponding to the correction information, so as to reselect the corresponding feature in the feature subpage corresponding to the correction information, wherein the feature subpage corresponding to the correction information is the feature subpage to which the feature to be replaced represented by the correction information belongs.

[0013] In some embodiments, the apparatus further includes a detection module for: Receive custom elements uploaded by users; If there is a risk in the fusion feasibility representation between the custom element and the currently selected image element, a risk warning message is displayed, which includes candidate correction strategies for the fusion risk.

[0014] In some embodiments, the element selection page further includes an image preview subpage, which is used to display the configured virtual image; for the first image element and the second image element displayed in the image preview subpage, the first image element corresponds to a coverage area, and the second image element corresponds to an occlusion protection area; the device further includes an occlusion detection module, used for: For the first image element and the second image element displayed in the image preview subpage, determine the coverage area of ​​the first image element and determine the occlusion protection area in the second image element; In response to a drag-and-drop command, when the position of the first image element is changed in the image preview subpage, if the overlap between the covered area and the occlusion protection area meets a preset overlap determination condition, an occlusion matching degree prompt is displayed. The occlusion matching degree prompt is used to guide the adjustment of the position of the first image element in the image preview subpage.

[0015] In some embodiments, the apparatus further includes a virtual avatar reuse module, used for: Save the configured virtual image; In response to a loading command for the saved virtual avatar, the virtual avatar is loaded into the avatar preview subpage of the element selection page, and each avatar element constituting the virtual avatar is selected in its corresponding element subpage.

[0016] In some embodiments, the video generation module is specifically used for: Obtain a reference video frame, and edit the corresponding elements in the reference video frame according to the various image elements used in the configured virtual image to generate a video first frame that matches the virtual image; Obtain a video storyboard, which contains descriptive information for at least several video segments; For the first video segment among the plurality of video segments, based on the first frame of the video, a first virtual character video segment is generated according to the description information of the first video segment; For any target video segment located after the first video segment, obtain the transition control frame and style control frame associated with the target video segment, and generate a corresponding virtual avatar video segment based on the description information of the target video segment according to the transition control frame and the style control frame. The generated video clips of each virtual avatar are combined into a corresponding virtual avatar video.

[0017] Thirdly, an electronic device is provided, comprising a processor and a memory for storing at least one computer program, which is loaded and executed by the processor to implement a method for generating virtual avatar videos as provided in the first aspect or any possible implementation thereof.

[0018] Fourthly, a computer-readable storage medium is provided, which stores at least one computer program instruction that is loaded and executed by a processor to implement the method for generating a virtual avatar video as provided in the first aspect or any possible implementation thereof.

[0019] Fifthly, a computer program product is provided, the computer program product including at least one computer program instruction, the at least one computer program instruction being loaded and executed by a processor to implement the method for generating virtual avatar videos as provided in the first aspect or any possible implementation of the first aspect.

[0020] The technical solution provided in this disclosure can bring at least the following beneficial effects: The technical solution disclosed herein decouples the various image elements used to configure a virtual avatar and displays them in their respective element subpages. When a first image element is selected in a first element subpage, the elements displayed in other element subpages can be rearranged based on their matching degree with the selected first image element. When the user switches from the first element subpage to the second element subpage, the multiple second image elements available for selection in the second element subpage can be displayed in the rearranged order, instead of the default order. In this way, the user can prioritize selecting the second image element with a higher matching degree with the selected first image element in the second element subpage, thereby reducing the trial and error time for element matching. After completing the element configuration according to the matching degree between elements, a suitable virtual avatar can be obtained, and a virtual avatar video can be generated based on this virtual avatar.

[0021] As can be seen, in the technical solution provided in this disclosure, the display order of elements in the element subpage can be dynamically adjusted based on the matching degree between elements. When configuring a virtual avatar, users can prioritize elements with better matching effects, thereby greatly reducing the time spent on blind matching and improving the efficiency of video material generation.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0023] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0024] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for generating virtual avatar videos provided in this embodiment of the disclosure; Figure 2 This is a flowchart illustrating the method for generating virtual avatar videos provided in this embodiment of the disclosure; Figure 3 This is a schematic diagram of an element selection page provided in an embodiment of this disclosure; Figure 4 This is a flowchart illustrating a specific implementation of a method for generating virtual avatar videos provided in this disclosure. Figure 5 This is a schematic diagram of the interface of a second element subpage provided in an embodiment of this disclosure; Figure 6 This is a schematic diagram of an interface for matching degree detection provided in an embodiment of this disclosure; Figure 7 This is a schematic diagram of the operation interface of the correction command provided in the embodiments of this disclosure; Figure 8 This is a schematic diagram of an interface for custom element uploading and fusion pre-inspection provided in an embodiment of this disclosure; Figure 9 This is a schematic diagram of an image preview subpage provided in an embodiment of this disclosure; Figure 10 This is a schematic diagram of an interface for saving and loading a virtual image, provided in an embodiment of this disclosure. Figure 11 This is a structural block diagram of a virtual avatar video generation device provided in an embodiment of this disclosure; Figure 12 This is a structural block diagram of an electronic device provided in an embodiment of this disclosure; Figure 13 This is a structural block diagram of another electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0025] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure 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 this disclosure 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 non-exclusive inclusion; for example, a process, method, system, product, or server that includes 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 devices.

[0027] In this disclosure, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or at least two processors or memory) can be used to implement one or at least two modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0028] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this disclosure are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, all interactive instructions and user-defined uploaded elements involved in this disclosure are obtained under fully authorized conditions. In some embodiments, this disclosure provides a permission inquiry page, which is used to inquire whether permission to obtain the above information is granted. The permission inquiry page displays an consent / deny control and a denial control. When a trigger operation on the consent / deny control is detected, the above information is obtained using the method provided in this disclosure.

[0029] In related technologies, to ensure the display effect of video materials, the common practice of platforms is to first upload the entire live-action video, and then use digital human technology to modify the lip movements of the people in the live-action video to generate the corresponding video materials. This technical solution forcibly binds three elements: people, goods, and place. If any element is changed, it is often necessary to rebuild the live-action scene and re-record the live-action video. When trying to debind multiple elements, at least the following problems will be faced: the combination effect of different elements is highly dependent on industry experience. Once different elements are debinded, users may need to spend a lot of time trying different element combinations, which will undoubtedly reduce the efficiency of video material generation. In addition, after completing the element combination, only a static virtual image is usually obtained. In the process of generating dynamic video materials based on static virtual images, technical problems such as content drift and style decay will also be faced.

[0030] The following is an introduction to the relevant technical terms used in this disclosure.

[0031] A virtual avatar refers to a configured object composed of at least one element used to generate a virtual avatar video. It should be noted that this disclosure does not limit the category or number of constituent elements of a virtual avatar: a virtual avatar can be composed of one type of element, or a combination of two, three, or more types of elements. In the various embodiments of this disclosure, the virtual avatar includes three types of elements: digital human, live streaming scene, and product (i.e., the "people, goods, and place" elements as referred to in the industry). This example is only for illustrative purposes and does not constitute a limitation on the constituent elements of a virtual avatar. Specifically, the digital human represents the virtual anchor avatar who explains content and may include appearance parameters such as appearance, clothing, skin color, and hairstyle; the live streaming scene represents the background environment of the live streaming room and may be a scene template from a preset scene library or a user-uploaded background image; the product represents the promotional object and may include product images, product logos, and the product's display position on the screen. In other embodiments, the virtual avatar may also include at least one of other visual elements such as virtual props, decorative pendants, lighting effects, brand logos, and subtitles. The configuration, sorting, detection, preview, saving, and generation processes can all be implemented with reference to the embodiments of this disclosure.

[0032] Image elements (or simply "elements") refer to the constituent units that make up a virtual avatar. Each type of image element corresponds to a set of selectable objects. For example, image elements corresponding to a digital human may include multiple different digital human images; image elements corresponding to a live streaming scene may include multiple different scene templates or background images; and image elements corresponding to a product may include multiple different products. The first image element, second image element, and third image element are used to distinguish elements that are in different configuration orders or different element subpages during the configuration process. For example, when a user selects a product first and then a digital human, the product can be the first image element, and the digital human can be the second image element; when a user selects a digital human first and then a live streaming scene, the digital human can be the first image element, and the live streaming scene can be the second image element.

[0033] The element selection page refers to the page used to configure the virtual avatar, and this page may include multiple element subpages. An element subpage is a configuration subpage within the element selection page divided according to element categories, with each element subpage corresponding to the configuration of one type of element. This embodiment of the disclosure does not limit the number or categories of element subpages; there may be two, three, or more. In a practical application scenario, the element selection page may include element subpages for products, element subpages for digital avatars, and element subpages for live streaming scenarios.

[0034] The Image Preview subpage is a subpage within the Element Selection page used to display the combined effects of the currently selected image elements. The Image Preview subpage can exist alongside the individual element subpages within the Element Selection page. Within the Image Preview subpage, you can see the overall effect of the selected element combination, and in some scenarios, you can adjust the position of certain elements (such as products).

[0035] Matching degree refers to the quantitative representation of the degree of compatibility between two elements. The higher the value, the more reasonable the combination of the two elements. The matching degree can be calculated based on at least one of the semantic features, attribute labels, and image features of the elements. The specific calculation method of the matching degree is not limited in the embodiments of this disclosure.

[0036] Custom elements refer to elements uploaded by users that are not part of the platform's preset element set, such as background images of the live broadcast room taken and uploaded by users, or product images uploaded by users.

[0037] The hardware implementation environment of the embodiments of this disclosure is described below.

[0038] Please refer to Figure 1 This illustration shows a schematic diagram of the implementation environment for a method for generating virtual avatar videos provided in this embodiment of the present disclosure. Figure 1 As shown, the implementation environment may include terminal device 10, server 20 and network 30, and terminal device 10 and server 20 can interact with each other through network 30.

[0039] The terminal device 10 can be an electronic device with display and interactive capabilities, such as a smartphone, tablet, laptop, or desktop computer. This embodiment does not limit the specific type of the terminal device 10. The terminal device 10 can run a target application that provides an entry point for configuring the virtual avatar and generating virtual avatar videos. For example, the target application could be a live streaming management application for merchants on a live e-commerce platform, a digital human content production application, or a short video marketing material production application; no specific limitation is made here. The terminal device 10 displays interface content such as an element selection page, an avatar preview subpage, matching degree prompts, and occlusion prompts to the user through a display screen, and receives user operations such as clicks, switching, dragging, and uploading through input methods such as touch, mouse, and keyboard.

[0040] Server 20 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Server 20 provides backend services for the aforementioned target applications, such as storing and distributing feature data, calculating the matching degree between features, calculating fusion feasibility, scheduling image editing tasks, scheduling and executing video generation tasks, and evaluating the generated results. Optionally, the aforementioned computational tasks can be executed by one or more models 40 deployed on server 20. These models 40 may include, for example, a multimodal large model 41 for performing shot-level semantic understanding of reference videos, an image editing model 42 for editing image frames, and a video generation model 43 for generating video segments segment by segment. In some embodiments, the aforementioned models 40 can also be obtained by server 20 by calling third-party services; this disclosure does not specifically limit this approach.

[0041] Network 30 can be the Internet, or a Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile communication network, wired network, wireless network, private network, Virtual Private Network, or any combination thereof. In some embodiments, data exchanged through network 30 can be represented using Hyper Text Markup Language (HTML), Extensible Markup Language (XML), JavaScript Object Notation (JSON), or other data exchange formats. Furthermore, encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), and Internet Protocol Security (IPsec) can be used to ensure the security of link communication.

[0042] It should be noted that, Figure 1The implementation environment shown is for illustrative purposes only. In some embodiments, the method for generating virtual avatar videos provided in this disclosure can also be executed independently by a single electronic device. For example, the entire processing flow can be completed independently by a server with strong computing power, or some processing flows can be completed independently by the terminal device 10 if its computing power allows (e.g., partial dimension calculation of matching degree, overlap detection of coverage area and occlusion protection area, etc.). This disclosure does not specifically limit this. For ease of description, the following embodiments focus on the page display and user interaction of the terminal device 10, while the calculation process on the server 20 side will be described simultaneously.

[0043] The application scenarios of the embodiments of this disclosure are illustrated below.

[0044] In some embodiments, the virtual avatar video generation method provided in this disclosure can be applied to the production scenario of live-streaming e-commerce materials. In this scenario, merchants need to produce a large amount of live-streaming explanation materials for their promoted products in a short period of time, and different products often correspond to different explanation content, different display positions, and suitable live-streaming room scenarios. Using the method provided in the embodiments of this disclosure, merchants can select products, digital avatars, and live-streaming room scenarios respectively on the element selection page. When the merchant switches element subpages, the system sorts and displays the elements to be selected according to their matching degree with the selected elements, thereby guiding the merchant to quickly complete the element matching. After the merchant confirms the configured virtual avatar on the avatar preview subpage, the system can generate a complete virtual avatar video based on the configured virtual avatar for loop playback in the live-streaming room.

[0045] In other embodiments, the virtual avatar video generation method provided in this disclosure can also be applied to scenarios such as brand promotional video production, mass production of short video marketing materials, e-commerce detail page video production, and multilingual material production for cross-border e-commerce. In these scenarios, the constituent elements of the virtual avatar can be adjusted accordingly, for example, including elements such as a virtual spokesperson, physical product, brand backdrop, and promotional information strips. This disclosure does not specifically limit the specific application scenarios or the specific composition of the virtual avatar.

[0046] Please refer to Figure 2 The diagram illustrates a flowchart of a method for generating virtual avatar videos according to an embodiment of this disclosure. This method can be executed by an electronic device, which may be... Figure 1 The server 20 shown can also be the terminal device 10, or a system composed of the server 20 and the terminal device 10 working together. This disclosure does not specifically limit this aspect. Figure 2As shown, the method may include steps 210 to 230. It should be noted that in one or more of the following embodiments, digital humans, live-streaming scenarios, and goods are typically used as examples to illustrate the technical solutions of this disclosure. This is merely an example for ease of understanding and does not imply that the technical solutions of this disclosure are only applicable to these three types of elements. Those skilled in the art will readily understand that, with a full understanding of the essence of the technical solutions of this disclosure, the elements to be configured can be flexibly changed for different application scenarios, and these changed technical solutions should still fall within the protection scope of the technical solutions of this disclosure.

[0047] Step 210: In response to the virtual avatar configuration instruction, display an element selection page for configuring the virtual avatar, the element selection page including multiple element subpages.

[0048] In this embodiment, the virtual avatar configuration command refers to the operation command used to trigger the display of the element selection page. It can be triggered by user actions or by system processes. The aforementioned element selection page refers to the page that carries the virtual avatar configuration process. It includes multiple element subpages, each presented in a switchable manner, with the content of one element subpage visible at any given time. Of course, in some application scenarios, all element subpages can be displayed simultaneously on the element selection page, each represented by its own page frame. When a user selects an element subpage, that subpage is activated, and the user can then select elements from it.

[0049] In some embodiments, the above-mentioned virtual avatar configuration instructions can be triggered in at least one of the following ways: First, the user clicks an entry control such as "Create Virtual Avatar" or "Create New Live Stream Material" on the homepage or material management page of the target application; Second, the user selects a virtual avatar in the saved virtual avatar list and clicks a control such as "Copy and Create" or "One-Click Load"; Third, the user selects a product on the product management page and clicks a control such as "Generate Product Promotion Video," in which case the product can be directly identified as the selected avatar element; Fourth, the system automatically triggers the instructions when it detects that a preset trigger condition is met, for example, the system pushes a "One-Click Material Generation" task card after detecting that a merchant has added a new product, and the user clicks the task card to trigger the instruction. This disclosure does not specifically limit the specific triggering method of the virtual avatar configuration instructions.

[0050] In some embodiments, the presentation of the aforementioned multiple element subpages on the element selection page may include at least one of the following methods: First, tab-style presentation, where multiple tab controls are displayed at the top or left of the element selection page, each tab control corresponding to an element subpage, and the user clicks the tab control to switch to the corresponding element subpage; Second, step-by-step presentation, where a step indicator bar is displayed on the element selection page, and the user advances sequentially between the various element subpages by clicking the "Next" and "Previous" controls; Third, side navigation presentation, where a vertical element category navigation bar is displayed on the left side of the element selection page, and the content of the currently selected image element subpage is displayed on the right side; Fourth, collapsible panel presentation, where each element subpage is arranged vertically in the form of an expandable panel, and the user clicks the panel title to expand the corresponding element subpage. The above presentation methods can be used individually or in combination, for example, providing both tab controls and "Next" controls on the same page simultaneously; this disclosure does not specifically limit this approach.

[0051] In one example, please refer to Figure 3 This illustration shows a schematic diagram of an element selection page provided in an embodiment of this disclosure. In practical applications, the element selection page can be displayed as a full-screen page or a pop-up window occupying the main area of ​​the screen. The page typically includes the following five functional areas: The title bar area 310, located at the top of the page, displays the page title (e.g., "Virtual Avatar Configuration").

[0052] The image preview subpage 320 is located on the left side of the page (or at the top of the page on portrait devices) and is used to display the combination effect between the currently selected image elements.

[0053] The element switching area 330, located at the upper right of the page, includes multiple tab controls corresponding to various element subpages, such as the "Digital Human" tab 331, the "Scene" tab 332, and the "Product" tab 333. Optionally, the tab controls can also display status indicators, such as a checkmark when an element in the corresponding subpage is selected, or an exclamation mark when the selected element in the corresponding subpage is judged to be a low-scoring dimension in the matching degree detection.

[0054] The Element Card Area 340, located below the Element Switching Area 330, displays multiple selectable elements from the currently active Element Subpage. The Element Card Area 340 supports swiping, such as swiping up and down to turn pages.

[0055] The bottom operation bar area 350, located at the bottom of the page, displays at least a "Generate Now" control 351; optionally, it may also display a "Detect" control and a "Save" control. The "Generate Now" control 351 triggers the configuration process for the virtual avatar; the "Detect" control triggers a matching degree check; and the "Save" control triggers the saving of the virtual avatar. Optionally, the "Generate Now" control 351 remains displayed in all element subpages, allowing the user to trigger generation after making a selection in any subpage.

[0056] It should be noted that the above page layout (left-side preview, right-side configuration) is only for illustrative purposes. For example, on small-screen devices, the image preview subpage can be collapsed into a preview bar at the top of the page, and clicked on the preview bar to expand it into a floating display. The number of element subpages is not limited to three. For example, it can also be expanded to include a "sound" subpage for selecting the voiceover tone, and a "patch and widget" subpage for configuring live room decoration elements, etc. No specific limitation is made here.

[0057] Step 220: When the first image element in the first element subpage is selected, in response to the switching instruction to switch to the second element subpage, multiple second image elements to be selected are displayed in the second element subpage. The display order of the multiple second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element.

[0058] In this embodiment, considering that after the various elements (digital human, live streaming scene, and product) are decoupled, the prior knowledge of the combinations between different elements disappears. When faced with a large number of candidate elements, users can only try them one by one or blindly select based on experience. This is not only time-consuming and laborious, but also prone to selecting mismatched element combinations, resulting in poor quality of the subsequently generated video materials. In view of this, this embodiment sorts and displays the candidate elements based on the matching degree between the candidate elements and the selected elements when the user switches element subpages. This prioritizes elements with a high degree of compatibility with the selected elements, thereby presenting the matching degree between elements to the user in a sorted manner to improve the efficiency of the user in selecting suitable elements.

[0059] In some embodiments, the switching instruction described above is used to instruct switching the currently displayed feature subpage in the feature selection page to another feature subpage. Optionally, the switching instruction can be triggered by at least one of the following methods: first, the user clicks the target tab control in the feature switching bar area; second, the user performs a left or right swipe gesture in the feature card area. In response to the switching instruction, the terminal device switches the currently active feature subpage to the second feature subpage indicated by the switching instruction.

[0060] In some embodiments, the matching degree described above is used to characterize the degree of fit between the second image element and the first image element. Optionally, for different types of element combinations, the matching degree can be determined based on different matching rules. The following uses the first image element as a product as an example to illustrate several typical methods for determining the matching degree: The first method involves determining the matching degree between a product and the live-streaming scene based on a pre-built "category and scene semantics" mapping rule library. This library maintains the correspondence and matching scores between product categories and scene semantics. For example, the "maternal and infant / nutritional health" category has a high matching score with scene semantics such as "modern living room," "Nordic home furnishings," and "children's room," while having a low matching score with scene semantics such as "industrial style" and "bar night scene." In response to a switching command to a scene subpage, the terminal device (or server) obtains the category attribute of the selected product. For each candidate scene in the scene subpage, it queries the mapping rule library to find the matching score between the scene semantics of that candidate scene and the aforementioned category attribute, using this score as the matching degree between the candidate scene and the selected product.

[0061] The second approach is to determine the matching degree between products and digital humans based on the semantic relevance between the digital human's appearance style and the product category attributes. For example, an appearance style semantic vector (based on features such as clothing, makeup, age group, and temperament tags) can be generated in advance for each digital human, and a category semantic vector can be generated for each product category. The matching degree is obtained by calculating the similarity between the two vectors (e.g., cosine similarity); the more the digital human's temperament tags match the target consumer group of the product, the higher the matching degree.

[0062] The third method is to measure the color matching degree between different elements. For example, extract the distance between the main color of the digital human's clothing area and the main color of the scene in the color space. When the distance is within the preset distance range, it indicates that the digital human's clothing and the main color of the scene are compatible in style, while also having a certain degree of differentiation, so as to avoid the unnatural edge of the digital human in the subsequent image cutting and blending process.

[0063] Alternatively, in addition to the content- and rule-based methods described above, the matching degree can also be determined using at least one of the following alternative methods: matching driven by the visual characteristics of the product (e.g., the main color scheme of the product's main image, the style of the scene in which the product image was taken); matching based on the product's price range (high-end / mid-range / mass market) and the style level of the scene; determining the matching degree based on collaborative filtering results of commonly used configuration combinations in the user's historical generated data; and matching based on scene tags maintained in the product details page. It is worth noting that the above methods for determining the matching degree are merely illustrative, and the matching degree can also be implemented in other ways. For example, multiple matching methods can be weighted and fused to obtain a comprehensive matching degree, which is not specifically limited here.

[0064] In some embodiments, after determining the matching degree between each second image element and the first image element, the terminal device sorts the multiple second image elements to be selected according to the matching degree, and displays the multiple second image elements in the second element subpage according to the sorting result. Optionally, the sorting method can be to arrange them in descending order of matching degree, that is, the second image element with a higher matching degree is displayed earlier; or the matching degree can be divided into multiple levels, grouped and displayed by level, and arranged in a default order (e.g., by popularity, by update time) within the same level. It should be noted that the second element subpage still displays all the second image elements to be selected, and the sorting only changes the display order without filtering the candidate elements, thereby ensuring that the user's freedom of choice is not affected.

[0065] In some embodiments, the sorting can be calculated and displayed in real time when the switching instruction is triggered, or it can be pre-calculated and cached: Optionally, in response to the selection of the first image element, the terminal device (or server) starts to calculate the matching degree between the candidate elements in the remaining sub-pages and the first image element and caches the sorting results. When the user switches to the corresponding sub-page, the cached results are rendered directly, thereby shortening the waiting time during switching; in response to the update of the selection state of the first image element (e.g., the user selects another product), incremental re-sorting is triggered, that is, the sorting results of each sub-page are recalculated and refreshed based on the updated first image element, without the need for the user to manually refresh.

[0066] In some embodiments, the element selection page includes three element subpages. When the first image element in the first element subpage is selected, the sorting mechanism in this step can be applied when the user switches to any of the other element subpages. For example, taking a product as the first image element, a digital human subpage as the second element subpage, and a scene subpage as the third image element subpage: After the user selects the product "Calcium Magnesium Zinc Children's Nutritional Pack" (category: maternal and infant / nutritional health care) in the product subpage and switches to the digital human subpage, the multiple candidate digital humans in the digital human subpage are displayed in descending order based on the matching degree between each candidate digital human and the product (e.g., semantic relevance of appearance style); when the user continues to switch to the scene subpage, the multiple candidate scenes in the scene subpage are displayed in descending order based on the matching degree between each candidate scene and the product.

[0067] Furthermore, the display order of candidate elements in the third image element subpage can be determined not only based on their matching degree with the first image element, but also by combining the already selected second image element. For example, when both the product and the digital persona have been selected, the display order of candidate scenes in the scene subpage can be determined by a weighted average of the matching degree between the candidate scene and the product, and the matching degree between the candidate scene and the selected digital persona (e.g., clothing color coordination), so that the ranking result simultaneously reflects the constraints of multiple selected elements.

[0068] Step 230: In response to the virtual avatar configuration instruction, based on the avatar elements selected in each of the element subpages, display the configured virtual avatar; and in response to the video generation instruction, generate a virtual avatar video based on the configured virtual avatar.

[0069] In this embodiment, the virtual avatar configured above refers to the virtual avatar obtained by summarizing the selected image elements within each element subpage according to a preset data structure, resulting in a virtual avatar corresponding to this configuration. The virtual avatar can exist in the form of virtual avatar configuration data, including the element identifiers and element parameters of each selected element. Generating a virtual avatar video based on the configured virtual avatar means using the virtual avatar as input to generate video content corresponding to the virtual avatar, and the generated video includes all the image elements within the virtual avatar.

[0070] In some embodiments, the configuration data of the virtual avatar may include at least one of the following: digital human identifier and image parameters of the digital human category element (e.g., image identifier, clothing identifier, skin color parameter, hairstyle parameter, voice parameter); scene identifier and scene information of the live broadcast scene category element (e.g., scene template identifier, storage path of custom scene image, style tag of scene); product identifier and display information of the product category element (e.g., product inventory unit identifier, storage path of product image, display position coordinates and display size of product in the screen); and metadata related to this configuration (e.g., configuration creation time, configuration source, merchant identifier).

[0071] In some embodiments, the virtual avatar configuration command can be triggered by the user. For example, a user clicking the "Generate Now" control in the bottom operation bar can trigger the virtual avatar configuration process. After the virtual avatar configuration command is triggered, the system will display the avatar elements currently selected by the user in a preview subpage. Specifically, different avatar elements can correspond to different default display positions in the preview subpage. For example, a digital human can be displayed in the center of the preview subpage, a product can be displayed in the lower right corner, and a scene can be tiled to fill the preview subpage and placed at the bottom layer of the rendering effect. Of course, the default display positions exemplified here are only one optional implementation method, and can be flexibly changed and configured according to different application scenarios in actual applications.

[0072] In this embodiment, the virtual avatar video can be a video with the virtual avatar as the main object. In some embodiments, generating a virtual avatar video based on a configured virtual avatar may include at least one of the following methods.

[0073] The first method involves direct generation based on a digital human synthesis engine. In this method, server 20 generates spoken audio based on the text content in the virtual avatar configuration data, and drives the digital avatar indicated by the virtual avatar configuration data to generate spoken video based on the spoken audio. Then, the live broadcast scene indicated by the virtual avatar configuration data is used as the background and composited into the spoken video. Finally, product images are overlaid onto the screen according to the display positions in the virtual avatar configuration data to obtain the virtual avatar video.

[0074] The second method involves generating storyboards and chain-like continuation sequences based on reference videos. In this approach, server 20 first constructs the first frame of the video based on the virtual avatar configuration data, and then breaks down the long video into multiple video segments according to the video storyboard, generating and compositing them segment by segment. This method can generate long video footage containing multiple shots and rich visual movement. The specific implementation process can be found in the description of subsequent implementation methods, and will not be repeated here.

[0075] In some embodiments, the command to generate a virtual avatar video can be triggered by the user. For example, the user can trigger the process of generating a virtual avatar video by clicking the "Submit" control in the bottom operation bar.

[0076] The technical solution disclosed herein decouples the various image elements used to configure a virtual avatar and displays them in their respective element subpages. When a first image element is selected in a first element subpage, the elements displayed in other element subpages can be rearranged based on their matching degree with the selected first image element. When the user switches from the first element subpage to the second element subpage, the multiple second image elements available for selection in the second element subpage can be displayed in the rearranged order, instead of the default order. In this way, the user can prioritize selecting the second image element with a higher matching degree with the selected first image element in the second element subpage, thereby reducing the trial and error time for element matching. After completing the element configuration according to the matching degree between elements, a suitable virtual avatar can be obtained, and a virtual avatar video can be generated based on this virtual avatar.

[0077] As can be seen, in the technical solution provided in this disclosure, the display order of elements in the element subpage can be dynamically adjusted based on the matching degree between elements. When configuring a virtual avatar, users can prioritize elements with better matching effects, thereby greatly reducing the time spent on blind matching and improving the efficiency of video material generation.

[0078] Combination Figure 4 The optional implementation methods for each of the above steps will be described in detail below.

[0079] Please refer to Figure 5The diagram illustrates an interface schematic of a second element subpage provided in an embodiment of this disclosure. In some embodiments, where multiple second image elements to be selected are displayed in the second element subpage, the method may further include at least one of steps 221 and 222.

[0080] Step 221: Display sorting annotation text in the second element subpage. The sorting annotation text indicates that the second image element whose matching degree with the first image element meets the preset conditions is displayed first.

[0081] In this embodiment, the sorting annotation text is used to indicate the association between the current display order and the first image element. The sorting annotation text may include category information of the first image element to clarify the sorting basis. For example, if the first image element is "Calcium Magnesium Zinc Children's Nutritional Pack" (category: Maternal and Infant / Nutritional Health) and the second element subpage is a scene subpage, the sorting annotation text may be: "Backgrounds matching the Maternal and Infant / Nutritional Product category have been prioritized for display."

[0082] Optionally, the sorting annotation text can also be dynamically updated in conjunction with the sorting behavior: for example, when an incremental reordering is triggered after a user changes their first image element, the sorting annotation text is simultaneously updated to the text corresponding to the new first image element; when the user clears the selected elements and the sorting returns to the default order, the sorting annotation text can be hidden or switched to guiding text (e.g., "After selecting a product, we will prioritize showing you more matching backgrounds"). In some embodiments, the sorting annotation text can also support interaction, such as expanding an explanatory overlay after clicking the sorting annotation text to display an explanation of the matching rules used for this sorting (e.g., "Sorted according to the matching rules of product category and scene style"), thereby further enhancing interpretability.

[0083] Step 221, by displaying sorting annotation text, can explicitly convey the sorting basis to the user, avoiding confusion for the user regarding changes in the display order of elements, thereby achieving the interpretability of the sorting mechanism.

[0084] Step 222: For a preset number of second image elements that appear first in the display order, display element recommendation text in the display area of ​​the preset number of second image elements. The element recommendation text is used to guide the selection of the preset number of second image elements.

[0085] This embodiment can explicitly label the most preferred candidate elements in the ranking results with recommendation tags, further shortening the user's decision-making path.

[0086] In some embodiments, the preset quantity can be a fixed quantity (e.g., 3), or it can be a quantity dynamically determined according to the matching degree threshold. For example, the second image element with a matching degree greater than the preset matching threshold is determined as the object of the element recommendation text to be displayed. When the number of second image elements that meet the conditions exceeds the display limit, the element recommendation text is displayed only for the second image element with the highest display limit in the sorting.

[0087] In some embodiments, the display format of the above-mentioned element recommendation text can be as follows: First, a "Recommended" badge is displayed in the upper left corner of the element card; second, the element card is outlined with a recommended color scheme along with the "Recommended" text; third, a recommendation icon (e.g., a star icon) and the "Recommended" text are displayed next to the name of the element card. Optionally, the element recommendation text can also carry a recommendation reason, such as displaying a floating layer when the "Recommended" badge is long-pressed or hovered, with explanatory text such as "This background matches the maternal and infant / nutritional product category" displayed in the floating layer.

[0088] Step 222 displays recommended text for the second image elements that appear first in the display order. The results of the sorting mechanism can be explicitly marked on the specific element cards to guide users to quickly select highly matching elements, thereby reducing the user's browsing and comparison costs and improving the efficiency of element configuration.

[0089] Please refer to Figure 6 The diagram illustrates an interface schematic for matching degree detection provided in an embodiment of this disclosure. In some embodiments, before displaying the configured virtual avatar, the method may further include steps 240 to 242.

[0090] Step 240: In response to the matching degree detection command, display matching degree prompt information for the selected image elements in each of the element sub-pages. The matching degree prompt information represents the matching degree between any two image elements.

[0091] The linked sorting in step 220 can only provide biased guidance when users browse the various element subpages. Whether the final element combination selected by the user is reasonable still lacks an explicit, quantifiable confirmation step. Therefore, this embodiment introduces a matching degree detection step before configuring the virtual avatar, calculating the matching degree of the selected elements and displaying the calculation results.

[0092] The aforementioned matching degree detection command is used to trigger the matching degree calculation of the currently selected feature combination. This disclosure provides multiple triggering times; optionally, the matching degree detection command can be triggered by at least one of the following methods: The first method is automatic triggering: Upon detecting that all elements in each element subpage have been selected (i.e., all elements have been selected), a matching degree detection command is automatically generated and calculation is triggered. This method requires no additional user action and provides instant feedback the moment the user completes their selection.

[0093] The second method is control-triggered: A "Detection" control (e.g., displayed in the bottom operation bar) is added to the feature selection page. In response to the user's click on the "Detection" control, a matching degree detection command is generated. Users can actively detect the matching status of the currently selected combinations at any stage; for example, even when only two types of features are selected, pairwise calculations can be performed on the selected features.

[0094] The third method reuses the generation control trigger: No additional "Detection" control is added to the element selection page. In response to the user's first click on the "Generate Now" control, a matching score detection command is generated and the matching score calculation result is displayed. At this point, the virtual avatar configuration is not actually executed. Only in response to the user's subsequent click on the "Generate Now" control is the virtual avatar configured based on the selected elements. Optionally, during the display of the matching score calculation result, the text of the "Generate Now" control can be switched to "Confirm Generation" to indicate to the user that they are currently in the confirmation stage. This method does not increase the number of page controls and utilizes the user's existing operation path to complete the detection and confirmation.

[0095] The above calculation of the matching degree between any two elements refers to performing pairwise calculations on the currently selected elements. For example, if digital human A, product B, and scene C are selected, the matching degree between A and B, and the matching degree between B and C are calculated respectively. Optionally, the matching degree between A and C can also be calculated. The calculation method for each pair of element matching degrees can refer to the description in step 220. For example, the matching degree between digital human and product is calculated based on the correlation between appearance style semantic vector and category semantic vector; the matching degree between scene and product is determined by looking up a table in the "category and scene semantic" mapping rule base; the matching degree between digital human and scene can be determined based on hue conflict detection, that is, extracting the HSV (Hue, Saturation, Value) histogram of the main color of the digital human's clothing area and performing color space distance calculation and contrast analysis with the main color of the scene. Optionally, the value of each matching degree can be normalized to a preset numerical range (e.g., 0~100 points), with higher scores indicating better matching.

[0096] In some embodiments, the dimensions of the matching degree detection may also include at least one of the following: the historical generation effect feedback score of the element combination (e.g., the success rate of the combination in historical generation tasks); the platform approval rate dimension (e.g., the historical approval rate of a certain category of goods combined with a certain type of scenario); and the matching degree between the digital human style and the target consumer profile of the goods. The scores of each dimension can be displayed separately or weighted and merged into a comprehensive matching degree display. The weight parameters can be configured according to business needs and are not specifically limited here.

[0097] The matching score information above is used to present the matching score calculation results to the user. Please refer to it. Figure 6 Matching accuracy information can be displayed in the matching accuracy detection pop-up window 500. This pop-up window can be fixedly displayed above the "Generate Now" control and will not disappear when switching element subpages. The pop-up window includes: a title area (displaying the title "Combined Matching Accuracy Detection"); a scorecard area, including multiple score entries corresponding to each matching dimension, each score entry displaying the dimension name (e.g., "Person-Product Matching Accuracy", "Scene-Product Matching Accuracy", "Color Harmony"), score value (e.g., 92 points), and a progress bar (the length of the progress bar is proportional to the score value); and an operation area displaying at least one of the "Re-detect" control, "Generate Still" control, and "Return to Adjustment" control. In response to clicking the "Return to Adjustment" control, the pop-up window closes and returns to the element selection page; in response to clicking the "Generate Still" control (or clicking "Generate Now" again), the process proceeds to step 230.

[0098] By using step 240, before configuring the virtual avatar, the matching degree between any two selected elements is calculated in response to the matching degree detection command, and matching degree prompt information is displayed. This can move the quality feedback of the element combination from after the video material is generated to before the video material is generated, so that users can know the rationality of the current combination before entering the generation process, thereby reducing invalid generation caused by improper combination.

[0099] Step 241: For matching scores less than or equal to a preset threshold, the matching score is displayed in the matching score prompt information in a way different from the default style, and correction information for the matching score is displayed simultaneously. The correction information is used to guide the replacement of the selected image elements associated with the matching score.

[0100] This embodiment displays calculation results below a preset threshold in a differentiated style and simultaneously provides actionable correction information to guide users to reselect more suitable elements.

[0101] The aforementioned preset thresholds are used to classify the matching degree into high and low levels. For example, it can be 70 points, or different thresholds can be set for different matching dimensions; no specific limitation is made here. The aforementioned default style refers to the style used when normally displaying the calculation results, such as using the default color scheme (e.g., blue or green) to display the score value and progress bar. The aforementioned different styles refer to the emphasis style used for low-scoring calculation results, such as using a different color scheme (e.g., orange or red) to display the score value and progress bar. Furthermore, different colors can be used according to different calculation result values: for example, green is used when the matching degree is greater than the first threshold, orange is used when it is less than or equal to the first threshold but greater than the second threshold, and red is used when it is less than or equal to the second threshold, where the first threshold is greater than the second threshold; thus, the intensity of the risk warning corresponds to the severity of the value.

[0102] The aforementioned corrective information is used to indicate specific directions for improvement in element matching. The text of the corrective information can include two parts: an explanation of the reason for the low score and a replacement suggestion. For example, if the scene-product matching score is 61 points (below a preset threshold), the corrective information could be: "The background style is too business-like and has a low matching degree with children's skincare products; it is recommended to change to a background for a children's room or a modern living room." Optionally, the corrective information is displayed below the corresponding score item in the scorecard area, starting with a warning icon (e.g., an exclamation mark icon); when there are multiple low-score dimensions, the corrective information for each dimension can be displayed separately below their respective score items to avoid information confusion.

[0103] By using step 241, the matching degree calculation results that are less than or equal to the preset threshold are displayed in a way that is different from the default style. This can make the low-scoring dimensions stand out significantly among all dimensions, preventing users from ignoring potential problems when browsing quickly. By synchronously displaying the correction information for the calculation results, a clear direction for adjustment and specific replacement objects can be provided, thereby reducing the cost for users to find replacement solutions on their own.

[0104] Step 242: In response to the correction instruction applied in the matching degree prompt information, switch to the feature subpage corresponding to the correction information, so as to reselect the corresponding feature in the feature subpage corresponding to the correction information. The feature subpage corresponding to the correction information is the feature subpage to which the feature to be replaced represented by the correction information belongs.

[0105] This embodiment provides a direct jump mechanism for correction instructions, allowing users to access the element subpage to which the element to be replaced belongs with a single click from the matching degree prompt information.

[0106] Please see Figure 7In some embodiments, a prompt badge can be displayed on the tab control of the subpage corresponding to the low-score dimension. For example, an exclamation mark badge can be displayed next to the text of the "Scene" tab to indicate to the user which subpage the element to be replaced belongs to. In addition, a jump link (e.g., a blue text link "Go to Adjust") is displayed next to the score of the low-score dimension in the scorecard. In response to the user clicking the jump link (i.e., the correction instruction), the element switching bar can be activated to the subpage of the element to be replaced. It is important to emphasize that the entire jump process does not leave the current configuration context and does not lose the configuration state of other selected elements: for example, when the user jumps from the correction information of the "Scene" dimension to the scene subpage to reselect the scene, the selected digital man and product remain selected, and only the scene-related rendering content is refreshed in the image preview subpage.

[0107] In some embodiments, after a user reselects elements, incremental detection for the new combination can be automatically triggered: for example, only the matching dimensions related to the changed elements are recalculated and the scorecard is refreshed, without recalculating all dimensions, thereby shortening the waiting time for secondary detection. When the matching degree of each dimension is higher than a preset threshold, the prompt badge and jump link are removed, and the score entries are restored to their default display style.

[0108] By responding to the correction instruction in the matching degree prompt information through step 242, users can directly switch to the subpage of the element to be replaced, reducing the operation path to a single interaction and reducing the complexity of the operation for users.

[0109] Please refer to Figure 8 The diagram illustrates an interface for custom element uploading and fusion pre-detection provided by an embodiment of this disclosure. In some embodiments, after displaying the element selection page for creating a virtual avatar in step 210, the method may further include step 250.

[0110] Step 250: Receive custom elements uploaded by the user; if there is a fusion risk in the fusion feasibility representation between the custom elements and the currently selected image elements, display risk warning information, which includes candidate correction strategies for the fusion risk.

[0111] In this embodiment, the aforementioned custom elements refer to elements uploaded by the user, such as custom scene images, custom digital human avatar materials, and custom product images. The following explanation uses a custom scene image as an example. Please refer to... Figure 8The scene subpage displays a "Custom Upload" card 610. When the user clicks this card, an image selection panel (such as a system photo album panel or file selection panel) is invoked. Upon the user selecting a target image, the terminal device uploads the target image to the server, displaying the upload progress (such as a circular progress bar or percentage text) at the location indicated on the "Custom Upload" card. After the upload is complete, the custom scene image is inserted into the scene card area as a scene card (e.g., inserted into the first display position after the "Custom Upload" card) and automatically enters the selected state. Simultaneously, the image preview subpage renders a digital human preview screen using this custom scene.

[0112] It should be noted that the feasibility assessment is triggered immediately upon upload completion, without waiting for the user to click the "Generate Now" or "Detect" control. Optionally, feasibility can be determined based on at least one of the following dimensions: First, the color similarity dimension: extract the main color tone of the clothing area in the digital human video sample (e.g., locate the clothing area based on the pre-computed clothing segmentation mask and count the HSV histogram of the clothing area), and calculate the color space distance (e.g., Euclidean distance in HSV space) with the main color tone of the custom scene image; when the distance is lower than the preset distance threshold, it indicates that the foreground clothing and background colors are too similar, and the edges are difficult to distinguish during matting, indicating a risk of "blurred matting edges" during fusion.

[0113] Second, edge segmentation difficulty dimension: Based on the local contrast between the digital human outline region and the main color of the custom scene, the difficulty level of foreground and background segmentation is evaluated (e.g., divided into high, medium and low levels); the lower the contrast, the higher the segmentation difficulty and the lower the fusion feasibility.

[0114] Third, the consistency of light direction: Analyze the directional deviation between the main light source direction of the digital human video sample and the inferred light source direction in the custom scene image. When the deviation is greater than a preset angle threshold, it is determined that there is a risk of fusion that is inconsistent with light and shadow.

[0115] Fourth, compositional conflict dimension: Analyze the spatial competition between the product display area and the digital human activity area in the custom scene image. For example, if there is a large area of ​​high-saturation objects in the background that overlaps with the default product display area, it is determined that there is a risk of compositional conflict.

[0116] Optionally, the final fusion feasibility can be determined by comprehensively evaluating the results of the above multiple dimensions, and it can be divided into multiple risk levels (e.g., high risk, medium risk, low risk, no risk). In this embodiment, the specific thresholds for each dimension are not specifically limited.

[0117] If there are risks associated with the fusion feasibility representation, risk warning information can be displayed. Please refer to [link / reference]. Figure 8 Risk warning information can be displayed in two levels: First level, a risk icon 620 (e.g., a "risk" badge) is overlaid on the scene card corresponding to the custom scene, so that users can identify the problematic material when browsing the scene list; Second level, in response to the user clicking the risk icon (or automatically popping up when the assessment is completed, without the user clicking), a risk details overlay 630 is displayed, which shows the specific reasons for the risk in an explainable way, such as "The background beige tone is similar to the color of the anchor's clothing, and the edge blending effect may be unnatural."

[0118] In some embodiments, the risk warning information also includes candidate correction strategies for fusion risks. Optionally, the candidate correction strategies can be implemented in at least one of the following ways: First, a "re-upload background" strategy, which provides a re-upload control in response to clicking and re-entering the image selection panel; second, an "ignore and continue generation" strategy, which provides an ignore control in response to the user's ignore operation, and the current configuration process continues (e.g., the prompt is no longer repeated for this material). The above candidate correction strategies are displayed as controls at the bottom of the risk details pop-up, and users can choose the processing path themselves.

[0119] Step 250 allows for an immediate assessment of fusion feasibility upon completion of custom element upload. It also displays risk warnings, including candidate correction strategies, when fusion risks exist. This approach can alert users to material compatibility issues before video material generation and guide them through material replacement in an explainable and operable manner, thereby improving the efficiency of virtual avatar configuration.

[0120] It should be noted that custom elements are not limited to custom scene images. In some embodiments, custom elements can also be custom digital human avatar materials (such as user-uploaded real-life photos or avatar training materials) and custom product images. For custom digital human avatar materials, the evaluation dimensions for fusion feasibility can include: whether the facial clarity of the person in the material meets the modeling requirements, whether the proportion of the person in the image is within a preset range, and whether there are situations unsuitable for modeling, such as multiple people in the same frame. For custom product images, the evaluation dimensions for fusion feasibility can include: the completeness of the product subject (e.g., whether the product edges are cropped by the image), the degree of tonal coordination between the product image and the currently selected scene, and the degree of adaptation between the default display size of the product image and the available display area in the image preview subpage. Accordingly, the candidate correction strategies in the risk warning information of various custom elements are also different: for example, for custom avatar materials with insufficient facial clarity, the candidate correction strategy can be "re-upload a clearer frontal photo" or "use a digital human recommended by the image library"; for custom product images with cropped edges, the candidate correction strategy can be "re-upload a complete product image" or "online cropping and adjustment". The aforementioned feasibility pre-check mechanism can be applied uniformly to all types of custom elements, and no specific limitations are made here.

[0121] Please refer to Figure 9 This diagram illustrates an interface schematic of an image preview subpage provided in an embodiment of this disclosure. In some embodiments, the element selection page further includes an image preview subpage, which is used to display the configured virtual image. In the image preview subpage, the display position of a specified element can be changed, and during the change of display position, the occlusion relationship between different elements can be detected simultaneously. In practical applications, after selecting the corresponding image element in each element subpage, the user can click the "Generate Now" control to render the selected image element to the preview subpage, thereby viewing the combination effect between the various image elements in the preview subpage. Specifically, please refer to steps 260 and 261 below.

[0122] Step 260: For the first image element and the second image element displayed in the image preview subpage, determine the coverage area of ​​the first image element and the occlusion protection area in the second image element.

[0123] In some embodiments, the aforementioned image preview subpage employs a two-layer overlay rendering: the background layer renders the digital human preview frame (in the case of a selected scene, the digital human image is composited with the selected scene as the background), and the interactive editing layer renders the product image; the two layers are managed independently, and the product image in the interactive editing layer is a draggable interactive object, allowing users to directly adjust the product's display position in the preview screen by pressing and dragging. The following explanation uses the product as the first image element and the digital human as the second image element as an example.

[0124] The aforementioned covered area refers to the area occupied by the product image in the preview screen, while the aforementioned occlusion protection area refers to the key areas of the digital human that need to be avoided from being occluded by the product. Optionally, the occlusion protection area is the key facial area of ​​the digital human, covering the eyes, mouth, and facial contours. The occlusion protection area can be pre-extracted from the digital human video sample, and its shape can be rectangular or a polygon that fits the facial contours. Optionally, the occlusion protection area is not displayed in the preview screen by default, but is only visualized as a dashed frame when display conditions are met (e.g., when occlusion occurs, or when the user long-presses the preview screen), thereby avoiding interference with normal previewing.

[0125] Optionally, in addition to the key facial area, the occlusion protection area can be flexibly determined as at least one of the following areas, depending on the specific application scenario: the full-body outline area above the shoulders of the digital human; the hand area of ​​the digital human, used to prevent the product from obscuring the digital human's gesture display actions. Furthermore, the aforementioned occlusion protection area can be dynamically changed; for example, the extent of the occlusion protection area updates in real time with the content of the digital human preview frame (e.g., when the digital human raises its hand, the corresponding occlusion protection area for the hand moves upward synchronously).

[0126] Step 261: In response to the drag displacement command, when the position of the first image element is changed in the image preview subpage, if the overlap relationship between the covered area and the occlusion protection area meets the preset overlap judgment condition, the occlusion matching degree prompt information is displayed. The occlusion matching degree prompt information is used to guide the adjustment of the position of the first image element in the image preview subpage.

[0127] The aforementioned drag-and-drop command represents a drag operation performed by the user on a specified element in the preview, causing the specified element to shift within the image preview subpage. Optionally, occlusion detection is performed in real-time each time a drag-and-drop event occurs; that is, the overlap relationship between the covered area and the occlusion protection area is recalculated every time the product image moves one displacement unit in the preview screen, thus ensuring real-time detection feedback. Alternatively, it can be performed only once when the drag ends (when the user releases their grip) to reduce the calculation frequency; the specific implementation is not limited here.

[0128] The aforementioned overlap relationship can be characterized by the overlap area between the covered area and the occluded protection area. Furthermore, it can be characterized by the proportion of the overlap area to the total area of ​​the covered area (or to the area of ​​the occluded protection area). The aforementioned preset overlap determination conditions can be, for example, that the overlap area ratio is greater than a preset ratio threshold (e.g., 10%); or that the center point of the covered area falls within the occluded protection area; or it can comprehensively consider the overlap area and overlap position (e.g., the determination threshold for overlap with the eye area is lower than the determination threshold for overlap with the facial contour area).

[0129] When the overlap relationship meets the preset overlap criteria, an occlusion warning message is displayed. Using the product as the primary visual element, the occlusion warning message can include: an occlusion warning label attached near the product image, such as a bubble prompting "Adjust occlusion position"; simultaneously, a suggested placement area can be highlighted in the image preview subpage, for example, highlighting non-face areas in the preview image with a semi-transparent highlight, clearly indicating where the user can drag the product. Optionally, if the user continues dragging and the overlap relationship no longer meets the preset overlap criteria, the occlusion warning label automatically disappears, and the highlighting style of the suggested placement area can also be canceled.

[0130] In some embodiments, after the user confirms the product position (e.g., stops dragging for more than a preset time, or clicks on an area outside the preview screen), the terminal device records the current coordinate parameters of the product as one of the constituent elements of the virtual image, and persistently stores them together with the virtual image when saving the virtual image later, thereby ensuring that the product position in the generated video is consistent with the preview adjustment result.

[0131] In some embodiments, to reduce repeated dragging attempts by users, the image preview subpage can also provide automatic avoidance and fine-tuning capabilities. Optionally, in response to the user ending the drag and the final overlap between the covered area and the occlusion protection area still meeting the preset overlap determination conditions, the terminal device calculates the nearest placeable position to the current location and displays a snap-in guide (e.g., a preview of the product image at the placeable position in the form of a ghost image). In response to user confirmation (e.g., clicking the snap-in guide or dragging the product closer to the position again), the product image automatically snaps to the placeable position; alternatively, when the user releases their finger after dragging, the product image can be automatically returned to the last unoccluded position before dragging, and a return prompt can be displayed simultaneously. In addition, the product image can also support two-finger zoom or zoom control to adjust the display size. When the size changes, the covered area is updated synchronously and occlusion detection is re-executed, thereby ensuring that the product display does not intrude into the occlusion protection area in both position and size dimensions.

[0132] By using steps 260 and 261, the overlap between the covered area and the occlusion protection area is detected in real time during the element dragging process, and an occlusion prompt message is displayed when occlusion occurs. This allows for intuitive adjustment of the positional relationship between different elements, thereby improving the configuration effect of the virtual avatar.

[0133] Please refer to Figure 10 The diagram illustrates an interface for saving and loading a virtual avatar according to an embodiment of this disclosure. In some embodiments, after displaying the configured virtual avatar, the method may further include steps 270 and 271.

[0134] Step 270: Save the configured virtual avatar.

[0135] In this embodiment, in response to the user's click on the "Save" control on the element selection page (which can also be automatically triggered after the virtual avatar configuration is completed, or automatically triggered after the video footage is generated), the terminal device encapsulates all the parameters configured in this instance into a virtual avatar object and saves it. The virtual avatar object includes at least: the avatar's avatar identifier and avatar parameters (anchor ID, clothing, skin color, hairstyle, etc.), the scene identifier or custom image path of the live broadcast room scene, and the product identifier and screen coordinates of the product. Optionally, the virtual avatar object also includes metadata, such as: avatar name (which can be entered by the user or automatically generated according to rules, such as "promotional product"), cover thumbnail (e.g., a composite of the avatar, background, and product preview image), creation time, number of uses, and most recent use time.

[0136] Step 271: In response to the loading instruction for the saved virtual avatar, the virtual avatar is loaded into the avatar preview subpage of the element selection page, and each avatar element that constitutes the virtual avatar is selected in the corresponding element subpage.

[0137] Please refer to Figure 10Multiple saved virtual avatars can be displayed as cards in the "My Virtual Avatars" list page. Each avatar card displays a cover thumbnail, avatar name, element summary (e.g., "Anchor A · Nordic Home Furnishings · Calcium Magnesium Zinc Nutritional Pack"), and metadata (e.g., "Used 3 times · Yesterday"). Optionally, the virtual avatar cards can be sorted by usage frequency or usage time. Each virtual avatar card provides a loading entry (e.g., a "One-Click Load" control or clicking the card itself). In response to a loading command for a target virtual avatar, the terminal device reads all parameters from the virtual avatar object, enters the element selection page, and performs the following restoration actions: in the avatar preview subpage, the matching effect is rendered according to the saved digital human, scene, and product coordinates; simultaneously, each avatar element constituting the virtual avatar is restored to the selected state in the corresponding element subpage. Thus, the configuration state after loading remains consistent with the state when it was saved.

[0138] In some embodiments, after loading, users can independently modify elements in any dimension, and the terminal device performs a single-dimensional overlay update: only the parameters corresponding to the user-selected dimension are replaced, while the parameters of other dimensions remain in the original state of the virtual avatar object. For example, when rebroadcasting the next day, after the user loads the "Big Sale · Nutritional Products" virtual avatar, only the new products of the day are changed on the product subpage, while the digital avatar and the scene remain unchanged. Optionally, after the single-dimensional overlay update, incremental matching degree detection and incremental pre-detection for the new combination can be triggered (refer to the description of the aforementioned steps, which will not be repeated here), and the updated parameters are saved again (overwriting the original virtual avatar or saving it as a new virtual avatar).

[0139] By using steps 270 and 271, all configuration parameters of the virtual avatar are saved as a whole, and the matching effect of the avatar preview subpage and the selected state in each element subpage are restored synchronously during loading. This allows for the reuse of historical virtual avatar configurations, avoiding the need to repeatedly configure the virtual avatar every time video footage is generated, and greatly improving the efficiency of video footage generation.

[0140] In one embodiment, the step of generating a virtual avatar video based on the configured virtual avatar may include steps 231 to 235.

[0141] Step 231: Obtain a reference video frame, and edit the corresponding elements in the reference video frame according to the various image elements used in the configured virtual image to generate a video first frame that matches the virtual image.

[0142] The aforementioned reference video frame refers to a frame image obtained from a reference video. Optionally, the reference video is uploaded by the user (e.g., the user selects "Upload Reference Video" and selects a local video file in the generation confirmation pop-up before triggering generation); the reference video frame can be obtained by randomly selecting a frame from the reference video, or by selecting the first frame, keyframe, or the frame with the highest resolution from the reference video, without specific limitations. In some embodiments, the reference video frame can also be an image directly generated based on the text description (generated based on the text-generated image model), or a static image obtained by rendering a digital human preview frame.

[0143] The aforementioned editing of elements in the reference video frame refers to using the reference video frame as a base image and employing an image editing model to replace (or adjust) the character, product, and background elements in the reference video frame with the configured digital avatar, products, and live-streaming scene. Optionally, the editing process can employ a partitioned editing method: based on the semantic segmentation results of the base image, the base image is divided into character, background, and product areas. Digital avatar parameters are injected into the character area, scene images are injected into the background area, and for the product area, product images are composited to their corresponding positions according to the product image coordinates saved in the virtual avatar. It should be noted that the position of the product in the first frame of the video can be consistent with the coordinates confirmed by the user's dragging and dropping in the avatar preview subpage. Optionally, in addition to the partitioned editing method, an instruction-based image editing method can also be used, i.e., inputting the base image and editing instructions (which carry descriptive information of each element) into the image editing model, and the model outputs the edited image in one go. Furthermore, multiple candidate editing results can be generated for the base image, and the frame with the highest quality score can be selected as the first frame of the video.

[0144] Step 232: Obtain the video storyboard script, which contains descriptions of at least several video clips.

[0145] The duration of complete live stream footage typically far exceeds the single generation time (5-10 seconds) of a video generation model. Therefore, it is necessary to break down long videos into multiple independently generateable segments. However, if the segments are mechanically divided according to a fixed duration, the division points may fall at semantically incomplete positions (such as the middle of an action), resulting in abrupt transitions between segments. This disclosure introduces a video storyboard, arranging the generation task on a shot-by-shot basis, so that each video segment can correspond to a semantically complete shot.

[0146] The aforementioned video storyboard contains descriptive information for at least several video segments. This descriptive information includes, for example, the number of video segments, the duration of each video segment (e.g., 10-15 seconds per shot), a semantic description of each video segment (scene, action, scene content), and transition relationships between video segments. Optionally, the video storyboard can be obtained in at least one of the following ways: The first method is based on reference video generation: a multimodal large model performs shot-level semantic understanding on the entire reference video uploaded by the user and outputs a structured video storyboard.

[0147] The second method is user-generated text descriptions: the system receives spoken scripts or plot descriptions from users, and a large model breaks down and expands the text into descriptions of multiple video segments, directly generating video storyboards.

[0148] The third method is to match the pre-set shot templates based on the product category: a shot template library is maintained in advance for each product category (for example, the three-shot templates for the mother and baby category are "opening display - close-up details - usage demonstration"). The corresponding shot templates are matched according to the category attributes of the selected products to generate a video storyboard script.

[0149] In one example, the video storyboard script can be organized in a structured data format, including fields such as: script identifier (script_id), a list of segments (shots), where each segment includes a segment number (shot_id), duration (e.g., 12 seconds), semantic description (e.g., "The host is demonstrating and explaining a product in a living room scene"), and transition (e.g., a direct transition to the previous segment). The above structured fields are for illustrative purposes only; in actual implementation, the field organization can be adjusted according to the input requirements of the generative model, and no specific limitations are imposed here.

[0150] Step 233: For the first video segment among multiple video segments, generate the first virtual character video segment based on the description information of the first video segment, using the first frame of the video.

[0151] In this embodiment, the first frame of the video is used as the starting control condition for generating the first video segment (e.g., as the first frame condition for a graph-generated video). The description information of the first video segment is used as input data, and a video generation model is invoked to generate the first virtual avatar video segment. The video generation model invoked can be any generation model with graph-generated video capabilities, and no specific limitation is made here.

[0152] Step 234: For any target video segment located after the first video segment, obtain the transition control frames and style control frames associated with the target video segment, and generate the corresponding virtual avatar video segment based on the description information of the target video segment according to the transition control frames and style control frames.

[0153] The aforementioned transition control frames are used to ensure the temporal continuity between adjacent video segments. Optionally, the transition control frame is the last frame of the previous video segment, that is, the last frame image of the video segment preceding the target video segment. By using the last frame as the starting control condition for the target video segment, adjacent segments can maintain naturalness in terms of character pose continuity, action connection, and scene transition. The aforementioned style control frames are used to ensure the diversity of visual features and suppress content drift and style decay in long chain generation. Optionally, the style control frames are frames obtained from the reference video.

[0154] The association between style control frames and target video segments can be achieved in at least one of the following ways: First, global random extraction, that is, randomly extracting one frame from all frames of the reference video; Second, interval constraint extraction, that is, randomly extracting one frame from the corresponding time segment of the reference video according to the sequence number of the target video segment in the storyboard, so that the style control frame is associated with the semantic progress of the target video segment; Third, semantic matching extraction, that is, selecting the frame with the highest semantic similarity from the reference video based on the descriptive information of the target video segment.

[0155] In some embodiments, the injection of two control frames into the generation process can be implemented in at least one of the following ways: First, first-frame conditional injection, where the transition control frame is used as the first-frame condition of the target video segment, ensuring consistency between the first frame and the transition control frame, and the style control frame is injected into the generation process as a reference condition; Second, latent space fusion injection, where the transition control frame and style control frame are encoded separately and then fused in the latent space according to preset weights, with the fusion result used as the generation condition, where the preset weights are used to adjust the balance between coherence and diversity; Third, dual-branch parallel injection, where the transition control frame is injected into the temporal conditional branch (acting on the temporal attention layer), and the style control frame is injected into the appearance conditional branch (acting on the cross-attention layer), with the two control frames working together in the same generation process. It is worth noting that the above injection methods are only illustrative, and the injection of two control frames can also be implemented in other ways, which are not specifically limited here.

[0156] In some embodiments, the two control frames can be extended to three control frames. For example, the product reference frame can be used as the third control frame to enhance the consistency of the product's display in each video segment and prevent the product's appearance from being deformed during the generation of long chains.

[0157] In some embodiments, after each video segment is generated, segment quality verification can also be performed: for example, checking whether the similarity between the first frame of the generated segment and the transition control frame meets the connection conditions, and checking whether the semantic consistency between the segment content and its description information meets the requirements; if the verification fails, the segment is regenerated with the adjusted generation parameters (e.g., changing the style control frame and adjusting the description information of the video segment), and if the number of retries exceeds the preset number, the segment is marked and the user is prompted.

[0158] Step 235: Combine the generated virtual character video clips into a corresponding virtual character video.

[0159] In this embodiment, the generated virtual character video segments are sequentially spliced ​​together according to the order of the video clips in the storyboard. Transition effects (such as dissolves, fade-in / fade-out, or direct switches) are added at the splicing points according to the transition relationships recorded in the storyboard to obtain the composite video. Since the first frame is connected between adjacent segments through transition control frames, no additional alignment processing is required at the splicing points. In the case of slight color differences or jitter, frame-level transition smoothing processing can also be performed at the splicing boundaries.

[0160] In some embodiments, step 235 is followed by audio-visual lip-sync processing: acquiring the spoken audio corresponding to the virtual avatar video, aligning and correcting the lip movements of the character in the synthesized video with the spoken audio (e.g., using lip alignment schemes in related technologies), so that the lip movements of the character in the final material are synchronized with the audio, and outputting the final virtual avatar video. Optionally, the spoken audio can be obtained from a recording uploaded by the user, or it can be obtained through speech synthesis based on the spoken text input by the user; no specific limitation is made here.

[0161] Through steps 231 to 235, the first frame of the video is edited and generated using the reference video frame as the base image. Based on the video storyboard, the long video is split into semantically complete video segments. Then, the video segments are generated segment by segment using a dual control frame mechanism of transition control frames and style control frames. This not only solves the consistency problems of character image drift, style decay, and scene jump when generating a long video from multiple segments, but also preserves the rhythm of the shots and the visual richness, thereby improving the display effect of the video material.

[0162] In some embodiments, after generating the virtual avatar video, the generated virtual avatar video can be evaluated to obtain and display the evaluation results. Furthermore, the evaluation results can be fed back into the element recommendation process to adjust the subsequent element display order.

[0163] This embodiment of the disclosure allows for a quantitative evaluation of the generated virtual avatar video after generation, thus forming a dual detection mechanism with the pre-generation detection. Optionally, the effect evaluation may include at least one of the following dimensions: Element matching score: Keyframes are extracted from the generated virtual avatar video. The character style features, background scene semantics, and product category attributes in the keyframes are extracted, and the combination matching degree between each element (in this embodiment, the combination matching degree between the digital human, the live broadcast scene, and the product) is recalculated. Furthermore, the recalculated matching degree is compared with the matching degree calculation result before generation (the result of step 240) to detect whether a style shift has occurred during the generation process. For example, if the "character-product matching degree" is 92 points before generation and 89 points after generation, the difference is within an acceptable range, indicating that a slight style shift has occurred but the overall result is still acceptable. If the difference exceeds a preset shift threshold, it indicates a significant style shift.

[0164] Overall color tone harmony score: Perform color tone analysis on key frames of the generated video to evaluate the degree of color harmony between the foreground and background of the person. Evaluation indicators include contrast, color temperature consistency and color distribution balance.

[0165] After generating the effect evaluation results, this embodiment of the disclosure feeds back the effect evaluation results to the recommendation process, using the feedback from the generation side to continuously correct the recommendation logic on the configuration side. Optionally, for element combinations whose effect evaluation results are lower than a preset quality threshold, the matching score of related element pairings in the combination (e.g., the product and the scenario) is reduced in subsequent rankings, causing them to be downweighted in subsequent recommendations; for element combinations whose effect evaluation results are higher than the preset quality threshold, the weight of the corresponding pairings is increased. Furthermore, an element association knowledge graph (e.g., a people-goods-place association knowledge graph) can be constructed based on the feedback data, using high-quality combination patterns as reusable association knowledge for recommendations to new or similar users.

[0166] By quantitatively evaluating and displaying the element matching degree and tone coordination of the generated results, and by feeding the evaluation results back to the element recommendation process, users can obtain objective quality references to decide whether to regenerate video materials. At the same time, the recommendation logic can continuously evolve with the actual generated video materials, thereby continuously improving the accuracy of configuration recommendations and the overall quality of generated content.

[0167] This disclosure also provides an apparatus for generating virtual avatar videos. Figure 11 This is a structural block diagram of a virtual avatar video generation device provided in this disclosure embodiment. The device includes: The page display module 1101 is used to respond to the virtual avatar configuration command and display an element selection page for configuring the virtual avatar, wherein the element selection page includes multiple element subpages; The element display module 1102 is used to display a plurality of second image elements to be selected in the second element subpage in response to a switching instruction to switch to the second element subpage when the first image element in the first element subpage is selected. The display order of the plurality of second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element. The video generation module 1103 is used to respond to the virtual avatar configuration instruction, display the configured virtual avatar based on the avatar elements selected in each of the element subpages, and generate a virtual avatar video based on the configured virtual avatar in response to the video generation instruction.

[0168] In some embodiments, the image element display module 1102 is specifically used for: When multiple candidate second image elements are displayed in the second element subpage, sorting annotation text is displayed in the second element subpage. The sorting annotation text indicates that the second image elements whose matching degree with the first image element meets the preset conditions are displayed first.

[0169] In some embodiments, the image element display module 1102 is specifically used for: When multiple second image elements to be selected are displayed in the second element subpage, for a preset number of second image elements that appear first in the display order, element recommendation text is displayed in the display area of ​​the preset number of second image elements. The element recommendation text is used to guide the selection of the preset number of second image elements.

[0170] In some embodiments, the apparatus further includes a matching degree display module 1104 (not shown), for: In response to the matching degree detection command, matching degree prompt information is displayed for the selected image elements in each of the element subpages. The matching degree prompt information represents the matching degree between any two image elements.

[0171] In some embodiments, the matching degree display module 1104 is specifically used for: For matching scores less than or equal to a preset threshold, the matching score is displayed in a way different from the default style in the matching score prompt information, and correction information for the matching score is displayed simultaneously. The correction information is used to guide the replacement of the selected image elements associated with the matching score.

[0172] In some embodiments, the matching degree display module 1104 is specifically used for: In response to the correction instruction applied in the matching degree prompt information, switch to the feature subpage corresponding to the correction information, so as to reselect the corresponding feature in the feature subpage corresponding to the correction information, wherein the feature subpage corresponding to the correction information is the feature subpage to which the feature to be replaced represented by the correction information belongs.

[0173] In some embodiments, the device further includes a detection module 1105 (not shown), for: Receive custom elements uploaded by users; If there is a risk in the fusion feasibility representation between the custom element and the currently selected image element, a risk warning message is displayed, which includes candidate correction strategies for the fusion risk.

[0174] In some embodiments, the element selection page further includes an image preview subpage, which is used to display the configured virtual image; for the first image element and the second image element displayed in the image preview subpage, the first image element corresponds to a coverage area, and the second image element corresponds to an occlusion protection area; the device further includes an occlusion detection module 1106 (not shown), used for: For the first image element and the second image element displayed in the image preview subpage, determine the coverage area of ​​the first image element and determine the occlusion protection area in the second image element; In response to a drag-and-drop command, when the position of the first image element is changed in the image preview subpage, if the overlap between the covered area and the occlusion protection area meets a preset overlap determination condition, an occlusion matching degree prompt is displayed. The occlusion matching degree prompt is used to guide the adjustment of the position of the first image element in the image preview subpage.

[0175] In some embodiments, the apparatus further includes a virtual avatar reuse module 1107 (not shown), for: Save the configured virtual image; In response to a loading command for the saved virtual avatar, the virtual avatar is loaded into the avatar preview subpage of the element selection page, and each avatar element constituting the virtual avatar is selected in its corresponding element subpage.

[0176] In some embodiments, the video generation module 1103 is specifically used for: Obtain a reference video frame, and edit the corresponding elements in the reference video frame according to the various image elements used in the configured virtual image to generate a video first frame that matches the virtual image; Obtain a video storyboard, which contains descriptive information for at least several video segments; For the first video segment among the plurality of video segments, based on the first frame of the video, a first virtual character video segment is generated according to the description information of the first video segment; For any target video segment located after the first video segment, obtain the transition control frame and style control frame associated with the target video segment, and generate a corresponding virtual avatar video segment based on the description information of the target video segment according to the transition control frame and the style control frame. The generated video clips of each virtual avatar are combined into a corresponding virtual avatar video.

[0177] It should be noted that the virtual avatar video generation device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the corresponding steps. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual avatar video generation device and the virtual avatar video generation method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0178] This disclosure provides an electronic device for executing the above-described method for generating virtual avatar videos. The electronic device may be a server, a terminal, or other device with model training capabilities or virtual avatar video generation capabilities.

[0179] Taking this electronic device as an example, Figure 12 This is a structural block diagram of an electronic device provided in this disclosure, used to execute the above-described method for generating virtual avatar videos. Specifically: Electronic device 1200 includes a central processing unit (CPU) 1201, a system memory 1204 including random access memory (RAM) 1202 and read-only memory (ROM) 1203, and a system bus 1205 connecting the system memory 1204 and the CPU 1201. Electronic device 1200 also includes a basic input / output system (I / O system) 1206 that facilitates the transfer of information between various devices within the computer, and a mass storage device 1207 for storing the operating system 1213, application programs 1214, and other program modules 1215.

[0180] The basic input / output system 1206 includes a display 1208 for displaying information and an input device 1209 for user input, such as a mouse or keyboard. Both the display 1208 and the input device 1209 are connected to the central processing unit 1201 via an input / output controller 1210 connected to the system bus 1205. The basic input / output system 1206 may also include the input / output controller 1210 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1210 also provides output to a display screen, printer, or other types of output devices.

[0181] Mass storage device 1207 is connected to central processing unit 1201 via a mass storage controller (not shown) connected to system bus 1205. Mass storage device 1207 and its associated computer-readable media provide non-volatile storage for electronic device 1200. That is, mass storage device 1207 may include computer-readable media (not shown) such as hard disk or compact disc read-only memory (CD-ROM) drive.

[0182] Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Video Disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the above-mentioned types. The system memory 1204 and mass storage device 1207 described above can be collectively referred to as memory.

[0183] According to various embodiments of this disclosure, electronic device 1200 can also be connected to a remote computer on a network, such as the Internet. That is, electronic device 1200 can be connected to network 1212 via network interface unit 1211 connected to system bus 1205, or network interface unit 1211 can be used to connect to other types of networks or remote computer systems (not shown).

[0184] Taking electronic devices as terminals as an example, Figure 13 This is a structural block diagram of another electronic device provided in this disclosure, used to execute the above-described method for generating virtual avatar videos. Specifically: Electronic device 1300 includes an RF (Radio Frequency) circuit 1310, a memory 1320 including one or more computer-readable storage media, an input unit 1330, a display unit 1340, a sensor 1350, an audio circuit 1360, a WiFi (Wireless Fidelity) module 1370, a processor 1380 including one or more processing cores, and a power supply 1390, among other components. Those skilled in the art will understand that... Figure 13 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The RF circuit 1310 can be used to receive and transmit signals during information transmission or calls. In particular, after receiving downlink information from the base station, it is handed over to one or more processors 1380 for processing.

[0185] The memory 1320 can be used to store software programs and modules. The processor 1380 executes various functional applications and data processing by running the software programs and modules stored in the memory 1320. The memory 1320 may mainly include a program storage area and a data storage area. The memory 1320 may include a memory controller to provide access to the memory 1320 for the processor 1380 and the input unit 1330.

[0186] Input unit 1330 can be used to receive input numerical or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Input unit 1330 may include touch-sensitive surface 1331 and other input devices 1332. Touch-sensitive surface 1331 can detect the user's touch position and the signal generated by the touch operation, and transmit the signal to touch controller; touch controller receives touch information from touch detection device, converts it into touch point coordinates, and sends it to processor 1380, and can also receive and execute commands from processor 1380.

[0187] The display unit 1340 may include a display panel 1341. A touch-sensitive surface 1331 may cover the display panel 1341. When the touch-sensitive surface 1331 detects a touch operation on or near it, it transmits the information to a processor 1380 to determine the type of touch event. Subsequently, the processor 1380 provides corresponding visual output on the display panel 1341 based on the type of touch event. The terminal may also include at least one sensor 1350.

[0188] Audio circuitry 1360, speaker 1361, and microphone 1362 provide an audio interface between the user and the terminal. Audio circuitry 1360 converts received audio data into electrical signals, which are then transmitted to speaker 1361, where they are converted into sound signals for output. Conversely, microphone 1362 converts collected sound signals into electrical signals, which are received by audio circuitry 1360, converted back into audio data, and then processed by processor 1380 before being transmitted via RF circuitry 1310 to, for example, another terminal, or output to memory 1320 for further processing. Audio circuitry 1360 may also include an earphone jack to facilitate communication between a peripheral headset and the terminal.

[0189] The processor 1380 is the control center of the terminal. It connects various parts of the terminal through various interfaces and lines. It performs various functions and processes data by running or executing software programs and / or modules stored in the memory 1320 and calling data stored in the memory 1320.

[0190] Although not shown, the terminal may also include a camera, Bluetooth module, etc., which will not be described in detail here. The terminal also includes a memory, in which a computer program is stored and configured to be executed by one or more processors to implement the processes provided in the method embodiments of this disclosure.

[0191] This disclosure also provides a computer-readable storage medium storing at least one computer program instruction, which is loaded and executed by a processor to implement the above-described method for generating virtual avatar videos.

[0192] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0193] This disclosure also provides a computer program product including at least one computer program instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium and executes the computer program, causing the electronic device to perform the aforementioned method for generating virtual avatar videos.

[0194] In some embodiments, the computer program or computer program instructions involved in the present disclosure may be deployed on an electronic device for execution, or executed on multiple electronic devices located in one location, or executed on multiple electronic devices distributed in multiple locations and interconnected through a communication network. Multiple electronic devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.

[0195] It should be understood that the step numbers described herein are merely illustrative of one possible execution order among the steps. Independent steps can be executed in parallel or their order adjusted without affecting the data dependencies and execution conditions between them. Steps with explicit input-output dependencies, conditional triggering relationships, or requirements for preceding results should be completed according to the corresponding data dependencies and execution conditions. This disclosure does not impose any further limitations in this regard.

[0196] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0197] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for generating virtual avatar videos, characterized in that, The method includes: In response to a virtual avatar configuration command, a selection page for configuring the virtual avatar is displayed, which includes multiple sub-pages for each element. When a first image element is selected in the first element subpage, in response to a switching instruction to switch to the second element subpage, multiple second image elements to be selected are displayed in the second element subpage. The display order of the multiple second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element. In response to the virtual avatar configuration command, the configured virtual avatar is displayed based on the avatar elements selected in each of the element subpages, and in response to the video generation command, a virtual avatar video is generated based on the configured virtual avatar.

2. The method according to claim 1, characterized in that, When multiple candidate second image elements are displayed in the second element subpage, the method further includes: The sorting annotation text is displayed in the second element subpage. The sorting annotation text indicates that the second image element whose matching degree with the first image element meets the preset conditions is displayed first.

3. The method according to claim 1 or 2, characterized in that, When multiple candidate second image elements are displayed in the second element subpage, the method further includes: For a predetermined number of second image elements that appear first in the display order, element recommendation text is displayed within the display area of ​​the predetermined number of second image elements. The element recommendation text is used to guide the selection of the predetermined number of second image elements.

4. The method according to claim 1, characterized in that, Prior to the step of displaying the virtual image obtained from the configuration, the method further includes: In response to the matching degree detection command, matching degree prompt information is displayed for the selected image elements in each of the element subpages. The matching degree prompt information represents the matching degree between any two image elements.

5. The method according to claim 4, characterized in that, The method further includes: For matching scores less than or equal to a preset threshold, the matching score is displayed in a way different from the default style in the matching score prompt information, and correction information for the matching score is displayed simultaneously. The correction information is used to guide the replacement of the selected image elements associated with the matching score.

6. The method according to claim 5, characterized in that, The method further includes: In response to the correction instruction applied in the matching degree prompt information, switch to the feature subpage corresponding to the correction information, so as to reselect the corresponding feature in the feature subpage corresponding to the correction information, wherein the feature subpage corresponding to the correction information is the feature subpage to which the feature to be replaced represented by the correction information belongs.

7. The method according to claim 1, characterized in that, After displaying the element selection page for creating a virtual avatar, the method further includes: Receive custom elements uploaded by users; If there is a risk in the fusion feasibility representation between the custom element and the currently selected image element, a risk warning message is displayed, which includes candidate correction strategies for the fusion risk.

8. The method according to claim 1, characterized in that, The element selection page also includes an image preview subpage, which displays the configured virtual image; for the first image element and the second image element displayed in the image preview subpage, the first image element corresponds to a covered area, and the second image element corresponds to an occlusion protection area; the method further includes: In response to a drag-and-drop command, when the position of the first image element is changed in the image preview subpage, if the overlap between the covered area and the occlusion protection area meets a preset overlap determination condition, an occlusion matching degree prompt is displayed. The occlusion matching degree prompt is used to guide the adjustment of the position of the first image element in the image preview subpage.

9. The method according to any one of claims 1, 7, and 8, characterized in that, After the step of displaying the virtual image obtained from the configuration, the method further includes: Save the configured virtual image; In response to a loading command for the saved virtual avatar, the virtual avatar is loaded into the avatar preview subpage of the element selection page, and each avatar element constituting the virtual avatar is selected in its corresponding element subpage.

10. The method according to claim 1, characterized in that, The step of generating a virtual avatar video based on the configured virtual avatar includes: Obtain a reference video frame, and edit the corresponding elements in the reference video frame according to the various image elements used in the configured virtual image to generate a video first frame that matches the virtual image; Obtain a video storyboard, which contains descriptive information for at least several video segments; For the first video segment among the plurality of video segments, based on the first frame of the video, a first virtual character video segment is generated according to the description information of the first video segment; For any target video segment located after the first video segment, obtain the transition control frame and style control frame associated with the target video segment, and generate a corresponding virtual avatar video segment based on the description information of the target video segment according to the transition control frame and the style control frame. The generated video clips of each virtual avatar are combined into a corresponding virtual avatar video.

11. A device for generating virtual avatar videos, characterized in that, The device includes: The page display module is used to respond to the virtual avatar configuration command and display an element selection page for configuring the virtual avatar, wherein the element selection page includes multiple element subpages; The element display module is used to display multiple second image elements to be selected in the second element subpage in response to a switching instruction to switch to the second element subpage when the first image element in the first element subpage is selected. The display order of the multiple second image elements in the second element subpage is determined based on the matching degree between the second image elements and the selected first image element. The video generation module is used to respond to the virtual avatar configuration command, display the configured virtual avatar based on the avatar elements selected in each of the element subpages, and generate a virtual avatar video based on the configured virtual avatar in response to the video generation command.

12. An electronic device, characterized in that, The electronic device includes a memory and a processor, wherein the memory stores a computer program, which is loaded and executed by the processor to implement the method for generating virtual avatar videos as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which are loaded and executed by a processor to implement the method for generating a virtual avatar video as described in any one of claims 1 to 10.

14. A computer program product, characterized in that, The computer program product includes computer program instructions, which are loaded and executed by a processor to implement the method for generating virtual avatar videos as described in any one of claims 1 to 10.