IP Library Granted Patent US 12665981
Granted Patent B2
US 12665981 · App. 18/364,003 · Granted Jun 23, 2026

Special-effect display method and apparatus, and device and medium

Inventors: Xiaogeng Zhang (Beijing, CN); Yahan Liang (Beijing, CN)
Assignee: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
H04N5/272G06T5/20G06T5/50G06T7/70G06T11/23G06T2207/20221G06T2207/30201
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 12665981
App. No.
18/364,003
Granted
Jun 23, 2026
Kind
B2
Abstract

A special-effect display method and apparatus, and a device and a medium are provided. The method includes: acquiring a photographed video image; determining position information of a recognition object on the basis of the photographed video image, and performing drawing according to the position information of the recognition object, so as to obtain a trajectory record image; performing superimposition processing on the trajectory record image and a preset special-effect material image, so as to obtain cell special-effect images; and performing transformation processing on the cell special-effect images, so as to generate a target special-effect image, and adding the target special-effect image to the photographed video image for displaying, wherein the target special-effect image is an image formed by combining a plurality of cell special-effect images.

Claims (53)

1 . A special effect display method, comprising:

obtaining images of a captured video;

determining position information of a recognition object based on the images of the captured video, and drawing a trajectory recording image based on the position information of the recognition object;

performing superposition processing on the trajectory recording image and a preset special effect material image to obtain a unit special effect image, wherein the unit special effect image comprises the trajectory recording image and the preset special effect material image used as a background of the trajectory recording image;

performing transformation operation to the unit special effect image to obtain at least one transformed unit special effect image; using the unit special effect image and the at least one transformed unit special effect image as a plurality of display units; combining the plurality of display units to generate a target special effect image comprising the plurality of display units; and

adding the target special effect image to the images of the captured video, to display the target special effect image in an animation mode,

wherein the plurality of display units are displayed in different transparencies in a process of displaying the target special effect image, and the plurality of display units are displayed in a same transparency in response to the target special effect image being displayed fully.

2 . The method according to claim 1 , wherein the superposition processing is used to replace a background of the trajectory recording image with the special effect material image.

3 . The method according to claim 1 , further comprising:

displaying the target special effect image in real-time on the images of the captured video in a process of drawing the trajectory recording image.

4 . The method according to claim 3 , wherein the displaying the target special effect image in real-time in a process of drawing the trajectory recording image comprises:

setting transparency of other areas in the target special effect image except the plurality of display units to transparent in the process of drawing the trajectory recording image, to obtain a special effect image to be displayed; and

superposing the special effect image to be displayed on the images of the captured video for display.

5 . The method according to claim 1 , wherein the recognition object is a preset part of a human face, and the target special effect image is a special effect image of paper-cut.

6 . The method according to claim 1 , wherein the drawing a trajectory recording image based on the position information of the recognition object comprises:

creating a canvas, and drawing in the canvas circular areas at two positions corresponding to the recognition object based on the position information of the recognition object in first and second frame images of the captured video;

determining a target line connecting the two positions, and determining a trajectory area based on the target line, wherein a distance of each point in the trajectory area to the target line is less than or equal to a radius of the circular area; and

setting transparencies of the two circular areas and the trajectory area to transparent, to obtain the trajectory recording image.

7 . The method according to claim 6 , wherein the determining a trajectory area based on the target line comprises:

determining a target point between the two positions, filtering out and drawing the target point based on a distance of the target point to the target line, to obtain the trajectory area, wherein an angle between a first line corresponding to the target point and the target line and an angle between a second line corresponding to the target point and the target line are both acute angles, and the first line and the second line are lines respectively connecting the target point and the two positions.

8 . The special effect display method according to claim 1 , wherein the transformation processing comprises a first transformation operation or a second transformation operation, wherein the first transformation operation comprises a replication operation and a mirroring operation, and the second transformation operation comprises a rotation operation and a moving operation.

