# US 2023/0066716 A1 · Video generation method and apparatus, storage medium, and computer device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0066716 A1
- Document ID: US20230066716A1
- Status: Published application
- Kind: A1
- Application number: 17/983,071
- Filed: 2022-11-08
- Published: 2023-03-02
- Earliest claimed: 2020-07-03
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Xinlei ZHANG
- Web page: https://patentgrep.com/patent/US20230066716A1

## CPC

- G06T 7/254: involving subtraction of images
- G06V 10/803: {of input or preprocessed data}
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06V 10/16: {using multiple overlapping images; Image stitching}
- G06V 40/16: Human faces, e.g. facial parts, sketches or expressions
- G06V 40/174: {Facial expression recognition}
- G06V 40/20: Movements or behaviour, e.g. gesture recognition (recognition of facial expressions G06V40/16)
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20044: Skeletonization; Medial axis transform
- G06T 2207/20104: Interactive definition of region of interest [ROI]
- G06T 2207/30201: Face
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A video generation method includes: performing video shooting in response to a trigger operation for a video duet option; obtaining a second video currently shot, where the second video corresponds to a video clip including a target character in a first video; and fusing the second video into video content of the first video based on one or more characters recognized in the first video, to obtain a duet video, the one or more characters including the target character.

## Claims

### Claim 1

A video generation method, performed by an electronic device, the method comprising:
performing video shooting in response to a trigger operation for a video duet option;
obtaining a second video currently shot, the second video corresponding to a video clip comprising a target character in a first video; and
fusing the second video into video content of the first video based on one or more characters recognized in the first video, to obtain a duet video, the one or more characters including the target character.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
obtaining a prompt message based on recognition of picture content of the first video, the prompt message being used for instructing the video shooting of the second video; and
displaying the prompt message on a shooting interface during the video shooting of the second video.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the fusing the second video into video content of the first video, to obtain a duet video comprises:
replacing the video clip comprising the target character in the first video with the second video when the first video does not comprise a same-frame picture that includes the target character and at least one other character of the one or more recognized characters.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the fusing the second video into video content of the first video, to obtain a duet video comprises:
replacing a facial image of the target character in the same-frame picture with a user facial image in the second video when the first video comprises a same-frame picture that includes the target character and at least one other character of the one or more recognized characters.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the prompt message comprises one or more of a camera shooting mode, a human body pose, or a character dialog; and the displaying the prompt message on a shooting interface comprises:
displaying at least one of a prompt icon or prompt text of the camera shooting mode on the shooting interface;
displaying at least one of a prompt icon or prompt text of the human body pose on the shooting interface, the human body pose comprising one or more of a facial expression, a facial orientation, or a body movement; and
displaying the character dialog on the shooting interface.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the first video comprises N characters, N being an integer greater than or equal to 2, the N characters comprising the target character; and the method further comprises:
displaying character options respectively corresponding to the N characters on a playback interface of the first video before the performing video shooting in response to a trigger operation for a video duet option; and
selecting M video clips comprising the target character from the first video as target video clips in response to a trigger operation for a character option corresponding to the target character, M being a positive integer.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
displaying a preview picture corresponding to one of the target video clips on the playback interface; and
playing the designated target video clip in response to a trigger operation for a designated target video clip.

### Claim 8 (depends on 2)

The method according to claim 2, further comprising:
displaying a video window on the shooting interface in a floating manner, the video window being used for displaying a video clip corresponding to the prompt message in the first video.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
displaying a preview picture, a playback option, a playback progress bar, and a video modification option of the duet video after the duet video is obtained;
playing the duet video in response to a trigger operation for the playback option, and displaying a playback progress of the duet video through the playback progress bar; and
modifying the duet video in response to a trigger operation for the video modification option.

### Claim 10 (depends on 6)

The method according to claim 6, wherein the selecting M video clips comprising the target character from the first video as target video clips comprises:
determining a target time point at which the target character appears in the first video;
marking the target time point with a key frame, to obtain video dotting information; and
stitching the M target video clips from the first video according to the video dotting information and the target time point.

### Claim 11 (depends on 2)

The method according to claim 2, wherein the obtaining a prompt message based on recognition of picture content of the first video comprises:
performing picture content analysis on one or more target video clips comprising the target character in the first video, to obtain one or more prompt messages corresponding to the one or more target video clips; and
the displaying the prompt message on a shooting interface during the video shooting of the second video comprises:
displaying the one or more prompt messages corresponding to the one or more target video clips on the shooting interface in a process of shooting the second video according to the one or more target video clips.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the performing picture content analysis on one or more target video clips comprising the target character in the first video comprises: for one target video clip of the one or more target video clips:
determining human body key points of the target character in the target video clip through a human body key point detection network;
connecting facial key points in the human body key points according to a relative position relationship between different facial parts, to obtain a facial architecture model; then determining a facial expression and a facial orientation of the target character in the target video clip according to the facial architecture model; and
connecting body key points in the human body key points according to a relative position relationship between different body parts, to obtain a body architecture model; then determining a body movement of the target character in the target video clip according to the body architecture model.

### Claim 13 (depends on 11)

The method according to claim 11, wherein the performing picture content analysis on one or more target video clips comprising the target character in the first video comprises: for one target video clip of the one or more target video clips:
obtaining movement direction change information and size change information of a target object in the target video clip; and determining a camera shooting mode corresponding to the target video clip according to the movement direction change information and the size change information of the target object in the target video clip.

### Claim 14 (depends on 11)

The method according to claim 11, wherein the performing picture content analysis on one or more target video clips comprising the target character in the first video comprises: for one target video clip of the one or more target video clips:
recognizing voice data of the target character in the target video clip, to obtain a character dialog of the target character in the target video clip.

### Claim 15 (depends on 2)

The method according to claim 2, further comprising:
displaying an error prompt message on the shooting interface when a video picture currently shot by a camera does not match the prompt message currently displayed.

### Claim 16

A video generation apparatus, comprising: a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor to implement:
performing video shooting in response to a trigger operation for a video duet option;
obtaining a second video currently shot, the second video corresponding to a video clip comprising a target character in a first video; and
fusing the second video into video content of the first video based on one or more characters recognized in the first video, to obtain a duet video, the one or more characters including the target character.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein the processor is further configured to perform:
obtaining a prompt message based on recognition of picture content of the first video, the prompt message being used for instructing the video shooting of the second video; and
displaying the prompt message on a shooting interface during the video shooting of the second video.

### Claim 18 (depends on 16)

The apparatus according to claim 16, wherein the fusing the second video into video content of the first video, to obtain a duet video comprises:
replacing the video clip comprising the target character in the first video with the second video when the first video does not comprise a same-frame picture that includes the target character and at least one other character of the one or more recognized characters.

### Claim 19 (depends on 16)

The apparatus according to claim 16, wherein the fusing the second video into video content of the first video, to obtain a duet video comprises:
replacing a facial image of the target character in the same-frame picture with a user facial image in the second video when the first video comprises a same-frame picture that includes the target character and at least one other character of the one or more recognized characters.

### Claim 20

A non-transitory storage medium, storing at least one piece of program code, the at least one piece of program code being loaded and executed by a processor to implement:
performing video shooting in response to a trigger operation for a video duet option;
obtaining a second video currently shot, the second video corresponding to a video clip comprising a target character in a first video; and
fusing the second video into video content of the first video based on one or more characters recognized in the first video, to obtain a duet video, the one or more characters including the target character.
