Skip to content

Commit ae072d2

Browse files
Merge pull request #39523 from mpapas/patch-1
Update HowtoIdentifyFacesinImage.md
2 parents 743e58b + 9a4ec25 commit ae072d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/Face/Face-API-How-to-Topics/HowtoIdentifyFacesinImage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ CreatePersonResult friend1 = await faceClient.PersonGroupPerson.CreateAsync(
7777
// Define Bill and Clare in the same way
7878
```
7979
### <a name="step2-2"></a> Step 2.2: Detect faces and register them to the correct person
80-
Detection is done by sending a "POST" web request to the [Face - Detect](https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236) API with the image file in the HTTP request body. When you use the client library, face detection is done through the DetectAsync method for the FaceClient class.
80+
Detection is done by sending a "POST" web request to the [Face - Detect](https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236) API with the image file in the HTTP request body. When you use the client library, face detection is done through one of the Detect..Async methods of the FaceClient class.
8181

8282
For each face that's detected, call [PersonGroup Person – Add Face](https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b) to add it to the correct person.
8383

@@ -138,7 +138,7 @@ string testImageFile = @"D:\Pictures\test_img1.jpg";
138138

139139
using (Stream s = File.OpenRead(testImageFile))
140140
{
141-
var faces = await faceClient.Face.DetectAsync(s);
141+
var faces = await faceClient.Face.DetectWithStreamAsync(s);
142142
var faceIds = faces.Select(face => face.FaceId).ToArray();
143143

144144
var results = await faceClient.Face.IdentifyAsync(faceIds, personGroupId);

0 commit comments

Comments
 (0)