|
makeup|SDK
makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.
|
Public Member Functions | |
| MakeupEngine (Activity context, String licensePath, BSCProvider provider) | |
| void | AddObserver (IMakeupObserver observer) |
| void | CreateMakeup (FeatureTemplate featureTemplate, FinishTemplate finishTemplate, ArrayList< Float > boundingBox) |
| void | CreateMakeup (FeatureTemplate featureTemplate, FinishTemplate finishTemplate) |
| void | DisplayMakeup (Effect effect) |
| void | HideMakeup (Effect effect) |
| void | ClearMakeup () |
| void | RemoveMakeup (Effect effect) |
| void | UpdateMakeup (Effect effect) |
| void | Reset () |
| FeatureTemplateRepository | GetFeatures () |
| FinishTemplateRepository | getFinishes () |
| FinishTemplateRepository | GetFinishes () |
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.
|
inline |
Constructor of the makeup engine
| context | The android activity in witch the SDK will render |
| licensePath | Path to the license |
| frameProvider | Instance of FrameProvider used to provide input frames to the SDK |
|
inline |
Attaches observer to the engine. IMakeupObserver is used to obtain event notifications from the engine.
| observer | Instance of IMakeupObserver |
|
inline |
Destroys all created makeup effects.
|
inline |
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 |
|
inline |
Creates makeup effect from given feature and finish templates. Additionally, this function takes an array of floats 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 |
|
inline |
Displays given makeup effect.
| effect | makeup effect id |
|
inline |
Returns loaded feature template repository containing predefined features. Each of the predefined feature templates specify a standard renderfing procedure for each of the makeup features supported by the engine.
|
inline |
|
inline |
Returns loaded finish template repository containing predefined finishes. Each of the predefined finish templates specify a standard renderfing procedure for each of the finishes supported by the engine.
|
inline |
Hides given makeup effect.
| effect | makeup effect |
|
inline |
Destroys given makeup effect.
| effect | makeup effect |
|
inline |
Reinitializes face tracking. When using the SDK on single images, this method should be called after each image has been processed.
|
inline |
Updates given makeup effect.
| effect | makeup effect |