Surya OCR

Multilingual document OCR toolkit with line detection and layout analysis.

Open SourceSelf HostedOffline CapableGPU Required (4GB+ VRAM)
0.0 (0)

About

Surya is an open-source document OCR and analysis toolkit from Vik Paruchuri, the developer behind Marker, built around a 650-million-parameter vision language model. It performs line-level text detection, text recognition across more than 90 languages, layout analysis that classifies tables, images, and headers, reading order detection, and table recognition with cell-level geometry, and it can render recognized math as LaTeX inside HTML output. The recognition model pairs a modern vision-language architecture with a separate EfficientViT-based text line detector, and inference runs through vLLM on GPUs or llama.cpp on CPU and Apple Silicon, turning images and PDFs into JSON with polygon coordinates and confidence scores. The project reports leading accuracy on olmOCR-bench among models of its size. The code is open source, while model weights use a modified Rail license that is free for research, personal projects, and smaller companies, with commercial licensing available beyond that threshold. It suits teams digitizing documents at scale.

Should you use Surya OCR?

Pick it when

Choose Surya when you need line-level OCR with polygons, confidence scores, layout classes, reading order, and table cells in 90+ languages, and you qualify for its free weights tier or will buy a commercial license.

Look elsewhere when

Skip it if your company is past the weights license threshold and will not pay; PaddleOCR is Apache-2.0 throughout. If you want finished Markdown rather than coordinates, use Marker from the same author.

Alternatives to Surya OCR

  • PaddleOCR

    Apache-2.0 throughout with layout, table, and formula modules and edge-size models, at the cost of the PaddlePaddle framework.

  • Marker

    Same author's higher-level tool that outputs Markdown or JSON documents, for when you want conversion rather than raw OCR geometry.

  • Chandra

    Larger Datalab VLM for handwriting, forms, and complex tables with HTML output, but it effectively requires an NVIDIA GPU.

  • DocTR

    Apache-2.0 detection and recognition you can retrain, with word positions, but without Surya's layout, reading order, and table models.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!