Quick Start¶
Installation¶
To use the tool, download its compiled binary from the repository and execute it from a console.
Important
The tool has been tested on Ubuntu Xenial 16.04.
The Affdex SDK is only available on Windows and Ubuntu Xenial 16.04, so compatibility with other Operative Systems is not guaranteed.
From source with CMake¶
Clone and open the GitHub repository in a console, using the following commands:
git clone https://github.com/espositoandrea/Bachelor-Thesis.git
cd Bachelor-Thesis
Open the directory containing the tool’s source code:
cd emotions
Finally, create and compile the CMakeProject:
mkdir bin
cd bin
cmake -G "CodeBlocks - Unix Makefiles" ..
make
Usage¶
Important
To use the tool you must have the Affdex SDK installed on your
machine. Then, you have to add /path/to/affdex-sdk/lib
to the variable
$LD_LIBRARY_PATH
(on Ubuntu).
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/affdex-sdk/lib/
The tool will then search, in its folder, for the folder
lib/affdex-sdk/data/
(that has to contain the data used by Affdex).
The tool can be used through CLI (or executed by another script).
./emotions [<option>...] IMAGE...
./emotions [<option>...] --file FILE
Where IMAGE
is a data URI. The available
options are:
- -h, --help
Get the help message
- -f FILE, --file FILE
The file containing the images to be analyzed (as a data URI)