selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

PaddleOCR logo

Self-host PaddleOCR

v3.7.0

OCR toolkit turning PDFs and images into Markdown/JSON

ReleaseOpen SourceApache-2.0
Updatedlast month
LanguagePython
Setup difficultyModerate
Stars
92 508
Ports
8080 (Default port of the self-hosted inference server started with paddlex --serve), 8000 (Default port of the MCP server when run with the Streamable HTTP transport (--http))
Install with Python

What is PaddleOCR?

PaddleOCR is an Apache-2.0 OCR and document-AI toolkit from the PaddlePaddle project, aimed at developers who need scanned pages turned into Markdown or JSON that language models can consume. Its pipelines cover general scene text detection and recognition (PP-OCRv6 gives one model for 50 languages, 100+ overall), structure-aware conversion with PP-StructureV3 including tables, formulas, seals, charts and cell-level coordinates, the compact 0.9B PaddleOCR-VL vision-language parser, key information extraction, document translation and Word/Excel/PowerPoint-to-Markdown conversion. Usage comes as a Python API, a paddleocr command, and other-language bindings for C++, C# and Java. On your own hardware you install the package with pip together with a PaddlePaddle or Transformers engine, or expose pipelines as an HTTP inference service through the PaddleX CLI (Uvicorn on port 8080, plus a Triton-based high-stability variant you can bake into custom Docker images and SDKs); a paddleocr-mcp server adds MCP tools over stdio or HTTP for agent clients. Acceleration is available via OpenVINO, ONNX Runtime and TensorRT on CPU, NVIDIA GPU, Kunlunxin XPU and Ascend NPU, and models can be trained or exported. An optional hosted official API and online experience centre are run by Baidu, and model weights are mirrored on Hugging Face and ModelScope.

PaddleOCR alternatives

Should you self-host PaddleOCR?

PaddleOCR scores 86/100 on selfhost.directory (how scoring works) and ranks #1 of 4 in OCR. It has 92 508 GitHub stars, +1 067 in the last 30 days.

It shipped 7 stable releases in the past year. The latest, v3.7.0, came out on 11 June 2026. New versions land roughly every 4 weeks.

Setup is moderate: expect some configuration beyond a single command. It is Apache-2.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is dots.ocr (64/100, 9 187 stars). PaddleOCR scores higher overall. See PaddleOCR vs dots.ocr side by side.

Features

  • Chart parsing
  • C++/Java/C# deployment
  • CLI and Python API
  • Document parsing to Markdown/JSON
  • Document Translation
  • Formula recognition
  • Key information extraction
  • MCP server for AI agents
  • Model training and export
  • Multilingual text recognition
  • Multiple inference backends and accelerators
  • Office document to Markdown
  • Table recognition
  • Vision-language document parser

PaddleOCR README

Star-history

Global Leading OCR Toolkit & Document AI Engine

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Français | Русский | Español | العربية

PyPI Downloads Used by python os hardware

AI Studio Ask DeepWiki License

PaddleOCR converts PDF documents and images into structured, LLM-ready data (JSON/Markdown) with industry-leading accuracy. With 70k+ Stars and trusted by top-tier projects like Dify, RAGFlow, and Cherry Studio, PaddleOCR is the bedrock for building intelligent RAG and Agentic applications.

🚀 Key Features

📄 Intelligent Document Parsing (LLM-Ready)

How to install PaddleOCR

Install PaddleOCR with Python

python -m pip install paddlepaddle==3.2.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
python -m pip install "paddleocr[all]"

Install an inference engine (PaddlePaddle or Transformers) plus the paddleocr package; default capabilities need no extra dependency group.

How to configure PaddleOCR

  • PADDLEOCR_MCP_MODEL"PP-OCRv6"Model to run. MCP selects the tool automatically from the model.

    values: str

  • PADDLEOCR_MCP_PPOCR_SOURCE"local"Source of PaddleOCR capabilities.

    values: str

  • PADDLEOCR_MCP_AISTUDIO_BASE_URLAI Studio API base URL (optional for aistudio source).

    values: str

  • PADDLEOCR_MCP_QIANFAN_BASE_URLhttps://qianfan.baidubce.com/v2/ocrQianfan API base URL (optional for qianfan source).

    values: str

  • PADDLEOCR_MCP_SELF_HOSTED_BASE_URLSelf-hosted PaddleX serve base URL (required for self_hosted source).

    values: str

PaddleOCR releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Service performance optimization suggestions?

Turn on high-performance inference, batch requests, enable TensorRT, process asynchronously and scale out with several service instances behind load balancing.

C++ deployment common issues and solutions?

Set LD_LIBRARY_PATH for missing dynamic libraries, match the OpenCV build version, keep inference model formats correct and configure CMake properly.

GPU memory insufficient (CUDA out of memory) what to do?

Lower the batch size, reduce detection image side length, enable memory optimization, cap GPU memory usage, or switch to the mobile models.

Slow GPU inference speed, how to optimize performance?

Enable high-performance inference, use TensorRT or fp16 precision, tune the batch size and fall back to the mobile models when accuracy demands allow.

Local model path configuration, how to use in isolated network environment?

Initialize with det_model_dir/rec_model_dir/cls_model_dir pointing at locally extracted model folders, or change the download source; models can be fetched manually from the official links.

How to choose the right model?

Pick the server-tier models for maximum accuracy or batch work and the mobile-tier models for small, fast, real-time or on-device inference.

How to run on Windows or Mac?

Windows and macOS are supported; you can skip the Docker step of the installation guide, and grab model archives through a browser if wget is unavailable.

Model download failed or slow download

Point model downloads at another source with the PADDLE_PDX_MODEL_SOURCE environment variable, download the model archive manually, or pass a local model_dir at initialization.

GPU environment configuration issues, CUDA version mismatch

Check the CUDA version with nvidia-smi, install the matching PaddlePaddle GPU build, and verify GPU support by printing paddle.is_compiled_with_cuda().

PaddleOCR installation failed with dependency conflicts

Create a fresh virtual environment (e.g. conda create -n paddleocr python=3.8), install with pinned versions using --no-deps, or install from conda-forge.

More in OCR

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…