You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/computer-vision-how-to-install-containers.md
+12-73Lines changed: 12 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,16 @@ manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: computer-vision
10
10
ms.topic: conceptual
11
-
ms.date: 10/03/2019
11
+
ms.date: 11/04/2019
12
12
ms.author: dapine
13
13
ms.custom: seodec18
14
14
---
15
15
16
-
# Install and run Computer Vision containers
16
+
# Install and run Read containers
17
17
18
18
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.
19
19
20
-
There are two Docker containers available for Computer Vision: *Recognize Text* and *Read*. The *Recognize Text* 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. The *Read* container, however; also detects *handwritten text* in images and provides PDF/TIFF/multi-page support. For more information, see the [Read API](concept-recognizing-text.md#read-api) documentation.
21
-
22
-
> [!IMPORTANT]
23
-
> The Recognize Text container is being deprecated in favor of the Read container. The Read container is a superset of its predecessor the Recognize Text container, and consumers should migrate to using the Read container. Both containers work only with English.
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.
24
21
25
22
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
26
23
@@ -36,10 +33,6 @@ You must meet the following prerequisites before using the containers:
Use the host, `http://localhost:5000`, for container APIs.
158
106
159
-
# [Read](#tab/read)
160
-
161
107
### Asynchronous read
162
108
163
109
You can use the `POST /vision/v2.0/read/core/asyncBatchAnalyze` and `GET /vision/v2.0/read/operations/{operationId}` operations in concert to asynchronously read an image, similar to how the Computer Vision service uses those corresponding REST operations. The asynchronous POST method will return an `operationId` that is used as the identifer to the HTTP GET request.
@@ -309,26 +255,19 @@ export interface Line {
309
255
words?:Word[] |null;
310
256
}
311
257
258
+
exportenumConfidence {
259
+
High=0,
260
+
Low=1
261
+
}
262
+
312
263
exportinterfaceWord {
313
264
boundingBox?:number[] |null;
314
265
text:string;
315
-
confidence?:string|null;
266
+
confidence?:Confidence|null;
316
267
}
317
268
```
318
269
319
-
For an example use-case, see the [TypeScript sandbox here](https://aka.ms/ts-read-api-types) and select "Run" to visualize its ease-of-use.
320
-
321
-
# [Recognize Text](#tab/recognize-text)
322
-
323
-
### Asynchronous text recognition
324
-
325
-
You can use the `POST /vision/v2.0/recognizeText` and `GET /vision/v2.0/textOperations/*{id}*` operations in concert to asynchronously recognize printed text in an image, similar to how the Computer Vision service uses those corresponding REST operations. The Recognize Text container only recognizes printed text, not handwritten text, at this time, so the `mode` parameter normally specified for the Computer Vision service operation is ignored by the Recognize Text container.
326
-
327
-
### Synchronous text recognition
328
-
329
-
You can use the `POST /vision/v2.0/recognizeTextDirect` operation to synchronously recognize printed text in an image. Because this operation is synchronous, the request body for this operation is the same as the `POST /vision/v2.0/recognizeText` operation, but the response body for this operation is the same as that returned by the `GET /vision/v2.0/textOperations/*{id}*` operation.
330
-
331
-
***
270
+
For an example use-case, see the <ahref="https://aka.ms/ts-read-api-types"target="_blank"rel="noopener noreferrer">TypeScript sandbox here <spanclass="docon docon-navigate-external x-hidden-focus"></span></a> and select **Run** to visualize its ease-of-use.
332
271
333
272
## Stop the container
334
273
@@ -356,10 +295,10 @@ For more information about these options, see [Configure containers](./computer-
356
295
357
296
In this article, you learned concepts and workflow for downloading, installing, and running Computer Vision containers. In summary:
358
297
359
-
* Computer Vision provides a Linux container for Docker, encapsulating both Recognize Text and Read.
298
+
* Computer Vision provides a Linux container for Docker, encapsulating Read.
360
299
* Container images are downloaded from the "Container Preview" container registry in Azure.
361
300
* Container images run in Docker.
362
-
* You can use either the REST API or SDK to call operations in Recognize Text or Read containers by specifying the host URI of the container.
301
+
* You can use either the REST API or SDK to call operations in Read containers by specifying the host URI of the container.
363
302
* You must specify billing information when instantiating a container.
0 commit comments