IP Library Granted Patent US 12711994
Granted Patent B2
US 12711994 · App. 18/012,203 · Granted Aug 18, 2026

Video generating method and apparatus, device, and medium

Inventors: Xiaofeng Li (Beijing, CN); Lu Lu (Beijing, CN)
Assignee: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
G11B27/031G06T3/60
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12711994
App. No.
18/012,203
Granted
Aug 18, 2026
Kind
B2
Abstract

A video generating method and apparatus, a device, and a medium are provided. The video generating method comprises: obtaining an image of a target object; and generating a target video according to the image of the target object, wherein the target video is a video comprising a swinging target part, and the target part is a part comprised in the target object.

Claims (59)

1 . A video generation method, comprising:

acquiring an image of a target object; and

generating a target video based on the image of the target object, comprising acquiring an image of a target part based on the image of the target object and generating the target video based on the image of the target part, wherein the target part swings in the target video, and the target part is a part of the target object,

wherein generating the target video based on the image of the target object comprises:

fusing the image of the target part and a style image of the target part to obtain the fused image of the target part; and

generating the target video based on the fused image of the target part,

wherein in the target video, the target part has a swing angle corresponding to a respective timestamp of the target video, the swing angle is determined based on the timestamp and a trigonometric function motion curve, the trigonometric function motion curve is generated based on preset swing parameters, and the swing parameters comprise a swing direction, a maximum swing angle in the swing direction and a swing speed in the swing direction.

2 . The method according to claim 1 , wherein generating the target video based on the fused image of the target part comprises:

deforming the fused image of the target part to obtain a deformed fused image of the target part; and

generating the target video based on the deformed fused image of the target part.

3 . The method according to claim 1 , wherein before generating the target video based on the image of the target object, the method further comprises:

generating the trigonometric function motion curve based on the swing parameters; and

determining swing angles corresponding to respective timestamps based on the trigonometric function motion curve.

4 . The method according to claim 1 , wherein generating the target video based on the image of the target part comprises:

rotating the image of the target part at the swing angles corresponding to respective timestamps to obtain rotated images of the target part corresponding to respective timestamps; and

generating the target video based on the rotated images of the target part corresponding to respective timestamps.

5 . The method according to claim 4 , wherein rotating the image of the target part at the swing angles corresponding to respective timestamps to obtain rotated images of the target part corresponding to respective timestamps comprises:

for each swing angle,

acquiring a rotation matrix corresponding to the swing angle; and

performing image conversion on the image of the target part based on the rotation matrix corresponding to the swing angle by taking a target pixel of the image of the target part as an image origin, to obtain the rotated image of the target part corresponding to the timestamp for the swing angle.

6 . The method according to claim 5 , wherein generating the target video based on the rotated images of the target part corresponding to respective timestamps comprises:

superposing the rotated images of the target part onto a target background image to obtain image frames corresponding to respective timestamps, wherein the target pixel of each rotated image of the target part is at a target pixel position in the target background image; and

generating the target video based on the image frames and the respective timestamps corresponding to the image frames.

7 . The method according to claim 1 , wherein generating the target video based on the fused image of the target part comprises:

synthesizing the fused image of the target part and a style image of other parts of the target object except the target part, to obtain a target composite image; and

generating the target video based on the target composite image.

8 . A video generation device, comprising:

a processor;

a memory for storing executable instructions;

wherein, the processor is configured to read the executable instructions from the memory and execute the executable instructions to perform:

acquiring an image of a target object; and

generating a target video based on the image of the target object, comprising acquiring an image of a target part based on the image of the target object and generating the target video based on the image of the target part, wherein the target part swings in the target video, and the target part is a part of the target object,

wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to perform:

fusing the image of the target part and a style image of the target part to obtain the fused image of the target part; and

generating the target video based on the fused image of the target part,

wherein in the target video, the target part has a swing angle corresponding to a respective timestamp of the target video, the swing angle is determined based on the timestamp and a trigonometric function motion curve, the trigonometric function motion curve is generated based on preset swing parameters, and the swing parameters comprise a swing direction, a maximum swing angle in the swing direction and a swing speed in the swing direction.

9 . The device according to claim 8 , wherein the processor is further configured to perform:

deforming the fused image of the target part to obtain a deformed fused image of the target part; and

generating the target video based on the deformed fused image of the target part.

10 . The device according to claim 8 , wherein the processor is further configured to perform:

generating the trigonometric function motion curve based on the swing parameters; and

determining swing angles corresponding to respective timestamps based on the trigonometric function motion curve.

11 . The device according to claim 8 , wherein the processor is further configured to perform:

rotating the image of the target part at the swing angles corresponding to respective timestamps to obtain rotated images of the target part corresponding to respective timestamps; and

generating the target video based on the rotated images of the target part corresponding to respective timestamps.

12 . The device according to claim 11 , wherein the processor is further configured to perform:

for each swing angle,

acquiring a rotation matrix corresponding to the swing angle; and

performing image conversion on the image of the target part based on the rotation matrix corresponding to the swing angle by taking a target pixel of the image of the target part as an image origin, to obtain the rotated image of the target part corresponding to the timestamp for the swing angle.

13 . The device according to claim 8 , wherein the processor is further configured to perform:

synthesizing the fused image of the target part and a style image of other parts of the target object except the target part, to obtain a target composite image; and

generating the target video based on the target composite image.

14 . A non-transitory computer-readable storage medium storing a computer program thereon, wherein the computer program, when being executed by a processor, causes the processor to perform:

acquiring an image of a target object; and

generating a target video based on the image of the target object, comprising acquiring an image of a target part based on the image of the target object and generating the target video based on the image of the target part, wherein the target part swings in the target video, and the target part is a part of the target object,

wherein the computer program, when being executed by a processor, causes the processor to perform:

fusing an image of the target part and a style image of the target part to obtain the fused image of the target part; and

generating the target video based on the fused image of the target part,

wherein in the target video, the target part has a swing angle corresponding to a respective timestamp of the target video, the swing angle is determined based on the timestamp and a trigonometric function motion curve, the trigonometric function motion curve is generated based on preset swing parameters, and the swing parameters comprise a swing direction, a maximum swing angle in the swing direction and a swing speed in the swing direction.