Giter Club home page Giter Club logo

cpp-sdk-samples's Introduction

#Sample Apps for Affdex SDK for Windows and Linux

Welcome to our repository on GitHub! Here you will find example code to get you started with our Affdex SDK 3.1 and begin emotion-enabling you own app! Documentation for the SDKs is available on the Affectiva's Developer Portal.

Build Status

Dependencies

Windows

  • Affdex SDK 3.1 (64 bit)
  • Visual Studio 2013 or higher

Linux

  • Ubuntu 14.04 or CentOS 7
  • Affdex SDK 3.1
  • CMake 2.8 or higher
  • GCC 4.8

Additional dependencies

  • OpenCV 2.4
  • Boost 1.59

Installation

Windows

  • Install the SDK using MSI installer.
  • The additional dependencies get installed automatically by NuGet.

Ubuntu

sudo apt-get install build-essential libopencv-dev libboost1.55-all-dev cmake
wget https://download.affectiva.com/linux/affdex-cpp-sdk-3.1-396-linux-64bit.tar.gz
mkdir $HOME/affdex-sdk
tar -xzvf affdex-cpp-sdk-3.1-396-linux-64bit.tar.gz -C $HOME/affdex-sdk
export AFFDEX_DATA_DIR=$HOME/affdex-sdk/data
git clone https://github.com/Affectiva/cpp-sdk-samples.git $HOME/sdk-samples
mkdir $HOME/build
cd $HOME/build
cmake -DOpenCV_DIR=/usr/ -DBOOST_ROOT=/usr/ -DAFFDEX_DIR=$HOME/affdex-sdk $HOME/sdk-samples
make
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/affdex-sdk/lib

OpenCV-webcam-demo (c++)

Project for demoing the FrameDetector class. It grabs frames from the camera, analyzes them and displays the results on screen.

The following command line arguments can be used to run it:

-h [ --help ]                        Display this help message.
-d [ --data ] arg (=data)            Path to the data folder
-r [ --resolution ] arg (=640 480)   Resolution in pixels (2-values): width
                                     height
--pfps arg (=30)                     Processing framerate.
--cfps arg (=30)                     Camera capture framerate.
--bufferLen arg (=30)                process buffer size.
--cid arg (=0)                       Camera ID.
--faceMode arg (=0)                  Face detector mode (large faces vs small
                                    faces).
--numFaces arg (=1)                  Number of faces to be tracked.
--draw arg (=1)                      Draw metrics on screen.

Video-demo (c++)

Project for demoing the Windows SDK VideoDetector class and PhotoDetector class. It processs video or image files, displays the emotion metrics and exports the results in a csv file.

The following command line arguments can be used to run it:

-h [ --help ]                        Display this help message.
-d [ --data ] arg (=data)            Path to the data folder
-i [ --input ] arg                   Video or photo file to process.
--pfps arg (=30)                     Processing framerate.
--draw arg (=1)                      Draw video on screen.
--faceMode arg (=1)                  Face detector mode (large faces vs small
                                     faces).
--numFaces arg (=1)                  Number of faces to be tracked.
--loop arg (=0)                      Loop over the video being processed.

For an example of how to use Affdex in a C# application .. please refer to AffdexMe

cpp-sdk-samples's People

Contributors

umangmehta12 avatar ahamino avatar pjturcot avatar forestjay avatar

Watchers

James Cloos avatar copilot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.