mindee/doctr
docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning. Ongoing development and maintenance by t2k.
What it solves
docTR makes optical character recognition (OCR) and document text parsing seamless and accessible by providing tools to localize, identify, and extract textual information, tables, formulas, and layouts from PDFs, images, and web pages.
How it works
It uses a two-stage PyTorch-powered approach combining text detection (localizing words) and text recognition (identifying characters). Users can select specific model architectures for detection and recognition, and enable layout analysis, table structure recognition, formula reading, or Key Information Extraction (KIE) through a unified predictor API.
Who it’s for
It is for developers and organizations looking to parse documents, extract structured text data, or integrate optical character recognition capabilities into their Python applications or API architectures.
Highlights
- End-to-end OCR and KIE (Key Information Extraction) predictors using PyTorch
- Support for reading files from PDFs, local images, web pages, and multiple page sets
- Layout analysis to detect regions like titles, text, tables, headers, and footers
- Built-in table structure reconstruction and formula extraction as LaTeX and Markdown
- Flexible handling of rotated pages and bounding box orientations
- GPU-ready Docker containers and a FastAPI integration template
Related
- Project
- Project
- Project
- Project
- Project