Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created December 11, 2018 14:37
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/98276a88e5f05151807f659fe7733adf to your computer and use it in GitHub Desktop.
Save vmussak/98276a88e5f05151807f659fe7733adf to your computer and use it in GitHub Desktop.
async function uploadFaceParaDeteccao(imageName) {
let config = {
method: 'POST',
uri: `${faceApi}/detect?returnFaceId=true&returnFaceLandmarks=false`,
headers: {
'Ocp-Apim-Subscription-Key': faceApiKey
},
json: true,
body: {
url: `${blobReconhecimentoUrl}/${imageName}`
}
};
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