Skip to content

Commit dff8dbc

Browse files
authored
Merge pull request #107713 from craigcaseyMSFT/vcraic0313
[Cog Svcs] Create zone pivots for CS computer vision
2 parents 088df82 + 3170408 commit dff8dbc

File tree

12 files changed

+181
-151
lines changed

12 files changed

+181
-151
lines changed

.openpublishing.redirection.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49920,6 +49920,31 @@
4992049920
"redirect_url": "/azure/postgresql/concepts-ssl-connection-security",
4992149921
"redirect_document_id": false
4992249922
},
49923+
{
49924+
"source_path": "articles/cognitive-services/Computer-vision/quickstarts-sdk/csharp-sdk.md",
49925+
"redirect_url": "/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-csharp",
49926+
"redirect_document_id": false
49927+
},
49928+
{
49929+
"source_path": "articles/cognitive-services/Computer-vision/quickstarts-sdk/go-sdk.md",
49930+
"redirect_url": "/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-go",
49931+
"redirect_document_id": false
49932+
},
49933+
{
49934+
"source_path": "articles/cognitive-services/Computer-vision/quickstarts-sdk/java-sdk.md",
49935+
"redirect_url": "/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-java",
49936+
"redirect_document_id": false
49937+
},
49938+
{
49939+
"source_path": "articles/cognitive-services/Computer-vision/quickstarts-sdk/node-sdk.md",
49940+
"redirect_url": "/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-javascript",
49941+
"redirect_document_id": false
49942+
},
49943+
{
49944+
"source_path": "articles/cognitive-services/Computer-vision/quickstarts-sdk/python-sdk.md",
49945+
"redirect_url": "/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-python",
49946+
"redirect_document_id": false
49947+
},
4992349948
{
4992449949
"source_path": "articles/lab-services/classroom-labs/class-type-deep-learning-natural-processing.md",
4992549950
"redirect_url": "/azure/lab-services/classroom-labs/class-type-deep-learning-natural-language-processing",

articles/cognitive-services/Computer-vision/Home.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ As with all of the Cognitive Services, developers using the Computer Vision serv
7676

7777
Get started with Computer Vision by following a quickstart guide:
7878

79-
- [Quickstart: Computer Vision .NET SDK](quickstarts-sdk/csharp-sdk.md)
80-
- [Quickstart: Computer Vision Python SDK](quickstarts-sdk/python-sdk.md)
81-
- [Quickstart: Computer Vision Java SDK](quickstarts-sdk/java-sdk.md)
79+
- [Quickstart: Computer Vision .NET client library](./quickstarts-sdk/client-library.md?pivots=programming-language-csharp)
80+
- [Quickstart: Computer Vision Python client library](./quickstarts-sdk/client-library.md?pivots=programming-language-python)
81+
- [Quickstart: Computer Vision Java client library](./quickstarts-sdk/client-library.md?pivots=programming-language-java)

articles/cognitive-services/Computer-vision/concept-brand-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ In some cases, the brand detector will pick up both the logo image and the styli
7272

7373
The brand detection feature is part of the [Analyze Image](https://westcentralus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa) API. You can call this API through a native SDK or through REST calls. Include `Brands` in the **visualFeatures** query parameter. Then, when you get the full JSON response, simply parse the string for the contents of the `"brands"` section.
7474

75-
* [Quickstart: Computer Vision .NET SDK](./quickstarts-sdk/csharp-sdk.md)
75+
* [Quickstart: Computer Vision .NET SDK](./quickstarts-sdk/client-library.md?pivots=programming-language-csharp)
7676
* [Quickstart: Analyze an image (REST API)](./quickstarts/csharp-analyze.md)

articles/cognitive-services/Computer-vision/concept-object-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ It's important to note the limitations of object detection so you can avoid or m
9595

9696
The object detection feature is part of the [Analyze Image](https://westcentralus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa) API. You can call this API through a native SDK or through REST calls. Include `Objects` in the **visualFeatures** query parameter. Then, when you get the full JSON response, simply parse the string for the contents of the `"objects"` section.
9797

98-
* [Quickstart: Computer Vision .NET SDK)](./quickstarts-sdk/csharp-sdk.md)
98+
* [Quickstart: Computer Vision .NET SDK](./quickstarts-sdk/client-library.md?pivots=programming-language-csharp)
9999
* [Quickstart: Analyze an image (REST API)](./quickstarts/csharp-analyze.md)

articles/cognitive-services/Computer-vision/quickstarts-sdk/csharp-sdk.md renamed to articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/csharp-sdk.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,12 @@ author: PatrickFarley
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: computer-vision
9-
ms.topic: quickstart
9+
ms.topic: include
1010
ms.date: 12/05/2019
1111
ms.author: pafarley
1212
---
1313

14-
# Quickstart: Computer Vision client library for .NET
15-
16-
Get started with the Computer Vision client library for .NET. Follow these steps to install the package and try out the example code for basic tasks. Computer Vision provides you with access to advanced algorithms for processing images and returning information.
17-
18-
Use the Computer Vision client library for .NET to:
19-
20-
* Analyze an image for tags, text description, faces, adult content, and more.
21-
* Recognize printed and handwritten text with the Batch Read API.
14+
<a name="HOLTop"></a>
2215

2316
[Reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/computervision?view=azure-dotnet) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cognitiveservices/Vision.ComputerVision) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Vision.ComputerVision/) | [Samples](https://azure.microsoft.com/resources/samples/?service=cognitive-services&term=vision&sort=0)
2417

@@ -146,55 +139,55 @@ The following sections show how to parse this information in detail.
146139

147140
### Get image description
148141

149-
The following code gets the list of generated captions for the image. See [Describe images](../concept-describing-images.md) for more details.
142+
The following code gets the list of generated captions for the image. See [Describe images](../../concept-describing-images.md) for more details.
150143

151144
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_describe)]
152145

