Video generation method and system driven by human skeleton, storage medium and equipment

By detecting and erasing the human structure in the image to be processed, generating a blank video and redrawing the mask, it solves the problem in the existing technology that human skeleton-driven video generation requires a large amount of annotation and computing resources, and achieves a fast, robust and Scalable video generation capabilities, adapting to different types of images to be processed, and performing style matching.

CN118609033APending Publication Date: 2024-09-06ZHEJIANG UNIV +1

Patent Information

Application Number
CN202410906710.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing human skeleton-driven video generation technology requires a lot of annotation work, has a single stylization effect, is difficult to adapt to different types of images to be processed, and requires high computing resources.

Method used

By detecting the human body structure in the picture to be processed, erasing the human body structure to obtain the background picture, and determining the human posture information, a blank video with the same number of frames as the skeleton-driven video is generated based on this, and the mask is redrawn in the blank video to generate Human skeleton driven video with specified style.

Benefits of technology

No model fine-tuning is required, training time is reduced, computing resource requirements are reduced, and human skeleton-driven videos are quickly generated. It is highly robust and scalable, and can adapt to different types of images to be processed and perform visual style matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609033A
    Figure CN118609033A
Patent Text Reader

Abstract

The invention provides a human skeleton-driven video generation method. The method comprises the following steps: acquiring a to-be-processed picture and a skeleton-driven video; detecting a human body structure in the to-be-processed picture, and erasing the human body structure to obtain a background picture; determining corresponding coordinate information in the to-be-processed picture when a figure in the to-be-processed picture executes a posture corresponding to the skeleton driving video, and obtaining a two-dimensional posture sequence diagram; generating a blank video with the same frame number as the skeleton driving video based on the background picture; and performing mask redrawing in the blank video based on the two-dimensional posture sequence diagram to obtain a result video. The human skeleton driving video can be quickly generated. And meanwhile, the method has relatively high robustness and expandability, can adapt to different types of to-be-processed pictures, and performs visual style matching. The invention also provides a human skeleton driven video generation system, a computer readable storage medium and electronic equipment, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a human skeleton-driven video generation method, system, storage medium and device. Background Art

[0002] Recently, diffusion models have made great progress in the field of image and video generation. However, in the field of human skeleton-driven video generation, it is still necessary to collect a large amount of training data of different character IDs in advance and perform fine annotation. The annotation work includes avoiding video slicing for multi-camera switching or clothing or character ID switching, correcting annotation modifications for 2D skeleton image detection errors, and deleting videos with special effects. It relies on a large amount of annotation work, and its stylization effect is single, and it still retains the original characteristics. Summary of the invention

[0003] The purpose of the present application is to provide a human skeleton-driven video generation method, system, computer-readable storage medium and electronic device, which can generate a human skeleton-driven video with a specified style based on an input character image and a skeleton-driven video.

[0004] In order to solve the above technical problems, the present application provides a human skeleton driven video generation method, and the specific technical solution is as follows: Get the images and skeleton-driven videos to be processed; Detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; Determine the corresponding coordinate information in the picture to be processed when the person in the picture to be processed performs the corresponding posture of the skeleton-driven video, and obtain a two-dimensional posture sequence diagram; Generate a blank video with the same frame number as the skeleton driven video based on the background image; Mask redrawing is performed in the blank video based on the two-dimensional posture sequence graph to obtain a result video.

[0005] Optionally, detecting a human body structure in the image to be processed, erasing the human body structure, and obtaining a background image includes: Detecting position information of a human body structure in the image to be processed, and obtaining mask information corresponding to the human body structure; The image to be processed is erased according to the mask information to obtain a background image.

[0006] Optionally, determining corresponding coordinate information in the image to be processed when a person in the image to be processed performs a corresponding gesture in the skeleton-driven video includes: Determine the bone ratio between the human body structure in the image to be processed and the standard human body bone length in the skeleton-driven video; Calculating a two-dimensional posture graph of a human body in the skeleton-driven video; An anchor point is determined, and the transformed coordinate positions of other joint points in the two-dimensional posture diagram of the human body are calculated based on the anchor point and the skeleton proportion.

[0007] Optionally, determining the bone ratio between the human body structure in the image to be processed and the standard human body bone length in the skeleton-driven video includes: Detecting the human body structure in the image to be processed and the human body information of any frame in the skeleton-driven video based on the three-dimensional skeleton, and determining the three-dimensional coordinates of the joint points; Calculate the joint distance between adjacent joint points according to the three-dimensional coordinates; The bone ratio between the human bone length in the image to be processed and the standard human bone length in the skeleton-driven video is determined according to the joint distance.

