Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created October 4, 2018 01:15
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/748ee641d6430ecf73d3da9df68b8056 to your computer and use it in GitHub Desktop.
Save vmussak/748ee641d6430ecf73d3da9df68b8056 to your computer and use it in GitHub Desktop.
async function _atualizarReconhecimentoFacial(idCliente, imagem) {
let imageName = `${idCliente}.jpg`;
await azureStorage.upload('cliente', imageName, imagem);
let face = await reconhecimentoFacial.uploadImagem(imageName);
let faceId = face.persistedFaceId;
await repository.atualizarFaceId(idCliente, faceId);
reconhecimentoFacial.treinarReconhecimento();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment