Skip to content

Commit dad1935

Browse files
authored
Merge pull request #923 from der3318/update-face-error-codes-and-links
Update Face Error Codes and Documentation URLs
2 parents 752ed7b + 64c821c commit dad1935

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

articles/ai-services/computer-vision/how-to/identity-access-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To call the **issueLimitedAccessToken** API, copy the following cURL command to
5757

5858
```bash
5959
curl -X POST 'https://<isv-endpoint>/sts/v1.0/issueLimitedAccessToken?expiredTime=3600' \
60-
-H 'Ocp-Apim-Subscription-Key: <client-face-key>' \
60+
-H 'Ocp-Apim-Subscription-Key: <isv-face-key>' \
6161
-H 'Content-Type: application/json' \
6262
-d '{
6363
"resourceId": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.CognitiveServices/accounts/<face-resource-name>",
@@ -68,7 +68,7 @@ curl -X POST 'https://<isv-endpoint>/sts/v1.0/issueLimitedAccessToken?expiredTim
6868
Then, make the following changes:
6969
1. Replace `<isv-endpoint>` with the endpoint of the ISV's resource. For example, **westus.api.cognitive.microsoft.com**.
7070
1. Optionally set the `expiredTime` parameter to set the expiration time of the token in seconds. It must be between 60 and 86400. The default value is 3600 (one hour).
71-
1. Replace `<client-face-key>` with the key of the client's Face resource.
71+
1. Replace `<isv-face-key>` with the key of the ISV's Face resource.
7272
1. Replace `<subscription-id>` with the subscription ID of the client's Azure subscription.
7373
1. Replace `<resource-group-name>` with the name of the client's resource group.
7474
1. Replace `<face-resource-name>` with the name of the client's Face resource.

articles/ai-services/computer-vision/how-to/specify-detection-model.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ This code creates a **FaceList** called `My face collection` and adds a Face to
143143

144144
In this article, you learned how to specify the detection model to use with different Face APIs. Next, follow a quickstart to get started with face detection and analysis.
145145

146-
* [Face .NET SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp%253fpivots%253dprogramming-language-csharp)
147-
* [Face Python SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-python%253fpivots%253dprogramming-language-python)
148-
* [Face Java SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-java%253fpivots%253dprogramming-language-java)
149-
* [Face JavaScript SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-javascript%253fpivots%253dprogramming-language-javascript)
146+
* [Face .NET SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp)
147+
* [Face Python SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-python)
148+
* [Face Java SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-java)
149+
* [Face JavaScript SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-javascript)
150150

151151
[Detect]: /rest/api/face/face-detection-operations/detect
152152
[Identify From Person Group]: /rest/api/face/face-recognition-operations/identify-from-person-group

articles/ai-services/computer-vision/how-to/specify-recognition-model.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ If you normally specify a confidence threshold (a value between zero and one tha
130130

131131
In this article, you learned how to specify the recognition model to use with different Face service APIs. Next, follow a quickstart to get started with face detection.
132132

133-
* [Face .NET SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp%253fpivots%253dprogramming-language-csharp)
134-
* [Face Python SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-python%253fpivots%253dprogramming-language-python)
135-
* [Face Java SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-java%253fpivots%253dprogramming-language-java)
136-
* [Face JavaScript SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-javascript%253fpivots%253dprogramming-language-javascript)
133+
* [Face .NET SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp)
134+
* [Face Python SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-python)
135+
* [Face Java SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-java)
136+
* [Face JavaScript SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-javascript)
137137

138138
[Detect]: /rest/api/face/face-detection-operations/detect
139139
[Verify Face To Face]: /rest/api/face/face-recognition-operations/verify-face-to-face

articles/ai-services/computer-vision/includes/identity-gate-notice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ ms.author: pafarley
1111
---
1212

1313
> [!CAUTION]
14-
> Face service access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face service is only available to Microsoft managed customers and partners. Use the [Face Recognition intake form](https://aka.ms/facerecognition) to apply for access. For more information, see the [Face limited access](/legal/cognitive-services/computer-vision/limited-access-identity?context=%2Fazure%2Fcognitive-services%2Fcomputer-vision%2Fcontext%2Fcontext) page.
14+
> Face service access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face service is only available to Microsoft managed customers and partners. Use the [Face Recognition intake form](https://aka.ms/facerecognition) to apply for access. For more information, see the [Face limited access](/legal/cognitive-services/computer-vision/limited-access-identity?context=%2Fazure%2Fai-services%2Fcomputer-vision%2Fcontext%2Fcontext) page.

articles/ai-services/computer-vision/reference-face-error-codes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ These error codes can be returned by any Face API calls.
3737
|Bad Request (400)|InvalidImageSize|Image size is too small.|The valid image file size should be larger than or equal to 1 KB.|
3838
|Bad Request (400)|InvalidImageSize|Image size is too big.|The valid image file size should be no larger than 6 MB.|
3939
|Unauthorized (401)|401|Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.||
40+
|Forbidden (403)|UnsupportedFeature|Feature is not supported, missing approval for one or more of the following features: Identification, Verification.|Register for access by submitting a [registration form](https://aka.ms/facerecognition).|
4041
|Conflict (409)|ConcurrentOperationConflict|There is a conflict operation on resource `<resourceName>`, please try later.||
4142
|Too Many Requests (429)|429|Rate limit is exceeded.||
4243

@@ -50,6 +51,7 @@ These error codes can be returned by Face Detection operation.
5051
|Bad Request (400)|BadArgument|Invalid argument returnFaceAttributes.||
5152
|Bad Request (400)|BadArgument|'returnFaceAttributes' is not supported by detection_02.||
5253
|Bad Request (400)|BadArgument|'returnLandmarks' is not supported by detection_02.||
54+
|Forbidden (403)|UnsupportedFeature|Return Attributes (emotion, gender, age, smile, facial hair, hair and makeup) have been deprecated and are no longer supported.|Read more about this decision [here](https://azure.microsoft.com/blog/responsible-ai-investments-and-safeguards-for-facial-recognition/).|
5355

5456
## Face Liveness Session error codes
5557

@@ -243,4 +245,4 @@ These error codes can be returned by Person Directory operations.
243245

244246
Next steps
245247

246-
- [Face API reference](/rest/api/face/operation-groups)
248+
- [Face API reference](/rest/api/face/operation-groups)

articles/ai-services/computer-vision/tutorials/liveness.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ We provide SDKs in different languages for frontend applications and app servers
5555

5656
Once you have access to the SDK, follow instructions in the [azure-ai-vision-sdk](https://github.com/Azure-Samples/azure-ai-vision-sdk) GitHub repository to integrate the UI and the code into your native mobile application. The liveness SDK supports Java/Kotlin for Android mobile applications, Swift for iOS mobile applications and JavaScript for web applications:
5757
- For Swift iOS, follow the instructions in the [iOS sample](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-ios-readme)
58-
- For Kotlin/Java Android, follow the instructions in the [Android sample](https://aka.ms/liveness-sample-java)
59-
- For JavaScript Web, follow the instructions in the [Web sample](https://aka.ms/liveness-sample-web)
58+
- For Kotlin/Java Android, follow the instructions in the [Android sample](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-android-readme)
59+
- For JavaScript Web, follow the instructions in the [Web sample](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-web-readme)
6060

6161
Once you've added the code into your application, the SDK handles starting the camera, guiding the end-user in adjusting their position, composing the liveness payload, and calling the Azure AI Face cloud service to process the liveness payload.
6262

@@ -808,7 +808,7 @@ If you want to clean up and remove an Azure AI services subscription, you can de
808808

809809
To learn about other options in the liveness APIs, see the Azure AI Vision SDK reference.
810810

811-
- [Kotlin (Android)](https://aka.ms/liveness-sample-java)
811+
- [Kotlin (Android)](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-android-readme)
812812
- [Swift (iOS)](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-ios-readme)
813813
- [JavaScript (Web)](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-web-readme)
814814

0 commit comments

Comments
 (0)