Skip to content

Commit 2d0953a

Browse files
authored
Merge pull request #115964 from PatrickFarley/comvis-30-sdk
[cog serv] Comvis 30 sdk
2 parents 7b4dd3a + 27e6b3a commit 2d0953a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

articles/cognitive-services/Computer-vision/QuickStarts/curl-thumb.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: computer-vision
1111
ms.topic: quickstart
12-
ms.date: 04/14/2020
12+
ms.date: 05/20/2020
1313
ms.author: pafarley
1414
ms.custom: seodec18
1515
---
@@ -40,7 +40,7 @@ To create and run the sample, do the following steps:
4040
1. Press enter to run the program.
4141

4242
```bash
43-
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westus.api.cognitive.microsoft.com/vision/v2.1/generateThumbnail?width=100&height=100&smartCropping=true" -d "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Shorkie_Poo_Puppy.jpg/1280px-Shorkie_Poo_Puppy.jpg\"}"
43+
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westus.api.cognitive.microsoft.com/vision/v3.0/generateThumbnail?width=100&height=100&smartCropping=true" -d "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Shorkie_Poo_Puppy.jpg/1280px-Shorkie_Poo_Puppy.jpg\"}"
4444
```
4545

4646
## Examine the response
@@ -49,7 +49,7 @@ A successful response writes the thumbnail image to the file specified in `<thum
4949

5050
## Next steps
5151

52-
Explore the Computer Vision API to how to analyze an image, detect celebrities and landmarks, create a thumbnail, and extract printed and handwritten text. To rapidly experiment with the Computer Vision API, try the [Open API testing console](https://westcentralus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa/console).
52+
Explore the Computer Vision API to how to analyze an image, detect celebrities and landmarks, create a thumbnail, and extract printed and handwritten text. To rapidly experiment with the Computer Vision API, try the [Open API testing console](https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-ga/operations/56f91f2e778daf14a499f20c).
5353

5454
> [!div class="nextstepaction"]
55-
> [Explore the Computer Vision API](https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44)
55+
> [Explore the Computer Vision API](https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-ga/operations/56f91f2e778daf14a499f21b)

articles/cognitive-services/Computer-vision/QuickStarts/python-thumb.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: computer-vision
1111
ms.topic: quickstart
12-
ms.date: 04/14/2020
12+
ms.date: 05/20/2020
1313
ms.author: pafarley
1414
ms.custom: seodec18
1515
---
1616
# Quickstart: Generate a thumbnail using the Computer Vision REST API and Python
1717

18-
In this quickstart, you'll generate a thumbnail from an image using the Computer Vision REST API. With the [Get Thumbnail](https://westcentralus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fb) method, you can specify the desired height and width, and Computer Vision uses smart cropping to intelligently identify the area of interest and generate cropping coordinates based on that region.
18+
In this quickstart, you'll generate a thumbnail from an image using the Computer Vision REST API. With the [Get Thumbnail](https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-ga/operations/56f91f2e778daf14a499f20c) method, you can specify the desired height and width, and Computer Vision uses smart cropping to intelligently identify the area of interest and generate cropping coordinates based on that region.
1919

2020
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/try/cognitive-services/) before you begin.
2121

@@ -42,7 +42,7 @@ from io import BytesIO
4242
subscription_key = os.environ['COMPUTER_VISION_SUBSCRIPTION_KEY']
4343
endpoint = os.environ['COMPUTER_VISION_ENDPOINT']
4444

45-
thumbnail_url = endpoint + "vision/v2.1/generateThumbnail"
45+
thumbnail_url = endpoint + "vision/v3.0/generateThumbnail"
4646

4747
# Set image_url to the URL of an image that you want to analyze.
4848
image_url = "https://upload.wikimedia.org/wikipedia/commons/9/94/Bloodhound_Puppy.jpg"
@@ -96,4 +96,4 @@ Next, explore a Python application that uses Computer Vision to perform optical
9696
> [!div class="nextstepaction"]
9797
> [Computer Vision API Python Tutorial](../Tutorials/PythonTutorial.md)
9898
99-
* To rapidly experiment with the Computer Vision API, try the [Open API testing console](https://westcentralus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa/console).
99+
* To rapidly experiment with the Computer Vision API, try the [Open API testing console](https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-ga/operations/56f91f2e778daf14a499f20c).

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/python-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ Computer Vision can read visible text in an image and convert it to a character
157157

158158
### Call the Read API
159159

160-
First, use the following code to call the **batch_read_file** method for the given image. This returns an operation ID and starts an asynchronous process to read the content of the image.
160+
First, use the following code to call the **read** method for the given image. This returns an operation ID and starts an asynchronous process to read the content of the image.
161161

162162
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/ComputerVisionQuickstart.py?name=snippet_read_call)]
163163

164164
### Get Read results
165165

166-
Next, get the operation ID returned from the **batch_read_file** call, and use it to query the service for operation results. The following code checks the operation at one-second intervals until the results are returned. It then prints the extracted text data to the console.
166+
Next, get the operation ID returned from the **read** call, and use it to query the service for operation results. The following code checks the operation at one-second intervals until the results are returned. It then prints the extracted text data to the console.
167167

168168
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/ComputerVisionQuickstart.py?name=snippet_read_response)]
169169

0 commit comments

Comments
 (0)