makeup|SDK
makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.
Loading...
Searching...
No Matches
Instance Methods | Class Methods | Properties | List of all members
FilterTemplate Class Reference

#import <FeatureTemplate.h>

Inherits NSObject.

Instance Methods

(id) - init
 
(NSMutableDictionary *) - ToJSON
 

Class Methods

(FilterTemplate *) + FromJSON:
 

Properties

NSString * name
 
NSMutableArray< FilterParameterTemplate * > * parameters
 

Detailed Description

Defines a name and a paramaters list specifiying a filter. Each filter must take an image as input and returns and image processed by an filtering algorithm. Optionally, a filter can take additional parameters which are stored in parameters member. The engine supports the following filters:

The filter applied is defined by name member. Input parameters of each filter can be set using FilterParameterTemplate class Provides methods for serialization and deserialization of FilterTemplate instances from JSON format.

Method Documentation

◆ FromJSON:

+ (FilterTemplate *) FromJSON: (NSDictionary *)  jsonDictionary

Returns FilterTemplate object out of JSON dictionary.

Parameters
jsonDictionaryJSON dictionary
Returns
deserialized FeatureTemplate object

◆ init

- (id) init

Initializes new FilterTemplate object.

◆ ToJSON

- (NSMutableDictionary *) ToJSON

Returns JSON dictionary out of this FilterTemplate object.

Returns
JSON representation of this FilterTemplate returned as NSMutableDictionary

Property Documentation

◆ name

- (NSString*) name
readwritenonatomicstrong

Name of the filter to apply.

◆ parameters

- (NSMutableArray<FilterParameterTemplate*>*) parameters
readwritenonatomicstrong

List of optional filter parameters.