VikParuchuri /surya

OCR, layout analysis, reading order, table recognition in 90+ languages

★ 21,587⑂ 1,571
PythonCreated 2024-01-10www.datalab.to
21,587
stars
+10+14+103
1,571
forks
–
watchers
–
prs
–
issues
–
releases
–
discussions

README

Datalab

  State of the Art models for Document Intelligence


  
  
  


  
  
  




 Surya

Surya is a 689M param OCR model with these features:

- Accuracy - scores 85.9 on OmniParseBench, the highest of the open models under 1B parameters we have scored, and 83.7% on olmOCR-bench
- Speed - throughput of 4.5 pages/s on one H100 at 192 DPI, 1.7x Surya 2 with MTP (see Throughput)
- Multilingual - scores 74.9% on an internal benchmark set of 91 languages (more here)
- Layout analysis (table, image, header, etc.) with reading order
- Tables as HTML, with merged cells as colspan / rowspan (row and column geometry needs a Surya 2 checkpoint; see Limitations)

We also ship smaller models for line-level text detection and ocr error detection.  It works on a range of documents (see usage and benchmarks).

 Try Datalab's Managed Platform

Our managed platform uses Surya, our highest accuracy model Chandra, and other models.

The Datalab API turns documents into verifiable knowledge your agents act on. Every result traces back to its page and position, and one API can parse, extract, fill and edit documents.

Get started with about 5,000 free convert pages every month (work email) — sign up (takes under 30 seconds) or try our free public playground.

 Model Information




|                            Detection                             |                                   OCR                                   |
|:----------------------------------------------------------------:|:-----------------------------------------------------------------------:|
|    |   |

|                               Layout                               |
|:------------------------------------------------------------------:|
|  |


Surya is named for the Hindu sun god, who has universal vision.

 Examples

Each row links to four annotated views of the same page: text-line detection, OCR, layout and reading order (Surya 2.5).

| Name              |              Detection              |                                       OCR |                                       Layout |                                          Order |
|-------------------|:-----------------------------------:|------------------------------------------:|---------------------------------------------:|------------------------------------------------:|
| Newspaper | Image | Image | Image | Image |
| Reference book | Image | Image | Image | Image |
| Math paper | Image | Image | Image | Image |
| Government form | Image | Image | Image | Image |
| Handwritten letter | Image | Image | Image | Image |
| Corporate doc | Image | Image | Image | Image |
| Japanese tax form | Image | Image | Image | Image |

The example pages are public pages from OmniParseBench. The newspaper (The Alpha, 1881), reference book and math paper are from olmOCR-bench (Ai2, ODC-BY 1.0). The government form is a US federal form (public domain). The handwritten letter is from the Library of Congress, Manuscript Division, Carrie Chapman C

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON