Skip to main content

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​

InputTypeRequiredDefaultWhat it is
SessionStringNogoogle_aiName of the session opened by Connect.
FileFileYesJPEG, PNG, GIF, BMP, WEBP, ICO, TIFF or PDF picture, at most 7 MB.
ModeStringNodocumentdocument: dense text such as letters and forms. text: short text in photos, such as signs.
Language hintsListNoLanguages to expect, e.g. ["en", "hi"]. Leave empty to detect them.

Outputs​

OutputTypeWhat it is
textStringAll text found.
wordsTableColumns: text (one row per word or piece of text found).
languageStringLanguage of the text, when Vision could tell.