Deploy findface-facerouter in FindFace Security¶
To deploy the findface-facerouter component, do the following:
Install
findface-faceroutereither from the console installer or from the apt repository as such:sudo apt update sudo apt install -y findface-facerouter
Open the
/etc/findface-facerouter.pyconfiguration file.sudo vi /etc/findface-facerouter.py
If the
findface-facerouterandfindface-sf-apicomponents are installed on different hosts, uncomment thesfapi_urlparameter and specify thefindface-sf-apihost IP address.sfapi_url = 'http://localhost:18411'
Open the
/etc/ffsecurity/config.pyconfiguration file. In theROUTER_URLparameter, actualize thefindface-facerouterIP address and port (18820 by default). Specify either external or internal IP address, subject to the network through whichfindface-video-workerinteracts withfindface-facerouter.sudo vi /etc/ffsecurity/config.py ... FFSECURITY = { 'ROUTER_URL': 'http://172.20.77.58:18820/v0/frame?',
Open the
/etc/findface-video-manager.confconfiguration file. In therouter_urlparameter, specify the IP address and port of thefindface-facerouterhost to receive detected faces fromfindface-video-worker.sudo vi /etc/findface-video-manager.conf ... router_url: http://127.0.0.1:18820/v0/frame
Enable the
findface-facerouterservice autostart and launch the service.sudo systemctl enable findface-facerouter.service && sudo systemctl start findface-facerouter.service
Restart the
findface-securityservice.sudo systemctl restart findface-security.service