Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This page describes detailed steps to install SenseID.
This chapter describes how to deploy and activate the SenseID service, primarily installing, configuring, launching critical services and potential issues and solutions.
The installation package should have been unzipped to place the license files. See Section 3.3.1 for more details.
Change the directory to the root folder where you unzipped the SenseID installation package.
The structure is as follows:
This service is a major computing service, so it is recommended to allocate dedicated server resources if possible.
Before deploying Go-Workers, you need to get the number of physical CPU cores on your server. The command to get the physical CPU core information is as follows.
Change the directory to the Go-Workers folder, open the.env
file, and set theHANDLERS
value to the number of physical CPU cores obtained above if you are using a dedicated server. Otherwise, specify a number. Save and close the.env
file.
HANDLERS
cannot be set to a value that exceeds the number of physical CPU cores on the server. The higher theHANDLERS
value is, the higher the number of concurrent services and the higher the memory and CPU consumption.
Before you start, make sure your license has been replaced.
Start the Go-Workers service.
You only need to execute this instruction once.
A script to stop the service is also provided in the same folder. Execute it only when you want to stop the service.
To confirm whether the Go-Workers service started normally, try the following command to see the logs.
If the tail command contains Server Listen on port 50050, the service has started successfully.
Also, perform the health check with the following command.
An example is as follows (This indicates that the service started successfully).
The deployment of the following services depends on Docker. Make sure you have Docker installed on your server.
Load the Ruby-Cloud-API image file.
The execution result is as follows.
Get the IP address of the Go-Workers server.
Open the .env
file in the root folder of the SenseID installation package.
Set the WORKER_IP
value in the last line to the IP address of the server where the Go-Workers service is deployed.
Sets the number of physical CPU cores on the server, the same way as Go-Workers.
Open the.env
file, and set theHANDLES
value to the number of physical CPU cores obtained if you are using a dedicated server. Otherwise, specify a number. Save and close the.env
file.
HANDLES
cannot be set to a value that exceeds the number of physical CPU cores on the server. The higher theHANDLES
value is, the higher the number of concurrent services and the higher the memory and CPU consumption.
Start the Ruby-Cloud-API service.
The results are as follows.
Confirm that the Docker is running.
The results are as follows.
The service is now successfully deployed.
Perform the health check with the following command.
An example is as follows (This indicates that the service started successfully).
This manual provides instructions for installing SenseID.
This manual describes how to install the JCV face recognition service "Sense ID." To successfully deploy the service, please read this manual carefully before starting.
This manual is intended for customers who belong to the IT department and have experience using and operating Linux, Kubernetes, Docker, and cloud.
The installation process described in this manual is described in detail in the following figure.
This page describes the system operating environment requirements of SenseID.
Ubuntu Server 18.04 LTS is recommended for the Sense ID usage environment. We recommend a quad-core or higher CPU, 8GM or higher RAM, and 100GB or higher disk capacity on the hardware side. Note that AVX is required for the CPU instruction set.
The services described in this section are running inside the server. It is strongly recommended to implement a secure API mechanism, authentication mechanism, secure communication, and DNS outside of SenseID for safe use.
It is recommended to use separate servers for Ruby-Cloud-API and Go-Workers if possible.
Ruby-Cloud-API
The HTTP services, including the main interface for client API calls.
Service port: 3000
Go-Workers
The back-end computing vision services, primarily the encapsulation of algorithms provided to Ruby-Cloud-API in HTTP.
Service port: 50050
This page describes the activation of SenseID.
A license file is required to use the Go-Workers service of SenseID. The activation of the license is associating with the UDID. License files may differ depending on the services you are using. One SenseID server can correspond to one to three license files. You must rename the license file and place it in the specified directory before you can deploy the service.
Only the server for Go-Workers needs licenses. The server for Ruby-Open-API does not require licenses. Execute the following procedure only on the server for Go-Workers.
The JCV product window provides the SenseID license file. Refer to the following parts for activation details.
Change the SENSEID_FACE_xxx.lic
file to senseid_face.lic
.
Change the SENSEID_KESTREL_xxx.lic
file to senseid_kestrel.lic
.
Change the SENSEID_LIVENESS_xxx.lic
file to senseid_liveness.lic
.
Package name: 1v1-private-cloud-v1.8.tgz
Be sure to unzip the ZIP file on a Linux-based system. If you unzip it on a non-Linux system, a soft link failure may occur, and the program execution may fail.
Change the directory to the license folder where you unzipped the SenseID installation package.
You can confirm that the following three folders are displayed by executing the following command.
Copy the license files to the specified directories and overwrite the original files.
This page describes common issues during SenseID installation.
First, check the instruction set contained in the current machine:
Execute this command: cat /proc/cpuinfo
Check flag
If it does not contain a mix of AVX & AVX2, indicating that the CPU instruction set does not support the Avx instruction set.
There are two solutions:
1) Replace it with a machine containing an AVX instruction set;
2) Force the machine to use an SSE instruction set. However, the service performance will degrade and processing speed will be halved;
Method to force the machine to use an SSE instruction set: open go-workers/. env,
Modify FORCE_SET_SSE=false to FORCE_SET_SSE=true.
Note: Save the exit after modifying, and restart the go-workers. The method to restart the service is as follows:
First execute ./stop/sh then execute ./start.sh
Note: Start "./start.sh "once respectively corresponding when starting Go-Workers or Ruby-Cloud-API.
1) Execute
2) Kill the corresponding process No. of ./tool/supervisord -c config/supervisor.conf -d:
1)error panic: bad license: -1
It means the license has broken(such as an empty licenes),please replace the license file again.
2) error panic: open fixture/license/senseid_ocr/senseid_ocr.lic: no such file or directory
It means the license is not imported,please import the license file into the specified folder.
3)error panic: bad license: -16
It meas "udid mismatch", and the hardware fingerprint bound to the license is inconsistent with the current device’s hardware fingerprint.Please make sure the device's hardware information has not changed.
Maybe you use the wrong license or the device's udid is changed.
If you make sure that device's uuid has changed,please provide the new udid to the business person who can apply for the new license to you,and then remember to replace the new license.
It means the file format is incorrect, mainly related to the model file.
For example, using the decompression software under the windows system to decompress and upload the "private cloud package" to server may cause partial damage of the model file. It is recommended that customers re-upload the installation package(xxx.tar) to the server and use the command line(tax xf xxx.tar) to decompress it on the server
This page describes the UDID required to issue a Sense ID license.
The UDID is a server identification code calculated from the server hardware information. SenseID activation is associating with the UDID. Download the UDID acquisition tool and follow the instructions to acquire the UDID before applying for a SenseID license.
Only the server for Go-Workers needs licenses. The server for Ruby-Cloud-API does not require licenses. Execute the following procedure only on the server for Go-Workers.
The UDID acquisition tool is used to get the UDID of the deployment target server.
The file name of the UDID acquisition tool isSenseIDPrivateCloud-UDIDGetter-V4.1.0.zip
.
Place and unzip the UDID acquisition tool on the server.
Be sure to unzip the ZIP file on a Linux-based system. If you unzip it on a non-Linux system, a soft link failure may occur, and the program execution may fail.
Change the directory to the unzipped folder and execute theUDIDGetter.sh
.
Please sent the outputUDID.txt
file, together with your contract number to the JCV product window .
The "private cloud package" which we provide does not contain licenses by default. For details of licenses, please refer to .
Configuration items | Configuration requirements |
Minimum operating system kernel version number | V3.2.0 or more |
CPU model | x86_64 |
Requirements for the number of CPU cores | Quad-core (4) or more |
CPU instruction set | SSE, AVX, FMA; compatibility: SSE > AVX > FMA; operating speed: FMA > AVX > SSE |
RAM requirements | 16GB or more |
Supported OS & minimum version | Ubuntu Server (16.04 LTS) or higher |
Disk space requirements | 100GB or more |
Date | Revised content |
2021/08/20 |
|
2021/03/08 |
|