Skip to main content

Deep Doctection Logo

deepdoctection

deepdoctection is the main package for running and training models. It provides the pipeline framework, model wrappers, built-in pipelines, training scripts and evaluation methods.

The base package only installs the necessary dependencies for running inference with some selected models. For training, evaluating as well as running all available models, the full package needs to be installed.

Overview

  • analyzer: Configuration and factory functions for creating document analysis pipelines and the built-in analyzer.
  • configs: YAML configuration for pipelines and model profiles for the model catalogue.
  • extern: External model wrappers (Detectron2, DocTr, HuggingFace Transformers, Tesseract, PdfPlumber, etc.)
  • pipe: Pipeline components and services.
  • eval: Evaluation metrics and Evaluator.
  • train: Training utilities and training scripts for Detectron2 and selected Transformer models.

Installation

Basic Installation

For inference use cases, install the base package:

uv pip install deepdoctection

Important: Various dependencies must be installed separately:

  • PyTorch: Follow instructions at https://pytorch.org/get-started/locally/ according to your os and hardware.
  • Transformers: pip install transformers>=4.48.0 (if using HF models)
  • Timm: pip install timm>=0.9.16 (necessary for if using some dedicated HF models)
  • DocTr: pip install python-doctr>=1.0.0 (if using DocTr models)
  • Detectron2: Follow instructions at https://detectron2.readthedocs.io/en/latest/tutorials/install.html
  • PDFPlumber: pip install pdfplumber>=0.11.0
  • JDeskew: pip install jdeskew>=0.2.2
  • Boto3: pip install boto3==1.34.102

For running evaluation with various metrics you can also install in then use:

  • APTED: pip install apted==1.0.3
  • Distance: pip install distance==0.1.3
  • Pycocotools: pip install pycocotools>=2.0.2

Image processing is supported by PIL or OpenCV. PIL is used by default and will always be installed. If you prefer to use OpenCV, you can install it:

  • OpenCV: pip install opencv-python==4.8.0.76

Full Installation (Training & Evaluation)

For a one large install with all dependencies (except PyTorch), run:

uv pip install deepdoctection[full]

Development Installation

For development purpose use clone the repository and install in editable mode.

License

Apache License 2.0

Author

Dr. Janis Meyer

Metadata

Release files for deepdoctection 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepdoctection 1.5.0
File Size Uploaded Provenance Actions
deepdoctection-1.5.0.tar.gz 158.2 kB Without provenance Details for deepdoctection-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepdoctection 1.5.0
File Interpreter ABI Platform Actions
deepdoctection-1.5.0-py3-none-any.whl Python 3 none any Details for deepdoctection-1.5.0-py3-none-any.whl

Total release size: 358.4 kB

Release files / deepdoctection-1.5.0.tar.gz

Download URL deepdoctection-1.5.0.tar.gz
Size 158.2 kB
Tags Source
SHA-256 checksum
How to use checksums
558960f7aeb0a9925c36bf59047f4fc7fc8f2d5c0390427daa67192bdf31708d
BLAKE2b-256 checksum
How to use checksums
76b101eb6e1840a38547823cbef3324025b4a7daa5670a3f54aebff976fbfb37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / deepdoctection-1.5.0-py3-none-any.whl

Download URL deepdoctection-1.5.0-py3-none-any.whl
Size 200.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a5b458231d5d5f22dd71fef63f93da394d3d1f291e213e46305fc552d2ae3e8
BLAKE2b-256 checksum
How to use checksums
aea26017085223bc4f8edabe9f73dbcceb3aa02b5bc6a84e880878120eed4db5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for deepdoctection 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page