qmetrics.net

Surya

Multilingual document OCR, layout analysis, and table recognition

Surya screenshot

Surya is a document OCR and layout vision-language model with CLI and Python APIs. It runs layout detection, text recognition, reading order, and table HTML output for images and PDFs in many languages.

Overview

Surya is a 689M-parameter vision-language model focused on document intelligence: optical character recognition, page layout analysis, reading order, and table structure. A lightweight surya-ocr client orchestrates inference through backends such as vLLM in Docker or Podman, llama-server from llama.cpp on CPU or Apple Silicon, or mlxvlm.server on Apple Silicon, and can auto-start a compatible server on first use or attach to an existing OpenAI-compatible endpoint.

Layout analysis labels regions such as tables, pictures, section headers, equations, and forms, then orders them for reading. OCR returns block-level text as HTML, including KaTeX-compatible LaTeX for equations inline with prose. Table recognition outputs HTML tables with colspan and rowspan for merged cells. Commands accept images, PDFs, or folders, support page ranges, optional saved visuals, and JSON results with polygons, bounding boxes, labels, and confidence scores.

The suryagui command opens an interactive browser viewer to drop PDFs or images and inspect layout boxes, reading order, rendered math, HTML tables, and JSON across full-page OCR, block OCR, layout, and table modes. Settings can be overridden with environment variables; optional keep-server flags avoid reloading the model between consecutive CLI runs.

Throughput depends on the chosen backend and hardware; example GPU rates illustrate typical performance, and tuning concurrency, DPI, and MTP affects latency tradeoffs. Model weights ship under a modified license distinct from the Apache-licensed code, with broader commercial terms through Datalab pricing. Datalab also offers a managed API platform built on Surya and related models for hosted document conversion and extraction.

Key features

  • Multilingual OCR across 90+ languages
  • Layout analysis with reading order
  • HTML table output with merged cells
  • Equations as KaTeX-compatible LaTeX in HTML
  • PDF and image batch processing
  • vLLM, llama.cpp, or MLX inference backends
  • Interactive browser viewer for results
  • JSON output with boxes and confidence

Use cases

  • OCR for scanned or born-digital PDFs
  • Extracting structured tables from documents
  • Layout-aware text for RAG pipelines
  • Inspecting OCR and layout in a browser UI
  • Shell pipelines via JSON on stdout

Tags

Similar software

PaddleOCR

OCR toolkit for documents and scene text

PaddleOCR parses PDFs and images into structured Markdown or JSON with multilingual text and layout models.

  • PDF and image to Markdown or JSON
  • Layout, table, and formula parsing models
  • Multilingual scene text recognition
PythonLinux, Windows, DockerDetails →
★ 93.8k⟳ 2 days agoApache-2.0

Crawl4AI

Web crawler and extraction library for AI pipelines

Crawl4AI turns web pages into clean Markdown or structured JSON for RAG and agents. Use the Python library, Docker server, CLI, or the hosted Crawl4AI Cloud API.

  • LLM-ready Markdown output
  • Structured JSON extraction
  • Async browser pool
PythonDocker, CLIDetails →
★ 88.5k⟳ 5 days agoApache-2.0
Open Source Alternative to:Zyte

CloakBrowser

Stealth Chromium wrapper for Playwright and Puppeteer

CloakBrowser ships a patched Chromium binary and drop-in launch helpers for Python, JavaScript, and .NET. Fingerprints are altered at compile time rather than via injected scripts.

  • Drop-in Playwright launch API
  • Puppeteer import path
  • Source-level fingerprint patches
PythonDocker, CLIDetails →
★ 35.4k⟳ yesterdayMIT
Open Source Alternative to:AdsPowerGoLogin+1

ScrapeGraphAI

LLM-driven Python web scraping pipeline library

ScrapeGraphAI builds scraping pipelines with language models and graph logic. You specify what to extract and it processes websites or local HTML, JSON, XML, and Markdown sources.

  • Prompt-driven single-page extraction
  • Multi-page search and scrape graphs
  • Script and audio generation pipelines
PythonDetails →
★ 33.1k⟳ 2 months agoMIT
Open Source Alternative to:Zyte

Cheerio

jQuery-style library for parsing and manipulating HTML and XML

Cheerio loads HTML or XML and exposes a familiar selector API to traverse and change documents. It is used heavily for server-side parsing and scraping tasks.

  • jQuery-like selector syntax
  • HTML and XML parsing
  • parse5 and htmlparser2 backends
TypeScriptWebDetails →
★ 30.6k⟳ yesterdayMIT

OpenDataLoader PDF

PDF parser for structured LLM and accessibility output

Converts PDFs to Markdown, JSON with bounding boxes, and HTML for RAG and analysis. Offers local deterministic mode and optional hybrid AI for hard pages.

  • Markdown, JSON, and HTML export
  • Bounding boxes per document element
  • XY-Cut++ multi-column reading order
JavaCLIDetails →
★ 30.4k⟳ 2 days agoApache-2.0