You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/face/azure-ai-vision-face/README.md
+34-33Lines changed: 34 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Azure Ai Vision Face client library for Python
1
+
# Azure AI Face client library for Python
2
2
3
3
The Azure AI Face service provides AI algorithms that detect, recognize, and analyze human faces in images. It includes the following main features:
4
4
@@ -24,13 +24,13 @@ The Azure AI Face service provides AI algorithms that detect, recognize, and ana
24
24
- Your Azure account must have a `Cognitive Services Contributor` role assigned in order for you to agree to the responsible AI terms and create a resource. To get this role assigned to your account, follow the steps in the [Assign roles][azure_role_assignment] documentation, or contact your administrator.
25
25
- Once you have sufficient permissions to control your Azure subscription, you need either
26
26
* an [Azure Face account][azure_portal_list_face_account] or
27
-
* an [Azure Cognitive Service account][azure_portal_list_cognitive_service_account]
27
+
* an [Azure AI services multi-service account][azure_portal_list_cognitive_service_account]
28
28
29
-
### Create a Face or a Cognitive Services resource
29
+
### Create a Face or an Azure AI services multi-service account
30
30
31
-
Azure AI Face supports both [multi-service][azure_cognitive_service_account] and single-service access. Create a Cognitive Services resource if you plan to access multiple cognitive services under a single endpoint/key. For Face access only, create a Face resource. Please note that you will need a single-service resource if you intend to use [Microsoft Entra ID authentication](#create-the-client-with-an-azure-active-directory-credential).
31
+
Azure AI Face supports both [multi-service][azure_cognitive_service_account] and single-service access. Create an Azure AI services multi-service account if you plan to access multiple Azure AI services under a single endpoint/key. For Face access only, create a Face resource.
32
32
33
-
* To create a new Face or Cognitive Services account, you can use [Azure Portal][azure_portal_create_face_account], [Azure PowerShell][quick_start_create_account_via_azure_powershell], or [Azure CLI][quick_start_create_account_via_azure_cli].
33
+
* To create a new Face or Azure AI services multi-service account, you can use [Azure Portal][azure_portal_create_face_account], [Azure PowerShell][quick_start_create_account_via_azure_powershell], or [Azure CLI][quick_start_create_account_via_azure_cli].
A regional endpoint is the same for every resource in a region. A complete list of supported regional endpoints can be consulted [here][regional_endpoints]. Please note that regional endpoints do not support Microsoft Entra ID authentication.
65
+
A regional endpoint is the same for every resource in a region. A complete list of supported regional endpoints can be consulted [here][regional_endpoints]. Please note that regional endpoints do not support Microsoft Entra ID authentication. If you'd like migrate your resource to use custom subdomain, follow the instructions [here][how_to_migrate_resource_to_custom_subdomain].
66
66
67
-
A custom subdomain, on the other hand, is a name that is unique to the Face resource. They can only be used by [single-service resources][azure_portal_create_face_account].
67
+
A custom subdomain, on the other hand, is a name that is unique to the resource. Once created and linked to a resource, it cannot be modified.
68
68
69
69
70
-
#### Create the client with AzureKeyCredential
71
-
72
-
To use an API key as the `credential` parameter, pass the key as a string into an instance of [AzureKeyCredential][azure_sdk_python_azure_key_credential].
73
-
You can get the API key for your Face resource using the [Azure Portal][get_key_via_azure_portal] or [Azure CLI][get_key_via_azure_cli]:
74
-
75
-
```bash
76
-
# Get the API keys for the Face resource
77
-
az cognitiveservices account keys list --name "<resource-name>" --resource-group "<resource-group-name>"
78
-
```
79
-
80
-
```python
81
-
from azure.core.credentials import AzureKeyCredential
#### Create the client with an Microsoft Entra ID credential
70
+
#### Create the client with a Microsoft Entra ID credential
90
71
91
72
`AzureKeyCredential` authentication is used in the examples in this getting started guide, but you can also authenticate with Microsoft Entra ID using the [azure-identity][azure_sdk_python_identity] library.
92
73
Note that regional endpoints do not support Microsoft Entra ID authentication. Create a [custom subdomain][custom_subdomain] name for your resource in order to use this type of authentication.
To use an API key as the `credential` parameter, pass the key as a string into an instance of [AzureKeyCredential][azure_sdk_python_azure_key_credential].
102
+
You can get the API key for your Face resource using the [Azure Portal][get_key_via_azure_portal] or [Azure CLI][get_key_via_azure_cli]:
103
+
104
+
```bash
105
+
# Get the API keys for the Face resource
106
+
az cognitiveservices account keys list --name "<resource-name>" --resource-group "<resource-group-name>"
107
+
```
108
+
109
+
```python
110
+
from azure.core.credentials import AzureKeyCredential
0 commit comments