[0008] Optionally, after determining the bone ratio between the human bone length in the image to be processed and the standard human bone length in the skeleton-driven video according to the joint distance, the method further includes: The joint coordinates of the blocked part of the human body structure in the image to be processed are determined according to the bone ratio.

[0009] Optionally, before generating a blank video having the same frame number as the skeleton-driven video based on the background image, the method further includes: The skeleton driven video is padded according to the aspect ratio of the image to be processed to ensure that the aspect ratio of the skeleton driven video and the image to be processed is the same.

[0010] Optionally, after performing mask redrawing in the blank video based on the two-dimensional posture sequence graph to obtain a result video, the method further includes: Perform at least one of face restoration, super-resolution and face swapping operations on the result video to obtain a result video.

[0011] The present application also provides a human skeleton driven video generation system, comprising: Data acquisition module, used to obtain the images to be processed and the skeleton-driven video; A foreground erasing module, used for detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; An action migration module, used to determine the corresponding coordinate information in the image to be processed when the person in the image to be processed performs the corresponding posture of the skeleton-driven video, and obtain a two-dimensional posture sequence diagram; A blank video generation module, used to generate a blank video with the same frame number as the skeleton driven video based on the background image; The video mask redrawing module is used to perform mask redrawing in the blank video based on the two-dimensional posture sequence graph to obtain a result video.

[0012] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the video generation method described above are implemented.

[0013] The present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the video generation method described above are implemented.

[0014] The present application provides a method for generating a video driven by a human skeleton, comprising: obtaining a picture to be processed and a skeleton-driven video; detecting a human body structure in the picture to be processed, erasing the human body structure, and obtaining a background picture; determining corresponding coordinate information in the picture to be processed when a person in the picture to be processed performs a corresponding posture in the skeleton-driven video, and obtaining a two-dimensional posture sequence diagram; generating a blank video with the same number of frames as the skeleton-driven video based on the background picture; and performing mask redrawing in the blank video based on the two-dimensional posture sequence diagram to obtain a result video.

[0015] When generating a human skeleton driven video, the present application can generate a human motion video with a specified style based on the input driving video and the image to be processed. When generating a human skeleton driven video, the present application does not need to perform model fine-tuning, which reduces the training time and the demand for computing resources, and can quickly generate a human skeleton driven video. At the same time, the present application has high robustness and scalability, can adapt to different types of images to be processed, and match visual styles.

[0016] The present application also provides a human skeleton driven video generation system, a computer readable storage medium and an electronic device, which have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0018] Figure 1 A flowchart of a human skeleton driven video generation method provided in an embodiment of the present application; Figure 2A schematic diagram of the structure of a human skeleton-driven video generation system provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] Please refer to Figure 1 , Figure 1 A flowchart of a human skeleton driven video generation method provided in an embodiment of the present application, the method comprising: S101: Obtaining the image to be processed and the skeleton-driven video; S102: Detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; S103: determining corresponding coordinate information in the image to be processed when the person in the image to be processed performs a corresponding posture in the skeleton-driven video, and obtaining a two-dimensional posture sequence diagram; S104: generating a blank video with the same frame number as the skeleton driven video based on the background image; S105: Redrawing the blank video based on the two-dimensional posture sequence graph to obtain a result video.

[0021] The image to be processed obtained by the embodiment of the present application needs to include human body structure and character features. Here, for example, facial information can be included, and of course the facial information can be blocked, such as videos of users wearing hats or sunglasses. Skeleton-driven video controls and dynamically generates animations by operating the skeleton structure of the model. It can be two-dimensional or three-dimensional.

[0022] Skeleton-driven videos rely mainly on the so-called "skeleton", an abstract structure inside the model that defines the shape and movement of the object. In a 3D model, the skeleton is a system of multiple connected joints and bones, which drive the model to produce corresponding dynamic effects through the relative movement of these bones. This technology makes animation production more intuitive and efficient, because complex movement changes can be achieved by adjusting only a small number of skeleton key points. In 2D animation, the concept of skeleton drive can be borrowed from 3D, and the movement of graphic elements can be controlled through a simplified skeleton system - usually virtual "bones" represented by points and line segments. For example, curves in 2D vector graphics can be animated in real time based on recognition results.

[0023] First, the human body structure in the image to be processed needs to be detected, and the human body structure is erased to obtain a background image. Specifically, the position information of the human body structure in the image to be processed can be detected first, mask information corresponding to the human body structure can be obtained, and then the image to be processed is erased according to the mask information to obtain a background image.

[0024] Action migration is then performed. Since the skeleton structures of different human bodies are similar, but the lengths of the bones are different. If the human skeleton in the skeleton-driven video is directly used to drive the person in the image to be processed, it is difficult to ensure that the bone length information of the moving human body presented in the end is consistent with the person information input by the user. In addition, the resolution of the skeleton-driven video is generally difficult to be consistent with the image to be processed, and the position of the driving human body in the video is also difficult to be exactly consistent with the position of the person in the image.

[0025] At this time, when determining the corresponding coordinate information in the image to be processed when the person in the image to be processed performs the corresponding posture of the skeleton-driven video, the following process can be used: The first step is to determine the bone ratio between the human body structure in the image to be processed and the standard human bone length in the skeleton-driven video; Step 2: Calculate a two-dimensional posture graph of the human body in the skeleton-driven video; The third step is to determine the anchor point, and calculate the transformed coordinate positions of other joint points in the two-dimensional posture diagram of the human body based on the anchor point and the skeleton proportion.

[0026] First, skeleton detection is performed. During the skeleton detection process, if the detected human body is in a sideways state, the pixel distance between the human joint points is calculated based on the result of the two-dimensional skeleton detection. The shoulder length will be much smaller than the arm length, and the pupil distance will also be very small. Obviously, the confidence of this scheme is not high. Therefore, based on the three-dimensional skeleton detection of the character information in the user's to-be-processed picture and the human body information of any frame in the skeleton-driven video, the three-dimensional coordinates of the obtained joint points can be used to calculate the distance between adjacent joint points. By comparison, the ratio between the user-input human bone length and the human bone length in the skeleton-driven video can be obtained. Specifically, firstly, based on the human body structure in the to-be-processed picture and the human body information of any frame in the skeleton-driven video, the three-dimensional coordinates of the joint points are determined, and then the joint distance between adjacent joint points is calculated according to the three-dimensional coordinates. Finally, the bone ratio between the human body bone length in the to-be-processed picture and the standard human body bone length in the skeleton-driven video is determined according to the joint distance. And then, the joint coordinates of the blocked part of the human body structure in the to-be-processed picture can also be determined according to the bone ratio.

[0027] However, it should be noted that the skeleton ratio is not constant. For example, if the 3D skeleton detection does not detect some human body parts, its ratio can be inferred based on a priori. If the right leg is not detected due to occlusion, it can be assumed that the ratio of the right leg is the same as that of the left leg; if the positions of both hands are not detected due to occlusion, it can be assumed that the ratio of the distance from the wrist to the elbow is the same as that of the distance from the elbow to the shoulder.

[0028] Since the resolution of the skeleton-driven video may not be consistent with the resolution of the image to be processed, the skeleton-driven video can be padded according to the aspect ratio of the image to be processed to ensure that the aspect ratio of the two is consistent, which will not affect the calculated human skeleton length ratio. After calculating the human body 2D posture graph of the skeleton-driven video, the joint point at the neck can be used as the anchor point, and based on the skeleton ratio relationship between the two, the transformed coordinate positions of other joint points can be calculated.

[0029] Assume that two adjacent joints of the human body in a frame of the skeleton-driven video and The coordinates of and ,in is the ratio of the pixel coordinate position of the joint point to the height or width of the image. The point coordinates become , and the length ratio of the two joint points is , then the transformed The point coordinates should be: ; After the above operations, a transformed two-dimensional skeleton image can be obtained, and then the two-dimensional skeleton image is translated to the specified anchor point to obtain a two-dimensional posture sequence diagram after action migration.

[0030] After obtaining the two-dimensional posture sequence diagram, a human body mask can be generated first. At this time, any large model of Wensheng graph can be used to generate a human body mask for subsequent video mask redrawing. If the final video needs to retain the user's clothing and head features, the head-related mask can be obtained based on the face parsing model, and then the difference operation can be performed with the human body mask to obtain the mask of the specified retained feature area. The IP-Adapter model is used to retain the user's feature attributes, and the ControlNet is used to fix the migrated skeleton action features obtained by the previous module, so that a series of action graphs of the input character under the same background can be obtained. At present, the lcm acceleration scheme can make the reasoning speed of the Wensheng graph model much faster than in the past, and a series of animated images can be obtained in a relatively short time, and the mask information corresponding to the transformed human body can be calculated based on this.

[0031] After erasing the character's mask information to obtain the background image, it can be copied into a video composed of a sequence of images with the same total number of frames as the skeleton-driven video, that is, a blank video, to facilitate subsequent processing of video mask redrawing.

[0032] It should be noted that in the present application, there is no established sequential relationship between the processes of obtaining a two-dimensional posture sequence diagram and generating a blank video. In other embodiments of the present application, other execution orders may be adopted, such as obtaining a background image, generating a blank video, and then obtaining a two-dimensional posture sequence diagram.

[0033] Using the 2D pose sequence diagram and human motion mask information, video mask redrawing and style conversion can be performed based on the AnimateDiff model. Combined with IP-Adapter to fix human attributes and ControlNet to fix skeleton motion, the style effect of the output video can be customized. In addition, since AnimateDiff can edit key frames, multiple styles can even be included in the output video.

[0034] When generating a human skeleton driven video, the present application can generate a human action video with a specified style according to an input driving video and a target image. When generating a human skeleton driven video, the present application does not need to perform model fine-tuning and has high robustness and scalability.

[0035] In a feasible implementation, after masking and redrawing based on the two-dimensional posture sequence graph in the blank video, at least one of face restoration, super-resolution and face swapping can be performed on the result video to obtain the result video. Face restoration generally refers to the process of recovering high-quality details from low-quality face images through algorithms. It can include operations such as deblurring, denoising and restoring facial features. For example, models such as GPEN, GFPGAN and CodeFormer can be used, which are deep learning models specifically used for image restoration and enhancement. They can effectively improve image quality, remove noise and restore image details. These technologies can be applied not only to static images, but also to video sequences, i.e., video face restoration. Super-resolution technology refers to the process of increasing the resolution of images or videos through software algorithms. Super-resolution technology can significantly improve video quality and make low-resolution video content clearer. Face swapping technology generally refers to replacing one person's face with another person's face in a video. Generative adversarial networks (GANs) can be used to train models to recognize and replicate people's facial features, thereby achieving accurate facial replacement.

[0036] A human skeleton driven video generation system provided in an embodiment of the present application is introduced below. The video generation system described below and the human skeleton driven video generation method described above can refer to each other.

[0037] See also Figure 2 , Figure 2 A schematic diagram of the structure of a human skeleton-driven video generation system provided in an embodiment of the present application, the system comprising: Data acquisition module, used to obtain the images to be processed and the skeleton-driven video; A foreground erasing module, used for detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; An action migration module, used to determine the corresponding coordinate information in the image to be processed when the person in the image to be processed performs the corresponding gesture in the skeleton-driven video; A blank video generation module, used to generate a blank video with the same frame number as the skeleton driven video based on the background image; The video mask redrawing module is used to perform mask redrawing in the blank video based on the two-dimensional posture sequence graph to obtain a result video.

[0038] Based on the above embodiment, as an optional embodiment, the foreground erasing module includes: A detection unit, used to detect position information of a human body structure in the image to be processed, and obtain mask information corresponding to the human body structure; An erasing unit is used to erase the image to be processed according to the mask information to obtain a background image.

[0039] Based on the above embodiment, as an optional embodiment, the action migration module includes: A first determination unit is used to determine a bone ratio between a human body structure in the image to be processed and a standard human body bone length in the skeleton-driven video; A calculation unit, used for calculating a two-dimensional posture graph of a human body in the skeleton-driven video; The second determining unit is used to determine an anchor point, and calculate the transformed coordinate positions of other joint points in the two-dimensional posture diagram of the human body based on the anchor point and the skeleton proportion.

[0040] Based on the above embodiment, as an optional embodiment, the first determining unit includes: A first determination subunit is used to determine the three-dimensional coordinates of the joint points based on the three-dimensional skeleton detection of the human body structure in the image to be processed and the human body information of any frame in the skeleton-driven video; A calculation subunit, used for calculating the joint distance between adjacent joint points according to the three-dimensional coordinates; The second determination subunit is used to determine the bone ratio between the human bone length in the image to be processed and the standard human bone length in the skeleton-driven video according to the joint distance.

[0041] Based on the above embodiment, as an optional embodiment, it also includes: The third determination subunit is used to determine the joint coordinates of the blocked part of the human body structure in the image to be processed according to the bone ratio.

[0042] Based on the above embodiment, as an optional embodiment, it also includes: The edge-filling module is used to fill the skeleton-driven video according to the aspect ratio of the image to be processed to ensure that the aspect ratio of the skeleton-driven video and the image to be processed is the same.

[0043] Based on the above embodiment, as an optional embodiment, it also includes: The processing module is used to perform at least one operation of face restoration, super-resolution and face replacement on the result video to obtain a result video.

[0044] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0045] The present application also provides an electronic device, see Figure 3 , a structural diagram of an electronic device provided in an embodiment of the present application, such as Figure 3 As shown, a processor 1410 and a memory 1420 may be included.

