Skip to content

Instantly share code, notes, and snippets.

@easonlai
Created February 13, 2021 09:39
Show Gist options
  • Save easonlai/67c9d574fa188f885bc65dddb50ca7f4 to your computer and use it in GitHub Desktop.
Save easonlai/67c9d574fa188f885bc65dddb50ca7f4 to your computer and use it in GitHub Desktop.
# Define Azure Face Service key and endpoint
KEY = "PLEASE_ENTER_YOUR_OWN_AZURE_FACE_SERVICE_KEY"
ENDPOINT = "https://PLEASE_ENTER_YOUR_OWN_AZURE_FACE_SERVICE_ENDPOINT_NAME.cognitiveservices.azure.com/"
# Define the Face Service client
face_client = FaceClient(ENDPOINT, CognitiveServicesCredentials(KEY))
@flavio185
Copy link

Since you are using the FaceAPI HTTP method, is it really necessary to initialize FaceClient in line 6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment