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 provides a seamless way to extract text from documents. It automates the process of locating words within images or PDFs and identifying the characters within those words, making document parsing accessible and efficient.
How it works
The project uses a two-stage pipeline powered by PyTorch: first, it detects the location of text (text detection), and then it identifies the characters (text recognition). Users can choose from various pre-trained model architectures for both stages. It supports processing PDFs, images, and web pages, and offers advanced features like layout analysis (identifying titles, tables, etc.) and Key Information Extraction (KIE) for targeted data retrieval.
Who it’s for
It is designed for developers and organizations who need to integrate document parsing into their applications. It is suitable for those looking for a flexible, production-ready OCR solution that can be deployed via local scripts, APIs, or Docker containers.
Highlights
- End-to-end OCR pipeline with support for both text detection and recognition.
- Layout analysis to identify document structures like tables, headers, and footers.
- Key Information Extraction (KIE) for detecting specific document classes like dates or addresses.
- Flexible handling of rotated documents and various input formats (PDF, images, URLs).
- Built-in visualization tools to inspect results and reconstruct documents from predictions.
Related
- Project
- Project
- Project
- Project
- Project