Unity sample
The FaceMask
Unity sample displays different face masks created with a 3D face mesh (See Anthropometric points). This sample contains 4 available standard face masks and one dynamic mask, in which images are selected depending on your emotions:
An example of running FaceMasks.apk: the displayed mask depends on the emotion
The prebuilt demo is available for Android 64-bit and Windows 64-bit in the assets to the release.
Install and run the App
Android
- Download the FaceMask.apk file from the releases page and install it on your device (only 64-bit architecture is supported).
- Launch the
FaceMask
application. - Allow the application to access photos, media and files on the device, as well as take photos and videos.
Windows
- Download the FaceMasks_windows_x86_64.zip archive from the releases page on your device and unpack it.
- Launch the
FaceMasks.exe
application (FaceMasks_windows_x86_64/FaceMasks.exe) and press the "Play!" button. - Select a root folder of an installed FaceSDK distributive and restart the application.
Features
- At the bottom of the screen you can choose one of the standard masks or a dynamic mask (the last one in the list).
- In a dynamic mask the image depends on your emotions. You can change the set of masks for different emotions. To do this, click on the dynamic mask icon and then click on the emotion icon (NEUTRAL/HAPPY/ANGRY/SURPRISE) to select a mask.
- To change the used device camera, click on the camera icon at the top of the screen.
Settings
To change the sample settings, click on the arrow at the bottom of the screen. The following options are available:
- Opacity - the degree of the mask transparency. Available values: from 0 to 1.
- Motion smoothing. Available values: from 0 to 1.
- Resolution. Available values: depends on the device used.