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: articles/ai-services/computer-vision/how-to/use-persondirectory.md
+92-1Lines changed: 92 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,7 @@ using (var content = new ByteArrayContent(byteData))
238
238
```
239
239
240
240
> [!NOTE]
241
-
> As soon as the call returns, the created **DynamicPersonGroup** will be ready to use in an Identify call, with any **Person** references provided in the process. The completion status of the returned operation ID, on the other hand, indicates the update status of the person-to-group relationship.
241
+
> As soon as the call returns, the created **DynamicPersonGroup** will be ready to use in an Identify call, with any **Person** references provided in the process. The completion status of the returned operation ID, on the other hand, only indicates the update status for [Get Dynamic Person Group References](/rest/api/face/person-directory-operations/get-dynamic-person-group-references) lookup calls.
242
242
243
243
### Update the DynamicPersonGroup
244
244
@@ -393,6 +393,97 @@ using (var content = new ByteArrayContent(byteData))
393
393
394
394
The response will contain a Boolean value indicating whether the service considers the new face to belong to the same **Person**, and a confidence score for the prediction.
395
395
396
+
## Overview of asynchronous operations
397
+
398
+
The tables below summarize whether a **PersonDirectory** management call is a long-running operation (LRO) processed asynchronously, or it completes immediately and synchronously:
|[Get Person Faces](/rest/api/face/person-directory-operations/get-person-faces)| /persons/{personId}/recognitionModels/{model}/persistedfaces ||
408
+
|[Add Person Face](/rest/api/face/person-directory-operations/add-person-face)| /persons/{personId}/recognitionModels/{model}/persistedfaces | 🔴 |
409
+
|[Add Person Face From Url](/rest/api/face/person-directory-operations/add-person-face-from-url)| /persons/{personId}/recognitionModels/{model}/persistedfaces | 🔴 |
410
+
|[Get Person Face](/rest/api/face/person-directory-operations/get-person-face)| /persons/{personId}/recognitionModels/{model}/persistedfaces/{persistedFaceId} ||
411
+
|[Update Person Face](/rest/api/face/person-directory-operations/update-person-face)| /persons/{personId}/recognitionModels/{model}/persistedfaces/{persistedFaceId} ||
412
+
|[Delete Person Face](/rest/api/face/person-directory-operations/delete-person-face)| /persons/{personId}/recognitionModels/{model}/persistedfaces/{persistedFaceId} | 🔴 |
413
+
414
+
| Group Management | URI | LRO? |
415
+
| --- | --- | --- |
416
+
|[Get Dynamic Person Groups](/rest/api/face/person-directory-operations/get-dynamic-person-groups)| /dynamicpersongroups ||
417
+
|[Create Dynamic Person Group](/rest/api/face/person-directory-operations/create-dynamic-person-group)| /dynamicpersongroups/{dynamicPersonGroupId} ||
418
+
|[Create Dynamic Person Group With Person](/rest/api/face/person-directory-operations/create-dynamic-person-group-with-person)| /dynamicpersongroups/{dynamicPersonGroupId} | 🔴 |
419
+
|[Get Dynamic Person Group](/rest/api/face/person-directory-operations/get-dynamic-person-group)| /dynamicpersongroups/{dynamicPersonGroupId} ||
420
+
|[Update Dynamic Person Group](/rest/api/face/person-directory-operations/update-dynamic-person-group)| /dynamicpersongroups/{dynamicPersonGroupId} ||
421
+
|[Update Dynamic Person Group With Person Changes](/rest/api/face/person-directory-operations/update-dynamic-person-group-with-person-changes)| /dynamicpersongroups/{dynamicPersonGroupId} | 🔴 |
422
+
|[Delete Dynamic Person Group](/rest/api/face/person-directory-operations/delete-dynamic-person-group)| /dynamicpersongroups/{dynamicPersonGroupId} | 🔴 |
423
+
|[Get Dynamic Person Group Persons](/rest/api/face/person-directory-operations/get-dynamic-person-group-persons)| /dynamicpersongroups/{dynamicPersonGroupId}/persons ||
424
+
|[Get Dynamic Person Group References](/rest/api/face/person-directory-operations/get-dynamic-person-group-references)| /persons/{personId}/dynamicPersonGroupReferences ||
425
+
426
+
The following code illustrates the dependencies of these asynchronous operations:
427
+
428
+
```csharp
429
+
varcreatePersonResponse=awaitCreatePersonAsync();
430
+
varpersonId=createPersonResponse.PersonId;
431
+
432
+
// faces can be added once the person creation HTTP call returns, even if it's still processing
In this guide, you learned how to use the **PersonDirectory** structure to store face and person data for your Face app. Next, learn the best practices for adding your users' face data.
0 commit comments