Surya
Recognizes text, reading order and table structure in scanned pages and PDF documents.
Description
Surya is a collection of Datalab models and tools for document recognition. It takes PDF pages or images and returns recognized text, region coordinates, block types and reading order. Table recognition returns HTML containing rows and cells. The tool can be integrated into an archive digitization pipeline or used through a local interactive viewer to inspect page-level results. The surya-ocr package uses a separate inference server, such as vLLM on NVIDIA or llama.cpp on CPUs and Apple Silicon. Resource needs depend on the execution mode. Complex layouts, formulas and handwriting should be reviewed manually. The code uses Apache 2.0. Model weights have a separate licence allowing free research, personal use and startups below a $5 million funding or revenue threshold; broader commercial use requires licensing. Datalab's cloud platform is a separate service.