Read text in a picture
Read the text of a photo, scan or screenshot: dense documents or short text such as signs (Cloud Vision).
Command in the Google Cloud AI toolkit · id ooa.google_ai/vision_ocr · 4 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | google_ai | Name of the session opened by Connect. |
| File | File | Yes | JPEG, PNG, GIF, BMP, WEBP, ICO, TIFF or PDF picture, at most 7 MB. | |
| Mode | String | No | document | document: dense text such as letters and forms. text: short text in photos, such as signs. |
| Language hints | List | No | Languages to expect, e.g. ["en", "hi"]. Leave empty to detect them. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | All text found. |
| words | Table | Columns: text (one row per word or piece of text found). |
| language | String | Language of the text, when Vision could tell. |