The Face Verification API allows you to verify the identity of a person by comparing a provided image with the reference image of a known person. It returns a verification result indicating whether the provided image matches the reference image of the known person.
Verifik has a guide on what Search services are and how to use them; we invite you to read it: Search Guide.
If you have read all the guides in this documentation, you may have noticed that these services perform very similar processes, so what sets them apart?:
The differentiating factor between these services is how the comparison process is performed:
import axios from 'axios';
const options = {
method: 'POST',
url: '<https://api.verifik.co/v2/face-recognition/verify>',
params: {
},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
},
data: {
id: 'ID_OF_PERSON_BEING_VERIFIED',
images: ['base64_encoded_string'],
min_score: 0.7,
search_mode: 'FAST/ACCURATE choose one'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
{
"id": "rdqqx",
"data": {
"match": {
"id": "651743f2b2eaf872c3541417",
"name": "MAteo Verifik",
"notes": "Verifik employee",
"score": 1,
"gender": "M",
"thumbnails": [
{
"id": "0a634411-717e-46c4-ab65-8d7e8f92eef8",
"thumbnail": "Base 64 Image"
}
],
"collections": [],
"create_date": "2023-09-29T21:38:59.306976",
"nationality": "Colombian",
"date_of_birth": "1995-05-07",
"modified_date": "2023-09-29T21:38:59.306981"
}
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "September 29, 2023 11:50 PM"
}
}