Back to results
US 11,368,746 B2Granted
Method and device for generating special effect program file package, method and device for generating special effect, and electronic device
AssigneeBeijing Sensetime Technology Development Co., Ltd.
InventorsQinqin Xu, Zhanpeng Li
Life of this patent
Estimating the term…
Abstract
A method for generating a special effect program file package includes: importing a group of sub-materials, where the group of sub-materials include a plurality of sub-materials; obtaining parameter values of playback parameters of the group of sub-materials; and generating a special effect program file package according to the group of sub-materials and the parameter values of the playback parameters.
Claims25
A method for generating a special effect program file package, comprising:
- importing a group of sub-materials, wherein the group of sub-materials comprises a plurality of sub-materials;
- obtaining parameter values of playback parameters of the group of sub-materials;
- and generating the special effect program file package according to the group of sub-materials and the parameter values of the playback parameters, wherein the playback parameters of the group of sub-materials comprise the following:
- a display parameter, used for representing whether the plurality of sub-materials are displayed;
- an interval parameter, used for representing a number of frames spaced between two adjacent sub-materials in the plurality of sub-materials for display;
- a trigger action parameter, used for representing a trigger action for triggering display of the plurality of sub-materials;
- a loop parameter, used for representing a number of times of loop playback of the plurality of sub-materials;
- a trigger delay parameter, used for representing an amount of time for which a display of the plurality of sub-materials is delayed;
- a trigger stop parameter, used for representing an action for stopping the display of the plurality of sub-materials;
- a display scale parameter, used for representing a reference basis for a change in a display size of the plurality of sub-materials;
- a position type parameter, used for representing a type of a relationship between each of the plurality of sub-materials and a respective position;
- a position relation parameter, used for representing whether the plurality of sub-materials move with a preset reference part;
- a position parameter, used for representing a position binding relationship between each of the plurality of sub-materials and a respective preset key point;
- a rotation parameter, used for representing a key point around which the plurality of sub-materials rotate;
- and a beautifying/make-up effect parameter, used for representing a beautifying/make-up effect displayed at a preset part when the sub-materials are displayed.
12 more elements
A method for generating a special effect, comprising:
- obtaining parameter values of playback parameters of at least one group of sub-materials in a special effect program file package, wherein the at least one group of sub-materials comprises a plurality of sub-materials;
- performing key-point detection on a video image;
- and
- generating a special effect based on the at least one group of sub-materials on the video image according to detected key points and the parameter values of the playback parameters of the at least one group of sub-materials,
- the method further comprises:
- importing the special effect program file package,
- wherein importing the special effect program file package comprises:
- reading the special effect program file package to a memory by invoking a first interface function for reading a sticker material;
- and parsing the special effect program file package to obtain the at least one group of sub-materials and a special effect program file, wherein the special effect program file comprises the parameter values of the playback parameters of the at least one group of sub-materials.
6 more elements
An electronic device, comprising:
- a memory storing processor-executable instructions;
- and a processor arranged to execute the stored processor-executable instructions to perform operations of:
- importing a group of sub-materials, wherein the group of sub-materials comprises a plurality of sub-materials, obtaining parameter values of playback parameters of the group of sub-materials, and generating a special effect program file package according to the group of sub-materials and the parameter values of the playback parameters;
- or, obtaining parameter values of playback parameters of at least one group of sub-materials in the special effect program file package, wherein the at least one group of sub-materials comprises a plurality of sub-materials, performing key-point detection on a video image, and generating a special effect based on the at least one group of sub-materials on the video image according to detected key points and the parameter values of the playback parameters of the at least one group of sub-materials, wherein the playback parameters of the group of sub-materials comprise the following:
- a display parameter, used for representing whether the plurality of sub-materials are displayed;
- an interval parameter, used for representing a number of frames spaced between two adjacent sub-materials in the plurality of sub-materials for display;
- a trigger action parameter, used for representing a trigger action for triggering display of the plurality of sub-materials;
- a loop parameter, used for representing a number of times of loop playback of the plurality of sub-materials;
- a trigger delay parameter, used for representing an amount of time for which a display of the plurality of sub-materials is delayed;
- a trigger stop parameter, used for representing an action for stopping the display of the plurality of sub-materials;
- a display scale parameter, used for representing a reference basis for a change in a display size of the plurality of sub-materials;
- a position type parameter, used for representing a type of a relationship between each of the plurality of sub-materials and a respective position;
- a position relation parameter, used for representing whether the plurality of sub-materials move with a preset reference part;
- a position parameter, used for representing a position binding relationship between each of the plurality of sub-materials and a respective preset key point;
- a rotation parameter, used for representing a key point around which the plurality of sub-materials rotate;
- and a beautifying/make-up effect parameter, used for representing a beautifying/make-up effect displayed at a preset part when the sub-materials are displayed.
13 more elements
Dependencies are inferred from the claim text.