Skip to main content
Version: 3.22.0 (latest)

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

  1. Download the FaceMask.apk file from the releases page and install it on your device (only 64-bit architecture is supported).
  2. Launch the FaceMask application.
  3. Allow the application to access photos, media and files on the device, as well as take photos and videos.

Windows

  1. Download the FaceMasks_windows_x86_64.zip archive from the releases page on your device and unpack it.
  2. Launch the FaceMasks.exe application (FaceMasks_windows_x86_64/FaceMasks.exe) and press the "Play!" button.
  3. 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.