Self-host dots.ocr
Multilingual OCR and document layout parsing model
- Stars
- 9 187
rednotehilab/dots.ocrWhat is dots.ocr?
dots.ocr is an MIT-licensed vision-language model for reading documents: given a page image or PDF it detects layout elements (titles, text blocks, captions, formulas, tables, pictures), assigns each a bounding box and returns its content, producing structured JSON plus concatenated Markdown. The project describes itself as able to recognise virtually any human script, and its 1.5 line was rebranded as dots.mocr, which additionally parses charts, diagrams and chemical formulas straight into SVG code, parses web-page screenshots, and spots text in scene photos. The model is built on a 1.7B LLM backbone (listed as a 3B VLM in the benchmark tables) and is reported to lead comparable-size models on olmOCR-Bench, OmniDocBench and XDocParse.
To run it yourself you create a Python 3.12 conda environment, clone and pip-install the package, fetch the weights with tools/download_model.py from Hugging Face or ModelScope, and launch a model server with vllm serve (vLLM 0.11.0 and later integrate the model officially, and its docker image can be used directly); a Docker image is published for easier setup, and a Transformers path is available by adding --use_hf true. Parsing is then driven from the command line, e.g. dots_mocr/parser.py on an image or PDF, with prompt flags for layout-only detection or text-only extraction. The documented vLLM and Transformers commands set CUDA_VISIBLE_DEVICES, while CPU inference is covered in a linked issue. Maintainers note current weak points: complex tables and formulas, SVG fidelity, and occasional parsing failures.
dots.ocr alternatives
Paperless-AIAI extension for Paperless-ngx providing automatic document classification and semantic search using OpenAI-compatible APIs and Ollama for natural language queries.ComparePaperless-AI with dots.ocr
StackResumeSelf-hosted AI resume builder with multi-agent pipeline, JD tailoring, and export to PDF, Word, and OpenDocument.CompareStackResume with dots.ocr
Paperless-GPTOpen-source, self-hosted AI companion for paperless-ngx: suggests titles, tags, correspondents and dates, and runs LLM vision OCR for searchable scans.ComparePaperless-GPT with dots.ocr
gpt-researcherSelf-hosted, open-source deep research agent: a planner splits your question, parallel researchers scan 20+ web or local sources, and it writes a cited report.Comparegpt-researcher with dots.ocr
OmniParseSelf-hosted OmniParse converts documents, multimedia, and web content into structured markdown optimized for LLM apps like RAG. Open-source solution with Docker.CompareOmniParse with dots.ocr
Deep Research Web UISelf-hosted AI agent generates cited reports via web searches, browsing real sources, and verifying evidence. Supports many AI providers and search APIs via Docker.CompareDeep Research Web UI with dots.ocr
PDFMathTranslateSelf-hosted, open-source scientific PDF translator that preserves formulas, tables and layout, via CLI, Gradio GUI or Docker using Google, DeepL, Ollama or OpenAI.ComparePDFMathTranslate with dots.ocr
textsnaptextsnap is a self-hosted OCR CLI extracting text from images, screenshots, URLs, and webpages using local CPU models with no GPU or cloud required.Comparetextsnap with dots.ocr
Should you self-host dots.ocr?
dots.ocr scores 64/100 on selfhost.directory (how scoring works) and ranks #2 of 4 in OCR. It has 9 187 GitHub stars, +10 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MIT-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is PaddleOCR (86/100, 92 515 stars). It scores higher overall, so compare the two before you pick. See dots.ocr vs PaddleOCR side by side.
Features
- CPU inferencePointed to a GitHub issue rather than first-class support.
- Document layout parsing
- Formula recognition (LaTeX)
- Image-to-SVG parsingRobustness still limited; a dedicated dots.mocr-svg variant exists.
- Layout detection only mode
- Layout visualisation
- Markdown export
- Multilingual OCR
- OpenAI-compatible model serving
- PDF parsing
- Scene text spotting
- Structured JSON output
- Table recognition (HTML)Complex tables and formulas remain difficult for the compact model.
- Visual question answering
- Web page parsing
dots.ocr README
dots.ocr Designed for universal accessibility, it possesses the capability to recognize virtually any human script. Beyond achieving state-of-the-art (SOTA) performance in standard multilingual document parsing among models of comparable size, dots.ocr-1.5 excels at converting structured graphics (e.g., charts and diagrams) directly into SVG code, parsing web screens and spotting scene text.
More in OCR
ebook2audiobook---LegacySelf-hosted, open-source converter that turns ebooks and PDFs into audiobooks using multiple TTS engines, voice cloning, OCR and 1158 languages.
FileWizardSelf-hosted web app for file conversion (180+ formats), OCR, and audio transcription with local Whisper. Runs via Docker or Python 3.12.
HRConvert2Open-source, self-hosted file conversion web app: 488 formats, 26 languages, bubblewrap-sandboxed tools, no sign-up, no tracking, no database.
koodo-readerOpen-source, cross-platform ebook manager and reader you can self-host with Docker; reads EPUB, PDF, MOBI and CBZ, with notes, OPDS and cloud sync.
ohmycaptchaSelf-hosted open-source captcha solver with a YesCaptcha-style createTask API covering reCAPTCHA, hCaptcha, Turnstile and image tasks via Playwright and vision models.
PaddleOCROpen-source, self-hosted OCR and document-parsing toolkit: scanned PDFs and photos come out as Markdown or JSON for RAG pipelines, across 100+ languages.
PaddleOCR LocalSelf-hosted document parsing workbench that converts PDF, images, and Office documents to Markdown using five OCR models with a WebUI, CLI, and Apple Silicon support.
Paperless-GPTOpen-source, self-hosted AI companion for paperless-ngx: suggests titles, tags, correspondents and dates, and runs LLM vision OCR for searchable scans.
Paperless-ngxSelf-hosted open-source document management system that turns paper documents into a searchable digital archive with OCR, AI features, and multi-user support
pdfscanexplorerSelf-hosted web app for previewing, renaming, and organizing scanned PDFs using OCR and optional AI, lightweight for NAS or server.
ReadurSelf-hosted OCR document management system with multi-language support, full-text search, and S3/WebDAV sync for individuals and teams.
Receipt Parser ServerSelf-hosted, open-source receipt parser server that uses Tesseract OCR to extract structured data from receipt images via a REST API with token authentication.

0 comments