Generation of special effects program file package and special effects generation method and device

By automatically generating makeup and/or face-swapping effects program files, the complexity and error problems caused by manually writing program files are solved, achieving efficient and accurate effects generation and improving user experience and immersion.

CN113658298BActive Publication Date: 2024-09-17BEIJING SENSETIME TECH DEV CO LTD
View PDF 19 Cites 0 Cited by

Patent Information

Application Number
CN202110977497.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-05-02
Publication Date
2024-09-17
Estimated Expiration
2038-05-02

AI Technical Summary

Technical Problem

Existing technologies require manually writing program files to generate beauty and/or face-swapping effects, which is complex, error-prone, and results in low efficiency and insufficient accuracy.

Method used

By generating a makeup and/or face-swapping effects program file package, key points on the reference image are displayed, makeup and/or face-swapping sub-materials are imported, and parameter values ​​of the effects parameters are obtained. The correspondence between the display attributes of the sub-materials and the key points is established, and an effects program file executable by the rendering engine is automatically generated.

Benefits of technology

The process has been simplified, the generation efficiency has been improved, manual writing errors have been avoided, the accuracy of special effects and overall efficiency have been ensured, and the user experience and immersion have been enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113658298B
    Figure CN113658298B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and device for generating a special effect program file package and generating special effects, wherein the method for generating the special effect program file package includes: displaying a reference image and preset key points on the reference image; importing beauty makeup and / or face-changing sub-materials, and displaying the imported beauty makeup and / or face-changing sub-materials; obtaining parameter values ​​of special effect parameters of beauty makeup and / or face-changing sub-materials, and establishing a corresponding relationship between display attributes of beauty makeup and / or face-changing sub-materials and key points within the display position coverage range; generating a beauty makeup and / or face-changing special effect program file package according to the beauty makeup and / or face-changing sub-materials, parameter values ​​of special effect parameters and corresponding relationship. The embodiment of the present invention can generate beauty makeup and / or face-changing special effect program files executable by a rendering engine without manually writing program files, thereby improving the overall efficiency of special effect realization and avoiding errors that may occur in manually writing program files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to artificial intelligence technology, and in particular to a method and device for generating a special effect program file package and generating special effects. Background Art

[0002] Augmented Reality (AR) is a new technology that seamlessly integrates real-world information and virtual-world information. It simulates and superimposes virtual information on physical information that was originally within a certain time and space range in the real world, applies virtual information to the real world, and superimposes real-world characters, environments, and virtual objects on the same screen or space in real time, thereby achieving a sensory experience beyond reality. Summary of the invention

[0003] The embodiment of the present invention provides a technical solution for generating a beauty makeup and / or face-changing special effects program file package, and generating beauty makeup and / or face-changing special effects.

[0004] According to one aspect of an embodiment of the present invention, a method for generating a beauty and / or face-changing special effects program file package is provided, comprising:

[0005] Displaying a reference image and key points preset on the reference image; the reference image includes: an image of at least a portion of a reference person;

[0006] Importing makeup and / or face-changing sub-materials, and displaying the imported makeup and / or face-changing sub-materials;

[0007] Acquire parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, wherein the special effect parameters include superposition mode parameters, and establish a correspondence between display attributes of the makeup and / or face-changing sub-material and key points within a display position coverage range; the display attributes include: size and / or display position;

[0008] A makeup and / or face-changing special effect program file package is generated according to the makeup and / or face-changing sub-material, the parameter value of the special effect parameter and the corresponding relationship.

[0009] Optionally, in the methods for generating the makeup and / or face-changing special effects program file packages in the above-mentioned embodiments, at least a portion of the image of the reference person includes any one or more of the following parts of the image of the reference person: a complete image, a head image, a face image, a shoulder image, an arm image, a gesture image, a waist image, a leg image, and a foot image.

[0010] Optionally, in the method for generating the makeup and / or face-changing special effects program file package in the above-mentioned embodiments, the makeup and / or face-changing sub-materials include: makeup and / or face-changing sub-materials for one part of a character, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a character.

[0011] Optionally, in the method for generating the makeup and / or face-changing special effects program file package in the above-mentioned embodiments, the preset key points include any one or more of the following: head key points, face key points, shoulder key points, arm key points, gesture key points, waist key points, leg key points, foot key points, and human skeleton key points.

[0012] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the head key points include at least one of the following: a top key point, a nose tip key point, and a chin key point; and / or

[0013] The facial key points include at least one of the following: facial contour key points, eye key points, eyebrow key points, nose key points, mouth key points; and / or

[0014] The shoulder key points include at least one of the following: a shoulder-head intersection key point located at the intersection of the shoulder and the head, and a shoulder contour midpoint key point located at the midpoint between the arm root contour key point and the shoulder-head intersection key point; and / or

[0015] The arm key points include at least one of the following: a wrist contour key point, an elbow contour key point, an arm root contour key point, a forearm contour midpoint key point located at the midpoint between the wrist contour key point and the elbow contour key point, and an upper arm midpoint key point located at the midpoint between the elbow contour key point and the arm root contour key point; and / or

[0016] The gesture key points include at least one of the following: four vertex key points of the gesture frame, and a center key point of the gesture frame; and / or

[0017] The leg key points include at least one of the following: a crotch key point, a knee contour key point, an ankle contour key point, a thigh root outer contour key point, a calf contour midpoint key point located at the midpoint between the knee contour key point and the ankle contour key point, a thigh inner contour midpoint key point located at the midpoint between the knee contour key point and the crotch key point, and a thigh outer contour midpoint key point located at the midpoint between the knee contour key point and the thigh root outer contour key point; and / or

[0018] The waist key points include at least one of the following: N equally divided points generated by dividing the area between the thigh root outer contour key point and the arm root contour key point into N equally divided points; wherein N is greater than 1; and / or

[0019] The foot key points include at least one of the following: a toe key point and a heel key point; and / or

[0020] The human skeleton key points include at least one of the following: right shoulder bone key points, right elbow bone key points, right wrist bone key points, left shoulder bone key points, left elbow bone key points, left wrist bone key points, right hip bone key points, right knee bone key points, right ankle bone key points, left hip bone key points, left knee bone key points, left ankle bone key points, top of the head bone key points, and neck bone key points.

[0021] Optionally, in the method for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the eye key points include at least one of the following: a left eye socket key point, a left eye pupil center key point, a left eye center key point, a right eye socket key point, a right eye pupil center key point, and a right eye center key point; and / or

[0022] The eyebrow key points include at least one of the following: a left eyebrow key point and a right eyebrow key point; and / or

[0023] The nose key points include at least one of the following: a nose bridge key point, a nose lower edge key point, and a nose outer contour key point; and / or

[0024] The mouth key points include at least one of the following: an upper lip key point, and a lower lip key point.

[0025] Optionally, in the methods for generating the makeup and / or face-changing special effects program file packages in the above embodiments, the step of importing the makeup and / or face-changing sub-materials includes:

[0026] An import instruction input through the interactive interface of the operation bar is received, and the beauty makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction are imported.

[0027] Optionally, in the methods for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the step of receiving an import instruction input through an interactive interface of the operation bar and importing the makeup and / or face-changing sub-material in a material folder pointed to by the import instruction includes:

[0028] Receiving a selection instruction sent through the interactive interface of the operation bar, taking the reference part selected by the selection instruction as the target part to which beauty makeup and / or face-changing special effects are currently added, and displaying a special effects parameter setting interface under the target part on the operation bar;

[0029] An import instruction sent through the interactive interface in the special effect parameter setting interface is received, and the beauty makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction are imported.

[0030] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, importing the makeup and / or face-changing sub-material in the material folder pointed to by the import instruction includes:

[0031] Receiving an import instruction sent through the interactive interface, and acquiring and displaying a material folder pointed to by the import instruction;

[0032] In response to receiving a beauty makeup and / or face-changing sub-material selection operation in the material folder, importing one or more beauty makeup and / or face-changing sub-materials selected by the beauty makeup and / or face-changing sub-material selection operation; and / or

[0033] In response to not receiving an operation of selecting a beauty makeup and / or face-changing sub-material in the material folder, selecting one or more beauty makeup and / or face-changing sub-materials in the material folder according to a preset setting, and importing the beauty makeup and / or face-changing sub-materials selected according to the preset setting;

[0034] The multiple makeup and / or face-changing sub-materials form a group of makeup and / or face-changing sub-materials with a predetermined playback timing.

[0035] Optionally, in the methods for generating the makeup and / or face-changing special effects program file package in the above-mentioned embodiments, the playback timing of multiple makeup and / or face-changing sub-materials in the group of makeup and / or face-changing sub-materials is determined based on the file names of the multiple makeup and / or face-changing sub-materials.

[0036] Optionally, in the methods for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the step of displaying the imported makeup and / or face-changing sub-materials includes:

[0037] According to the parameter value of the superposition method, the imported makeup and / or face-changing sub-material is displayed on the target part.

[0038] Optionally, in the methods for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the step of obtaining parameter values ​​of special effects parameters of the makeup and / or face-changing sub-material includes:

[0039] In response to receiving a parameter value set for a special effect parameter of the beauty makeup and / or face-changing sub-material sent through an interactive interface of the operation bar, using the set parameter value as the parameter value of the special effect parameter of the beauty makeup and / or face-changing sub-material; and / or

[0040] In response to not receiving parameter values ​​for the special effect parameter settings for the makeup and / or face-changing sub-material sent through the interactive interface of the operation bar, using preset parameter values ​​as parameter values ​​for the special effect parameters of the makeup and / or face-changing sub-material.

[0041] Optionally, in the methods for generating the makeup and / or face-changing special effects program file packages in the above embodiments, the special effects parameters include any one or more of the following:

[0042] Display parameter: used to indicate whether to display the makeup and / or face-changing sub-materials;

[0043] Overlay method parameter: used to indicate the overlay method of the makeup and / or face-changing sub-materials;

[0044] Trigger mode parameter: used to indicate a trigger event for triggering the display of the makeup and / or face-changing sub-material;

[0045] Loop parameter: used to indicate the number of times the makeup and / or face-changing sub-material is displayed in a loop;

[0046] Playback frame number parameter: used to indicate the number of frames for playing the makeup and / or face-changing sub-material;

[0047] Delay trigger parameter: used to indicate the time for delaying display of the makeup and / or face-changing sub-material;

[0048] Trigger end parameter: used to indicate a trigger event for ending the display of the makeup and / or face-changing sub-material;

[0049] Deformation special effect parameter: used to indicate the deformation effect of generating a deformation area on the image when displaying the makeup and / or face-changing sub-material;

[0050] Sticker special effect parameters, used to indicate the special effects of the sub-material generated on the image when displaying the makeup and / or face-changing sub-material;

[0051] The stroke special effect parameter is used to indicate that a stroke special effect is generated on an image when displaying the makeup and / or face-changing sub-material.

[0052] Optionally, in the method for generating the makeup and / or face-changing special effects program file package in the above-mentioned embodiments, the trigger event includes any one or more of the following: no action trigger, eye movement, head movement, eyebrow movement, hand movement, mouth movement, shoulder movement, deformation special effects, sticker special effects, sound special effects, and stroke special effects.

[0053] Optionally, in the method for generating the makeup and / or face-changing special effects program file package in each of the above embodiments, establishing a correspondence between the display attributes of the makeup and / or face-changing sub-material and the key points within the display position coverage range includes:

[0054] A correspondence between the display attributes of the makeup and / or face-changing sub-material and at least two key points within the display position coverage range is established.

[0055] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the method further includes:

[0056] In response to receiving the start instruction, displaying an operation interface, the operation interface including: an operation bar, a content display bar and / or a program file bar;

[0057] The displaying of the reference image and the key points preset on the reference image comprises: displaying the reference image and the key points preset on the reference image in the content display bar;

[0058] The displaying of the imported beauty makeup and / or face-changing sub-materials includes: displaying the imported beauty makeup and / or face-changing sub-materials in the content display bar.

[0059] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the operation interface includes three areas: the left side, the middle and the right side;

[0060] The display operation interface includes:

[0061] The operation bar is displayed on the left side of the operation interface, the content display bar is displayed in the middle of the operation interface, and the program file bar is displayed on the right side of the operation interface.

[0062] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the method further includes:

[0063] According to the position movement operation of the beauty makeup and / or face-changing sub-material received through the content display bar, the display position of the beauty makeup and / or face-changing sub-material and the corresponding relationship are updated.

[0064] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the method further includes:

[0065] According to the size adjustment operation of the beauty makeup and / or face-changing sub-material received through the content display bar, the display size of the beauty makeup and / or face-changing sub-material in the content display bar is updated.

[0066] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the method further includes:

[0067] According to the layer parameter adjustment instruction sent for two or more beauty makeup and / or face-changing sub-materials received through the interactive interface of the operation bar, the occlusion relationship between the two or more beauty makeup and / or face-changing sub-materials is adjusted, and the two or more beauty makeup and / or face-changing sub-materials are displayed according to the adjusted occlusion relationship and the parameter value of the superposition method of the two or more beauty makeup and / or face-changing sub-materials.

[0068] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, before generating the makeup / face-changing special effects program file package, the method further includes:

[0069] According to the pre-set special effects program file and the parameter values ​​of the special effects parameters of the makeup and / or face-changing sub-material, and the corresponding relationship, the special effects program file of the makeup and / or face-changing sub-material is generated, and the special effects program file of the makeup and / or face-changing sub-material is displayed through the program file bar.

[0070] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the special effects program file includes: a special effects program file generated by a json program.

[0071] Optionally, in the method for generating a beauty makeup and / or face-changing special effects program file package in each of the above embodiments, after generating the beauty makeup and / or face-changing special effects program file package, the method further includes:

[0072] According to the received saving instruction, the makeup and / or face-changing special effects program file package is saved at the location pointed to by the saving instruction.

[0073] Optionally, in the methods for generating a beauty makeup and / or face-changing special effects program file package in the above embodiments, saving the beauty makeup and / or face-changing special effects program file package at a location pointed to by the saving instruction according to the received saving instruction includes:

[0074] In response to receiving the save instruction, displaying a save path selection interface and a compression interface;

[0075] Receiving the save location sent through the save path selection interface; and receiving the compression method sent based on the compression interface, and compressing the beauty makeup and / or face-changing special effects program file package according to the compression method to generate a compressed file package;

[0076] The compressed file package is stored in the folder pointed to by the saving location.

[0077] Optionally, in the method for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the size of the makeup and / or face-changing sub-material in the makeup and / or face-changing special effects program file package is maintained at the size before the makeup and / or face-changing sub-material is imported.

[0078] According to another aspect of an embodiment of the present invention, a method for generating beauty makeup and / or face-changing special effects is provided, comprising:

[0079] Obtaining a makeup and / or face-changing sub-material, parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, and a correspondence between display attributes and key points of the makeup and / or face-changing sub-material; the display attributes include: size and / or display position;

[0080] Based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters, the special effects of the makeup and / or face-changing sub-material are generated on the image.

[0081] Optionally, in the makeup and / or face-changing special effects generating methods of the above-mentioned embodiments, the makeup and / or face-changing sub-materials include: makeup and / or face-changing sub-materials for one part of a character, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a character.

[0082] Optionally, in the makeup and / or face-changing special effects generating methods of the above embodiments, the image includes any one or more of the following: a static image, an image in a video.

[0083] Optionally, in the makeup and / or face-changing special effects generation method in each of the above embodiments, the method further includes:

[0084] Importing a beauty makeup and / or face-changing special effects program file package; the beauty makeup and / or face-changing special effects program file package includes: the beauty makeup and / or face-changing sub-material, parameter values ​​of special effects parameters of the beauty makeup and / or face-changing sub-material, and a correspondence between display attributes and key points of the beauty makeup and / or face-changing sub-material;

[0085] The obtaining of makeup and / or face-changing sub-materials, parameter values ​​of special effect parameters of the makeup and / or face-changing sub-materials, and the correspondence between display attributes and key points of the makeup and / or face-changing sub-materials includes: obtaining the makeup and / or face-changing sub-materials, parameter values ​​of the special effect parameters, and the correspondence from the makeup and / or face-changing special effect program file package.

[0086] Optionally, in the makeup and / or face-changing special effects generating method of the above-mentioned embodiments, the makeup and / or face-changing special effects program file package is a makeup and / or face-changing special effects program file package generated by the makeup and / or face-changing special effects program file package generating method described in any of the above-mentioned embodiments.

[0087] Optionally, in the makeup and / or face-changing special effects generation method in each of the above embodiments, the method further includes:

[0088] The key points involved in the corresponding relationship are detected on the image through a neural network, and the key point detection result is output.

[0089] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the key point detection result includes any one or more of the following:

[0090] The positions of the key points involved in the corresponding relationship in the images in the video;

[0091] The preset numbers of the key points involved in the corresponding relationship.

[0092] Optionally, in the makeup and / or face-changing special effects generating method of each of the above embodiments, the makeup and / or face-changing sub-materials include: a group of makeup and / or face-changing sub-materials with a predetermined playback timing.

[0093] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effects parameters includes:

[0094] Determining a playback timing of the plurality of beauty makeup and / or face-changing sub-materials in the set of beauty makeup and / or face-changing sub-materials based on the file names of the plurality of beauty makeup and / or face-changing sub-materials;

[0095] Based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters, the special effects of the makeup and / or face-changing sub-materials are generated on the image according to the determined playback sequence.

[0096] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameters include: a superposition method parameter for indicating a superposition method of the makeup and / or face-changing sub-materials.

[0097] Optionally, in the makeup and / or face-changing special effect generation method of each of the above embodiments, the special effect parameter includes: a display parameter, the display parameter is used to indicate whether to display the makeup and / or face-changing sub-material;

[0098] The generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters includes:

[0099] In response to the parameter value of the display parameter being the parameter value for displaying the makeup and / or face-changing sub-material, the special effects of the makeup and / or face-changing sub-material are generated on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter.

[0100] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameters include: a trigger mode parameter, the trigger mode parameter is used to indicate a trigger event for triggering display of the makeup and / or face-changing sub-material;

[0101] The method further comprises: detecting whether a trigger event corresponding to the parameter value of the trigger mode parameter appears in the image;

[0102] The generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters includes:

[0103] In response to detecting a trigger event corresponding to the parameter value of the trigger mode parameter appearing in the image, the special effects of the makeup and / or face-changing sub-material are generated on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter.

[0104] Optionally, in the makeup and / or face-changing special effect generation method of each of the above embodiments, the special effect parameters include: a delay trigger parameter, the delay trigger parameter is used to indicate the time for delaying the display of the makeup and / or face-changing sub-material;

[0105] The generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters includes:

[0106] In response to satisfying the display conditions of the makeup and / or face-changing sub-materials, the special effects of the makeup and / or face-changing sub-materials are delayed in generating on the image according to the delayed playback time corresponding to the parameter value of the delay trigger parameter, based on the correspondence, the key points in the image involved in the correspondence and the parameter value of the special effect parameter; the display conditions of the makeup and / or face-changing sub-materials include: the parameter value of the display parameter is used to display the makeup and / or face-changing sub-materials, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0107] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameter includes: a loop parameter, the loop parameter is used to indicate the number of loop playbacks of the makeup and / or face-changing sub-material;

[0108] The generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters includes:

[0109] In response to satisfying the display condition of the beauty makeup and / or face-changing sub-material, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, the beauty makeup and / or face-changing sub-material is loopedly displayed on the image according to the number of loops corresponding to the parameter value of the loop parameter to generate the special effects of the beauty makeup and / or face-changing sub-material; the display condition of the beauty makeup and / or face-changing sub-material includes: the parameter value of the display parameter is used to display the beauty makeup and / or face-changing sub-material, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0110] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameter includes: a playback frame number parameter, the playback frame number parameter is used to indicate how many frames the makeup and / or face-changing sub-material is played;

[0111] The generating the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters includes:

[0112] In response to satisfying the playback conditions of the beauty and / or face-changing sub-material, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, the special effects of the beauty and / or face-changing sub-material are generated on the image corresponding to the playback frame number in the video according to the playback frame number corresponding to the parameter value of the playback frame number parameter; the display conditions for satisfying the beauty and / or face-changing sub-material include: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-material, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0113] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameters include: a trigger end parameter, the trigger end parameter is used to indicate a trigger event for ending display of the makeup and / or face-changing sub-material;

[0114] The method further comprises:

[0115] Detecting whether a trigger event corresponding to the parameter value of the trigger end parameter occurs;

[0116] In response to detecting the occurrence of a trigger event corresponding to the parameter value of the trigger end parameter, stopping generating the special effects of the makeup and / or face-changing sub-material.

[0117] Optionally, in the makeup and / or face-changing special effect generation method of each of the above embodiments, the special effect parameters include: deformation special effect parameters, the deformation special effect parameters are used to indicate the deformation effect of generating a deformation area on an image when displaying the makeup and / or face-changing sub-material;

[0118] The method further comprises:

[0119] Based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, when the special effects of the makeup and / or face-changing sub-materials are generated on the image, the deformation effect of the deformation area is generated in the image according to the deformation special effect parameters.

[0120] Optionally, in the makeup and / or face-changing special effects generation method of each of the above embodiments, the special effects parameters include: sticker special effects parameters, the sticker special effects parameters are used to indicate the special effects of the sub-material generated on the image when displaying the makeup and / or face-changing sub-material;

[0121] The method further comprises:

[0122] Based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, when generating the special effects of the makeup and / or face-changing sub-material on the image, the special effects of the sub-material are generated in the image according to the sticker special effect parameters.

[0123] According to another aspect of an embodiment of the present invention, a device for generating a beauty and / or face-changing special effects program file package is provided, comprising:

[0124] A display module is used to display a reference image and key points preset on the reference image; the reference image includes: at least a portion of an image of a reference person; and to display imported makeup and / or face-changing sub-materials;

[0125] The first import module is used to import makeup and / or face-changing sub-materials;

[0126] A first acquisition module, used to acquire parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, wherein the special effect parameters include superposition mode parameters;

[0127] An establishing module, used to establish a correspondence between the display attributes of the makeup and / or face-changing sub-material and key points within the display position coverage range; the display attributes include: size and / or display position;

[0128] The first generation module is used to generate a beauty makeup and / or face-changing special effect program file package according to the beauty makeup and / or face-changing sub-material, the parameter value of the special effect parameter and the corresponding relationship.

[0129] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of the above-mentioned embodiments, at least a portion of the image of the reference character includes any one or more of the following parts of the image of the reference character: a complete image, a head image, a face image, a shoulder image, an arm image, a gesture image, a waist image, a leg image, and a foot image.

[0130] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above-mentioned embodiments, the makeup and / or face-changing sub-materials include: makeup and / or face-changing sub-materials for one part of a character, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a character.

[0131] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package of the above-mentioned embodiments, the preset key points include any one or more of the following: head key points, face key points, shoulder key points, arm key points, gesture key points, waist key points, leg key points, foot key points, and human skeleton key points.

[0132] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the head key points include at least one of the following: a top key point, a nose tip key point, and a chin key point; and / or

[0133] The facial key points include at least one of the following: facial contour key points, eye key points, eyebrow key points, nose key points, mouth key points; and / or

[0134] The shoulder key points include at least one of the following: a shoulder-head intersection key point located at the intersection of the shoulder and the head, and a shoulder contour midpoint key point located at the midpoint between the arm root contour key point and the shoulder-head intersection key point; and / or

[0135] The arm key points include at least one of the following: a wrist contour key point, an elbow contour key point, an arm root contour key point, a forearm contour midpoint key point located at the midpoint between the wrist contour key point and the elbow contour key point, and an upper arm midpoint key point located at the midpoint between the elbow contour key point and the arm root contour key point; and / or

[0136] The gesture key points include at least one of the following: four vertex key points of the gesture frame, and a center key point of the gesture frame; and / or

[0137] The leg key points include at least one of the following: a crotch key point, a knee contour key point, an ankle contour key point, a thigh root outer contour key point, a calf contour midpoint key point located at the midpoint between the knee contour key point and the ankle contour key point, a thigh inner contour midpoint key point located at the midpoint between the knee contour key point and the crotch key point, and a thigh outer contour midpoint key point located at the midpoint between the knee contour key point and the thigh root outer contour key point; and / or

[0138] The waist key points include at least one of the following: N equally divided points generated by dividing the area between the thigh root outer contour key point and the arm root contour key point into N equally divided points; wherein N is greater than 1; and / or

[0139] The foot key points include at least one of the following: a toe key point and a heel key point; and / or

[0140] The human skeleton key points include at least one of the following: right shoulder bone key points, right elbow bone key points, right wrist bone key points, left shoulder bone key points, left elbow bone key points, left wrist bone key points, right hip bone key points, right knee bone key points, right ankle bone key points, left hip bone key points, left knee bone key points, left ankle bone key points, top of the head bone key points, and neck bone key points.

[0141] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the eye key points include at least one of the following: a left eye socket key point, a left eye pupil center key point, a left eye center key point, a right eye socket key point, a right eye pupil center key point, and a right eye center key point; and / or

[0142] The eyebrow key points include at least one of the following: a left eyebrow key point and a right eyebrow key point; and / or

[0143] The nose key points include at least one of the following: a nose bridge key point, a nose lower edge key point, and a nose outer contour key point; and / or

[0144] The mouth key points include at least one of the following: an upper lip key point, and a lower lip key point.

[0145] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above embodiments, the first import module is specifically used to receive an import instruction input through the interactive interface of the operation bar, and import the makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction.

[0146] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package of each of the above-mentioned embodiments, the first import module is specifically used to: receive a selection instruction sent through the interactive interface of the operation bar, use the reference part selected by the selection instruction as the target part that currently needs to add beauty makeup and / or face-changing special effects, and display the special effects parameter setting interface under the target part on the operation bar; and receive an import instruction sent through the interactive interface in the special effects parameter setting interface, and import the beauty makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction.

[0147] Optionally, in the apparatus for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, when the first import module imports the makeup and / or face-changing sub-material in the material folder pointed to by the import instruction, it is specifically used to:

[0148] Receiving an import instruction sent through the interactive interface, and acquiring and displaying a material folder pointed to by the import instruction;

[0149] In response to receiving a beauty makeup and / or face-changing sub-material selection operation in the material folder, importing one or more beauty makeup and / or face-changing sub-materials selected by the beauty makeup and / or face-changing sub-material selection operation; and / or

[0150] In response to not receiving an operation of selecting a beauty makeup and / or face-changing sub-material in the material folder, selecting one or more beauty makeup and / or face-changing sub-materials in the material folder according to a preset setting, and importing the beauty makeup and / or face-changing sub-materials selected according to the preset setting;

[0151] The multiple makeup and / or face-changing sub-materials form a group of makeup and / or face-changing sub-materials with a predetermined playback timing.

[0152] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package of each of the above embodiments, the playback timing of multiple beauty makeup and / or face-changing sub-materials in the group of beauty makeup and / or face-changing sub-materials is determined based on the file names of the multiple beauty makeup and / or face-changing sub-materials.

[0153] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above-mentioned embodiments, when the display module displays the imported makeup and / or face-changing sub-material, it is specifically used to display the imported makeup and / or face-changing sub-material on the target part according to the parameter value of the superposition method.

[0154] Optionally, in the device for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the first acquisition module is specifically used to:

[0155] In response to receiving a parameter value set for a special effect parameter of the beauty makeup and / or face-changing sub-material sent through an interactive interface of the operation bar, using the set parameter value as the parameter value of the special effect parameter of the beauty makeup and / or face-changing sub-material; and / or

[0156] In response to not receiving parameter values ​​for the special effect parameter settings for the makeup and / or face-changing sub-material sent through the interactive interface of the operation bar, using preset parameter values ​​as parameter values ​​for the special effect parameters of the makeup and / or face-changing sub-material.

[0157] Optionally, in the device for generating the beauty makeup and / or face-changing special effect program file package in each of the above embodiments, the special effect parameters include any one or more of the following:

[0158] Display parameter: used to indicate whether to display the makeup and / or face-changing sub-materials;

[0159] Overlay method parameter: used to indicate the overlay method of the makeup and / or face-changing sub-materials;

[0160] Trigger mode parameter: used to indicate a trigger event for triggering the display of the makeup and / or face-changing sub-material;

[0161] Loop parameter: used to indicate the number of times the makeup and / or face-changing sub-material is displayed in a loop;

[0162] Playback frame number parameter: used to indicate the number of frames for playing the makeup and / or face-changing sub-material;

[0163] Delay trigger parameter: used to indicate the time for delaying display of the makeup and / or face-changing sub-material;

[0164] Trigger end parameter: used to indicate a trigger event for ending the display of the makeup and / or face-changing sub-material;

[0165] Deformation special effect parameter: used to indicate the deformation effect of generating a deformation area on the image when displaying the makeup and / or face-changing sub-material;

[0166] Sticker special effect parameters, used to indicate the special effects of the sub-material generated on the image when displaying the makeup and / or face-changing sub-material;

[0167] The stroke special effect parameter is used to indicate that a stroke special effect is generated on an image when displaying the makeup and / or face-changing sub-material.

[0168] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of the above-mentioned embodiments, the trigger event includes any one or more of the following: no action trigger, eye movement, head movement, eyebrow movement, hand movement, mouth movement, shoulder movement, deformation special effects, sticker special effects, sound special effects, and stroke special effects.

[0169] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above embodiments, the establishment module is specifically used to establish a correspondence between the display attributes of the makeup and / or face-changing sub-material and at least two key points within the display position coverage range.

[0170] Optionally, in the device for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the display module includes:

[0171] An operation interface, for displaying in response to receiving a start instruction, the operation interface comprising: an operation bar, a content display bar and / or a program file bar;

[0172] The display module is specifically used to display the reference image and key points preset on the reference image in the content display bar; and to display imported makeup and / or face-changing sub-materials in the content display bar.

[0173] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the operation interface includes three areas: the left side, the middle and the right side;

[0174] The operation bar is displayed on the left side of the operation interface, the content display bar is displayed in the middle of the operation interface, and the program file bar is displayed on the right side of the operation interface.

[0175] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the device further includes:

[0176] The first updating module is used to update the display position of the makeup and / or face-changing sub-material and the corresponding relationship according to the position movement operation of the makeup and / or face-changing sub-material received through the content display bar.

[0177] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the device further includes:

[0178] The second updating module is used to update the display size of the makeup and / or face-changing sub-material in the content display bar according to the size adjustment operation of the makeup and / or face-changing sub-material received through the content display bar.

[0179] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the device further includes:

[0180] An adjustment module, configured to adjust the occlusion relationship between the two or more beauty makeup and / or face-changing sub-materials according to a layer parameter adjustment instruction sent for the two or more beauty makeup and / or face-changing sub-materials and received through an interactive interface of the operation bar;

[0181] The display module is further used to display the two or more beauty makeup and / or face-changing sub-materials according to the adjusted occlusion relationship and the parameter value of the superposition method of the two or more beauty makeup and / or face-changing sub-materials.

[0182] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above-mentioned embodiments, the first generating module is further used to generate the special effects program file of the makeup and / or face-changing sub-material according to the parameter values ​​of the special effects parameters of the pre-set special effects program file and the makeup and / or face-changing sub-material and the corresponding relationship before generating the makeup / special effects program file package, and display the special effects program file of the makeup and / or face-changing sub-material through the program file bar.

[0183] Optionally, in the device for generating the makeup and / or face-changing special effects program file package in each of the above-mentioned embodiments, the special effects program file includes: a special effects program file generated by a json program.

[0184] Optionally, in the device for generating the beauty makeup and / or face-changing special effects program file package in each of the above embodiments, the device further includes:

[0185] A saving module is used to save the makeup and / or face-changing special effects program file package at the location pointed to by the saving instruction according to the received saving instruction.

[0186] Optionally, in the device for generating a makeup and / or face-changing special effects program file package in each of the above embodiments, the storage module is specifically used for:

[0187] In response to receiving the save instruction, displaying a save path selection interface and a compression interface;

[0188] Receiving the save location sent through the save path selection interface; and receiving the compression method sent based on the compression interface, and compressing the beauty makeup and / or face-changing special effects program file package according to the compression method to generate a compressed file package;

[0189] The compressed file package is stored in the folder pointed to by the saving location.

[0190] Optionally, in the device for generating the makeup and / or face-changing special effects program file package of each of the above embodiments, the size of the makeup and / or face-changing sub-material in the makeup and / or face-changing special effects program file package is maintained at the size before the makeup and / or face-changing sub-material is imported.

[0191] According to another aspect of an embodiment of the present invention, a makeup and / or face-changing special effects generating device is provided, comprising:

[0192] A second acquisition module is used to acquire a makeup and / or face-changing sub-material, a parameter value of a special effect parameter of the makeup and / or face-changing sub-material, and a corresponding relationship between display attributes and key points of the makeup and / or face-changing sub-material; the display attributes include: size and / or display position;

[0193] The second generation module is used to generate the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters.

[0194] Optionally, in the makeup and / or face-changing special effects generating device of the above-mentioned embodiments, the makeup and / or face-changing sub-materials include: makeup and / or face-changing sub-materials for one part of a character, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a character.

[0195] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the image includes any one or more of the following: a static image, an image in a video.

