Skip to content

OCR Find Text

Type: ocr-find-text  ·  Package: OCR Activities v1.0.0  ·  Output: object

Searches for text within an image or screen region and returns its position (coordinates). Useful for locating an item by its label and then, for example, clicking near it — when there is no other way to locate it.

Run OCR on the source (a path file or a x/y/width/height screen region) and look for the text. Returns an object with found and, if found, its coordinates (x, y, width, height) and the corresponding word/line.

ParameterEditorDescription
textexpressionText to search for in the OCR result.
ParameterEditorDescription
pathexpressionImage path (instead of a screen region).
x / y / width / heightexpressionScreen region to analyze (required if there is no path).
languageexpressionLanguage code: eng (def.) · spa · eng+spa.
caseSensitivebooleanCase sensitive. By default false.

Returns a object: { found, x, y, width, height, word, line } if found, or { found: false } if not.

OCR Find Text path = = rutaImagen text = "Total" language = "spa" → output: pos
If condition = = pos["found"]
└─ then:
Log message = = "'Total' está en x=" + pos["x"] + ", y=" + pos["y"]