Skip to main content
Version: 3.13.0

Unity Sample

The FaceMask Unity sample displays different face masks created with a 3D mesh of a face (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. Unpack the windows_x86_64.zip archive. This application is located in the bin/unity/FaceMask_demo directory.
  2. Add the path to the bin folder to the PATH environment variable.
  3. Run the FaceMask.exe file (bin/unity/FaceMask_demo/FaceMask.exe).

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
Last updated on