9 . The method according to claim 8 , wherein at least one of replication times corresponding to the replication operation, a rotation angle corresponding to the rotation operation, an image position, or an image size is adjustable.

10 . An electronic device, comprising:

a processor; and

a memory for storing instructions executable by the processor;

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

obtain images of a captured video;

determine position information of a recognition object based on the images of the captured video, and draw a trajectory recording image based on the position information of the recognition object;

perform superposition processing on the trajectory recording image and a preset special effect material image to obtain a unit special effect image, wherein the unit special effect image comprises the trajectory recording image and the preset special effect material image used as a background of the trajectory recording image;

perform transformation operation to the unit special effect image to obtain at least one transformed unit special effect image; use the unit special effect image and the at least one transformed unit special effect image as a plurality of display units; combine the plurality of display units to generate a target special effect image, and

add the target special effect image to the images of the captured video, to display the target special effect image in an animation mode,

wherein the plurality of display units are displayed in different transparencies in a process of displaying the target special effect image, and the plurality of display units are displayed in a same transparency in response to the target special effect image being displayed fully.

11 . The electronic device according to claim 10 , wherein the superposition processing is used to replace a background of the trajectory recording image with the special effect material image.

12 . The electronic device according to claim 10 , wherein the processor is configured to read the instructions from the memory and execute the instructions to:

display the target special effect image in real-time on the images of the captured video in a process of drawing the trajectory recording image.

13 . The electronic device according to claim 12 , wherein the processor is configured to read the instructions from the memory and execute the instructions to:

set transparency of other areas in the target special effect image except the plurality of display units to transparent in the process of drawing the trajectory recording image, to obtain a special effect image to be displayed; and

superpose the special effect image to be displayed on the images of the captured video for display.

14 . The electronic device according to claim 10 , wherein the processor is configured to read the instructions from the memory and execute the instructions to:

create a canvas, and draw in the canvas circular areas at two positions corresponding to the recognition object based on the position information of the recognition object in first and second frame images of the captured video;

determine a target line connecting the two positions, and determine a trajectory area based on the target line, wherein a distance of each point in the trajectory area to the target line is less than or equal to a radius of the circular area; and

set transparencies of the two circular areas and the trajectory area to transparent, to obtain the trajectory recording image.

15 . The electronic device according to claim 14 , wherein the processor is configured to read the instructions from the memory and execute the instructions to:

determine a target point between the two positions, filter out and draw the target point based on a distance of the target point to the target line, to obtain the trajectory area, wherein an angle between a first line corresponding to the target point and the target line and an angle between a second line corresponding to the target point and the target line are both acute angles, and the first line and the second line are lines respectively connecting the target point and the two positions.

16 . The electronic device according to claim 10 , wherein the transformation processing comprises a first transformation operation or a second transformation operation, wherein the first transformation operation comprises a replication operation and a mirroring operation, and the second transformation operation comprises a rotation operation and a moving operation.

17 . The electronic device according to claim 16 , wherein at least one of replication times corresponding to the replication operation, a rotation angle corresponding to the rotation operation, an image position, or an image size is adjustable.

18 . A non-transitory computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to:

obtain images of a captured video;

determine position information of a recognition object based on the images of the captured video, and draw a trajectory recording image based on the position information of the recognition object;

perform superposition processing on the trajectory recording image and a preset special effect material image to obtain a unit special effect image, wherein the unit special effect image comprises the trajectory recording image and the preset special effect material image used as a background of the trajectory recording image;

perform transformation operation to the unit special effect image to obtain at least one transformed unit special effect image; using the unit special effect image and the at least one transformed unit special effect image as a plurality of display units; combining the plurality of display units to generate a target special effect image; and

add the target special effect image to the images of the captured video, to display the target special effect image in an animation mode,

wherein the plurality of display units are displayed in different transparencies in a process of displaying the target special effect image, and the plurality of display units are displayed in a same transparency in response to the target special effect image being displayed fully.