Skip to content

OCR Screenshot

Type: ocr-screenshot  ·  Package: OCR Activities v1.2.5  ·  Output: string

Captures the whole screen and recognizes all visible text. Useful to dump the textual content of a full screen, or as a step before searching for something in it.

Takes a capture of the given screen (the primary one by default) and runs it through OCR. It requires an interactive desktop session: it recognizes what is visible at that moment.

  • screen is the monitor index, starting at 0. An out-of-range index is adjusted to the nearest valid one (a negative number uses screen 0; one larger than the number of monitors uses the last).
  • It has no preprocessing; a full screen produces a lot of text and takes longer than a specific area.

None.

ParameterTypeDefaultDescription
screenint0Screen index (0-based). 0 is the primary screen.
languagestring"eng"Text language: Tesseract code (eng, spa, eng+spa) or regional tag (es-CO, en-US). See language.

Returns a string with all the text recognized on the screen.

OCR Screenshot language = "spa" → output: screenText
If condition = contains(screenText, "Sesión expirada")
└─ then:
... sign in again ...
MessageCause and fix
Tesseract language '…' not found at '…'. Available: [eng, spa].The language code is not installed.
Screen capture errorThere is no interactive desktop (locked session or no user signed in).