OCR Recognize File
OCR Recognize File
Section titled “OCR Recognize File”Type: ocr-recognize · Package: OCR Activities v1.0.0 · Output: string
Recognizes and returns all text from an image file (.png, .jpg, .bmp, .tiff). It is the central activity of the package: reading the content of an image or a scanned document and then extracting data with expressions.
How it works
Section titled “How it works”Passes the image through the Tesseract engine and returns the recognized text. Indicates the language of the text to improve accuracy, and uses preprocess to clean up low-quality images. See language and preprocessed.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Image file path. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
language | expression | Language code: eng (def.) · spa · eng+spa. |
preprocess | expression | Limpieza previa: none (def.) · auto · deskew · binarize. |
Output
Section titled “Output”Returns a string with the recognized text.
Example
Section titled “Example”Read a scanned invoice in Spanish and extract the total:
OCR Recognize File path = = rutaEscaneo language = "spa" preprocess = "auto" → output: textoSet Variable name = total value = = regexFind(texto, "Total:\s*\$?([\d.,]+)")Related activities
Section titled “Related activities”- OCR Extract Pattern — extract concrete fields with regex in a single step.
- OCR Find Text — locate where a text is.
- PDF Get Text — for PDF with text (without OCR).