[0196] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the device further includes:

[0197] A second import module is used to import a beauty makeup and / or face-changing special effects program file package; the beauty makeup and / or face-changing special effects program file package includes: the beauty makeup and / or face-changing sub-material, parameter values ​​of special effects parameters of the beauty makeup and / or face-changing sub-material, and a correspondence between display attributes and key points of the beauty makeup and / or face-changing sub-material;

[0198] The second acquisition module is specifically used to obtain makeup and / or face-changing sub-materials, parameter values ​​of the special effect parameters, and the corresponding relationship from the makeup and / or face-changing special effect program file package.

[0199] Optionally, in the makeup and / or face-changing special effects generating device of the above-mentioned embodiments, the makeup and / or face-changing special effects program file package is a makeup and / or face-changing special effects program file package generated by the method for generating a makeup and / or face-changing special effects program file package or the device for generating a makeup and / or face-changing special effects program file package as described in any of the above-mentioned embodiments of the present invention.

[0200] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the device further includes:

[0201] The key point detection module is used to detect the key points involved in the corresponding relationship on the image through a neural network and output the key point detection result.

[0202] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the key point detection result includes any one or more of the following:

[0203] The positions of the key points involved in the corresponding relationship in the images in the video;

[0204] The preset numbers of the key points involved in the corresponding relationship.

[0205] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the makeup and / or face-changing sub-materials include: a group of makeup and / or face-changing sub-materials with a predetermined playback timing.

[0206] Optionally, in the makeup and / or face-changing special effects generating device in each of the above embodiments, the second generating module is specifically used to:

[0207] Determining a playback timing of the plurality of beauty makeup and / or face-changing sub-materials in the set of beauty makeup and / or face-changing sub-materials based on the file names of the plurality of beauty makeup and / or face-changing sub-materials; and

[0208] Based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters, the special effects of the makeup and / or face-changing sub-materials are generated on the image according to the determined playback sequence.

[0209] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the special effects parameters include: a superposition method parameter for indicating the superposition method of the makeup and / or face-changing sub-materials.

[0210] Optionally, in the makeup and / or face-changing special effect generation device of each of the above embodiments, the special effect parameter includes: a display parameter, the display parameter is used to indicate whether to display the makeup and / or face-changing sub-material;

[0211] The second generating module is specifically used to generate the special effects of the makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter in response to the parameter value of the display parameter being the parameter value for displaying the makeup and / or face-changing sub-material.

[0212] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the special effects parameters include: a trigger mode parameter, the trigger mode parameter is used to indicate a trigger event for triggering display of the makeup and / or face-changing sub-material;

[0213] The device also includes:

[0214] A first detection module, used for detecting whether a trigger event corresponding to the parameter value of the trigger mode parameter appears in the image;

[0215] The second generation module is specifically used for

[0216] In response to detecting a trigger event corresponding to the parameter value of the trigger mode parameter appearing in the image, the special effects of the makeup and / or face-changing sub-material are generated on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter.

[0217] Optionally, in the makeup and / or face-changing special effect generation device of each of the above embodiments, the special effect parameters include: a delay trigger parameter, the delay trigger parameter is used to indicate the time for delaying display of the makeup and / or face-changing sub-material;

[0218] The second generating module is specifically used to respond to the display conditions of the beauty and / or face-changing sub-materials, according to the delayed playback time corresponding to the parameter value of the delay trigger parameter, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, and delay the generation of the special effects of the beauty and / or face-changing sub-materials on the image; the display conditions of the beauty and / or face-changing sub-materials include: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-materials, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0219] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the special effects parameters include: a loop parameter, the loop parameter being used to indicate the number of loop playbacks of the makeup and / or face-changing sub-material;

[0220] The second generating module is specifically used to respond to the display condition of the beauty and / or face-changing sub-material, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, and according to the number of loops corresponding to the parameter value of the loop parameter, to loop-display the beauty and / or face-changing sub-material on the image to generate the special effects of the beauty and / or face-changing sub-material; the display condition of the beauty and / or face-changing sub-material includes: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-material, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0221] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the special effects parameters include: a playback frame number parameter, the playback frame number parameter is used to indicate how many frames the makeup and / or face-changing sub-material is played;

[0222] The second generating module is specifically used to generate the special effects of the beauty and / or face-changing sub-material on the image corresponding to the playback frame number in the video in response to the playback conditions of the beauty and / or face-changing sub-material, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, according to the playback frame number corresponding to the parameter value of the playback frame number parameter; the display conditions for satisfying the beauty and / or face-changing sub-material include: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-material, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0223] Optionally, in the makeup and / or face-changing special effect generation device of each of the above embodiments, the special effect parameters include: a trigger end parameter, the trigger end parameter is used to indicate a trigger event for ending display of the makeup and / or face-changing sub-material;

[0224] The device also includes:

[0225] A second detection module, used to detect whether a trigger event corresponding to the parameter value of the trigger end parameter occurs;

[0226] The second generating module is further configured to stop generating the special effects of the makeup and / or face-changing sub-material in response to the second detecting module detecting the occurrence of a trigger event corresponding to the parameter value of the trigger end parameter.

[0227] Optionally, in the makeup and / or face-changing special effect generation device of each of the above embodiments, the special effect parameters include: deformation special effect parameters, the deformation special effect parameters are used to indicate the deformation effect of generating a deformation area on an image when displaying the makeup and / or face-changing sub-material;

[0228] The second generating module is also used to generate a deformation effect of the deformation area in the image according to the deformation special effect parameters when generating the special effects of the makeup and / or face-changing sub-material on the image based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters.

[0229] Optionally, in the makeup and / or face-changing special effects generating device of each of the above embodiments, the special effects parameters include: sticker special effects parameters, the sticker special effects parameters are used to indicate the special effects of the sub-material generated on the image when displaying the makeup and / or face-changing sub-material;

[0230] The second generating module is also used to generate the special effects of the makeup and / or face-changing sub-material on the image based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effects parameters, and to generate the special effects of the sub-material in the image according to the sticker special effects parameters.

[0231] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0232] Memory for storing computer programs;

[0233] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method described in any one of the above embodiments of the present invention is implemented.

[0234] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any of the above embodiments of the present invention is implemented.

[0235] According to another aspect of an embodiment of the present invention, a computer program is provided, including computer instructions, and when the computer instructions are executed in a processor of a device, the method described in any of the above embodiments of the present invention is implemented.

[0236] Based on the method and device for generating a beauty makeup and / or face-changing special effects program file package provided by the above-mentioned embodiments of the present invention, the electronic device, program and medium, when generating a beauty makeup and / or face-changing special effects program file package, display the reference image and the key points preset on the reference image, import the beauty makeup and / or face-changing sub-material, and display the imported beauty makeup and / or face-changing sub-material; obtain the parameter values ​​of the special effects parameters of the beauty makeup and / or face-changing sub-material, and establish a correspondence between the display attributes of the beauty makeup and / or face-changing sub-material and the key points within the display position coverage range; generate a beauty makeup and / or face-changing special effects program file package according to the beauty makeup and / or face-changing sub-material, the parameter values ​​of the special effects parameters and the correspondence, so as to realize beauty makeup and / or face-changing special effects on the image. In addition, when the embodiment of the present invention generates a beauty makeup and / or face-changing special effects program file package, there is no need to manually write the program file. It is only necessary to import the beauty makeup and / or face-changing sub-materials to the corresponding display attributes to generate the beauty makeup and / or face-changing special effects program file executable by the rendering engine. The operation is simple and the time required is short, which improves the overall efficiency of the beauty makeup and / or face-changing special effects and avoids the errors that may occur in manually writing program files, effectively ensuring the accuracy of the beauty makeup and / or face-changing special effects.

[0237] Based on the beauty and / or face-changing special effects generation method and device, electronic device, program and medium provided by the above-mentioned embodiments of the present invention, the parameter values ​​of the beauty and / or face-changing sub-material and its special effects parameters, and the corresponding relationship between the display attributes and key points of the beauty and / or face-changing sub-material are obtained, wherein the display attributes include size and display position; based on the corresponding relationship and the key points in the image involved and the parameter values ​​of the special effects parameters, the special effects of the beauty and / or face-changing sub-material are generated on the image. The embodiments of the present invention can generate beauty and / or face-changing special effects on the image by pre-setting the parameter values ​​of the beauty and / or face-changing sub-material and its special effects parameters, and the corresponding relationship between the display attributes and key points of the beauty and / or face-changing sub-material, thereby increasing the overall atmosphere effect of the image playback, enhancing the user's entertainment, improving the user's sense of immersion, and improving the playback effect.

[0238] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0239] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present invention and, together with the description, serve to explain the principles of the present invention.

[0240] The present invention may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0241] Figure 1 The present invention is a flowchart of an embodiment of a method for generating a makeup and / or face-changing special effects program file package.

[0242] Figure 2 2 is an exemplary schematic diagram of a makeup and / or face-changing sub-material in an embodiment of the present invention.

[0243] Figure 3 FIG. 4 is an exemplary schematic diagram of facial key points in an embodiment of the present invention.

[0244] Figure 4 This is an example diagram of an operation interface of a device for generating a makeup / special effects program file package in an embodiment of the present invention.

[0245] Figure 5 This is an exemplary schematic diagram of a special effect parameter setting interface in an embodiment of the present invention.

[0246] Figure 6 Schematic diagram of hand movements in an embodiment of the present invention.

[0247] Figure 7 FIG. 4 is an exemplary schematic diagram of a deformation special effect in an embodiment of the present invention.

[0248] Figure 8This is an exemplary schematic diagram of sticker special effects in an embodiment of the present invention.

[0249] Fig. 9 The figure is an exemplary schematic diagram of the stroke effect in an embodiment of the present invention.

[0250] Fig.10 The present invention is a flowchart of another embodiment of the method for generating a makeup and / or face-changing special effects program file package.

[0251] Fig.11 The present invention is a flowchart of an embodiment of a method for generating beauty makeup and / or face-changing special effects.

[0252] Fig.12 The figure is an exemplary schematic diagram of generating special effects of beauty makeup and / or face-changing sub-materials on an image based on the embodiment.

[0253] Fig.13 The present invention is a flowchart of another embodiment of the method for generating beauty makeup and / or face-changing special effects.

[0254] Fig.14 The present invention is a schematic structural diagram of an embodiment of a device for generating a makeup and / or face-changing special effects program file package.

[0255] Fig.15 This is a structural diagram of another embodiment of a device for generating a makeup and / or face-changing special effects program file package according to the present invention.

[0256] Fig.16 The figure is a schematic diagram of the structure of an embodiment of a device for generating makeup and / or face-changing special effects according to the present invention.

[0257] Fig.17 This is a schematic structural diagram of another embodiment of the makeup and / or face-changing special effects generating device of the present invention.

[0258] Fig.18 The figure is a schematic structural diagram of an application embodiment of the electronic device of the present invention. DETAILED DESCRIPTION

[0259] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0260] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0261] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0262] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0263] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0264] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.

[0265] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0266] Figure 1 The flowchart of one embodiment of the method for generating a beauty and / or face-changing special effects program file package of the present invention is shown in FIG. The method for generating a beauty and / or face-changing special effects program file package of each embodiment of the present invention can be implemented, for example, by but not limited to a device (hereinafter referred to as a beauty / face-changing special effects program file package generating device in the present invention). Figure 1 As shown, the method for generating a makeup / special effects program file package in this embodiment includes:

[0267] 102, displaying a reference image and key points preset on the reference image.

[0268] The reference image includes: at least a partial image of a reference person, such as any one or more of the following partial images of the reference person: a complete image, a head image, a face image, a shoulder image, an arm image, a gesture image, a waist image, a leg image, a foot image, and the like.

[0269] 104 , importing beauty makeup and / or face-changing sub-materials, and displaying the imported beauty makeup and / or face-changing sub-materials.

[0270] The makeup and / or face-changing sub-materials in the embodiments of the present invention may be pictures, or animations composed of multiple frames of pictures, etc.

[0271] 106 , obtaining parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, and establishing a correspondence between display attributes of the makeup and / or face-changing sub-material and key points within a display position coverage range.

[0272] The special effect parameters include superposition mode parameters.

[0273] The display attributes include: size and / or display position, that is, they may include both size and display position, or may only include size or display position.

[0274] The correspondence between the display attributes of the makeup and / or face-changing sub-material and the key points within the display position coverage range may be a one-to-one correspondence between the display attributes and at least one key point (e.g., two or more key points) within the display position coverage range, or a one-to-one binding relationship between the display attributes and at least one key point within the display position coverage range. After the display attributes of the makeup and / or face-changing sub-material and the key points within the display position coverage range are corresponded or bound, a close fit of the makeup and / or face-changing sub-material and / or the parts within the display position coverage range can be achieved.

[0275] 108. Generate a beauty makeup and / or face-changing special effect program file package according to the beauty makeup and / or face-changing sub-materials, parameter values ​​of special effect parameters and corresponding relationships.

[0276] In an embodiment of the present invention, a makeup and / or face-changing special effects program file package may be used to perform special effects processing on an image, generate special effects of makeup and / or face-changing sub-materials on the image, and perform AR effect rendering processing on static images or video images. For example, when the makeup sub-material is red lips, red lips may be generated on the lips of a person in the image.

[0277] Based on the method for generating a beauty makeup and / or face-changing special effects program file package provided by the above-mentioned embodiment of the present invention, when generating a beauty makeup and / or face-changing special effects program file package, a reference image and preset key points on the reference image are displayed, beauty makeup and / or face-changing sub-materials are imported, and the imported beauty makeup and / or face-changing sub-materials are displayed; parameter values ​​of special effects parameters of the beauty makeup and / or face-changing sub-materials are obtained, and a correspondence between display attributes of the beauty makeup and / or face-changing sub-materials and key points within the display position coverage range is established; a beauty makeup and / or face-changing special effects program file package is generated according to the beauty makeup and / or face-changing sub-materials, parameter values ​​of special effects parameters and the correspondence, so as to realize beauty makeup and / or face-changing special effects on the image. In addition, when the embodiment of the present invention generates a beauty makeup and / or face-changing special effects program file package, there is no need to manually write the program file. It is only necessary to import the beauty makeup and / or face-changing sub-materials to the corresponding display attributes to generate the beauty makeup and / or face-changing special effects program file executable by the rendering engine. The operation is simple and the time required is short, which improves the overall efficiency of the beauty makeup and / or face-changing special effects and avoids the errors that may occur in manually writing program files, effectively ensuring the accuracy of the beauty makeup and / or face-changing special effects.

[0278] In various embodiments of the present invention, the makeup and / or face-changing sub-materials may include: makeup and / or face-changing sub-materials for one part of a person, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a person. For example, the makeup and / or face-changing sub-material may be a makeup sub-material for a lip, or a combination of makeup sub-materials for eyebrows and eyelashes, or a combination of makeup sub-materials for eye shadow and blush, or a combination of makeup sub-materials for all parts of the face. Figure 2 As shown, from left to right are: a combination of makeup sub-materials for eyebrows and eyelashes, a combination of makeup sub-materials for eye shadow and blush, a combination of makeup sub-materials for lips, and an exemplary schematic diagram of a combination of makeup sub-materials for all parts of the face.

[0279] In various embodiments of the present invention, the positions of multiple key points may be pre-set so as to correspond the display attributes of the makeup and / or face-changing sub-materials to the key points within the display position coverage. For example, in one embodiment, multiple key points may be defined for the face and gestures (hands) based on face detection and gesture detection, respectively, so as to achieve the correspondence of positional relationships based on face key points or gesture key points in the generation of makeup and / or face-changing special effects.

[0280] In some implementation plans of the embodiments of the present invention, the preset key points may include, but are not limited to, any one or more of the following: head key points, face key points, shoulder key points, arm key points, gesture key points, waist key points, leg key points, foot key points, human skeleton key points, and the like.

[0281] In one optional example, the head key points may include, but are not limited to, at least one of the following: a top of the head key point, a nose tip key point, and a chin key point, etc.

[0282] In one optional example, the facial key points may include, but are not limited to, at least one of the following: facial contour key points, eye key points, eyebrow key points, nose key points, mouth key points, and the like.

[0283] Exemplarily, the eye key points may include, but are not limited to, at least one of the following: a left eye socket key point, a left pupil center key point, a left eye center key point, a right eye socket key point, a right pupil center key point, and a right eye center key point, etc. The eyebrow key points may include, but are not limited to, at least one of the following: a left eyebrow key point and a right eyebrow key point, etc. The nose key points may include, but are not limited to, at least one of the following: a nose bridge key point, a nose lower edge key point, and a nose outer contour key point, etc. The mouth key points may include, but are not limited to, at least one of the following: an upper lip key point, and a lower lip key point, etc.

