During the launch, the device has to be connected to the internet to check its license.
API is used for faces` database management along with facial recognition.
1. Register on the https://auther.com website.
2. Log into your Account.
3. Go to the License section and press "Add license" button.
4. Choose "I have activation code", and provide your activation code
5. Special installation command is generated now. Copy software installation command from the license line, which will be later used for software installation on the Up-Board single-board computer.
Depending on the grants which were added to the license on License tab, single-board computer may fulfill the following requests in Facecard Cloud:
API is used for faces` database management along with facial recognition.
Only two parameters can be managed:
Below you will find a description of working with the local API of the device. Communication with the local API occurs through communication via the local HTTP protocol.
Parameters description
Image description
Below are the requirements for the image that sent to our API. Also, with the help of the request "Get face image" you can get an automatically prepared image taken from the camera, which will meet the requirements below.
Image requirements
For a successful preparation of the photo, before the update, touch the offensive crocs
Image verification criteria
To successfully create a customer ID, the image of the person that you send for registration will be checked for compliance with the following criteria:
Receive the face which is in front of the camera or was no longer than 1 sec ago. As a result, you will receive an image that will meet the requirement above.
Request body
Response body
http status 200
{
“faceKey”:”17362cd0c”,
“facePhoto”:Base64format_string”
}
http status 400
{
“code”:”R_400”,
“message”:“Сamera is not connected”
}
Codes and messages for response 400
Adding the face into the database
Request body
{
“personId”:”000391”,
“facePhoto”:”base64format_string”
}
Response body
http status 200
http status 400
{
“code”:”F_012”,
“message”:”Face exists”
}
Codes and messages for response 400
Replace face in the database
Request body
{
“personId”:”000391”,
“facePhoto”:”base64format_string”
}
Response body
http status 200
http status 400
{
“code”:”F_012”,
“message”:”Face exists”
}
Codes and messages for response 400
Delete the face
Request body
{
“personId”:”000391”
}
Response body
http status 200
http status 400
{
“code”:”R_002”,
“message”:”Request body exception”
}
Codes and messages for response 400
Facial recognition in the cloud. If the “faceKey” parameter isn’t null, then the parameter facePhoto in that request is ignored and can be null.
The request /person/face/recognize could be submitted only with the last “faceKey” parameter, which was received in face/get request.
In that case the video module stores the last received image.
After the /person/face/recognize is submitted - the image is deleted from the memory.
Request body
{
“faceKey”:”17362cd0c”,
“facePhoto”:”base64format_string”
}
Response body
http status 200
{
“personId”:”000391”
}
http status 400
{
“code”:”R_002”,
“message”:”Request body exception”
}
Codes and messages for response 400