Visage Tracker Unity Plugin (C# wrapper) project

The VisageTrackerUnityPlugin is a wrapper that exposes some of VisageTracker's, VisageFaceAnalyser's and VisageFaceRecognition's functionalities for use in managed programming languages such as C# and Java. A prebuilt version of the wrapper is provided in libs/libVisageTrackerUnityPlugin.so. It's use is demonstrated in VisageTrackerUnityDemo sample where a C# script is used to call functions exposed in this library. This project is designed to be integrated in other applications and cannot be run on its own.

Building the project

The files related to Visage Tracker Unity Plugin project are located in the Samples/Android/VisageTrackerUnityPlugin sub-folder of the visage|SDK folder.

Prerequisites to building the sample project are :

To build the VisageTrackerUnityPlugin the Android NDK's "ndk-build.cmd" (or equivalent on linux) must be executed from inside the Samples/Android/VisageTrackerUnityPlugin folder. The quickest way to do this is to open the command line and execute the following commands on Windows (or equivalent on linux):
For example: The NDK will build the library in the libs subfolder of the VisageTrackerUnityPlugin project folder. The build will include all dependent libraries.

Implementation overview

The project consists of Android make scripts and C++ source code and header files. Within the project VisageTrackerUnityPlugin is split into three source code files, one for each functionality it comprises: VisageTracker's, VisageFaceAnalyser's and VisageFaceRecognition's functionality. Exposed functionalities are described in the following files:


VisageTrackerUnityPlugin is also used as Java interface since camera handling and sending frames to tracker is realised in Java plugin.