Created
December 11, 2018 14:37
-
-
Save vmussak/98276a88e5f05151807f659fe7733adf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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