/csharp-sample-apps

sample applications using C# SDK

Primary LanguageC#MIT LicenseMIT

csharp-sample-app

Build Status

Build status

csharp-sample-app is a windows application that demonstrates the use of the Affdex SDK for Windows. This app uses the PhotoDetector, VideoDetector and CameraDetector. It can analyze live camera feed, photos and videos.

It runs on Windows 7.0, 8.0, 8.1 and 10

To build this project from source, you will need:

  • Visual Studio 2015

  • To download and install the Windows SDK (64-bit) from Affectiva.

    By default, the Windows SDK is installed to the following location: C:\Program Files\Affectiva\Affdex SDK

    The sample app requires you to point to the data directory which is located at : C:\Program Files\Affectiva\Affdex SDK\data.

    Here is the help text to get started:


-i, --input       Required. Input stream to be processed. Set the input to
                    "camera" if you want to use the live camera stream.

 -d, --data        Required. Data Directory.

 -f, --numFaces    (Default: 1) Set Max Number of faces.

 -m, --faceMode    (Default: 0) Set face detector mode.

 --help            Display this help screen.

  • The csharp-sample app using CommanLine Parser Utility which can be managed by NuGet.

  • Build the project

  • Run the app through Visual Studio

Note It is important not to mix Release and Debug versions of the DLLs. If you run into issues when switching between the two different build types, check to make sure that your system path points to the matching build type.

Copyright (c) 2016 Affectiva. All rights reserved.