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
The following face detection method is optimized for comparison operations. It doesn't extract detailed face attributes, and it uses an optimized recognition model.
The following method takes a set of target faces and a single source face. Then, it compares them and finds all the target faces that are similar to the source face. Finally, it prints the match details to the console.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/quickstarts-sdk/identity-javascript-sdk.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.author: pafarley
15
15
16
16
Get started with facial recognition using the Face client library for JavaScript. Follow these steps to install the package and try out the example code for basic tasks. The Face service provides you with access to advanced algorithms for detecting and recognizing human faces in images. Follow these steps to install the package and try out the example code for basic face identification using remote images.
Your app's `package.json` file is updated with the dependencies.
@@ -96,12 +96,18 @@ Add face to the person group person: (Family2-Lady) from image: Family2-Lady1.jp
96
96
Done adding faces to person group.
97
97
98
98
Training person group: c08484e0-044b-4610-8b7e-c957584e5d2d.
99
-
Waiting 10 seconds...
100
99
Training status: succeeded.
101
-
100
+
No persons identified for face with ID 259dd648-be70-499c-9942-3512594e21eb
102
101
Person: Family1-Mom is identified for face in: identification1.jpg with ID: b7f7f542-c338-4a40-ad52-e61772bc6e14. Confidence: 0.96921.
103
102
Person: Family1-Son is identified for face in: identification1.jpg with ID: 600dc1b4-b2c4-4516-87de-edbbdd8d7632. Confidence: 0.92886.
104
103
Person: Family1-Dad is identified for face in: identification1.jpg with ID: e83b494f-9ad2-473f-9d86-3de79c01e345. Confidence: 0.96725.
104
+
Verification result between face bb7f7f542-c338-4a40-ad52-e61772bc6e14 and person de1d7dea-a393-4f69-9062-10cb66d4cf17: true with confidence: 0.96921
105
+
Verification result between face 600dc1b4-b2c4-4516-87de-edbbdd8d7632 and person 05fd84e4-41b0-4716-b767-4376e33fa207: true with confidence: 0.92886
106
+
Verification result between face e83b494f-9ad2-473f-9d86-3de79c01e345 and person c5124fe2-39dd-47ba-9163-1ed2998fdeb2: true with confidence: 0.96725
107
+
108
+
Deleting person group: c08484e0-044b-4610-8b7e-c957584e5d2d
109
+
110
+
Done.
105
111
```
106
112
107
113
@@ -120,4 +126,4 @@ In this quickstart, you learned how to use the Face client library for JavaScrip
120
126
> [Specify a face detection model version](../../how-to/specify-detection-model.md)
121
127
122
128
*[What is the Face service?](../../overview-identity.md)
123
-
* More extensive sample code can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/javascript/Face/sdk_quickstart.js).
129
+
* More extensive sample code can be found on [GitHub](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/samples).
0 commit comments