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/cognitive-services/Face/QuickStarts/go-sdk.md
+27-28Lines changed: 27 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,43 +39,39 @@ Begin using the Face service by creating an Azure resource. Choose the resource
39
39
* A [trial resource](https://azure.microsoft.com/try/cognitive-services/#decision) (no Azure subscription needed):
40
40
* Valid for seven days, for free. After signing up, a trial key and endpoint will be available on the [Azure website](https://azure.microsoft.com/try/cognitive-services/my-apis/).
41
41
* This is a great option if you want to try Face service, but don’t have an Azure subscription.
42
-
<!-- Link to the 'create' blade in the azure portal -->
43
-
* A [ Face service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAnomalyDetector):
42
+
* A [ Face service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesFace):
44
43
* Available through the Azure portal until you delete the resource.
45
44
* Use the free pricing tier to try the service, and upgrade later to a paid tier for production.
46
-
<!-- remove the below text if your service is not supported by the multi-service option. -->
47
45
* A [Multi-Service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne):
48
46
* Available through the Azure portal until you delete the resource.
49
47
* Use the same key and endpoint for your applications, across multiple Cognitive Services.
50
48
51
-
52
49
### Create an environment variable
53
50
54
51
>[!NOTE]
55
52
> The endpoints for non-trial resources created after July 1, 2019 use the custom subdomain format shown below. For more information and a complete list of regional endpoints, see [Custom subdomain names for Cognitive Services](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-custom-subdomains).
56
53
57
54
Using your key and endpoint from the resource you created, create two environment variables for authentication:
58
-
<!-- replace the below variable names with the names expected in the code sample.-->
59
-
*`PRODUCT_NAME_KEY` - The resource key for authenticating your requests.
60
-
*`PRODUCT_NAME_ENDPOINT` - The resource endpoint for sending API requests. It will look like this:
55
+
*`FACE_SUBSCRIPTION_KEY` - The resource key for authenticating your requests.
56
+
*`FACE_ENDPOINT` - The resource endpoint for sending API requests. It will look like this:
Next, you'll begin adding code to carry out different Face service operations.
146
137
147
138
## Object model
148
139
149
140
The following classes and interfaces handle some of the major features of the Face service Go SDK.
150
141
151
142
|Name|Description|
152
143
|---|---|
153
-
|||
144
+
|[BaseClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#BaseClient)| This class represents your authorization to use the Face service, and you need it for all Face functionality. You instantiate it with your subscription information, and you use it to produce instances of other classes. |
145
+
|[Client](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#Client)|This class handles the basic detection and recognition tasks that you can do with human faces. |
146
+
|[DetectedFace](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#DetectedFace)|This class represents all of the data that was detected from a single face in an image. You can use it to retrieve detailed information about the face.|
147
+
|[ListClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#ListClient)|This class manages the cloud-stored **FaceList** constructs, which store an assorted set of faces. |
148
+
|[PersonGroupPersonClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#PersonGroupPersonClient)| This class manages the cloud-stored **Person** constructs, which store a set of faces that belong to a single person.|
149
+
|[PersonGroupClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#PersonGroupClient)| This class manages the cloud-stored **PersonGroup** constructs, which store a set of assorted **Person** objects. |
150
+
|[SnapshotClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face#SnapshotClient)|This class manages the Snapshot functionality. You can use it to temporarily save all of your cloud-based Face data and migrate that data to a new Azure subscription. |
154
151
155
152
## Code examples
156
153
157
154
These code samples show you how to complete basic tasks using the Face service client library for Go:
158
155
159
-
*[Authenticate the client](#)
160
-
*[Example task 1 (anchor link)](#)
161
-
*[Example task 2 (anchor link)](#)
162
-
*[Example task 3 (anchor link)](#)
156
+
*[Authenticate the client](#authenticate-the-client)
157
+
*[Detect faces in an image](#detect-faces-in-an-image)
158
+
*[Find similar faces](#find-similar-faces)
159
+
*[Create and train a person group](#create-and-train-a-person-group)
160
+
*[Identify a face](#identify-a-face)
161
+
*[Take a snapshot for data migration](#take-a-snapshot-for-data-migration)
0 commit comments