Skip to content

Commit 89a6cde

Browse files
authored
Merge pull request #90433 from PatrickFarley/bug-fixes
[cog serv] Bug fixes
2 parents 7258385 + b1aa98d commit 89a6cde

35 files changed

+51
-47
lines changed

articles/cognitive-services/Computer-vision/QuickStarts/CSharp-analyze.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace CSHttpClientSample
5454
static string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
5555

5656
// the Analyze method endpoint
57-
const string uriBase = endpoint + "vision/v2.0/analyze";
57+
const string uriBase = endpoint + "vision/v2.1/analyze";
5858

5959
static void Main()
6060
{

articles/cognitive-services/Computer-vision/QuickStarts/CSharp-hand-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace CSHttpClientSample
5858
static string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
5959

6060
// the Batch Read method endpoint
61-
const string uriBase = endpoint + "vision/v2.0/read/core/asyncBatchAnalyze";
61+
const string uriBase = endpoint + "vision/v2.1/read/core/asyncBatchAnalyze";
6262

6363
static void Main()
6464
{

articles/cognitive-services/Computer-vision/QuickStarts/CSharp-print-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace CSHttpClientSample
5454
static string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
5555

5656
// the OCR method endpoint
57-
const string uriBase = endpoint + "vision/v2.0/ocr";
57+
const string uriBase = endpoint + "vision/v2.1/ocr";
5858

5959
static void Main()
6060
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace CSHttpClientSample
5454
static string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
5555

5656
// the GenerateThumbnail method endpoint
57-
const string uriBase = endpoint + "vision/v2.0/generateThumbnail";
57+
const string uriBase = endpoint + "vision/v2.1/generateThumbnail";
5858

5959
static void Main()
6060
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To create and run the sample, do the following steps:
4040
1. Paste the command from the text editor into the command prompt window, and then run the command.
4141

4242
```bash
43-
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v2.0/analyze?visualFeatures=Categories,Description&details=Landmarks&language=en" -d "{\"url\":\"http://upload.wikimedia.org/wikipedia/commons/3/3c/Shaki_waterfall.jpg\"}"
43+
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v2.1/analyze?visualFeatures=Categories,Description&details=Landmarks&language=en" -d "{\"url\":\"http://upload.wikimedia.org/wikipedia/commons/3/3c/Shaki_waterfall.jpg\"}"
4444
```
4545

4646
## Examine the response

articles/cognitive-services/Computer-vision/QuickStarts/curl-print-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v2.0/ocr?language=unk&detectOrientation=true" -d "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png\"}"
42+
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v2.1/ocr?language=unk&detectOrientation=true" -d "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png\"}"
4343
```
4444

4545
## Examine the response

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To run the sample, do the following steps:
3333
1. Copy the following code into an editor.
3434
1. Replace `<Subscription Key>` with your valid subscription key.
3535
1. Replace `<File>` with the path and filename to save the thumbnail.
36-
1. Change the Request URL (`https://westcentralus.api.cognitive.microsoft.com/vision/v2.0`) to use the location where you obtained your subscription keys, if necessary.
36+
1. Change the Request URL (`https://westcentralus.api.cognitive.microsoft.com/vision/v2.1`) to use the location where you obtained your subscription keys, if necessary.
3737
1. Optionally, change the image (`{\"url\":\"...`) to analyze.
3838
1. Open a command window on a computer with cURL installed.
3939
1. Paste the code in the window and run the command.
@@ -56,7 +56,7 @@ To create and run the sample, do the following steps:
5656
1. Paste the command from the text editor into the command prompt window, and then run the command.
5757

5858
```bash
59-
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v2.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\"}"
59+
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\"}"
6060
```
6161

6262
## Examine the response

articles/cognitive-services/Computer-vision/QuickStarts/go-analyze.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959
log.Fatal("\n\nSet the COMPUTER_VISION_ENDPOINT environment variable.\n" +
6060
"**Restart your shell or IDE for changes to take effect.**")
6161
}
62-
const uriBase = endpoint + "vision/v2.0/analyze"
62+
const uriBase = endpoint + "vision/v2.1/analyze"
6363
const imageUrl =
6464
"https://upload.wikimedia.org/wikipedia/commons/3/3c/Shaki_waterfall.jpg"
6565

articles/cognitive-services/Computer-vision/QuickStarts/go-print-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959
log.Fatal("\n\nSet the COMPUTER_VISION_ENDPOINT environment variable.\n" +
6060
"**Restart your shell or IDE for changes to take effect.**")
6161
}
62-
const uriBase = endpoint + "vision/v2.0/ocr"
62+
const uriBase = endpoint + "vision/v2.1/ocr"
6363
const imageUrl = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/" +
6464
"Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png"
6565

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959
log.Fatal("\n\nSet the COMPUTER_VISION_ENDPOINT environment variable.\n" +
6060
"**Restart your shell or IDE for changes to take effect.**")
6161
}
62-
const uriBase = endpoint + "vision/v2.0/generateThumbnail"
62+
const uriBase = endpoint + "vision/v2.1/generateThumbnail"
6363
const imageUrl =
6464
"https://upload.wikimedia.org/wikipedia/commons/9/94/Bloodhound_Puppy.jpg"
6565

0 commit comments

Comments
 (0)