|
makeup|SDK
makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.
|
#import <MakeupEngine.h>
Instance Methods | |
| (void) | - AddObserver: |
| (void) | - CreateMakeUp:featureTemplate: |
| (void) | - CreateMakeUp:featureTemplate:finishTemplate: |
| (void) | - DisplayMakeUp: |
| (void) | - UpdateMakeUp: |
| (void) | - ClearMakeUp |
| (void) | - HideMakeUp: |
| (void) | - RemoveMakeUp: |
Instance Methods inherited from MakeupEngine | |
| (void) | - AddObserver: |
| (FeatureTemplateRepository *) | - GetFeatures |
| (void) | - CreateMakeup:featureTemplate: |
| (void) | - CreateMakeup:featureTemplate:finishTemplate: |
| (void) | - DisplayMakeup: |
| (void) | - UpdateMakeup: |
| (void) | - ClearMakeup |
| (void) | - HideMakeup: |
| (void) | - RemoveMakeup: |
| (void) | - Reset |
| (void) | - SetCameraDevice: |
| (FinishTemplateRepository *) | - GetFinishes |
| (UIView *) | - GetView |
| Retrieve surface that displays the resulting output of the makeup engine. Resizing of the surface is tied to the quality of the rendering pipeline. Higher resolutions give better fidelity but at the cost of performance. For the highest quality keep the aspect ratio of input images and the surface similar. | |
MakeupEngine method instead.This class is part of the SDK's core functionality.
It primarily serves two key functions:
Manipulating the current output of the view throught creating, displaying, updating, hiding, and removing makeup effects.
Exposure of FeatureTemplateRepository and FinishTemplateRepository deserialized from Feature.json and finishes.json files.
| - (void) AddObserver: | (id< IMakeUpObserver >) | observer |
Attaches observer to the engine. IMakeUpObserver is used to obtain event notifications from the engine.
| observer | Instance of IMakeUpObserver |
| - (void) ClearMakeUp |
ClearMakeup method instead.Destroys all created makeup effects.
| - (void) CreateMakeUp: | (FeatureTemplate *) | ||
| featureTemplate: | (FinishTemplate *) | finishTemplate | |
CreateMakeup method instead.Creates makeup effect from given feature and finish templates. Returns the id of the created effect via IMakeUpObserver interface.
| featureTemplate | FeatureTemplate object |
| finishTemplate | FinishTemplate object |
| - (void) CreateMakeUp: | (FeatureTemplate *) | ||
| featureTemplate: | (FinishTemplate *) | ||
| finishTemplate: | (NSArray *) | boundingBox | |
Creates makeup effect from given feature and finish templates. Additionally, this function takes an array of NSNumbers specifying a bounding box in the following way:
| featureTemplate | FeatureTemplate object |
| finishTemplate | FinishTemplate object |
| boundingBox | Quuartet specifying bounding box in which this effect is visible |
| - (void) DisplayMakeUp: | (Effect *) | effect |
DisplayMakeup method instead.Displays given makeup effect.
| effect | makeup effect |
| - (void) HideMakeUp: | (Effect *) | effect |
HideMakeup method instead.Hides given makeup effect.
| effect | makeup effect |
| - (void) RemoveMakeUp: | (Effect *) | effect |
RemoveMakeup method instead.Destroys given makeup effect.
| effect | makeup effect |
| - (void) UpdateMakeUp: | (Effect *) | effect |
UpdateMakeup method instead.Updates given makeup effect.
| effect | makeup effect |