|
makeup|SDK
makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.
|
#import <FeatureTemplate.h>
Inherits NSObject.
Instance Methods | |
| (id) | - init |
| (NSMutableDictionary *) | - ToJSON |
Class Methods | |
| (FilterQueueTemplate *) | + FromJSON: |
Properties | |
| NSString * | blend |
| NSString * | origin |
| NSMutableArray< FilterTemplate * > * | preprocess |
| NSMutableArray< FilterTemplate * > * | postprocess |
| Boolean | switchLayers |
Contains information defining a single step in the rendering pipeline of each makeup feature element. Single step of the rendering pipeline consists of a blend mode, an optional lists of preprocessing and an optional list of postprocessing filters. The engine supports the following blend modes:
Each blend is performed between the output of the preprocessing stack and the output of the previous blend or previous postprocessing stack. Used blend mode is specified via name member. Specifically, the initial blend is performed between colored a mesh representing queried makeup feature and the first preprocessing stack. Preprocessing filters are applied in sequence starting from raw camera feed. Postprocessing filters are applied in sequence starting from the output of blending. Provides methods for serialization and deserialization of FilterQueueTemplate instances from JSON format.
| + (FilterQueueTemplate *) FromJSON: | (NSDictionary *) | jsonDictionary |
Returns FilterQueueTemplate object out of JSON dictionary
| jsonDictionary | JSON dictionary |
| - (id) init |
Initializes new FilterQueueTemplate object.
| - (NSMutableDictionary *) ToJSON |
Returns JSON dictionary out of this FilterQueueTemplate object
|
readwritenonatomicstrong |
Name of the used blend mode.
|
readwritenonatomicstrong |
The input image for this filter queue. The following values are supported:
The default value for origin is video.
|
readwritenonatomicstrong |
List of postprocessing filters to apply.
|
readwritenonatomicstrong |
List of preprocessing filters to apply.
|
readwritenonatomicassign |
If set to true the output of preprocess is used as a top layer, otherwise output from previous blend is used as a top layer for blending.