OCR Get Available Languages
OCR Get Available Languages
Section titled “OCR Get Available Languages”Type: ocr-get-languages · Package: OCR Activities v1.0.0 · Output: List
Returns the list of Tesseract language codes available in the package (e.g. eng, spa). Useful to verify, before processing, that the language you need is installed.
How it works
Section titled “How it works”Queries the installed languages and returns them as a list of codes.
Required parameters
Section titled “Required parameters”Ninguno.
Optional parameters
Section titled “Optional parameters”Ninguno.
Output
Section titled “Output”Returns a List of language codes (e.g. ["eng", "spa"]).
Example
Section titled “Example”OCR Get Available Languages → output: idiomasIf condition = = !idiomas.Contains("spa") └─ then: Throw message = "El idioma 'spa' no está disponible para OCR en este agente"Related activities
Section titled “Related activities”- OCR Recognize File — use one of these languages in
language.