The comparison services, as the name suggests, aim to perform 1:1 comparisons in search of facial matches. In Verifik, comparisons are managed using a parameter called score. This parameter is a number between 0 and 1, determining the degree of facial match found. A score closer to 1 indicates a higher probability that the compared images are of the same person.
Currently, there are two services for conducting comparative processes. They are listed below with their respective API links:
These services serve the same purpose: comparing images in search of facial matches. They share many similarities and some differences that will be explained below.
The aforementioned services have a quite similar structure. Below, we'll show a JSON explaining each of the parameters:
{
"probe": [
"Base 64 String"
],
"gallery": [
"Base 64 String"
]
"search_mode": "FAST/ACCURATE choose one, default FAST"
}
The only difference between both services is that one performs a liveness detection process, and the other does not. In the case of the service that does perform liveness detection, in addition to the aforementioned parameters, we need to send the following parameter in the body:
{
"liveness_min_score": 0.5
}
If all parameters are sent correctly, the service will respond with a successful 200 status. In the response, there is valuable information, but the parameter of interest is result, where all the liveness or score values of the performed process will appear:
Example response from the service: Compare 1:1 :
{
"result": {
"score": 1
}
}