Video generating method and apparatus, device, and medium
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsXiaofeng Li, Lu Lu
Life of this patent
Estimating the term…
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.
Claims14
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.
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.
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.
Dependencies are inferred from the claim text.