[0046] Among them, the processor 1410 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1410 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1410 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1410 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1410 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0047] The memory 1420 may include one or more computer-readable storage media, which may be non-transitory. The memory 1420 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 1420 is at least used to store the following computer program 1421, wherein, after the computer program is loaded and executed by the processor 1410, it can implement the relevant steps in the method performed by the electronic device side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 1420 may also include an operating system 1422 and data 1423, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 1422 may include Windows, Linux, Android, etc.

[0048] In some embodiments, the electronic device may further include a display screen 1430 , an input / output interface 1440 , a communication interface 1450 , a sensor 1460 , a power source 1470 , and a communication bus 1480 .

[0049] certainly, Figure 3 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include Figure 3 More or fewer components than shown, or combinations of certain components.

[0050] The subject information involved in this application, including but not limited to the subject's device information, subject's personal information, etc., and data, including but not limited to data used for analysis, stored data, displayed data, etc., are all information and data authorized by the subject or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the laws, regulations and standards of relevant countries and regions. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0051] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0052] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A human skeleton driven video generation method, characterized in that: include: Get the images and skeleton-driven videos to be processed; Detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; Determine the corresponding coordinate information in the picture to be processed when the person in the picture to be processed performs the corresponding posture of the skeleton-driven video, and obtain a two-dimensional posture sequence diagram; Generate a blank video with the same frame number as the skeleton driven video based on the background image; Mask redrawing is performed in the blank video based on the two-dimensional posture sequence graph to obtain a result video.

2. The video generation method according to claim 1, characterized in that: The detecting of the human body structure in the image to be processed, erasing the human body structure, and obtaining the background image comprises: Detecting position information of a human body structure in the image to be processed, and obtaining mask information corresponding to the human body structure; The image to be processed is erased according to the mask information to obtain a background image.

3. The video generation method according to claim 1, characterized in that: Determining the corresponding coordinate information in the picture to be processed when the person in the picture to be processed performs the corresponding posture of the skeleton-driven video includes: Determine the bone ratio between the human body structure in the image to be processed and the standard human body bone length in the skeleton-driven video; Calculating a two-dimensional posture graph of a human body in the skeleton-driven video; An anchor point is determined, and the transformed coordinate positions of other joint points in the two-dimensional posture diagram of the human body are calculated based on the anchor point and the skeleton proportion.

4. The video generation method according to claim 3, characterized in that: Determining the bone ratio between the human body structure in the image to be processed and the standard human body bone length in the skeleton-driven video includes: Detecting the human body structure in the image to be processed and the human body information of any frame in the skeleton-driven video based on the three-dimensional skeleton, and determining the three-dimensional coordinates of the joint points; Calculate the joint distance between adjacent joint points according to the three-dimensional coordinates; The bone ratio between the human bone length in the image to be processed and the standard human bone length in the skeleton-driven video is determined according to the joint distance.

5. The video generation method according to claim 4, characterized in that: After determining the bone ratio between the human bone length in the to-be-processed image and the standard human bone length in the skeleton-driven video according to the joint distance, the method further includes: The joint coordinates of the blocked part of the human body structure in the image to be processed are determined according to the bone ratio.

6. The video generation method according to claim 1, characterized in that: Before generating a blank video with the same number of frames as the skeleton driven video based on the background image, the method further includes: The skeleton driven video is padded according to the aspect ratio of the image to be processed to ensure that the aspect ratio of the skeleton driven video and the image to be processed is the same.

7. The video generation method according to claim 1, characterized in that: After performing mask redrawing in the blank video based on the two-dimensional posture sequence graph to obtain a result video, the method further includes: Perform at least one of face restoration, super-resolution and face swapping operations on the result video to obtain a result video.

8. A human skeleton driven video generation system, characterized in that: include: Data acquisition module, used to obtain the images to be processed and the skeleton-driven video; A foreground erasing module, used for detecting the human body structure in the image to be processed, erasing the human body structure, and obtaining a background image; An action migration module, used to determine the corresponding coordinate information in the image to be processed when the person in the image to be processed performs the corresponding posture of the skeleton-driven video, and obtain a two-dimensional posture sequence diagram; A blank video generation module, used to generate a blank video with the same frame number as the skeleton driven video based on the background image; The video mask redrawing module is used to perform mask redrawing in the blank video based on the two-dimensional posture sequence graph to obtain a result video.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the video generation method according to any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the video generation method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Motion transfer method and system based on single picture

    CN111539262A

  • Motion capture method and device, equipment and storage medium

    CN112381003A

  • Object attribute estimation device and video plotting device

    JP2013120556A

Cited By

  • Human body action video generation method and device and medium

    CN120378711A

  • Digital human display method and system based on intelligent VR space

    CN120823297A