The VisageTrackerDemo sample project demonstrates real-time head / facial features tracking on multiple faces from camera, video file or image based on the VisageTracker tracker class. Currently, tracking is limited to 4 faces, although this can be modified.
The VisageTrackerDemo sample projects is located in the Samples/iOS/VisageTrackerDemo sub-folder of the visage|SDK for iOS folder.
Prerequisites to running the sample project are:
Project is opened in Xcode by double-clicking on the VisageTrackerDemo.xcodeproj project file. To run the project an iOS device first must be attached to the computer and selected as active scheme in Xcode project. The project sample application can than be run by choosing Run option in Xcode.
The sample application consists of a toolbar with five buttons labeled: Camera, Video, Image, Stop and Quit:


NOTE: Without a valid license an error message will appear and face tracking will not work.
The visage|SDK API is written in C++ and since development on iOS is done in Objective-C a special way of interfacing the two must be employed. In this sample project this is done through
The
The specific classes and methods that demonstrate visage|SDK are:
Other important classes are:
More details about each class is available in documentation for specific class. Users are free to modify the sample project to test the functionalities of the Visage tracker. The sample project also serves as a starting point when creating new projects that will use visage|SDK.
TrackerWrapper.mm contains the code for device-specific selection of tracking configuration, ensuring optimal tracking performance on different devices by taking into account their performance, camera and screen characteristics. Please read more details about configuration selection in the section Device-specific configuration selection.