OCR Get Lines
OCR Get Lines
Section titled “OCR Get Lines”Type: ocr-get-lines · Package: OCR Activities v1.0.0 · Output: List
Recognizes text from an image and returns a structured list of lines, each with its own words and the coordinates (bounding box) of each element. It is the “detailed” version of OCR: instead of a block of text, it gives you the position of each line and word, useful for layout analysis or to locate data spatially.
How it works
Section titled “How it works”Runs OCR on the image and returns the detected lines with their words and coordinates. For most cases OCR Recognize File (plain text) is sufficient; use Get Lines when position matters.
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. |
Output
Section titled “Output”Returns a List of lines; Each line includes its text, its words and the coordinates (box) of each one.
Example
Section titled “Example”OCR Get Lines path = = rutaImagen language = "spa" → output: lineasLog message = = "Líneas detectadas: " + count(lineas)Related activities
Section titled “Related activities”- OCR Recognize File — plain text (without coordinates).
- OCR Extract Table — detect a table from positions.
- OCR Find Text — locate a specific text.