153146
### Get image category
154147

155-
The following code gets the detected category of the image. See [Categorize images](../concept-categorizing-images.md) for more details.
148+
The following code gets the detected category of the image. See [Categorize images](../../concept-categorizing-images.md) for more details.
156149

157150
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_categorize)]
158151

159152
### Get image tags
160153

161-
The following code gets the set of detected tags in the image. See [Content tags](../concept-tagging-images.md) for more details.
154+
The following code gets the set of detected tags in the image. See [Content tags](../../concept-tagging-images.md) for more details.
162155

163156
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_tags)]
164157

165158
### Detect objects
166159

167-
The following code detects common objects in the image and prints them to the console. See [Object detection](../concept-object-detection.md) for more details.
160+
The following code detects common objects in the image and prints them to the console. See [Object detection](../../concept-object-detection.md) for more details.
168161

169162
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_objects)]
170163

171164
### Detect brands
172165

173-
The following code detects corporate brands and logos in the image and prints them to the console. See [Brand detection](../concept-brand-detection.md) for more details.
166+
The following code detects corporate brands and logos in the image and prints them to the console. See [Brand detection](../../concept-brand-detection.md) for more details.
174167

175168
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_brands)]
176169

177170
### Detect faces
178171

179-
The following code returns the detected faces in the image with their rectangle coordinates and select face attributes. See [Face detection](../concept-detecting-faces.md) for more details.
172+
The following code returns the detected faces in the image with their rectangle coordinates and select face attributes. See [Face detection](../../concept-detecting-faces.md) for more details.
180173

181174
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_faces)]
182175

183176
### Detect adult, racy, or gory content
184177

185-
The following code prints the detected presence of adult content in the image. See [Adult, racy, gory content](../concept-detecting-adult-content.md) for more details.
178+
The following code prints the detected presence of adult content in the image. See [Adult, racy, gory content](../../concept-detecting-adult-content.md) for more details.
186179

187180
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_adult)]
188181

189182
### Get image color scheme
190183

191-
The following code prints the detected color attributes in the image, like the dominant colors and accent color. See [Color schemes](../concept-detecting-color-schemes.md) for more details.
184+
The following code prints the detected color attributes in the image, like the dominant colors and accent color. See [Color schemes](../../concept-detecting-color-schemes.md) for more details.
192185

193186
[!code-csharp[](~/cognitive-services-dotnet-sdk-samples/documentation-samples/quickstarts/ComputerVision/Program.cs?name=snippet_color)]
194187

195188
### Get domain-specific content
196189

197-
Computer Vision can use specialized models to do further analysis on images. See [Domain-specific content](../concept-detecting-domain-content.md) for more details.
190+
Computer Vision can use specialized models to do further analysis on images. See [Domain-specific content](../../concept-detecting-domain-content.md) for more details.
198191

199192
The following code parses data about detected celebrities in the image.
200193

@@ -257,13 +250,13 @@ dotnet run
257250

258251
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
259252

