Created
February 13, 2021 09:39
-
-
Save easonlai/67c9d574fa188f885bc65dddb50ca7f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you are using the FaceAPI HTTP method, is it really necessary to initialize FaceClient in line 6?