Skip to content

Commit 3faca78

Browse files
authored
Merge pull request #100445 from PatrickFarley/bug-fixes
[cog serv] Bug fixes
2 parents bd621a3 + a94024e commit 3faca78

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can analyze images to detect and provide insights about their visual feature
4545

4646
## Extract text from images
4747

48-
You can use Computer Vision [Read API](concept-recognizing-text.md#read-api) to extract printed and handwritten text from images into a machine-readable character stream. The Read API uses our latest models and works with text on a variety of surfaces and backgrounds, such as receipts, posters, business cards, letters, and whiteboards. Currently, English is the only supported language.
48+
You can use Computer Vision [Read](concept-recognizing-text.md#read-api) API to extract printed and handwritten text from images into a machine-readable character stream. The Read API uses our latest models and works with text on a variety of surfaces and backgrounds, such as receipts, posters, business cards, letters, and whiteboards. Currently, English is the only supported language.
4949

5050
You can also use the [optical character recognition (OCR)](concept-recognizing-text.md#ocr-optical-character-recognition-api) API to extract printed text in several languages. If needed, OCR corrects the rotation of the recognized text and provides the frame coordinates of each word. OCR supports 25 languages and automatically detects the language of the recognized text.
5151

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace CSHttpClientSample
5656
// the Analyze method endpoint
5757
static string uriBase = endpoint + "vision/v2.1/analyze";
5858

59-
static void Main()
59+
static async Task Main()
6060
{
6161
// Get the path and filename to process from the user.
6262
Console.WriteLine("Analyze an image:");
@@ -67,8 +67,8 @@ namespace CSHttpClientSample
6767
if (File.Exists(imageFilePath))
6868
{
6969
// Call the REST API method.
70-
Console.WriteLine("\nWait a moment for the results to appear.\n");
71-
MakeAnalysisRequest(imageFilePath).Wait();
70+
Console.WriteLine("\nWait for the results to appear.\n");
71+
await MakeAnalysisRequest(imageFilePath);
7272
}
7373
else
7474
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace CSHttpClientSample
6060
// the Batch Read method endpoint
6161
static string uriBase = endpoint + "vision/v2.1/read/core/asyncBatchAnalyze";
6262

63-
static void Main()
63+
static async Task Main()
6464
{
6565
// Get the path and filename to process from the user.
6666
Console.WriteLine("Text Recognition:");
@@ -72,7 +72,7 @@ namespace CSHttpClientSample
7272
{
7373
// Call the REST API method.
7474
Console.WriteLine("\nWait a moment for the results to appear.\n");
75-
ReadText(imageFilePath).Wait();
75+
await ReadText(imageFilePath);
7676
}
7777
else
7878
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace CSHttpClientSample
5959
// the OCR method endpoint
6060
static string uriBase = endpoint + "vision/v2.1/ocr";
6161

62-
static void Main()
62+
static async Task Main()
6363
{
6464
// Get the path and filename to process from the user.
6565
Console.WriteLine("Optical Character Recognition:");
@@ -70,7 +70,7 @@ namespace CSHttpClientSample
7070
{
7171
// Call the REST API method.
7272
Console.WriteLine("\nWait a moment for the results to appear.\n");
73-
MakeOCRRequest(imageFilePath).Wait();
73+
await MakeOCRRequest(imageFilePath);
7474
}
7575
else
7676
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace CSHttpClientSample
5656
// the GenerateThumbnail method endpoint
5757
static string uriBase = endpoint + "vision/v2.1/generateThumbnail";
5858

59-
static void Main()
59+
static async Task Main()
6060
{
6161
// Get the path and filename to process from the user.
6262
Console.WriteLine("Thumbnail:");
@@ -68,7 +68,7 @@ namespace CSHttpClientSample
6868
{
6969
// Call the REST API method.
7070
Console.WriteLine("\nWait a moment for the results to appear.\n");
71-
MakeThumbNailRequest(imageFilePath).Wait();
71+
await MakeThumbNailRequest(imageFilePath);
7272
}
7373
else
7474
{

articles/cognitive-services/Computer-vision/Vision-API-How-to-Topics/HowtoAnalyzeVideo_Vision.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace BasicConsoleSample
160160
const string ApiKey = "<your API key>";
161161
const string Endpoint = "https://<your API region>.api.cognitive.microsoft.com";
162162

163-
private static void Main(string[] args)
163+
private static async Task Main(string[] args)
164164
{
165165
// Create grabber.
166166
FrameGrabber<DetectedFace[]> grabber = new FrameGrabber<DetectedFace[]>();
@@ -201,14 +201,14 @@ namespace BasicConsoleSample
201201
grabber.TriggerAnalysisOnInterval(TimeSpan.FromMilliseconds(3000));
202202

203203
// Start running in the background.
204-
grabber.StartProcessingCameraAsync().Wait();
204+
await grabber.StartProcessingCameraAsync();
205205

206206
// Wait for key press to stop.
207207
Console.WriteLine("Press any key to stop...");
208208
Console.ReadKey();
209209

210210
// Stop, blocking until done.
211-
grabber.StopProcessingAsync().Wait();
211+
await grabber.StopProcessingAsync();
212212
}
213213
}
214214
}

articles/cognitive-services/Computer-vision/computer-vision-how-to-install-containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: seodec18
1717

1818
Containers enable you to run the Computer Vision APIs in your own environment. Containers are great for specific security and data governance requirements. In this article you'll learn how to download, install, and run a Computer Vision container.
1919

20-
A single Docker container, *Read*, is available for Computer Vision. The *Read* container allows you to detect and extract *printed text* from images of various objects with different surfaces and backgrounds, such as receipts, posters, and business cards. Additionally, the *Read* container detects *handwritten text* in images and provides PDF, TIFF, and multi-page file support. For more information, see the [Read API](concept-recognizing-text.md#read-api) documentation.
20+
A single Docker container, *Read*, is available for Computer Vision. The *Read* container allows you to detect and extract *printed text* from images of various objects with different surfaces and backgrounds, such as receipts, posters, and business cards. Additionally, the *Read* container detects *handwritten text* in images and provides PDF, TIFF, and multi-page file support. For more information, see the [Read](concept-recognizing-text.md#read-api) API documentation.
2121

2222
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
2323

0 commit comments

Comments
 (0)