[0284] In one of the optional examples, the shoulder key points may include, but are not limited to, at least one of the following: a shoulder-head intersection key point located at the intersection of the shoulder and the head, and a shoulder contour midpoint key point located at the midpoint between the arm root contour key point and the shoulder-head intersection key point, and so on.

[0285] In one optional example, the arm key points may include, but are not limited to, at least one of the following: a wrist contour key point, an elbow contour key point, an arm root contour key point, a forearm contour midpoint key point located at the midpoint between the wrist contour key point and the elbow contour key point, and an upper arm midpoint key point located at the midpoint between the elbow contour key point and the arm root contour key point, and the like.

[0286] In one of the optional examples, the gesture key points may include, but are not limited to, at least one of the following: four vertex key points of the gesture frame (ie, the gesture detection frame), and the center key point of the gesture frame, and so on.

[0287] In one of the optional examples, the leg key points may include, but are not limited to, at least one of the following: a crotch key point, a knee contour key point, an ankle contour key point, a thigh root outer contour key point, a calf contour midpoint key point located at the midpoint between the knee contour key point and the ankle contour key point, an inner thigh contour midpoint key point located at the midpoint between the knee contour key point and the crotch key point, and an outer thigh contour midpoint key point located at the midpoint between the knee contour key point and the thigh root outer contour key point, and the like.

[0288] In one of the optional examples, the waist key points may include, but are not limited to, at least one of the following: N equally divided points generated by dividing the area between the thigh root outer contour key point and the arm root contour key point into N equal parts; wherein N is greater than 1.

[0289] In one optional example, the foot key points may include, but are not limited to, at least one of the following: a toe key point and a heel key point, and the like.

[0290] In one of the optional examples, the human skeleton key points may include, but are not limited to, at least one of the following: right shoulder bone key points, right elbow bone key points, right wrist bone key points, left shoulder bone key points, left elbow bone key points, left wrist bone key points, right hip bone key points, right knee bone key points, right ankle bone key points, left hip bone key points, left knee bone key points, left ankle bone key points, top of the head bone key points, and neck bone key points, etc.

[0291] For example, Figure 3 is an exemplary schematic diagram of facial key points in an embodiment of the present invention, combined with Figure 3 In an optional example, the facial key points can be defined as follows:

[0292] Key Point Projects Key point number Key Point Projects Key point number Face frame (key points of facial contour) 0-32 bridge of the nose 43-46 Left eyebrow 33-37,64-67 Right eyebrow 38-42,68-71 Left eye socket 52-57,72-73 Right eye socket 58-63,75-76 Left pupil 74,104, Right pupil 77,105 Lower nose edge 47-51 Outer nose contour 78-83 Upper lip 84-90,96-100 Lower lip 91-95,101-103

[0293] In an alternative example, the hand keypoints can be defined as follows:

[0294] Key Point Projects Key point number Key Point Projects Key point number Gesture frame 110-113 center 114

[0295] Among them, the key points numbered 110-113 are respectively the four vertices of the gesture detection frame (ie, the circumscribed frame of the hand), and the key point numbered 114 is the center of the gesture detection frame.

[0296] In some implementations of the embodiments of the present invention, importing makeup and / or face-changing sub-materials may include: receiving an import instruction input through the interactive interface of the operation bar, and importing the makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction.

[0297] The makeup and / or face-changing sub-materials in the embodiments of the present invention can be pre-set. For example, the makeup and / or face-changing sub-materials can be pre-set through the computer graphics software Adobe Photoshop and exported to the material folder. When the makeup and / or face-changing sub-materials are set and exported through the computer graphics software, they can be exported separately according to the difference in the superposition method of each sub-material with the original image when applied to the image, or two or more makeup and / or face-changing sub-materials with the same superposition method can be merged into one layer and exported. For example, the makeup sub-materials of eyebrows and eyelashes can be merged into one layer and exported to the material folder, the makeup sub-materials of eye shadow and blush can be merged into one layer and exported to the material folder, and the makeup sub-materials of lips can be exported as a separate layer.

[0298] In one implementation of each embodiment of the present invention, the device for generating a beauty and / or face-changing special effects program file package may include a pre-set special effects program file, which may be, for example, a lightweight data exchange format (JavaScript Object Notiation, json) file based on the JavaScript language, or any other executable program file. The parameter value of the special effects parameter in the special effects program file may be blank or preset to a default value. When the parameter value of the special effects parameter setting for the beauty and / or face-changing sub-material is received, the corresponding parameter value in the special effects program file is automatically updated to the received parameter value. Optionally, the device for generating the above-mentioned beauty and / or face-changing special effects program file package may include an operation bar, in which at least one interactive interface is provided for receiving the parameter value of the special effects parameter setting for the beauty and / or face-changing sub-material; in addition, the device for generating the beauty and / or face-changing special effects program file package may also include a program file display bar for displaying the special effects program file. Figure 4 The figure shown is an example diagram of the operation interface of the device for generating the beauty and / or face-changing special effects program file package in an embodiment of the present invention. The operation interface of the device for generating the beauty and / or face-changing special effects program file package includes an operation bar and a program file display bar. After the device for generating the beauty and / or face-changing special effects program file package is started, corresponding to the special effects parameter setting interface of a beauty and / or face-changing sub-material in the operation bar, the program file display bar displays the special effects program file when the special effects parameters of the beauty and / or face-changing sub-material are vacant or preset to default values. When the parameter value of the special effects parameter setting for a beauty and / or face-changing sub-material is received through the interactive interface of the operation bar, the parameter value of the special effects parameter of the beauty and / or face-changing sub-material is updated to the most recently received parameter value, and the program file display bar displays the special effects program file after the parameter value is updated in real time. It should be noted that Figure 4The program files displayed in the program file display bar are only used to exemplify the operating interface presented by the device for generating the beauty and / or face-changing special effects program file package. The present invention does not need to pay attention to the expression form and specific content of the special effects program files, nor does it limit the expression form and specific content of the special effects program files.

[0299] In one implementation of the method for generating each makeup and / or face-changing special effects program file package of the present invention, operation 102 may include: receiving an import instruction sent through the interactive interface of the operation bar, and importing the makeup and / or face-changing sub-material in the material folder pointed to by the import instruction.

[0300] like Figure 4 As shown, as an optional example but not limitation of the embodiments of the present invention, the operation bar may include a special effect parameter setting interface, which includes at least one interactive interface; it may also include other areas, such as a reference part display area, and the special effect parameter setting interface at this time may be a special effect parameter setting interface under each reference part. The reference parts in the embodiments of the present invention may include, but are not limited to, any one or more of the following: ear, hand, face, hair, neck, limbs. Figure 5 As shown, in an embodiment of the present invention, when the reference part is an eye, an exemplary schematic diagram of the special effect parameter setting interface of the makeup and / or face-changing (Makeup / Facetrans) sub-material is shown. In an optional example of the above-mentioned embodiment of the present invention, receiving an import instruction input through the interactive interface of the operation bar, and importing the makeup and / or face-changing sub-material in the material folder pointed to by the import instruction, may include: receiving a selection instruction sent through the interactive interface of the operation bar, using the reference part selected by the selection instruction as the target part to which the makeup and / or face-changing special effects are currently required to be added, and displaying the special effect parameter setting interface under the target part in the operation bar; receiving an import instruction sent through the interactive interface in the special effect parameter setting interface, and importing the makeup and / or face-changing sub-material in the material folder pointed to by the import instruction.

[0301] In some of the optional examples, importing the makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction may include:

[0302] Receive the import instruction sent through the interactive interface, and obtain and display the material folder pointed to by the import instruction;

[0303] In response to receiving a beauty makeup and / or face-changing sub-material selection operation in a material folder, importing one or more beauty makeup and / or face-changing sub-materials selected by the beauty makeup and / or face-changing sub-material selection operation; and / or

[0304] In response to not receiving an operation to select a beauty makeup and / or face-changing sub-material in the material folder, selecting one or more beauty makeup and / or face-changing sub-materials in the material folder according to a preset setting, and importing the beauty makeup and / or face-changing sub-materials selected according to the preset setting;

[0305] Among them, when multiple beauty makeup and / or face-changing sub-materials in a material folder are selected and imported, the multiple beauty makeup and / or face-changing sub-materials can form a group of beauty makeup and / or face-changing sub-materials with a predetermined playback timing. The playback timing of multiple beauty makeup and / or face-changing sub-materials in the group of beauty makeup and / or face-changing sub-materials can be determined based on the file names of the multiple beauty makeup and / or face-changing sub-materials. For example, if the file names of multiple beauty makeup and / or face-changing sub-materials in the group of beauty makeup and / or face-changing sub-materials are face001, face003, and face009, then the playback timing of multiple beauty makeup and / or face-changing sub-materials in the group of beauty makeup and / or face-changing sub-materials can be determined as face001→face003→face009 based on an exemplary preset rule.

[0306] Each material folder may include multiple makeup and / or face-changing sub-materials. For example, if the target part is the mouth, the material folder may include lip sub-materials of different shapes and colors. In one implementation of each embodiment of the present invention, when importing makeup and / or face-changing sub-materials, when the user's selection operation for the makeup and / or face-changing sub-material in the material folder is not received, it can be preset to import the makeup and / or face-changing sub-material at a preset position or preset serial number in the material folder pointed to by the import instruction. For example, when the user does not select the makeup and / or face-changing sub-material, the first makeup and / or face-changing sub-material in the material folder is selected and imported by default, so that the corresponding makeup and / or face-changing effect can be achieved even if the user does not select the makeup and / or face-changing sub-material.

[0307] Accordingly, in some of the optional examples, the imported makeup and / or face-changing sub-materials may include: displaying the imported makeup and / or face-changing sub-materials on the target part according to the parameter value of the overlay method parameter (tag) in the special effect parameters.

[0308] The parameter value of the overlay mode parameter defines the corresponding overlay mode. The overlay mode includes a combination of the "overlay" mode and / or transparency in the computer graphic image software Adobe Photoshop. The "overlay" mode is a blending mode in the computer graphic image software Adobe Photoshop, which exists in the "overlay" mode group of the color blending mode, the channel blending mode, and the layer blending mode. The "overlay" mode acts between the image pixels and the surrounding pixels, causing the image contrast to increase or decrease. It is a mode in which the base color determines the blending effect, and the brightness of the base color determines the blending mode of the blended color. After using the "overlay" blending mode, color level overflow generally does not occur, and image detail loss will not occur. When the base color and the blended color are swapped, the resulting color is different.

[0309] In some optional examples, the "overlay" mode may include, but is not limited to, any one or more of the following: pass through, normal, multiply, overlay, dissolve, linear darken, soft light, bright light, hard light, linear light, brightness, color, saturation, difference, linear darken, etc. The transparency value may be [0%, 100%]. The corresponding overlay mode may be determined by selecting any "overlay" mode and any transparency value.

[0310] In order to achieve the corresponding makeup and / or face-changing effects, the makeup and / or face-changing sub-materials applicable to different target parts may require different superposition methods to achieve the corresponding makeup and / or face-changing effects. The superposition methods of the makeup and / or face-changing sub-materials applicable to different target parts can be pre-set, and the "superposition" mode and / or transparency corresponding to each superposition method can be set. In this way, when setting the parameter value of the superposition method parameter for the makeup and / or face-changing sub-material imported for the target part that needs makeup and / or face-changing, the superposition method corresponding to the makeup and / or face-changing sub-material can be directly selected. The following is an example of the pre-set makeup and / or face-changing sub-material and its corresponding superposition method:

[0311] Makeup and / or face transplant material (Face Transplant) Overlay method Eyes (Makeup-eye) Normal, transparency overlay Eyeshadow Overlay Makeup-blush Multiply Nose (Makeup-nose) Normal, transparency overlay Lips (Makeup-lips) Overlay, Highlight

[0312] In some implementation schemes of the embodiments of the present invention, obtaining parameter values ​​of special effects parameters of makeup and / or face-changing sub-materials may include: in response to receiving parameter values ​​set for special effects parameters for makeup and / or face-changing sub-materials sent through the interactive interface of the operation bar, using the set parameter values ​​as the parameter values ​​of the special effects parameters for makeup and / or face-changing sub-materials; and / or, in response to not receiving parameter values ​​set for special effects parameters for makeup and / or face-changing sub-materials sent through the interactive interface of the operation bar, using preset parameter values ​​as the parameter values ​​of the special effects parameters for makeup and / or face-changing sub-materials.

[0313] The embodiment of the present invention does not need to generate a rendering engine executable file by manually writing a program file. The generation of a beauty makeup and / or face-changing special effects program package can be achieved based on the user's selection operation of the beauty makeup and / or face-changing sub-material and the setting operation of the parameter value in the operation bar. The operation is simple and the time required is short, which improves the overall efficiency of the beauty makeup and / or face-changing special effects and avoids the errors that may occur in manually writing program files, effectively ensuring the accuracy of the beauty makeup and / or face-changing effects.

[0314] In some implementations of the embodiments of the present invention, the special effect parameters may include, but are not limited to, any one or more of the following:

[0315] 1. Display parameter (Display): used to indicate whether to display the beauty makeup and / or face-changing sub-materials. The parameter value includes two options: "Yes" and "No". When the parameter value is "Yes", it means that the corresponding beauty makeup and / or face-changing sub-materials need to be displayed during the image or video playback. When the parameter value is "No", it means that the corresponding beauty makeup and / or face-changing sub-materials do not need to be displayed during the image or video playback;

[0316] 2. Overlay method parameter (Tag): used to indicate the overlay method of the makeup and / or face-changing sub-materials;

[0317] 3. Trigger mode parameter (TriggerType): used to indicate the trigger event that triggers the display of beauty makeup and / or face-changing sub-materials, which refers to what trigger event triggers the display of beauty makeup and / or face-changing sub-materials. Its parameter value may include various trigger events, and the user may select at least one event from the preset event set as a trigger event. That is, during the playback of an image or video, the corresponding beauty makeup and / or face-changing sub-materials may be triggered to display when a corresponding trigger event is detected. For example, when the trigger event "opening the mouth" specified in the trigger mode parameter is detected in the video, the beauty makeup sub-material of red lips may be displayed. The specific start display time, end display time, and display duration of the beauty makeup and / or face-changing sub-material may be determined based on the parameter values ​​of other parameters, such as the parameter values ​​of the delay trigger parameter, the trigger end parameter, and the loop parameter, respectively.

[0318] 4. TriggerLoop: It is used to indicate the number of times the makeup and / or face-changing sub-materials are displayed in a loop. You can set or select a specific value for the number of loop playback as its parameter value, for example, 1, 5, etc. You can agree that the parameter value is set to 0 for infinite loop playback;

[0319] 5. Playback frame number parameter (Frames): used to indicate the number of frames of the makeup and / or face-changing sub-material to be played, that is, the number of frames on which the corresponding makeup and / or face-changing sub-material needs to be displayed during video playback. The specific start time of the makeup and / or face-changing sub-material can be determined according to the parameter values ​​of other parameters, for example, can be determined according to the parameter values ​​of the trigger mode parameter and the delay trigger parameter respectively;

[0320] 6. Trigger Delay parameter (TriggerDelay): used to indicate the time to delay the display of the makeup and / or face-changing sub-material, that is, from the time when the trigger mode in the trigger mode parameter is detected, the delay time or the delay frame number during the video playback process before the makeup and / or face-changing sub-material is displayed. The specific time or frame number of the delayed display of the makeup and / or face-changing sub-material can be set or selected as the parameter value;

[0321] 7. Trigger stop parameter (TriggerStop): used to indicate the trigger event for ending the display of the makeup and / or face-changing sub-materials, which refers to the trigger event by which the display of the makeup and / or face-changing sub-materials is ended. The parameter value includes various trigger events. The user can select at least one event from the preset event set as the trigger event for ending the display of the makeup and / or face-changing sub-materials;

[0322] 8. Deformation special effect parameter (Deformation): used to indicate the deformation effect of the deformation area generated on the image when displaying the makeup and / or face-changing sub-materials. The deformation special effect parameter may include a display position parameter and a deformation effect parameter of the deformation area. The display position of the deformation area may be determined by the position of at least one predetermined key point corresponding to it. Therefore, the display position parameter may be the position or number of the corresponding key point, etc. The deformation effect parameter may be a parameter indicating the deformation effect such as inward stretching or outward stretching. The parameter value of the deformation special effect parameter may include: the position or number of the key point corresponding to the deformation area, and the parameter value of the deformation effect parameter. By setting the parameter value of the deformation special effect parameter, it can be used to perform deformation special effect processing on the image, and generate a deformation effect (also called deformation special effect) of the deformation area on the image, for example, rendering processing of AR effect on the video image;

