Install Step-By-Step
This section will guide you through the FindFace Server step-by-step installation process. Follow the instructions below minding the sequence.
Совет
Standalone installation can also be done from a developer-friendly console installer or as a fully pre-configured virtual machine image.
In this section:
Prepare Packages for Installation
FindFace Enterprise Server SDK can be installed from a local repository. You can receive the FindFace Enterprise Server SDK distributable packages from your NTechLab manager. To prepare the packages for installation, do the following:
Unpack the package with components on each designated host.
sudo dpkg -i <findface-repo>.deb
Add a signature key on each designated host.
sudo apt-key add /var/findface-repo/public.key sudo apt-get update
Unpack the packages with models (face, gender, age, and emotions). In the cluster environment, models are installed only on the
extraction-api
hosts.sudo dpkg -i findface-data*
Licensing Principles
FindFace Enterprise Server is licensed by the following criteria:
The number of biometric samples extracted from faces detected in static images and videos.
The number of cameras in use.
The number of
findface-extraction-api
model instances in use.Face features recognition: gender/age/emotions/glasses/beard.
Face liveness detection.
Fast index.
You can choose between the online and on-premise (aka offline) licensing:
Online licensing requires a stable internet connection. Upon being disconnected from the internet, the system will continue working off-grid for about 1 hour.
On-premise (offline) licensing requires a USB port on the physical server with the
findface-ntls
component, that will be used to plug in a provided USB dongle.
To provide the system functioning, one findface-ntls
instance should be enough. If for some reason, your system requires more license servers, contact your Ntech Lab manager beforehand to prevent your system from being blocked.
См.также
Components in Depth
Configure Network
After you install the FindFace Server components, configure their interaction with each other. Do the following:
Open the
findface-facenapi.ini
configuration file:sudo vi /etc/findface-facenapi.ini
Uncomment and/or edit the settings to align with your network specifications, substituting the suggested values with actual location:
ffupload_url = 'http://127.0.0.1:3333' mongo_host = '127.0.0.1' extraction_api_url = 'http://127.0.0.1:18088' tntapi_servers_file = '/etc/tntapi.json'
Предупреждение
The
findface-facenapi.ini
content must be correct Python code.Примечание
Do not specify
ffupload_url
if thefindface-upload
component is not installed.By default, if one or several tntapi shards are out of service during face identification, findface-facenapi returns an error. If necessary, uncomment the
tntapi_ignore_search_error
parameter and assign itTrue
. In this casefindface-facenapi
will use availabletntapi
shards to obtain face identification results, indicating the number of available servers vs the total number of servers in the response:tntapi_ignore_search_errors = True
Restart all the FindFace Enterprise Server SDK services and nginx (for
findface-upload
) on the relevant host(s).sudo service 'findface*' restart sudo service nginx restart
Check the services status. The command will return the services description, status (should be Active), path and running time.
sudo service 'findface*' status sudo service nginx status