Skip to content

Commit a95cded

Browse files
committed
update rest links
1 parent c4e0a67 commit a95cded

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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
---
@@ -39,7 +39,7 @@ To create and run the sample, do the following steps:
3939
1. Paste the command from the text editor into the command prompt window, and then run the command.
4040

4141
```bash
42-
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westcentralus.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\"}"
42+
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westcentralus.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\"}"
4343
```
4444

4545
## Examine the response
@@ -48,7 +48,7 @@ A successful response writes the thumbnail image to the file specified in `<thum
4848

4949
## Next steps
5050

51-
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).
51+
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).
5252

5353
> [!div class="nextstepaction"]
54-
> [Explore the Computer Vision API](https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44)
54+
> [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

@@ -48,7 +48,7 @@ else:
4848
if 'COMPUTER_VISION_ENDPOINT' in os.environ:
4949
endpoint = os.environ['COMPUTER_VISION_ENDPOINT']
5050

51-
thumbnail_url = endpoint + "vision/v2.1/generateThumbnail"
51+
thumbnail_url = endpoint + "vision/v3.0/generateThumbnail"
5252

5353
# Set image_url to the URL of an image that you want to analyze.
5454
image_url = "https://upload.wikimedia.org/wikipedia/commons/9/94/Bloodhound_Puppy.jpg"
@@ -93,4 +93,4 @@ Next, explore a Python application that uses Computer Vision to perform optical
9393
> [!div class="nextstepaction"]
9494
> [Computer Vision API Python Tutorial](../Tutorials/PythonTutorial.md)
9595
96-
* 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).
96+
* 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).

0 commit comments

Comments
 (0)