[0323] 9. Sticker special effect parameters, used to indicate the special effects of sub-materials generated on the image when displaying makeup and / or face-changing sub-materials. The sticker special effect parameters may include the display position and playback parameters of sticker special effect sub-materials (such as earrings, hats, etc.). The display position of the sticker special effect sub-material may be determined by the position of at least one predetermined key point corresponding to it, so the display position parameter may be the position or number of the corresponding key point, etc. The playback parameter may be a parameter indicating the playback effect of the sticker special effect sub-material (such as the number of loops, the number of playback frames, etc.). The parameter value of the sticker special effect parameter may include: the position or number of the key point corresponding to the sticker special effect sub-material, and the parameter value of the playback parameter. Based on the parameter value of the sticker special effect parameter, it can be used to generate sticker special effect sub-materials in videos or images, such as playing earrings on the ears of characters, playing hats on the top of the head, etc., and rendering the video or image with AR effects;

[0324] 10. Stroke effect parameter (BackgroundEdge), used to indicate that a stroke effect is generated on an image when displaying makeup and / or face-changing sub-materials. The stroke effect parameter may include a target object in the image that needs to be stroked (e.g., face, clothes, hands, ears, etc.) and a stroke effect parameter (e.g., stroke thickness, color, etc.). The parameter value of the stroke effect parameter may include: the number or name of the target object, the parameter value of the stroke effect parameter (e.g., stroke thickness, color, etc.). By setting the parameter value of the stroke effect parameter, it can be used to perform stroke effect processing on the target object in the image, add a stroke to the target object in the image, realize a stroke effect, and render an AR effect on the target object in the video image. For example, in order to highlight an object in the game, a stroke effect can be added to a target object in the game.

[0325] In some optional examples, the triggering event may include, but is not limited to, any one or more of the following:

[0326] No action trigger (NULL), that is, no action is required to display the sub-material;

[0327] Eye movements, such as blinking, closing, and opening;

[0328] Head movements, such as shaking the head, nodding, tilting the head, turning the head, etc.;

[0329] Eyebrow movements, such as raising eyebrows;

[0330] Hand movements, such as love hand, support hand, palm, thumb up, fist to congratulate, one-hand heart, OK hand, scissors hand, pistol hand, index finger, etc. Figure 6 FIG. 1 is an exemplary schematic diagram of hand movements in an embodiment of the present invention;

[0331] Mouth movements, e.g., opening and closing the mouth;

[0332] Shoulder movements, such as shrugs;

[0333] Deformation effects, for example, displaying a deformation effect on a character's face, etc. Figure 7 FIG. 1 is an exemplary schematic diagram of a deformation special effect in an embodiment of the present invention;

[0334] Sticker effects, for example, displaying a hat on a character's head, etc. Figure 8 , which is an exemplary schematic diagram of sticker special effects in an embodiment of the present invention;

[0335] Sound effects, for example, a certain sound appears in the video, such as Fig. 9 FIG. 1 is an exemplary schematic diagram of a stroke special effect in an embodiment of the present invention;

[0336] Stroke effects, for example, a target object in the video appears stroked;

[0337] Other actions.

[0338] In some optional examples of various embodiments of the present invention, establishing a correspondence between display attributes of makeup and / or face-changing sub-materials and key points within the display position coverage range may include: establishing a correspondence between display attributes of makeup and / or face-changing sub-materials and at least two key points within the display position coverage range.

[0339] Fig.10 FIG. 1 is a flow chart of another embodiment of the method for generating a beauty makeup and / or face-changing special effects program file package of the present invention. Fig.10 As shown, the method for generating a makeup / special effects program file package in this embodiment includes:

[0340] 302. In response to receiving the start instruction, display an operation interface.

[0341] The operation interface includes: an operation bar, a content display bar and / or a program file bar.

[0342] 304 , displaying the reference image and key points preset on the reference image in the content display bar.

[0343] 306 , importing beauty makeup and / or face-changing sub-materials, and displaying the imported beauty makeup and / or face-changing sub-materials in the content display bar.

[0344] For example, the imported makeup and / or face-changing sub-material may be displayed in the content display bar according to the preset display position and display size of the makeup and / or face-changing sub-material.

[0345] 308 , obtaining parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, and establishing a correspondence between display attributes of the makeup and / or face-changing sub-material and key points within a display position coverage range.

[0346] The special effect parameters include superposition mode parameters, and the display properties include size and display position.

[0347] In some embodiments of the present invention, after the imported makeup and / or face-changing sub-material is displayed in the content display bar, the makeup and / or face-changing sub-material can be selected on the content display bar and its position can be moved or its size can be changed. After the position and size of the beauty and / or face-changing sub-material are determined, its display attributes are determined, and the size of the beauty and / or face-changing sub-material and the key points within the display position coverage range can be detected, and the display attributes of the beauty and / or face-changing sub-material and the key points within the display position coverage range can be corresponded, thereby achieving a close fit between the beauty and / or face-changing sub-material and the parts within the display position coverage range.

[0348] 310 , generating a beauty makeup and / or face-changing special effect program file package according to the beauty makeup and / or face-changing sub-materials, parameter values ​​of special effect parameters and corresponding relationships.

[0349] like Figure 4 As shown, in some embodiments of the present invention, the operation interface may include three areas: left, middle and right. Accordingly, in operation 302, an operation bar is displayed on the left side of the operation interface, a content display bar is displayed in the middle of the operation interface, and a program file bar is displayed on the right side of the operation interface.

[0350] After the imported makeup and / or face-changing sub-material is displayed in the content display bar, the user can change the display properties of the displayed makeup and / or face-changing sub-material in the content display bar, including adjusting its display position or size.

[0351] Therefore, in another embodiment of the method for generating a makeup and / or face-changing special effects program file package of the present invention, it may also include: updating the display position and corresponding relationship of the makeup and / or face-changing sub-materials according to the position movement operation of the makeup and / or face-changing sub-materials received through the content display bar.

[0352] In another embodiment of the method for generating a makeup and / or face-changing special effects program file package of the present invention, it may also include: updating the display size of the makeup and / or face-changing sub-material in the content display bar according to a size adjustment operation on the makeup and / or face-changing sub-material received through the content display bar.

[0353] For example, the user can select a beauty and / or face-changing sub-material displayed in the content display bar with the mouse, move the mouse to the small box at the lower right corner of the beauty and / or face-changing sub-material, and zoom the beauty and / or face-changing sub-material by moving the small box, thereby adjusting the display size of the beauty and / or face-changing beauty and / or face-changing sub-material; the user can select a beauty and / or face-changing sub-material displayed in the content display bar with the mouse and directly move its position to move the beauty and / or face-changing sub-material to the correct or desired position. In the subsequent playback of the special effects program file package of the beauty and / or face-changing sub-material, the position and display ratio of the beauty and / or face-changing sub-material on the playback terminal will be consistent with the position and display ratio in the content display bar. Based on any of the above embodiments of the present invention, the user can add special effects to multiple reference parts. For example, the ear, face, and hand can be used as the target parts that currently need to add special effects, and any of the above embodiments can be executed to achieve special effects on the beauty and / or face-changing sub-materials of the ear, face, and hand parts.

[0354] When a user imports two or more beauty makeup and / or face-changing sub-materials, the display layer (i.e., occlusion relationship) of each beauty makeup and / or face-changing sub-material can be adjusted. Therefore, in another embodiment of the method for generating a beauty makeup and / or face-changing special effect program file package of the present invention, it can also include: adjusting the occlusion relationship between the two or more beauty makeup and / or face-changing sub-materials according to the layer parameter adjustment instruction sent for the two or more beauty makeup and / or face-changing sub-materials received through the interactive interface of the operation bar, and displaying the two or more beauty makeup and / or face-changing sub-materials according to the adjusted occlusion relationship and the parameter value of the superposition method of the two or more beauty makeup and / or face-changing sub-materials.

[0355] like Figure 4 As shown, makeup and / or face-changing sub-materials can be imported through the interactive interface 20 in the left operation bar, the occlusion relationship between the makeup and / or face-changing sub-material layers can be adjusted through the interactive interface 21, the layer parameters of each makeup and / or face-changing sub-material can be set, and the parameter values ​​of the special effect parameters of each makeup and / or face-changing sub-material can be set through the interactive interface 22; the content display bar uses the average face as the reference face, and all imported makeup and / or face-changing sub-materials are directly displayed. The display position of the makeup and / or face-changing sub-material can be moved by the mouse, and its size can be adjusted by moving the small box in the lower right corner of the makeup and / or face-changing sub-material by the mouse; the program file display bar on the right is used to display the content of the playback program file of the makeup and / or face-changing sub-material with the currently set parameter value through the display area 23 therein, and the special effect program file package can be exported through the save instruction interface 24 in the program file display bar, that is, the special effect program file package is generated and saved.

[0356] In addition, in another embodiment of the method for generating a makeup and / or face-changing special effects program file package of the present invention, before generating the makeup / special effects program file package, it may also include: generating special effects program files of makeup and / or face-changing sub-materials according to parameter values ​​and correspondences of pre-set special effects program files and special effects parameters of makeup and / or face-changing sub-materials, and displaying the special effects program files of makeup and / or face-changing sub-materials through a program file bar.

[0357] The special effect program file may be, for example, a special effect program file generated by a json program or other executable programs.

[0358] In yet another embodiment, after the makeup and / or face-changing special effects program file package is generated by the above embodiment of the present invention, the following may also be included:

[0359] The makeup and / or face-changing special effects program file package is saved at the location pointed to by the saving instruction according to the received saving instruction.

[0360] In some embodiments, saving the beauty makeup and / or face-changing special effects program file package at the location pointed to by the saving instruction according to the received saving instruction may include:

[0361] In response to receiving the save instruction, displaying a save path selection interface and a compression interface;

[0362] Receiving a save location sent through a save path selection interface; and receiving a compression method sent based on a compression interface, and compressing a beauty makeup and / or face-changing special effects program file package according to the compression method to generate a compressed file package;

[0363] Save the compressed file package to the folder pointed to by Save Location.

[0364] When the size of the makeup and / or face-changing special effects program file package is large, it is not suitable for running in a mobile phone terminal. The embodiment of the present invention can compress the makeup and / or face-changing special effects program file package and save it so that it can be imported into the mobile phone terminal for special effects generation. In some implementations, the embodiment of the present invention only compresses the size of the makeup and / or face-changing special effects program file package, and does not change the size of the makeup and / or face-changing sub-materials in the special effects program file package, that is, the size of the makeup and / or face-changing sub-materials in the makeup and / or face-changing special effects program file package remains the same as the size before the makeup and / or face-changing sub-materials are imported.

[0365] After generating a makeup and / or face-changing special effects program file package based on the above-mentioned embodiments of the present invention, the makeup and / or face-changing special effects program file package can be imported into a terminal to generate special effects for the video played by the terminal.

[0366] Fig.11Flow chart of one embodiment of the method for generating beauty makeup and / or face-changing special effects of the present invention. The method for generating beauty makeup and / or face-changing special effects of each embodiment of the present invention can be implemented by a device (hereinafter referred to as a beauty makeup and / or face-changing special effects generating device). Fig.11 As shown, the method for generating beauty makeup and / or face-changing special effects in this embodiment includes:

[0367] 402 , obtaining a makeup and / or face-changing sub-material, parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, and a correspondence between display attributes and key points of the makeup and / or face-changing sub-material.

[0368] The display attributes include: size and / or display position, that is, they may include both size and display position, or may only include size or display position.

[0369] Among them, the correspondence between the display attributes of the beauty and / or face-changing sub-materials and the key points within the display position coverage range can be a one-to-one correspondence between the display attributes and at least one key point (for example, two or more key points) within the display position coverage range, or a one-to-one binding relationship between the display attributes and at least one key point within the display position coverage range.

[0370] The makeup and / or face-changing sub-materials may include: makeup and / or face-changing sub-materials for one part of a character, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a character.

[0371] In some of the implementation modes, the special effect parameters may include: a superposition method parameter for indicating a superposition method of makeup and / or face-changing sub-materials.

[0372] 404 , based on the above correspondence, key points in the image involved in the correspondence, and parameter values ​​of the special effect parameters, generate special effects of the beauty makeup and / or face-changing sub-materials on the image.

[0373] The images in the embodiments of the present invention may include but are not limited to any one or more of the following: static images, images in videos. Fig.12 As shown, it is an exemplary schematic diagram of generating special effects of beauty makeup and / or face-changing sub-materials on an image based on the embodiment.

[0374] Based on the method for generating makeup and / or face-changing special effects provided by the above-mentioned embodiment of the present invention, the parameter values ​​of the makeup and / or face-changing sub-material and its special effect parameters, as well as the corresponding relationship between the display attributes and key points of the makeup and / or face-changing sub-material are obtained, wherein the display attributes include size and display position; based on the corresponding relationship and the key points in the image involved and the parameter values ​​of the special effect parameters, the special effects of the makeup and / or face-changing sub-material are generated on the image. The embodiment of the present invention can generate makeup and / or face-changing special effects on the image by pre-setting the parameter values ​​of the makeup and / or face-changing sub-material and its special effect parameters, as well as the corresponding relationship between the display attributes and key points of the makeup and / or face-changing sub-material, thereby increasing the overall atmosphere effect of the image playback, enhancing the user's entertainment, improving the user's sense of immersion, and improving the playback effect.

[0375] Optionally, before the process of the embodiment of the method for generating the beauty and / or face-changing special effects of the present invention, the following may be further included: importing a beauty and / or face-changing special effects program file package; the beauty and / or face-changing special effects program file package includes: beauty and / or face-changing sub-materials, parameter values ​​of special effects parameters of beauty and / or face-changing sub-materials, and the corresponding relationship between display attributes and key points of beauty and / or face-changing sub-materials. Accordingly, in this embodiment, operation 402 may include: obtaining beauty and / or face-changing sub-materials, parameter values ​​of special effects parameters, and corresponding relationships from the beauty and / or face-changing special effects program file package.

[0376] In one embodiment, importing a makeup and / or face-changing special effects program file package may include: reading the makeup and / or face-changing special effects program file package into memory by calling an interface function for reading the file package; parsing the makeup and / or face-changing special effects program file package to obtain makeup and / or face-changing sub-materials and special effects program files, wherein the special effects program files include parameter values ​​of special effects parameters of the makeup and / or face-changing sub-materials.

[0377] The makeup and / or face-changing special effects program file package may be generated using the method for generating a makeup and / or face-changing special effects program file package of any of the above-mentioned embodiments of the present invention.

[0378] In addition, in another embodiment of the method for generating makeup and / or face-changing special effects of the present invention, it may also include: performing key point detection on the image involved in the above-mentioned correspondence through a neural network, and outputting the key point detection results.

[0379] In some embodiments, the key point detection result may include, for example, but is not limited to, any one or more of the following: the position of the key point involved in the corresponding relationship in the image in the video; and the preset number of the key point involved in the corresponding relationship.

[0380] In some implementations of the above-mentioned embodiments of the present invention, the makeup and / or face-changing sub-material may be a single makeup and / or face-changing sub-material, or a combination of two or more makeup and / or face-changing sub-materials, or a group of makeup and / or face-changing sub-materials with a predetermined playback sequence.

[0381] When the makeup and / or face-changing sub-materials are a group with a predetermined play sequence, in one optional example, operation 404 may include:

[0382] Determining a playback sequence of the plurality of beauty makeup and / or face-changing sub-materials based on the file names of the plurality of beauty makeup and / or face-changing sub-materials in a group of beauty makeup and / or face-changing sub-materials;

[0383] Based on the above correspondence, as well as the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, special effects of the makeup and / or face-changing sub-materials are generated on the image according to the determined playback timing.

[0384] In some implementations of the above-mentioned embodiments of the present invention, the above-mentioned special effect parameters may include: a display parameter, which is used to indicate whether to display the beauty makeup and / or face-changing sub-material. Accordingly, in the above-mentioned embodiments, generating the special effects of the beauty makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters may include: in response to the parameter value of the display parameter being the parameter value for displaying the beauty makeup and / or face-changing sub-material, generating the special effects of the beauty makeup and / or face-changing sub-material on the image based on the above-mentioned corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters.

[0385] Fig.13 FIG. 1 is a flow chart of another embodiment of the method for generating makeup and / or face-changing special effects of the present invention. Fig.13 As shown, the method for generating beauty makeup and / or face-changing special effects in this embodiment includes:

[0386] 502 , obtaining a makeup and / or face-changing sub-material, parameter values ​​of special effect parameters of the makeup and / or face-changing sub-material, and a correspondence between display attributes and key points of the makeup and / or face-changing sub-material.

[0387] The display attributes include: size and display position. The special effect parameters may include: trigger mode parameters, which are used to indicate the triggering event for triggering the display of the makeup and / or face-changing sub-materials.

