Principle:A9T9 RPA Text Recognition
| Knowledge Sources | |
|---|---|
| Domains | OCR, Text_Recognition |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
Mechanism for recognizing text in a screenshot image using OCR engines (cloud API, local native engine, or AI-based OCR) and returning positioned word results.
Description
Text Recognition is the process of converting a screenshot image into structured text with per-word bounding boxes. This is the foundation of text-based visual automation: to click on text that is not in the DOM (canvas, images, desktop applications, or dynamic content), the system must first recognize where the text appears on screen.
The OCR system supports multiple engines:
- Cloud (ocr.space): sends the image to the ocr.space REST API with the API key, language, and engine selection. Engine 1 is fastest, engine 2 is optimized for clicking (better coordinates), engine 3 is best for pure text reading. Returns an `OcrResponse` with `ParsedResults` containing `ParsedText` and `TextOverlay` with per-word positions.
- Local (XModule2 ocrs): runs the cross-platform `ocrs` engine via the XModule2 native messaging host. Same recognition on every OS; models auto-install on first use. The result is adapted to the ocr.space schema for uniform parsing.
- OS-native: uses `Windows.Media.Ocr` (Windows) or `Apple Vision` (macOS) via the XModule2 host.
- AI-based: uses the configured AI provider as an OCR fallback.
All engines produce a uniform `OcrResponse` with positioned words, so downstream text search and coordinate extraction work identically regardless of engine.
Usage
Use this principle when an automation system needs to locate text on screen for clicking or verification, and the text is not accessible via the DOM.
Theoretical Basis
OCR pipeline: