OCR
OCRSuraya
collectra.OCRSuraya recognizes text in images or crops and returns Text
artefacts. The class name is spelled OCRSuraya; the underlying backend is
Surya. Install its surya-ocr package; weights load on first use.
See Licensing and optional backends for version-dependent code and model-weight terms.
read_lines:
type: collectra.OCRSuraya
input: lines
output: line_text
Commands
run is the only task command, with the shared run options.
There is no train command.
collectra --pipeline pipeline.yaml task read_lines run results/page001.collectra
collectra --pipeline pipeline.yaml task read_lines run --help
The example expects lines crops in the results. To OCR whole images, use
the root image node as input instead. Use Text Processing to join OCR output and
Text to evaluate it.