OCR Recognize Screen Region
OCR Recognize Screen Region
Section titled “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.
How it works
Section titled “How it works”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).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
x | expression | Left coordinate of the area (px). |
y | expression | Upper coordinate of the area (px). |
width | expression | Area width (px). |
height | expression | Area height (px). |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
language | expression | Language code: eng (def.) · spa · eng+spa. |
Output
Section titled “Output”Returns a string with the text recognized in that region.
Example
Section titled “Example”OCR Recognize Screen Region x = 100 y = 250 width = 400 height = 60 language = "spa" → output: saldoRelated activities
Section titled “Related activities”- OCR Screenshot — read the entire screen.
- OCR Find Text — find the position of a text on the screen.
- Win Get Text — robust alternative via UIA.