Showcase Demo sample project

This sample application demonstrates:

Currently, tracking is limited to 4 faces, although this can be modified. Pre-built Android application is located in the bin folder. Full source code of this sample is located in Samples/Android/ShowcaseDemo.

Using the sample application

To try Showcase Demo application, you need to transfer and install application on your Android device. First, connect your phone as a storage device and transfer the apk file onto SD card. Then, use file explorer on the Android device to locate and install the sample application. If you are not able to install the application, the following steps might be required (depending on your Android version):

After the installation is finished you can run the application on the device.
Application automatically starts tracking and analysing face from camera frame. You can switch between front and back camera by choosing middle button from the top toolbar. The rightmost button allows the user to select an image or video from the device to be used as the source.
By pressing menu icon, you can choose which output from face analyser and face tracker will be displayed.

Building the sample project

ShowcaseDemo sample project is located in the ShowcaseDemo subfolder of the visage|SDK for Android folder.

Prerequisites for building and running the sample project are:

Sample applications were built and tested using:

Implementation overview

The visage|SDK API is written in C++. Since development on Android is done in Java, this sample uses AndroidWrapper C++ class that exposes Java methods for using tracking and face analysis API, while the implementation of those methods is done in C++. The AndroidWrapper C++ class connects with GUI and implements actions that call tracking and face analysis methods.
The specific classes and methods that demonstrate visage|SDK are: