Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created December 11, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/44f78be54c2b68b4f3214a9bbd610bcb to your computer and use it in GitHub Desktop.
Save vmussak/44f78be54c2b68b4f3214a9bbd610bcb to your computer and use it in GitHub Desktop.
async function verificarFace(faceId) {
let config = {
method: 'POST',
uri: `${faceApi}/findsimilars`,
headers: {
'Ocp-Apim-Subscription-Key': faceApiKey
},
json: true,
body: {
faceId: faceId,
largeFaceListId: largeFaceListName,
maxNumOfCandidatesReturned: 2,
mode: "matchPerson"
}
};
let response = await request(config);
return response;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment