#5050th of 93 in Data and scraping for AIFor data and documents, documents and ocr
deepdoctection
Python library for PDF layout analysis, table recognition and OCR pipelines
Run it:Vast.ai ↗ (opens in a new tab)RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
- Stars
- 3.3k
- License
- Apache-2.0
- Last commit
- Oct 2026
- Last release
- Sep 2026
- Language
- Python
3,151 on 26 Apr 20263,277 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
deepdoctection is a Python library that builds pipelines for scanned and PDF documents. It combines layout and table detection (Detectron2, Transformers), OCR (Tesseract, DocTr, AWS Textract) and document or token classification with LayoutLM, LiLT and BERT-style models. It also supports fine-tuning and evaluating whole pipelines. Version 1.0 is PyTorch-only.
Who it is for: Python developers extracting structured text and tables from PDFs and scans
Strengths
- Layout analysis, table recognition, OCR and classification in one configurable pipeline
- Several OCR backends: Tesseract, DocTr and AWS Textract
- Reads native PDF text with pdfplumber instead of running OCR
- Includes fine-tuning and pipeline evaluation, plus a Hugging Face Space demo and notebooks
Weaknesses
- Detectron2 is not on PyPI and needs a separate install for the full setup
- PyTorch must be installed separately; v1.0 dropped other deep learning backends
- Docker container exposes no endpoint, so there is no built-in HTTP service
- Library only, with no bundled UI; used from Python or notebooks
What it needs
- GPU optional
- Docker + Compose
- Needs Python >= 3.10, PyTorch >= 2.6, Detectron2, Tesseract, python-doctr, AWS Textract
- Models: Detectron2, Hugging Face Transformers, LayoutLM, LiLT, BERT-style
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- pdf_to_np_array_pdfmium never closes its pdfium document (leak, "Cannot close object, library is destroyed" at exit) ↗ (opens in a new tab)1 reactions · closed 21 Oct 2026Fixed by close pdfium objects after rendering a page ↗ (opens in a new tab)
- No such file or directory: '~\\.cache\\deepdoctection\\configs\\profiles.jsonl' ↗ (opens in a new tab)0 reactions · closed 5 Mar 2026Fixed by Merge version `1.0.1` ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Data and scraping for AI
See all 93| Rank | Project | Score |
|---|---|---|
| #48 | grobidExtracts structured TEI/XML from scientific PDFs, including metadata and references | 61 out of 100 |
| #49 | docetlDeclarative LLM map-reduce pipelines over documents, with automatic optimization | 60 out of 100 |
| #51 | curatorPython library for bulk LLM inference and synthetic data generation | 60 out of 100 |
| #52 | chubbyskillsAgent skills and CLI that save videos, podcasts and articles as searchable Markdown | 60 out of 100 |
| #53 | claude-real-videoExtracts scene-change keyframes and a timestamped transcript from videos for LLMs | 59 out of 100 |