Skip to content

OCR Recognize Screen Region

Type: ocr-recognize-region  ·  Package: OCR Activities v1.0.0  ·  Output: string

Captures a rectangular area of the screen and recognizes the text it contains. Useful for reading data from an application that does not expose its text in an accessible way (an image viewer, a custom control, drawn content) when Desktop selectors do not reach.

Captures the region defined by x, y (top left corner) and width, height (size), in pixels, and OCRs it. Requires an interactive desktop session (screen must be visible).

ParameterEditorDescription
xexpressionLeft coordinate of the area (px).
yexpressionUpper coordinate of the area (px).
widthexpressionArea width (px).
heightexpressionArea height (px).
ParameterEditorDescription
languageexpressionLanguage code: eng (def.) · spa · eng+spa.

Returns a string with the text recognized in that region.

OCR Recognize Screen Region x = 100 y = 250 width = 400 height = 60 language = "spa" → output: saldo