SDK Developer Guide Release 2.3.x
The purpose of the SDK is to detect facial expressions and their underlying emotions, and appearance from facial images. The SDK is distributed as a Unity package. Its included files enable integration with Unity games and applications. These two data folders are required by Unity:
Watch the video tutorial below to help you get started on how to use the SDK:
We package our plugin as an asset, like those you can buy on Unity’s Asset Store. You can download it from below.
The purpose of the asset is to detect facial expressions and their underlying emotions from facial images. Facial images can be captured from different sources:
The SDK’s Detector class implements the core detection functionality, and can be used in any of these three scenarios, although the steps are a bit different in each case.
There are several example Unity apps available on GitHub which you can examine to see the SDK in action:
The classes that come with this asset are viewable here.
Hardware requirements (recommended)
Supported operating systems
This section outlines issues you may encounter depending on how you use the plugin.
The Apple app store has a rigorous set of automated tests it runs on submissions to validate that applications meet their guidelines. They will specifically expect certain parts of your game to be signed using a certification authority. All files that need to be signed must be signed using the same signature authority. This means that you as an individual, or your company, will need a signing certificate for not only your files, but for the files that come from Affectiva. If the Affectiva files are signed by Affectiva and your other game files are signed by you, your submission will be rejected by the app store.
The order in which files and bundles are signed is also critical. You must sign the inner-most files first. Here is a Stack Overflow answer that includes a shell script that signs in the proper order.