260-
* [Portal](../../cognitive-services-apis-create-account.md#clean-up-resources)
261-
* [Azure CLI](../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
253+
* [Portal](../../../cognitive-services-apis-create-account.md#clean-up-resources)
254+
* [Azure CLI](../../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
262255

263256
## Next steps
264257

265258
> [!div class="nextstepaction"]
266259
>[Computer Vision API reference (.NET)](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/computervision?view=azure-dotnet)
267260
268-
* [What is Computer Vision?](../Home.md)
261+
* [What is Computer Vision?](../../Home.md)
269262
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/blob/master/documentation-samples/quickstarts/ComputerVision/Program.cs).

articles/cognitive-services/Computer-vision/quickstarts-sdk/go-sdk.md renamed to articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/go-sdk.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ author: PatrickFarley
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: computer-vision
10-
ms.topic: quickstart
10+
ms.topic: include
1111
ms.date: 01/27/2020
1212
ms.author: pafarley
1313
---
1414

15-
# Quickstart: Computer Vision client library for Go
16-
17-
Get started with the Computer Vision client library for Go. Follow these steps to install the package and try out the example code for basic tasks. Computer Vision provides you with access to advanced algorithms for processing images and returning information.
18-
19-
Use the Computer Vision client library for Go to:
20-
21-
* Analyze an image for tags, text description, faces, adult content, and more.
22-
* Recognize printed and handwritten text with the Batch Read API.
15+
<a name="HOLTop"></a>
2316

2417
[Reference documentation](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/computervision) | [Library source code](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/computervision) | [Package](https://github.com/Azure/azure-sdk-for-go)
2518

@@ -139,31 +132,31 @@ The following function calls extract different visual features from the sample i
139132

140133
### Get image description
141134

142-
The following function gets the list of generated captions for the image. For more information about image description, see [Describe images](../concept-describing-images.md).
135+
The following function gets the list of generated captions for the image. For more information about image description, see [Describe images](../../concept-describing-images.md).
143136

144137
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_analyze_describe)]
145138

146139
### Get image category
147140

148-
The following function gets the detected category of the image. For more information, see [Categorize images](../concept-categorizing-images.md).
141+
The following function gets the detected category of the image. For more information, see [Categorize images](../../concept-categorizing-images.md).
149142

150143
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_analyze_categorize)]
151144

152145
### Get image tags
153146

154-
The following function gets the set of detected tags in the image. For more information, see [Content tags](../concept-tagging-images.md).
147+
The following function gets the set of detected tags in the image. For more information, see [Content tags](../../concept-tagging-images.md).
155148

156149
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_tags)]
157150

158151
### Detect objects
159152

160-
The following function detects common objects in the image and prints them to the console. For more information, see [Object detection](../concept-object-detection.md).
153+
The following function detects common objects in the image and prints them to the console. For more information, see [Object detection](../../concept-object-detection.md).
161154

162155
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_objects)]
163156

164157
### Detect brands
165158

166-
The following code detects corporate brands and logos in the image and prints them to the console. For more information, [Brand detection](../concept-brand-detection.md).
159+
The following code detects corporate brands and logos in the image and prints them to the console. For more information, [Brand detection](../../concept-brand-detection.md).
167160

168161
First, declare a reference to a new image within your `main` function.
169162

@@ -175,25 +168,25 @@ The following code defines the brand detection function.
175168

176169
### Detect faces
177170

178-
The following function returns the detected faces in the image with their rectangle coordinates and certain face attributes. For more information, see [Face detection](../concept-detecting-faces.md).
171+
The following function returns the detected faces in the image with their rectangle coordinates and certain face attributes. For more information, see [Face detection](../../concept-detecting-faces.md).
179172

180173
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_faces)]
181174

182175
### Detect adult, racy, or gory content
183176

184-
The following function prints the detected presence of adult content in the image. For more information, see [Adult, racy, gory content](../concept-detecting-adult-content.md).
177+
The following function prints the detected presence of adult content in the image. For more information, see [Adult, racy, gory content](../../concept-detecting-adult-content.md).
185178

186179
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_adult)]
187180

188181
### Get image color scheme
189182

190-
The following function prints the detected color attributes in the image, like the dominant colors and accent color. For more information, see [Color schemes](../concept-detecting-color-schemes.md).
183+
The following function prints the detected color attributes in the image, like the dominant colors and accent color. For more information, see [Color schemes](../../concept-detecting-color-schemes.md).
191184

192185
[!code-go[](~/cognitive-services-quickstart-code/go/ComputerVision/ComputerVisionQuickstart.go?name=snippet_color)]
193186

194187
### Get domain-specific content
195188

196-
Computer Vision can use specialized models to do further analysis on images. For more information, see [Domain-specific content](../concept-detecting-domain-content.md).
189+
Computer Vision can use specialized models to do further analysis on images. For more information, see [Domain-specific content](../../concept-detecting-domain-content.md).
197190

198191
The following code parses data about detected celebrities in the image.
199192

@@ -250,13 +243,13 @@ go run sample-app.go
250243

251244
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
252245

253-
* [Portal](../../cognitive-services-apis-create-account.md#clean-up-resources)
254-
* [Azure CLI](../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
246+
* [Portal](../../../cognitive-services-apis-create-account.md#clean-up-resources)
247+
* [Azure CLI](../../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
255248

256249
## Next steps
257250

258251
> [!div class="nextstepaction"]
259252
> [Computer Vision API reference (Go)](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/computervision)
260253
261-
* [What is Computer Vision?](../Home.md)
254+
* [What is Computer Vision?](../../Home.md)
262255
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/go/ComputerVision/ComputerVisionQuickstart.go).

0 commit comments

Comments
 (0)