Installation

Extract the package at the desired location:

tar -zxvf aware-knomifaceanalyzer-*-linux-x86-64.tar.gz

It is recommended that you use the screen tool when running the Knomi Face Analyzer REST server, so the included commands will be utilizing it.

Start the FaceAnalyzer server:

screen -S aw_preface_server
cd knomifaceanalyzer/aw_knomi_face_matcher
./aw_preface_server.sh
Press CTRL A D to disconnect from the screen

At this point, the services are only accessible from the server itself. To make it available to the wider Internet, you must update the “host” parameter with the hostname for your server. For the following example, it will assume the server’s hostname is “server.com”

Edit the Knomi FaceAnalyzer server:

screen -r aw_preface_server
CTRL-C
CTRL-C
sed -i 's/host=.*/host=server.com/g' preface_config.txt
./aw_preface_server.sh
Press CTRL A D to disconnect from the screen

You can query the “/version” endpoint from the command line to ensure it is running correctly:

curl http://server.com:8080/faceanalyzer/version