Skip to content

Commit 9910692

Browse files
committed
face freshness
1 parent 9b6265c commit 9910692

9 files changed

+85
-82
lines changed

articles/ai-services/computer-vision/concept-face-recognition-data-structures.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Face recognition data structures - Face"
33
titleSuffix: Azure AI services
4-
description: Learn about the Face recognition data structures, which hold data on faces and persons.
4+
description: Learn about the Face recognition data structures, which store data on faces and persons.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
@@ -11,7 +11,7 @@ ms.subservice: azure-ai-face
1111
ms.custom:
1212
- ignite-2023
1313
ms.topic: conceptual
14-
ms.date: 11/04/2023
14+
ms.date: 01/22/2025
1515
ms.author: pafarley
1616
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
1717
---
@@ -73,14 +73,15 @@ Unlike the Identify API, the Find Similar API is designed to be used in applicat
7373

7474
### FaceList
7575

76-
**FaceList** represent a flat list of persisted faces. It can hold up 1,000 faces.
76+
**FaceList** represents a flat list of persisted faces. It can hold up 1,000 faces.
7777

7878
### LargeFaceList
7979

8080
**LargeFaceList** is a later version which can hold up to 1,000,000 faces.
8181

82-
## Next steps
82+
## Next step
8383

8484
Now that you're familiar with the face data structures, write a script that uses them in the Identify operation.
8585

86-
* [Face quickstart](./quickstarts-sdk/identity-client-library.md)
86+
> [!div class="nextstepaction"]
87+
> [Face quickstart](./quickstarts-sdk/identity-client-library.md)

articles/ai-services/computer-vision/how-to/add-faces.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ manager: nitinme
88
ms.service: azure-ai-vision
99
ms.subservice: azure-ai-face
1010
ms.topic: how-to
11-
ms.date: 02/14/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
ms.devlang: csharp
1414
ms.custom: devx-track-csharp
1515
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
16+
#customer intent: As a developer, I want to add a large number of persons and faces to a PersonGroup object so that I can manage and recognize faces efficiently.
17+
1618
---
1719

1820
# Add faces to a PersonGroup
@@ -21,7 +23,7 @@ feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
2123

2224
This guide demonstrates how to add a large number of persons and faces to a **PersonGroup** object. The same strategy also applies to **LargePersonGroup**, **FaceList**, and **LargeFaceList** objects. This sample is written in C#.
2325

24-
## Initialization
26+
## Setup
2527

2628
The following code declares several variables and implements a helper function to schedule the **face add** requests:
2729

@@ -124,15 +126,16 @@ Parallel.For(0, PersonCount, async i =>
124126

125127
## Summary
126128

127-
In this guide, you learned the process of creating a PersonGroup with a massive number of persons and faces. Several reminders:
129+
In this guide, you learned the process of creating a PersonGroup with a massive number of persons and faces. Key points:
128130

129131
- This strategy also applies to **FaceLists** and **LargePersonGroups**.
130-
- Adding or deleting faces to different **FaceLists** or persons in **LargePersonGroups** are processed concurrently.
131-
- Adding or deleting faces to one specific **FaceList** or persons in a **LargePersonGroup** is done sequentially.
132+
- Adding or deleting faces in different **FaceLists** or persons in **LargePersonGroups** are processed concurrently.
133+
- Adding or deleting faces in one specific **FaceList** or persons in a **LargePersonGroup** is done sequentially.
132134

133135

134-
## Next steps
136+
## Next step
135137

136138
Next, learn how to use the enhanced data structure **PersonDirectory** to do more with your face data.
137139

138-
- [Use the PersonDirectory structure (preview)](use-persondirectory.md)
140+
> [!div class="nextstepaction"]
141+
> [Use the PersonDirectory structure (preview)](use-persondirectory.md)

articles/ai-services/computer-vision/how-to/find-similar-faces.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
2-
title: "Find similar faces"
2+
title: "Find similar faces using Azure AI services"
33
titleSuffix: Azure AI services
4-
description: Use the Face service to find similar faces (face search by image).
4+
description: Learn how to use the Azure Face service to find similar faces in a set of images, performing face search by image for various applications.
55
#services: cognitive-services
6+
#customer intent: As a developer, I want to find similar faces in images so that I can perform face recognition tasks.
67
author: PatrickFarley
78
manager: nitinme
89

910
ms.service: azure-ai-vision
1011
ms.subservice: azure-ai-face
1112
ms.topic: how-to
12-
ms.date: 02/14/2024
13+
ms.date: 01/22/2025
1314
ms.author: pafarley
1415
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
1516
---
@@ -22,13 +23,6 @@ The [Find Similar](/rest/api/face/face-recognition-operations/find-similar) oper
2223

2324
This guide demonstrates how to use the Find Similar feature in the different language SDKs. The following sample code assumes you have already authenticated a Face client object. For details on how to do this, follow a [quickstart](../quickstarts-sdk/identity-client-library.md).
2425

25-
## Set up sample URL
26-
27-
This guide uses remote images that are accessed by URL. Save a reference to the following URL string. All of the images accessed in this guide are located at this URL path.
28-
29-
```
30-
https://raw.githubusercontent.com/Azure-Samples/cognitive-services-sample-data-files/master/Face/images/
31-
```
3226

3327
## Detect faces for comparison
3428

@@ -38,6 +32,12 @@ You need to detect faces in images before you can compare them. In this guide, t
3832

3933
#### [C#](#tab/csharp)
4034

35+
This guide uses remote images that are accessed by URL. Save a reference to the base URL string. All of the images accessed in this guide are located at that URL path.
36+
37+
```csharp
38+
string baseUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-sample-data-files/master/Face/images/";
39+
```
40+
4141
The following face detection method is optimized for comparison operations. It doesn't extract detailed face attributes, and it uses an optimized recognition model.
4242

4343
[!code-csharp[](~/cognitive-services-quickstart-code/dotnet/Face/FindSimilar.cs?name=snippet_face_detect_recognize)]
@@ -96,8 +96,9 @@ Run the command, and the returned JSON should show the correct face ID as a simi
9696

9797
---
9898

99-
## Next steps
99+
## Next step
100100

101101
In this guide, you learned how to call the Find Similar API to do a face search by similarity in a larger group of faces. Next, learn more about the different recognition models available for face comparison operations.
102102

103-
* [Specify a face recognition model](specify-recognition-model.md)
103+
> [!div class="nextstepaction"]
104+
> [Specify a face recognition model](specify-recognition-model.md)

articles/ai-services/computer-vision/how-to/identity-detect-faces.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
title: "Call the Detect API - Face"
33
titleSuffix: Azure AI services
44
description: This guide demonstrates how to use face detection to extract attributes like age, emotion, or head pose from a given image.
5+
#customer intent: As a developer, I want to use face detection to extract attributes from images so that I can analyze and process facial data.
56
#services: cognitive-services
67
author: PatrickFarley
78
manager: nitinme
89

910
ms.service: azure-ai-vision
1011
ms.subservice: azure-ai-face
1112
ms.topic: how-to
12-
ms.date: 02/14/2024
13+
ms.date: 01/22/2025
1314
ms.author: pafarley
1415
ms.devlang: csharp
1516
ms.custom: devx-track-csharp
1617
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
18+
1719
---
1820

1921
# Call the Detect API
@@ -27,9 +29,9 @@ This guide demonstrates how to use the face detection API to extract attributes
2729
The code snippets in this guide are written in C# by using the Azure AI Face client library. The same functionality is available through the [REST API](/rest/api/face/face-detection-operations/detect).
2830

2931

30-
## Setup
32+
## Prerequisites
3133

32-
This guide assumes that you already constructed a [FaceClient](/dotnet/api/azure.ai.vision.face.faceclient) object, named `faceClient`, using a Face key and endpoint URL. For instructions on how to set up this feature, follow one of the quickstarts.
34+
- This guide assumes that you already constructed a [FaceClient](/dotnet/api/azure.ai.vision.face.faceclient) object, named `faceClient`, using a Face key and endpoint URL. For instructions on how to set up this feature, follow one of the quickstarts.
3335

3436
## Submit data to the service
3537

@@ -43,7 +45,7 @@ For information on how to parse the location and dimensions of the face, see [Fa
4345

4446
## Determine how to process the data
4547

46-
This guide focuses on the specifics of the Detect call, such as what arguments you can pass and what you can do with the returned data. We recommend that you query for only the features you need. Each operation takes more time to complete.
48+
This guide focuses on the specifics of the Detect call, such as what arguments you can pass and what you can do with the returned data. We recommend that you query for only the features you need. Each operation takes additional time to complete.
4749

4850
### Get face ID
4951

@@ -91,13 +93,13 @@ The following code shows how you might retrieve the face attribute data that you
9193

9294
To learn more about each of the attributes, see the [Face detection and attributes](../concept-face-detection.md) conceptual guide.
9395

94-
## Next steps
96+
## Next step
9597

9698
In this guide, you learned how to use the various functionalities of face detection and analysis. Next, integrate these features into an app to add face data from users.
9799

98100
- [Tutorial: Add users to a Face service](../enrollment-overview.md)
99101

100-
## Related articles
102+
## Related content
101103

102104
- [Reference documentation (REST)](/rest/api/face/operation-groups)
103105
- [Reference documentation (.NET SDK)](https://aka.ms/azsdk-csharp-face-ref)

articles/ai-services/computer-vision/how-to/mitigate-latency.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
---
2-
title: How to mitigate latency and improve performance when using the Face service
2+
title: Mitigate latency and improve Face service performance
33
titleSuffix: Azure AI services
4-
description: Learn how to mitigate network latency and improve service performance when using the Face service.
4+
description: Learn how to mitigate network latency and improve service performance when using the Azure AI Face service to enhance user experience.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-vision
99
ms.subservice: azure-ai-face
1010
ms.topic: how-to
11-
ms.date: 11/06/2023
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
ms.devlang: csharp
1414
ms.custom:
1515
- cogserv-non-critical-vision
1616
- ignite-2023
1717
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
18+
#customer intent: As a developer, I want to mitigate latency and improve performance when using the Face service so that my application provides a better user experience.
1819
---
1920

2021
# Mitigate latency and improve performance
2122

22-
This guide describes how to mitigate network latency and improve service performance when using the Face service. The speed and performance of your application will affect the experience of your end-users, such as people who enroll in and use a face identification system.
23+
This guide describes how to mitigate network latency and improve service performance when using Azure Face service. The speed and performance of your application will affect the experience of your end-users, such as people who enroll in and use the face identification system.
2324

2425
## Mitigate latency
2526

@@ -59,6 +60,11 @@ If the image files you use are large, it affects the response time of the Face s
5960
- It takes more time to upload the file.
6061
- It takes the service more time to process the file, in proportion to the file size.
6162

63+
Note the following additional tips:
64+
- For face detection, when using detection model `FaceDetectionModel.Detection01`, reducing the image file size increases processing speed. When you use detection model `FaceDetectionModel.Detection02`, reducing the image file size will only increase processing speed if the image file is smaller than 1920x1080 pixels.
65+
- For face recognition, reducing the face size will only increase the speed if the image is smaller than 200x200 pixels.
66+
- The performance of the face detection methods also depends on how many faces are in an image. The Face service can return up to 100 faces for an image. Faces are ranked by face rectangle size from large to small.
67+
6268

6369
#### The tradeoff between accuracy and network speed
6470

@@ -68,13 +74,6 @@ To achieve the optimal balance between accuracy and speed, follow these tips to
6874
- For face detection and recognition operations, see [input data for face detection](../concept-face-detection.md#input-requirements) and [input data for face recognition](../concept-face-recognition.md#input-requirements).
6975
- For liveness detection, see the [tutorial](../Tutorials/liveness.md#select-a-reference-image).
7076

71-
#### Other file size tips
72-
73-
Note the following additional tips:
74-
- For face detection, when using detection model `FaceDetectionModel.Detection01`, reducing the image file size increases processing speed. When you use detection model `FaceDetectionModel.Detection02`, reducing the image file size will only increase processing speed if the image file is smaller than 1920x1080 pixels.
75-
- For face recognition, reducing the face size will only increase the speed if the image is smaller than 200x200 pixels.
76-
- The performance of the face detection methods also depends on how many faces are in an image. The Face service can return up to 100 faces for an image. Faces are ranked by face rectangle size from large to small.
77-
7877

7978
## Call APIs in parallel when possible
8079

@@ -111,7 +110,7 @@ The following are other tips to ensure the reliability and high support of your
111110
- Always record the `client-request-id` and the response you received when you encounter an unexpected response. If you need any assistance, provide this information to Microsoft Support, along with the Azure resource ID and the time period when the problem occurred.
112111
- Conduct a pilot test before you release your application into production. Ensure that your application can handle errors properly and effectively.
113112

114-
## Next steps
113+
## Next step
115114

116115
In this guide, you learned how to improve performance when using the Face service. Next, follow the tutorial to set up a working software solution that combines server-side and client-side logic to do face liveness detection on users.
117116

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ manager: nitinme
99
ms.service: azure-ai-vision
1010
ms.subservice: azure-ai-face
1111
ms.topic: how-to
12-
ms.date: 06/10/2024
12+
ms.date: 01/22/2025
1313
ms.author: pafarley
1414
ms.devlang: csharp
1515
ms.custom: devx-track-csharp
1616
feedback_help_link_url: https://learn.microsoft.com/answers/tags/156/azure-face
17+
#customer intent: As a developer, I want to specify the face detection model so that I can choose the best model for my use case.
1718
---
1819

1920
# Specify a face detection model
2021

2122
This guide shows you how to specify a face detection model for the Azure AI Face service.
2223

23-
The Face service uses machine learning models to perform operations on human faces in images. We continue to improve the accuracy of our models based on customer feedback and advances in research, and we deliver these improvements as model updates. Developers can specify which version of the face detection model they'd like to use; they can choose the model that best fits their use case.
24-
25-
Read on to learn how to specify the face detection model in certain face operations. The Face service uses face detection whenever it converts an image of a face into some other form of data.
24+
The Face service uses machine learning models to perform operations on human faces in images. We continue to improve the accuracy of our models based on customer feedback and advances in research, and we deliver these improvements as model updates. Developers can specify which version of the face detection model they'd like to use; they can choose the model that best fits their use case. Read on to learn how to specify the face detection model in certain face operations. The Face service uses face detection whenever it converts an image of a face into some other form of data.
2625

2726
If you aren't sure whether you should use the latest model, skip to the [Evaluate different models](#evaluate-different-models) section to evaluate the new model and compare results using your current data set.
2827

@@ -48,9 +47,9 @@ Attributes are a set of features that can optionally be detected if they're spec
4847

4948
| Model | accessories | blur | exposure | glasses | headPose | mask | noise | occlusion | qualityForRecognition |
5049
|-------|:-----------:|:----:|:--------:|:-------:|:--------:|:----:|:-----:|:---------:|:---------------------:|
51-
|**detection_01** | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ (for recognition_03 or 04) |
50+
|**detection_01** | | | | | | | | | (for recognition_03 or 04) |
5251
|**detection_02** | | | | | | | | | |
53-
|**detection_03** | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ (for recognition_03 or 04) |
52+
|**detection_03** | | | | | | | | | (for recognition_03 or 04) |
5453

5554
The best way to compare the performances of the detection models is to use them on a sample dataset. We recommend calling the [Detect] API on a variety of images, especially images of many faces or of faces that are difficult to see, using each detection model. Pay attention to the number of faces that each model returns.
5655

@@ -139,15 +138,12 @@ This code creates a **FaceList** called `My face collection` and adds a Face to
139138
> [!NOTE]
140139
> You don't need to use the same detection model for all faces in a **FaceList** object, and you don't need to use the same detection model when detecting new faces to compare with a **FaceList** object.
141140
142-
143-
## Next steps
141+
## Next step
144142

145143
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.
146144

147-
* [Face .NET SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp)
148-
* [Face Python SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-python)
149-
* [Face Java SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-java)
150-
* [Face JavaScript SDK](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-javascript)
145+
> [!div class="nextstepaction"]
146+
> [Face quickstart](../quickstarts-sdk/identity-client-library.md?pivots=programming-language-csharp)
151147
152148
[Detect]: /rest/api/face/face-detection-operations/detect
153149
[Identify From Person Group]: /rest/api/face/face-recognition-operations/identify-from-person-group

0 commit comments

Comments
 (0)