[0388] 504, performing key point detection on the image related to the above correspondence through a neural network, and outputting a key point detection result.

[0389] 506. In response to detecting a trigger event corresponding to a parameter value of a trigger mode parameter appearing in an image, special effects of makeup and / or face-changing sub-materials are generated on the image based on the above correspondence, key points in the image involved in the correspondence, and parameter values ​​of the special effect parameters.

[0390] In addition, in some implementations of the above embodiments of the present invention, the above special effect parameters may include: a delay trigger parameter, which is used to indicate the time for delaying the display of the beauty and / or face-changing sub-material. Accordingly, in the above embodiments, based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter value of the special effect parameter, the special effects of the beauty and / or face-changing sub-material are generated on the image, which may include: in response to satisfying the display conditions of the beauty and / or face-changing sub-material, according to the delayed playback time corresponding to the parameter value of the delay trigger parameter, based on the above correspondence, the key points in the image involved in the corresponding relationship, and the parameter value of the special effect parameter, delaying the generation of the special effects of the beauty and / or face-changing sub-material on the image. Among them, satisfying the display conditions of the beauty and / or face-changing sub-material includes: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-material, and / or, the trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0391] In addition, in some implementations of the above embodiments of the present invention, the above special effect parameters may include: a loop parameter, which is used to indicate the number of loop playbacks of the beauty and / or face-changing sub-materials. Accordingly, in the above embodiments, based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters, generating the special effects of the beauty and / or face-changing sub-materials on the image may include: in response to satisfying the display conditions of the beauty and / or face-changing sub-materials, based on the above corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters, according to the number of loops corresponding to the parameter value of the loop parameter, the beauty and / or face-changing sub-materials are looped on the image to generate the special effects of the beauty and / or face-changing sub-materials. Among them, satisfying the display conditions of the beauty and / or face-changing sub-materials includes: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-materials, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0392] In addition, in some implementations of the above embodiments of the present invention, the above special effect parameters may include: a playback frame number parameter, which is used to indicate how many frames the beauty makeup and / or face-changing sub-material is played. Accordingly, in the above embodiments, based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters, generating the special effects of the beauty makeup and / or face-changing sub-material on the image may include: in response to satisfying the playback conditions of the beauty makeup and / or face-changing sub-material, based on the above corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters, according to the playback frames corresponding to the parameter value of the playback frame number parameter, generating the special effects of the beauty makeup and / or face-changing sub-material on the image corresponding to the playback frame number in the video. Among them, satisfying the display conditions of the beauty makeup and / or face-changing sub-material includes: the parameter value of the display parameter is used to display the beauty makeup and / or face-changing sub-material, and / or, the occurrence of a trigger event corresponding to the parameter value of the trigger mode parameter.

[0393] In addition, see Fig.13 In some implementations of the above embodiments of the present invention, the above special effect parameters may include: a trigger end parameter, which is used to indicate a trigger event for ending the display of the beauty makeup and / or face-changing sub-material. Accordingly, after generating the special effects of the beauty makeup and / or face-changing sub-material on the image, it may also include:

[0394] 508 , detecting whether a trigger event corresponding to the parameter value of the trigger end parameter occurs.

[0395] 510 , in response to detecting the occurrence of a trigger event corresponding to the parameter value of the trigger end parameter, stop generating special effects of the makeup and / or face-changing sub-material.

[0396] If the trigger event corresponding to the parameter value of the trigger end parameter is not detected, operation 510 is not performed.

[0397] In addition, in some implementations of the above embodiments of the present invention, the above special effect parameters may include: deformation special effect parameters, which are used to represent the deformation effect of generating a deformation area on the image when displaying the beauty makeup and / or face-changing sub-material. Accordingly, in this embodiment, based on the correspondence, the key points in the image involved in the correspondence, and the parameter values ​​of the special effect parameters, when generating the special effects of the beauty makeup and / or face-changing sub-material on the image, the deformation effect of the deformation area is also generated in the image according to the above deformation special effect parameters.

[0398] In addition, in some implementations of the above embodiments of the present invention, the above special effect parameters may include: sticker special effect parameters, which are used to indicate the special effects of the sub-material generated on the image when displaying the beauty makeup and / or face-changing sub-material. Accordingly, in this embodiment, based on the correspondence, the key points in the image involved in the correspondence, and the parameter values ​​of the special effect parameters, when the special effects of the beauty makeup and / or face-changing sub-material are generated on the image, the special effects of the sub-material are also generated in the image according to the sticker special effect parameters.

[0399] In some implementations of the above-mentioned embodiments of the beauty and / or face-changing special effects generation method of the present invention, obtaining the beauty and / or face-changing sub-material, parameter values ​​of the special effects parameters of the beauty and / or face-changing sub-material, and the correspondence between the display attributes and key points of the beauty and / or face-changing sub-material may include: creating a sticker handle through an interface function for creating a sticker handle; reading the beauty and / or face-changing sub-material, parameter values ​​of the special effects parameters of the beauty and / or face-changing sub-material, and the correspondence between the display attributes and key points of the beauty and / or face-changing sub-material, and storing them in the sticker handle.

[0400] Correspondingly, in some other embodiments, generating special effects of makeup and / or face-changing sub-materials on an image based on the above-mentioned correspondence, key points in the image involved in the correspondence, and parameter values ​​of the special effects parameters may include: reading the parameter values ​​of the special effects parameters, the correspondence between the display properties of the makeup and / or face-changing sub-materials and key points, and the makeup and / or face-changing sub-materials to be played from the sticker handle by calling an interface function for rendering the makeup and / or face-changing materials; and generating special effects of the makeup and / or face-changing sub-materials on the image based on the above-mentioned parameter values ​​and correspondence.

[0401] In some optional examples of the above-mentioned embodiments, when the above-mentioned image is an image in a video, special effects of makeup and / or face-changing sub-materials are generated on the image based on the above-mentioned correspondence, key points in the image involved in the correspondence and parameter values ​​of the special effects parameters. It may also include: according to the parameter values ​​of the above-mentioned special effects parameters, obtaining the number of video frames required to generate special effects of makeup and / or face-changing sub-materials, and reading the image corresponding to the number of video frames from the video in advance, so as to generate special effects of makeup and / or face-changing sub-materials on the image based on the parameter values ​​of the above-mentioned special effects parameters and the above-mentioned correspondence.

[0402] Furthermore, in some other implementations, it may also include: in response to the completion of playing of the makeup and / or face-changing special effects program file package, destroying the sticker handle by calling an interface function for destroying the sticker handle.

[0403] The embodiments of the makeup and / or face-changing special effects generation method of the present invention can be used in various image or video playback scenarios, such as for live video broadcasting scenarios containing characters, to generate makeup and / or face-changing special effects for the live video, and to overlay and play corresponding makeup and / or face-changing sub-materials on the live video according to the makeup and / or face-changing special effects program file package to increase the atmosphere effect, enhance customer entertainment, and improve the sense of immersion in use.

[0404] Any method provided in the embodiments of the present invention may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server. Alternatively, any method and special effect generation method provided in the embodiments of the present invention may be executed by a processor, such as a processor executing any method mentioned in the embodiments of the present invention by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0405] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0406] Fig.14 1 is a schematic diagram of the structure of an embodiment of the device for generating a beauty and / or face-changing special effects program file package of the present invention. The device for generating a beauty and / or face-changing special effects program file package of each embodiment of the present invention can be used to implement the method for generating a beauty and / or face-changing special effects program file package of each embodiment of the present invention. Fig.14 As shown, the generating device of this embodiment may include: a display module, a first import module, a first acquisition module, a building module and a first generating module. Among them:

[0407] The display module is used to display the reference image and the key points preset on the reference image, and to display the imported makeup and / or face-changing sub-materials. The reference image includes: at least a part of the image of the reference person, such as any one or more of the following parts of the reference person: a complete image, a head image, a face image, a shoulder image, an arm image, a gesture image, a waist image, a leg image, a foot image, etc.

[0408] The first import module is used to import beauty makeup and / or face-changing sub-materials. The beauty makeup and / or face-changing sub-materials in the embodiments of the present invention may be pictures, or animations composed of multiple frames of pictures. In the embodiments of the present invention, the beauty makeup and / or face-changing sub-materials may include: beauty makeup and / or face-changing sub-materials for one part of a person, and / or a combination of beauty makeup and / or face-changing sub-materials for two or more parts of a person.

[0409] The first acquisition module is used to obtain parameter values ​​of special effect parameters of the makeup and / or face-changing sub-materials, wherein the special effect parameters include superposition mode parameters.

[0410] Establishing module, used to establish the correspondence between the display attributes of the beauty makeup and / or face-changing sub-material and the key points within the display position coverage; the display attributes include: size and / or display position.

[0411] In some implementation plans of the embodiments of the present invention, the preset key points may include, but are not limited to, any one or more of the following: head key points, face key points, shoulder key points, arm key points, gesture key points, waist key points, leg key points, foot key points, human skeleton key points, and the like.

[0412] In one optional example, the head key points may include, but are not limited to, at least one of the following: a top of the head key point, a nose tip key point, and a chin key point, etc.

[0413] In one optional example, the facial key points may include, but are not limited to, at least one of the following: facial contour key points, eye key points, eyebrow key points, nose key points, mouth key points, and the like.

[0414] Exemplarily, the eye key points may include, but are not limited to, at least one of the following: a left eye socket key point, a left pupil center key point, a left eye center key point, a right eye socket key point, a right pupil center key point, and a right eye center key point, etc. The eyebrow key points may include, but are not limited to, at least one of the following: a left eyebrow key point and a right eyebrow key point, etc. The nose key points may include, but are not limited to, at least one of the following: a nose bridge key point, a nose lower edge key point, and a nose outer contour key point, etc. The mouth key points may include, but are not limited to, at least one of the following: an upper lip key point, and a lower lip key point, etc.

[0415] In one of the optional examples, the shoulder key points may include, but are not limited to, at least one of the following: a shoulder-head intersection key point located at the intersection of the shoulder and the head, and a shoulder contour midpoint key point located at the midpoint between the arm root contour key point and the shoulder-head intersection key point, and so on.

[0416] In one optional example, the arm key points may include, but are not limited to, at least one of the following: a wrist contour key point, an elbow contour key point, an arm root contour key point, a forearm contour midpoint key point located at the midpoint between the wrist contour key point and the elbow contour key point, and an upper arm midpoint key point located at the midpoint between the elbow contour key point and the arm root contour key point, and the like.

[0417] In one of the optional examples, the gesture key points may include, but are not limited to, at least one of the following: four vertex key points of the gesture frame (ie, the gesture detection frame), and the center key point of the gesture frame, and so on.

[0418] In one of the optional examples, the leg key points may include, but are not limited to, at least one of the following: a crotch key point, a knee contour key point, an ankle contour key point, a thigh root outer contour key point, a calf contour midpoint key point located at the midpoint between the knee contour key point and the ankle contour key point, an inner thigh contour midpoint key point located at the midpoint between the knee contour key point and the crotch key point, and an outer thigh contour midpoint key point located at the midpoint between the knee contour key point and the thigh root outer contour key point, and the like.

[0419] In one of the optional examples, the waist key points may include, but are not limited to, at least one of the following: N equally divided points generated by dividing the area between the thigh root outer contour key point and the arm root contour key point into N equal parts; wherein N is greater than 1.

[0420] In one optional example, the foot key points may include, but are not limited to, at least one of the following: a toe key point and a heel key point, and the like.

[0421] In one of the optional examples, the human skeleton key points may include, but are not limited to, at least one of the following: right shoulder bone key points, right elbow bone key points, right wrist bone key points, left shoulder bone key points, left elbow bone key points, left wrist bone key points, right hip bone key points, right knee bone key points, right ankle bone key points, left hip bone key points, left knee bone key points, left ankle bone key points, top of the head bone key points, and neck bone key points, etc.

[0422] The first generation module is used to generate a beauty makeup and / or face-changing special effects program file package according to the beauty makeup and / or face-changing sub-materials and parameter values ​​and corresponding relationships of the special effects parameters.

[0423] Based on the device for generating a beauty makeup and / or face-changing special effects program file package provided by the above-mentioned embodiment of the present invention, when generating a beauty makeup and / or face-changing special effects program file package, a reference image and key points preset on the reference image are displayed, beauty makeup and / or face-changing sub-materials are imported, and the imported beauty makeup and / or face-changing sub-materials are displayed; parameter values ​​of special effects parameters of the beauty makeup and / or face-changing sub-materials are obtained, and a correspondence between display attributes of the beauty makeup and / or face-changing sub-materials and key points within the display position coverage range is established; a beauty makeup and / or face-changing special effects program file package is generated according to the beauty makeup and / or face-changing sub-materials, parameter values ​​of special effects parameters and the correspondence, so as to realize beauty makeup and / or face-changing special effects on the image. In addition, when the embodiment of the present invention generates a beauty makeup and / or face-changing special effects program file package, there is no need to manually write the program file. It is only necessary to import the beauty makeup and / or face-changing sub-materials to the corresponding display attributes to generate the beauty makeup and / or face-changing special effects program file executable by the rendering engine. The operation is simple and the time required is short, which improves the overall efficiency of the beauty makeup and / or face-changing special effects and avoids the errors that may occur in manually writing program files, effectively ensuring the accuracy of the beauty makeup and / or face-changing special effects.

[0424] In some of the embodiments, the first import module is specifically used to receive an import instruction input through the interactive interface of the operation bar, and import the makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction.

[0425] In some of the optional examples, the first import module is specifically used to: receive a selection instruction sent through the interactive interface of the operation bar, use the reference part selected by the selection instruction as the target part that currently needs to add beauty makeup and / or face-changing special effects, and display the special effects parameter setting interface under the target part in the operation bar; and receive an import instruction sent through the interactive interface in the special effects parameter setting interface, and import the beauty makeup and / or face-changing sub-materials in the material folder pointed to by the import instruction.

[0426] In some of the optional examples, when the first import module imports the beauty makeup and / or face-changing sub-materials in the material folder pointed to by the above-mentioned import instruction, it is specifically used to: receive the import instruction sent through the interactive interface, obtain and display the material folder pointed to by the import instruction; in response to receiving an operation to select the beauty makeup and / or face-changing sub-materials in the material folder, import one or more beauty makeup and / or face-changing sub-materials selected by the beauty makeup and / or face-changing sub-material selection operation; and / or, in response to not receiving an operation to select the beauty makeup and / or face-changing sub-materials in the material folder, select one or more beauty makeup and / or face-changing sub-materials in the material folder according to preset settings, and import the beauty makeup and / or face-changing sub-materials selected according to the preset settings; wherein, the multiple beauty makeup and / or face-changing sub-materials form a group of beauty makeup and / or face-changing sub-materials with a predetermined playback timing.

[0427] For example, the playback timing of multiple beauty makeup and / or face changing sub-materials in the above-mentioned group of beauty makeup and / or face changing sub-materials is determined based on the file names of the multiple beauty makeup and / or face changing sub-materials.

[0428] In some of the embodiments, when the display module displays the imported beauty makeup and / or face-changing sub-material, it is specifically used to display the imported beauty makeup and / or face-changing sub-material on the target part according to the parameter value of the superposition method.

[0429] In some of the embodiments, the first acquisition module is specifically used to: in response to receiving parameter values ​​for setting special effects parameters for makeup and / or face-changing sub-materials sent through the interactive interface of the operation bar, use the set parameter values ​​as the parameter values ​​of the special effects parameters for the makeup and / or face-changing sub-materials; and / or, in response to not receiving parameter values ​​for setting special effects parameters for makeup and / or face-changing sub-materials sent through the interactive interface of the operation bar, use preset parameter values ​​as the parameter values ​​of the special effects parameters for the makeup and / or face-changing sub-materials.

[0430] In some implementations of the embodiments of the present invention, the special effect parameters may include, but are not limited to, any one or more of the following:

[0431] 1. Display parameter (Display): used to indicate whether to display the makeup and / or face-changing sub-materials. 2. Overlay method parameter (Tag): used to indicate the overlay method of the makeup and / or face-changing sub-materials.

[0432] 3. Trigger Type parameter: used to indicate the trigger event that triggers the display of the makeup and / or face-changing sub-materials, which refers to the trigger event that triggers the display of the makeup and / or face-changing sub-materials;

[0433] 4. TriggerLoop: It is used to indicate the number of times the makeup and / or face-changing sub-materials are displayed in a loop. You can set or select a specific value for the number of loop playback as its parameter value;

[0434] 5. Playback frame number parameter (Frames): used to indicate the number of frames for playing the makeup and / or face-changing sub-material, that is, the number of frames on which the corresponding makeup and / or face-changing sub-material needs to be displayed during video playback;

[0435] 6. Trigger Delay parameter (TriggerDelay): used to indicate the delay time for displaying the makeup and / or face-changing sub-material, that is, the delay time or the delay frame in the video playback process from the time the trigger mode in the trigger mode parameter is detected to the time when the makeup and / or face-changing sub-material is displayed;

[0436] 7. Trigger stop parameter (TriggerStop): used to indicate the trigger event for ending the display of the makeup and / or face-changing sub-materials, which refers to the trigger event that ends the display of the makeup and / or face-changing sub-materials;

[0437] 8. Deformation special effect parameter (Deformation): used to indicate the deformation effect of the deformation area generated on the image when displaying the makeup and / or face-changing sub-materials. The deformation special effect parameter may include a display position parameter and a deformation effect parameter of the deformation area. The display position of the deformation area may be determined by the position of at least one predetermined key point corresponding to it, so the display position parameter may be the position or number of the corresponding key point, etc. The deformation effect parameter may be a parameter indicating the deformation effect such as inward stretching or outward stretching. The parameter value of the deformation special effect parameter may include: the position or number of the key point corresponding to the deformation area, and the parameter value of the deformation effect parameter. By setting the parameter value of the deformation special effect parameter, it can be used to process the deformation special effect of the image and generate the deformation effect (also called deformation special effect) of the deformation area on the image.

[0438] 9. Sticker special effect parameters, used to indicate the special effects of sub-materials generated on the image when displaying makeup and / or face-changing sub-materials. The sticker special effect parameters may include the display position and playback parameters of sticker special effect sub-materials (such as earrings, hats, etc.). The display position of the sticker special effect sub-material may be determined by the position of at least one predetermined key point corresponding to it, so the display position parameter may be the position or number of the corresponding key point, etc. The playback parameter may be a parameter indicating the playback effect of the sticker special effect sub-material (such as the number of loops, the number of playback frames, etc.). The parameter value of the sticker special effect parameter may include: the position or number of the key point corresponding to the sticker special effect sub-material, and the parameter value of the playback parameter. Based on the parameter value of the sticker special effect parameter, it can be used to generate sticker special effect sub-materials in videos or images;

[0439] 10. Stroke special effect parameter (BackgroundEdge), used to indicate that a stroke special effect is generated on an image when displaying makeup and / or face-changing sub-materials. The stroke special effect parameter may include a target object in the image that needs to be stroked (e.g., face, clothes, hands, ears, etc.) and a stroke effect parameter (e.g., the thickness and color of the stroke). The parameter value of the stroke special effect parameter may include: the number or name of the target object, the parameter value of the stroke effect parameter (e.g., the thickness and color of the stroke). By setting the parameter value of the stroke special effect parameter, it can be used to perform stroke special effect processing on the target object in the image, add strokes to the target object in the image, realize stroke special effects, and render AR effects on the target object in the video image.

[0440] In some optional examples, the trigger events may include but are not limited to any one or more of the following: no motion trigger, eye movement, head movement, eyebrow movement, hand movement, mouth movement, shoulder movement, deformation effects, sticker effects, sound effects, stroke effects, and other actions.

[0441] In some implementations of the embodiments of the present invention, the establishing module is specifically used to establish a correspondence between display attributes of the makeup and / or face-changing sub-material and at least two key points within the display position coverage range.

[0442] Fig.15 FIG. 1 is a schematic diagram of another embodiment of a device for generating a beauty and / or face-changing special effects program file package of the present invention. Fig.15 As shown, in the generating device of this embodiment, the display module includes: an operation interface, which is used to display in response to receiving a start instruction. The operation interface may include: an operation bar, a content display bar and / or a program file bar. Figure 4 , which is an optional example diagram of the operation interface. Accordingly, in this embodiment, the display module is specifically used to display the reference image and the key points preset on the reference image in the content display bar; and to display the imported beauty and / or face-changing sub-materials in the content display bar.

[0443] In some implementations of the embodiments of the present invention, the operation interface includes three areas: left, middle and right, wherein an operation bar is displayed on the left side of the operation interface, a content display bar is displayed in the middle of the operation interface, and a program file bar is displayed on the right side of the operation interface.

[0444] In addition, see Fig.15 In another embodiment of the device for generating a makeup and / or face-changing special effects program file package, it may also include: a first updating module, used to update the display position and corresponding relationship of the makeup and / or face-changing sub-material according to the position movement operation of the makeup and / or face-changing sub-material received through the content display bar.

[0445] In addition, see Fig.15 In another embodiment of the device for generating a makeup and / or face-changing special effects program file package, it may also include: a second updating module, used to update the display size of the makeup and / or face-changing sub-material in the content display bar according to the size adjustment operation of the makeup and / or face-changing sub-material received through the content display bar.

[0446] In addition, see Fig.15In another embodiment of the device for generating a beauty and / or face-changing special effects program file package, it may also include: an adjustment module, which is used to adjust the occlusion relationship between two or more beauty and / or face-changing sub-materials according to the layer parameter adjustment instruction sent to two or more beauty and / or face-changing sub-materials through the interactive interface of the operation bar. Correspondingly, in this embodiment, the display module is also used to display the two or more beauty and / or face-changing sub-materials according to the adjusted occlusion relationship and the parameter value of the superposition method of the two or more beauty and / or face-changing sub-materials.

[0447] In addition, in the above-mentioned embodiments of the device for generating the beauty and / or face-changing special effects program file package, the first generating module can also be used to generate the special effects program file of the beauty and / or face-changing sub-material according to the parameter values ​​and corresponding relationships of the special effects program file and the special effects parameters of the beauty and / or face-changing sub-material before generating the beauty / special effects program file package, and display the special effects program file of the beauty and / or face-changing sub-material through the program file column. The special effects program file can include, for example, a special effects program file generated by a json program.

[0448] In addition, see Fig.15 In another embodiment of the device for generating a beauty makeup and / or face-changing special effects program file package, it may also include: a saving module, used to save the beauty makeup and / or face-changing special effects program file package at the location pointed to by the saving instruction according to the received saving instruction.

[0449] In some implementations of the embodiments of the present invention, the saving module is specifically used to: display a saving path selection interface and a compression interface in response to receiving a saving instruction; receive a saving location sent through the saving path selection interface; and receive a compression method sent based on the compression interface, and compress the beauty and / or face-changing special effects program file package according to the compression method to generate a compressed file package; and store the compressed file package in the folder pointed to by the saving location.

[0450] In some implementations of the embodiments of the present invention, the size of the makeup and / or face-changing sub-material in the makeup and / or face-changing special effects program file package remains the size before the makeup and / or face-changing sub-material is imported.

[0451] Fig.16 FIG. 1 is a schematic diagram of the structure of an embodiment of a makeup and / or face-changing special effects generating device of the present invention. The makeup and / or face-changing special effects generating device of each embodiment of the present invention can be used to implement the makeup and / or face-changing special effects generating method of each embodiment of the present invention. Fig.16 As shown, the generating device of this embodiment may include: a second acquisition module and a second generating module.

[0452] The second acquisition module is used to acquire the beauty and / or face-changing sub-material, the parameter values ​​of the special effect parameters of the beauty and / or face-changing sub-material, and the corresponding relationship between the display attributes and key points of the beauty and / or face-changing sub-material; the display attributes include: size and / or display position. The display attributes include: size and / or display position, that is, they can include both size and display position, or only size or display position.

[0453] The corresponding relationship between the display attributes of the makeup and / or face-changing sub-material and the key points within the display position coverage range may be a one-to-one corresponding relationship between the display attributes and at least one key point (e.g., two or more key points) within the display position coverage range, or a one-to-one binding relationship between the display attributes and at least one key point within the display position coverage range. The makeup and / or face-changing sub-material may include: a makeup and / or face-changing sub-material for one part of a person, and / or a combination of makeup and / or face-changing sub-materials for two or more parts of a person.

[0454] In some of the implementation modes, the special effect parameters may include: a superposition method parameter for indicating a superposition method of makeup and / or face-changing sub-materials.

[0455] The second generation module is used to generate special effects of beauty makeup and / or face-changing sub-materials on the image based on the corresponding relationship, key points in the image involved in the corresponding relationship, and parameter values ​​of the special effect parameters.

[0456] The images may include but are not limited to any one or more of the following: static images, images in videos.

[0457] Based on the beauty and / or face-changing special effects generation device provided by the above-mentioned embodiment of the present invention, the parameter values ​​of the beauty and / or face-changing sub-material and its special effects parameters, and the corresponding relationship between the display attributes and key points of the beauty and / or face-changing sub-material are obtained, wherein the display attributes include size and display position; based on the corresponding relationship and the key points in the image involved and the parameter values ​​of the special effects parameters, the special effects of the beauty and / or face-changing sub-material are generated on the image. The embodiment of the present invention can generate beauty and / or face-changing special effects on the image by pre-setting the parameter values ​​of the beauty and / or face-changing sub-material and its special effects parameters, and the corresponding relationship between the display attributes and key points of the beauty and / or face-changing sub-material, thereby increasing the overall atmosphere effect of the image playback, enhancing the user's entertainment, improving the user's sense of immersion, and improving the playback effect.

[0458] Fig.17 FIG. 2 is a schematic diagram of another embodiment of the makeup and / or face-changing special effects generating device of the present invention. Fig.17 As shown, Fig.16Compared with the embodiment shown, the beauty and / or face-changing special effects generating device of this embodiment may further include: a second import module for importing a beauty and / or face-changing special effects program file package; the beauty and / or face-changing special effects program file package includes: beauty and / or face-changing sub-materials, parameter values ​​of special effects parameters of beauty and / or face-changing sub-materials, and the corresponding relationship between display attributes and key points of beauty and / or face-changing sub-materials. Optionally, the above-mentioned beauty and / or face-changing special effects program file package may be a beauty and / or face-changing special effects program file package generated by the method or device for generating a beauty and / or face-changing special effects program file package of any of the above-mentioned embodiments of the present invention.

[0459] Correspondingly, in this embodiment, the second acquisition module is specifically used to obtain makeup and / or face-changing sub-materials, parameter values ​​of special effect parameters, and corresponding relationships from the makeup and / or face-changing special effect program file package.

[0460] In addition, see Fig.17 In another embodiment of the makeup and / or face-changing special effects generating device, it further includes: a key point detection module, which is used to detect key points involved in the corresponding relationship on the image through a neural network and output the key point detection result. The key point detection result may include, but is not limited to, any one or more of the following: the position of the key point involved in the corresponding relationship in the image in the video; the preset number of the key point involved in the corresponding relationship.

[0461] In some of the embodiments, the above-mentioned makeup and / or face-changing sub-materials include: a group of makeup and / or face-changing sub-materials with a predetermined playback sequence. Accordingly, in some of the embodiments, the second generation module is specifically used to: determine the playback sequence of multiple makeup and / or face-changing sub-materials based on the file names of multiple makeup and / or face-changing sub-materials in a group of makeup and / or face-changing sub-materials; and generate special effects of the makeup and / or face-changing sub-materials on the image according to the determined playback sequence based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter values ​​of the special effect parameters.

[0462] In some of the embodiments, the special effect parameters include: a superposition method parameter used to indicate the superposition method of the makeup and / or face-changing sub-materials.

[0463] In some embodiments, the special effect parameters include: a display parameter, which is used to indicate whether to display the beauty makeup and / or face-changing sub-material. Accordingly, in this embodiment, the second generation module is specifically used to generate the special effects of the beauty makeup and / or face-changing sub-material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter value of the special effect parameter in response to the parameter value of the display parameter being the parameter value of the beauty makeup and / or face-changing sub-material.

[0464] In some implementations, the special effect parameters include: a trigger mode parameter, which is used to indicate a trigger event for triggering the display of the makeup and / or face-changing sub-materials. Fig.17 The device of this embodiment further includes: a first detection module, which is used to detect whether a trigger event corresponding to the parameter value of the trigger mode parameter appears in the image. Accordingly, the second generation module is specifically used to generate special effects of beauty makeup and / or face-changing sub-materials on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter value of the special effect parameter in response to detecting the trigger event corresponding to the parameter value of the trigger mode parameter appearing in the image.

[0465] In some of the embodiments, the above-mentioned special effect parameters include: a delay trigger parameter, which is used to indicate the time for delaying the display of the makeup and / or face-changing sub-materials. Accordingly, in this embodiment, the second generation module is specifically used to respond to the display conditions of the makeup and / or face-changing sub-materials, and according to the delayed playback time corresponding to the parameter value of the delay trigger parameter, based on the correspondence, the key points in the image involved in the correspondence, and the parameter value of the special effect parameter, delay the generation of the special effects of the makeup and / or face-changing sub-materials on the image; the display conditions of the makeup and / or face-changing sub-materials include: the parameter value of the display parameter is used to display the makeup and / or face-changing sub-materials, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0466] In some of the embodiments, the above-mentioned special effect parameters include: a loop parameter, which is used to indicate the number of loop playback times of the beauty and / or face-changing sub-materials. Accordingly, in this embodiment, the second generation module is specifically used to respond to the display conditions of the beauty and / or face-changing sub-materials, based on the correspondence, the key points in the image involved in the correspondence, and the parameter value of the special effect parameter, and according to the number of loops corresponding to the parameter value of the loop parameter, to loop display the beauty and / or face-changing sub-materials on the image to generate special effects of the beauty and / or face-changing sub-materials; the display conditions of the beauty and / or face-changing sub-materials include: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-materials, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0467] In some of the embodiments, the above-mentioned special effect parameters include: a playback frame number parameter, which is used to indicate how many frames the beauty and / or face-changing sub-material is played. Correspondingly, in this embodiment, the second generation module is specifically used to generate special effects of the beauty and / or face-changing sub-material on the image corresponding to the playback frame number in the video based on the corresponding relationship, the key points in the image involved in the corresponding relationship, and the parameter value of the special effect parameter according to the playback frame number corresponding to the parameter value of the playback frame number parameter in response to the playback conditions of the beauty and / or face-changing sub-material; the display conditions of the beauty and / or face-changing sub-material include: the parameter value of the display parameter is used to display the beauty and / or face-changing sub-material, and / or, a trigger event corresponding to the parameter value of the trigger mode parameter occurs.

[0468] In some implementations, the special effect parameters include: a trigger end parameter, which is used to indicate a trigger event for ending the display of the makeup and / or face-changing sub-materials. Fig.17 The device of this embodiment further includes: a second detection module, which is used to detect whether a trigger event corresponding to the parameter value of the trigger end parameter occurs. In this embodiment, the second generation module is also used to stop generating special effects of the beauty makeup and / or face-changing sub-material in response to the second detection module detecting the occurrence of a trigger event corresponding to the parameter value of the trigger end parameter.

[0469] In some embodiments, the special effect parameters include: deformation special effect parameters, which are used to represent the deformation effect of generating a deformation area on the image when displaying the beauty makeup and / or face-changing sub-material. Accordingly, in this embodiment, the second generation module is also used to generate a deformation effect of the deformation area in the image according to the deformation special effect parameters when generating the special effects of the beauty makeup and / or face-changing sub-material on the image based on the correspondence, the key points in the image involved in the correspondence, and the parameter values ​​of the special effect parameters.

[0470] In some of the embodiments, the special effect parameters include sticker special effect parameters, which are used to indicate the special effects of the sub-material generated on the image when displaying the beauty makeup and / or face-changing sub-material. Accordingly, in this embodiment, the second generation module is also used to generate the special effects of the sub-material in the image according to the sticker special effect parameters when generating the special effects of the beauty makeup and / or face-changing sub-material on the image based on the correspondence, the key points in the image involved in the correspondence, and the parameter values ​​of the special effect parameters.

[0471] In addition, another electronic device provided by an embodiment of the present invention includes:

[0472] Memory for storing computer programs;

[0473] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, it implements the method for generating a beauty makeup and / or face-changing special effects program file package or the method for generating beauty makeup and / or face-changing special effects according to any of the above embodiments of the present invention.

[0474] Fig.18 This is a schematic diagram of the structure of an application embodiment of the electronic device of the present invention. Fig.18 , which shows a schematic diagram of the structure of an electronic device suitable for implementing a terminal device or a server in an embodiment of the present application. Fig.18 As shown, the electronic device includes one or more processors, a communication unit, etc. The one or more processors are, for example: one or more central processing units (CPUs), and / or one or more graphics processing units (GPUs), etc. The processor can perform various appropriate actions and processes according to executable instructions stored in a read-only memory (ROM) or executable instructions loaded from a storage part to a random access memory (RAM). The communication unit may include but is not limited to a network card, and the network card may include but is not limited to an IB (Infiniband) network card. The processor may communicate with a read-only memory and / or a random access memory to execute executable instructions, and is connected to the communication unit through a bus and communicates with other target devices through the communication unit, thereby completing the operation corresponding to any method provided in the embodiments of the present application, for example, displaying a reference image and preset key points on the reference image; the reference image includes: at least a portion of an image of a reference character; importing beauty makeup and / or face-changing sub-materials, and displaying the imported beauty makeup and / or face-changing sub-materials; obtaining parameter values ​​of special effect parameters of the beauty makeup and / or face-changing sub-materials, the special effect parameters include superposition mode parameters, and establishing a correspondence between display attributes of the beauty makeup and / or face-changing sub-materials and key points within the display position coverage range; the display attributes include: size and / or display position; generating a beauty makeup and / or face-changing special effect program file package according to the beauty makeup and / or face-changing sub-materials, the parameter values ​​of the special effect parameters and the correspondence. For another example, obtain the makeup and / or face-changing sub-material, the parameter values ​​of the special effect parameters of the makeup and / or face-changing sub-material, and the correspondence between the display attributes and key points of the makeup and / or face-changing sub-material; the display attributes include: size and / or display position; based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, generate the special effects of the makeup and / or face-changing sub-material on the image.

[0475] In addition, various programs and data required for the operation of the device can also be stored in the RAM. The CPU, ROM and RAM are connected to each other via a bus. In the case of RAM, the ROM is an optional module. The RAM stores executable instructions, or writes executable instructions into the ROM at runtime, and the executable instructions enable the processor to perform operations corresponding to any of the above methods of the present invention. The input / output (I / O) interface is also connected to the bus. The communication unit can be integrated or can be configured to have multiple submodules (e.g., multiple IB network cards) and be linked on the bus.

[0476] The following components are connected to the I / O interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section including a hard disk, etc.; and a communication section including a network interface card such as a LAN card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that a computer program read therefrom is installed into the storage section as needed.

[0477] If necessary, Fig.18 The architecture shown is only an optional implementation method. In the specific practice, the above can be modified according to actual needs. Fig.18 The number and type of components can be selected, deleted, added or replaced; different functional components can be set up by separate settings or integrated settings, for example, the GPU and CPU can be set up separately or the GPU can be integrated on the CPU, the communication unit can be set up separately or integrated on the CPU or GPU, etc. These replaceable implementations all fall within the protection scope disclosed in the present invention.

[0478] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, the computer program includes a program code for executing the method shown in the flowchart, and the program code may include instructions corresponding to the steps of the face anti-counterfeiting detection method provided in the embodiment of the present application. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the CPU, the above functions defined in the method of the present application are executed.

[0479] In addition, an embodiment of the present invention also provides a computer program, including computer instructions. When the computer instructions are executed in the processor of the device, the method for generating a makeup and / or face-changing special effects program file package or the method for generating makeup and / or face-changing special effects of any of the above embodiments of the present invention is implemented.

[0480] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements a method for generating a makeup and / or face-changing special effects program file package or a method for generating makeup and / or face-changing special effects according to any of the above embodiments of the present invention.

[0481] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0482] The method and apparatus of the present invention may be implemented in many ways. For example, the method and apparatus of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.

[0483] The description of the present invention is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for particular uses.

Claims

1. A method for generating a special effect program file package, characterized in that: include: Displaying a reference image and key points preset on the reference image; The reference image includes: an image of at least a portion of a reference person; Acquire special effect material and display the special effect material; Acquire the parameter value of the special effect parameter of the special effect material through the interactive interface, and establish a correspondence between the display attribute of the special effect material and the key points within the display position coverage range; the display attribute includes: size and / or display position, the special effect parameter includes a trigger mode parameter, the trigger mode parameter is used to indicate a trigger event for triggering the display of the special effect material, and the trigger event is an event for detecting a preset action of the reference character; A special effect program file package executable by a rendering engine is generated according to the special effect material, the parameter value of the special effect parameter and the corresponding relationship. When the special effect program file package is executed, it is used to generate the special effect of the special effect material on the image.

2. The method according to claim 1, characterized in that The obtaining of special effect materials includes: An import instruction input through the interactive interface is received, and special effect materials in the material folder pointed to by the import instruction are imported.

3. The method according to claim 2, characterized in that The step of receiving the import instruction input through the interactive interface and importing the special effect material in the material folder pointed to by the import instruction includes: receiving a selection instruction sent through the interactive interface, taking the reference part selected by the selection instruction as the target part to be added with special effects, and displaying a special effects parameter setting interface under the target part; An import instruction sent through the interactive interface in the special effect parameter setting interface is received, and the special effect material in the material folder pointed to by the import instruction is imported.

4. The method according to claim 2, characterized in that: The importing of the special effect material in the material folder pointed to by the import instruction includes: Receiving an import instruction sent through the interactive interface, and acquiring and displaying a material folder pointed to by the import instruction; In response to receiving an operation of selecting a special effect material in the material folder, importing one or more special effect materials selected by the special effect material selection operation; and / or In response to not receiving an operation to select a special effect material in the material folder, selecting one or more special effect materials in the material folder according to a preset setting, and importing the special effect materials selected according to the preset setting; The plurality of special effect materials form a group of special effect materials with a predetermined playback sequence.

5. The method according to claim 4, characterized in that In the group of special effect materials with predetermined play timing, the play timing of multiple special effect materials is determined based on the file names of the special effect materials.

6. The method according to claim 1, characterized in that The special effect parameters include superposition mode parameters; and the displaying of the special effect material includes: The special effect material is displayed on a target part of the reference character in the reference image according to a parameter value of the superposition mode parameter.

7. The method according to claim 1, characterized in that The interactive interface is an interactive interface provided on the operation bar; the obtaining of the parameter value of the special effect parameter of the special effect material through the interactive interface includes: In response to receiving a parameter value of a special effect parameter setting for the special effect material sent through an interactive interface of the operation bar, using the set parameter value as the parameter value of the special effect parameter of the special effect material; and / or In response to not receiving the parameter value of the special effect parameter setting for the special effect material sent through the interactive interface of the operation bar, using the preset parameter value as the parameter value of the special effect parameter of the special effect material.

8. The method according to claim 1, characterized in that The establishing of the correspondence between the display attributes of the special effect material and the key points within the coverage range of the display position includes: A correspondence between the display attribute of the special effect material and at least two key points within the display position coverage range is established.

9. The method according to claim 1, characterized in that: Also includes: In response to receiving the start instruction, displaying an operation interface, the operation interface including a content display bar; The displaying of the special effect material includes: displaying the special effect material in the content display bar.

10. The method according to claim 9, characterized in that The method further comprises at least one of the following steps: updating the display position of the special effect material and the corresponding relationship according to the position movement operation of the special effect material received through the content display bar; According to the size adjustment operation of the special effect material received through the content display bar, updating the display size of the special effect material in the content display bar; According to the layer parameter adjustment instruction sent for two or more special effect materials and received through the interactive interface, the occlusion relationship between the two or more special effect materials is adjusted, and the two or more special effect materials are displayed according to the adjusted occlusion relationship and the parameter value of the superposition method of the two or more special effect materials.

11. The method according to claim 1, characterized in that: Before generating the special effects program file package executable by the rendering engine, the method further includes: A special effect program file of the special effect material is generated according to the preset special effect program file, the parameter values ​​of the special effect parameters of the special effect material, and the corresponding relationship.

12. The method according to claim 1, characterized in that After generating the special effects program file package executable by the rendering engine, the method further includes: The special effect program file package is saved at the location pointed to by the saving instruction according to the received saving instruction.

13. The method according to claim 12, characterized in that The step of saving the special effect program file package at the location pointed to by the saving instruction according to the received saving instruction includes: In response to receiving the save instruction, displaying a save path selection interface and a compression interface; Receiving the save location sent through the save path selection interface; and receiving the compression method sent based on the compression interface, and compressing the special effect program file package according to the compression method to generate a compressed file package; The compressed file package is stored in the folder pointed to by the saving location.

14. The method according to any one of claims 1 to 13, characterized in that: At least a portion of the image of the reference person includes any one or more of the following portions of the image of the reference person: a complete image, a head image, a face image, a shoulder image, an arm image, a gesture image, a waist image, a leg image, and a foot image.

15. The method according to any one of claims 1 to 13, characterized in that The special effect material includes: a special effect material for one part of a character, and / or a combination of special effect materials for two or more parts of a character.

16. The method according to any one of claims 1 to 13, characterized in that: The displaying of the reference image comprises: displaying the reference image and key points preset on the reference image; Among them, the preset key points include any one or more of the following: head key points, face key points, shoulder key points, arm key points, gesture key points, waist key points, leg key points, foot key points, and human skeleton key points.

17. The method according to any one of claims 1 to 13, characterized in that: The special effect parameters also include any one or more of the following: Display parameter: used to indicate whether to display the special effect material; Overlay method parameter: used to indicate the overlay method of the special effect material; Loop parameter: used to indicate the number of times the special effect material is displayed in a loop; Playback frame number parameter: used to indicate the number of frames the special effect material is played; Delay trigger parameter: used to indicate the time for delaying the display of the special effect material; Trigger end parameter: used to indicate the trigger event for ending the display of the special effect material; Deformation special effect parameter: used to indicate the deformation effect of generating a deformation area on an image when displaying the special effect material; Sticker special effect parameters, used to indicate the special effect of generating a sub-material on an image when displaying the special effect material; The stroke special effect parameters are used to indicate that a stroke special effect is generated on an image when displaying the special effect material.

18. The method according to claim 17, characterized in that The trigger event includes any one or more of the following: no action trigger, eye action, head action, eyebrow action, hand action, mouth action, shoulder action, deformation effect, sticker effect, sound effect, and stroke effect.

19. A special effect generation method, characterized in that: include: Importing a pre-generated special effect program file package executable by a rendering engine, wherein the special effect program file package is a special effect program file package generated by using the method according to any one of claims 1 to 18; Acquire special effect materials, parameter values ​​of special effect parameters of the special effect materials, and corresponding relationships between display attributes and key points of the special effect materials from the special effect program file package; The display attributes include: size and / or display position; Based on the corresponding relationship, key points in the image involved in the corresponding relationship and parameter values ​​of the special effect parameters, a special effect of the special effect material is generated on the image.

20. The method according to claim 19, characterized in that The special effect material includes: a special effect material for one part of a character, and / or a combination of special effect materials for two or more parts of a character.

21. The method according to claim 19, characterized in that Also includes: The key points involved in the corresponding relationship are detected on the image through a neural network, and the key point detection result is output.

22. The method according to claim 21, characterized in that The key point detection results include any one or more of the following: The positions of the key points involved in the corresponding relationship in the image; The preset numbers of the key points involved in the corresponding relationship.

23. The method according to claim 19, characterized in that The special effect material includes: a group of special effect materials with a predetermined playback timing; the generating of the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter includes: Determining the playback timing of the plurality of special effect materials based on the file names of the plurality of special effect materials in the group of special effect materials; Based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters, the special effects of the special effect material are generated on the image according to the determined playback sequence.

24. The method according to any one of claims 19 to 23, characterized in that: The special effect parameters include: a superposition method parameter used to indicate the superposition method of the special effect material.

25. The method according to any one of claims 19 to 23, characterized in that: The special effect parameters include: display parameters, the display parameters are used to indicate whether to display the special effect material; The generating the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter comprises: In response to the parameter value of the display parameter being the parameter value for displaying the special effect material, a special effect of the special effect material is generated on the image based on the correspondence, key points in the image involved in the correspondence and the parameter value of the special effect parameter.

26. The method according to any one of claims 19 to 23, characterized in that: The method further comprises: detecting whether a trigger event corresponding to the parameter value of the trigger mode parameter appears in the image; The generating the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter comprises: In response to detecting a trigger event corresponding to the parameter value of the trigger mode parameter appearing in the image, a special effect of the special effect material is generated on the image based on the corresponding relationship, key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter.

27. The method according to claim 26, characterized in that The special effect parameters include: a delay trigger parameter, the delay trigger parameter is used to indicate the time for delaying the display of the special effect material; The generating the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter comprises: In response to satisfying the display condition of the special effect material, according to the delayed playback time corresponding to the parameter value of the delay trigger parameter, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, delaying the generation of the special effect of the special effect material on the image; The display condition satisfying the special effect material includes: the parameter value of the display parameter is used to display the special effect material, and / or the occurrence of a trigger event corresponding to the parameter value of the trigger mode parameter.

28. The method according to claim 26, characterized in that The special effect parameters include: a loop parameter, which is used to indicate the number of times the special effect material is played in a loop; The generating the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter comprises: In response to satisfying a display condition of the special effect material, based on the corresponding relationship, key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, the special effect material is cyclically displayed on the image according to the number of cycles corresponding to the parameter value of the cycle parameter, so as to generate a special effect of the special effect material; The display condition satisfying the special effect material includes: the parameter value of the display parameter is used to display the special effect material, and / or the occurrence of a trigger event corresponding to the parameter value of the trigger mode parameter.

29. The method according to claim 26, characterized in that The special effect parameters include: a playback frame number parameter, which is used to indicate the number of frames for playing the special effect material; The generating the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter comprises: In response to satisfying the playback condition of the special effect material, based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter value of the special effect parameter, and according to the playback frame number corresponding to the parameter value of the playback frame number parameter, generating a special effect of the special effect material on the image corresponding to the playback frame number in the video; The display condition satisfying the special effect material includes: the parameter value of the display parameter is used to display the special effect material, and / or the occurrence of a trigger event corresponding to the parameter value of the trigger mode parameter.

30. The method according to any one of claims 19 to 23, characterized in that: The special effect parameters include: a trigger end parameter, the trigger end parameter is used to indicate a trigger event for ending the display of the special effect material; The method further comprises: Detecting whether a trigger event corresponding to the parameter value of the trigger end parameter occurs; In response to detecting the occurrence of a trigger event corresponding to the parameter value of the trigger end parameter, stopping the generation of the special effects of the special effects material.

31. The method according to any one of claims 19 to 23, characterized in that: The special effect parameters include: deformation special effect parameters, the deformation special effect parameters are used to represent the deformation effect of generating a deformation area on the image when displaying the special effect material; The method further comprises: Based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, when generating the special effects of the special effect material on the image, the deformation effect of the deformation area is generated in the image according to the deformation special effect parameters.

32. The method according to any one of claims 19 to 23, characterized in that: The special effect parameters include: sticker special effect parameters, the sticker special effect parameters are used to indicate the special effect of generating a sub-material on an image when displaying the special effect material; The method further comprises: Based on the correspondence, the key points in the image involved in the correspondence and the parameter values ​​of the special effect parameters, when the special effects of the special effect material are generated on the image, the special effects of the sub-material are generated in the image according to the sticker special effect parameters.

33. A device for generating a special effect program file package, characterized in that: include: A display module, used for displaying a reference image and key points preset on the reference image; The reference image includes: at least a portion of an image of a reference character; and displaying acquired special effect material; A first import module, used for acquiring the special effect material; A first acquisition module, used for acquiring parameter values ​​of special effect parameters of the special effect material through an interactive interface, wherein the special effect parameters include trigger mode parameters, and the trigger mode parameters are used to indicate a trigger event for triggering the display of the special effect material, and the trigger event is an event for detecting a preset action of the reference character; An establishing module, used to establish a corresponding relationship between the display attributes of the special effect material and the key points within the display position coverage range; the display attributes include: size and / or display position; The first generation module is used to generate a special effect program file package executable by a rendering engine according to the special effect material, the parameter value of the special effect parameter and the corresponding relationship. When the special effect program file package is executed, it is used to generate the special effect of the special effect material on the image.

34. A special effect generating device, characterized in that: include: A second import module, used for importing a pre-generated special effect program file package executable by a rendering engine, wherein the special effect program file package is a special effect program file package generated by using the method according to any one of claims 1 to 18; A second acquisition module, used for acquiring special effect materials, parameter values ​​of special effect parameters of the special effect materials, and corresponding relationships between display attributes and key points of the special effect materials from the special effect program file package; The display attributes include: size and / or display position; The second generating module is used to generate the special effect of the special effect material on the image based on the corresponding relationship, the key points in the image involved in the corresponding relationship and the parameter values ​​of the special effect parameters.

35. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and wherein when the computer program is executed, the method described in any one of claims 1 to 32 is implemented.

36. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 32.

Citation Information

Patent Citations

  • Method, apparatus and video display card for implementing image special effect

    CN101436306A

  • Method for combining dynamic pictures into mobile phone video

    CN104469179A

  • Method and system for pasting image to human face based on affine transformation

    CN104778712A

  • Method and device for modeling picture figure

    CN104899825A

  • Image processing method and image processing device

    CN105451090A