PaddleOCR
$ paddleocr Official Low RiskPaddleOCR (paddleocr) provides a CLI for multilingual OCR, document orientation classification, unwarping, and remote OCR API invocation (paddleocr api). While highly capable across Chinese, English, and 80+ languages, it requires the PaddlePaddle framework and emits verbose framework logs alongside stdout results.
pip install paddleocr paddleocr processes local images and PDFs with local PaddlePaddle weights, avoiding remote file uploads unless paddleocr api is explicitly called.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports headless paddleocr ocr -i <path> execution, but lacks a universal clean --json stdout flag and mixes framework/C++ logs with output.
- Non-interactive subcommands (
paddleocr ocr,paddleocr api) - Verbose PaddlePaddle initialization logs on stdout/stderr; no clean
--jsonflag
Local paddleocr ocr keeps documents offline, while remote API calls are isolated to paddleocr api with explicit --token.
- Local OCR by default; remote inference isolated in
paddleocr api
Requires installing paddlepaddle alongside paddleocr and downloads model weights on first execution; ARM/macOS wheels can require extra care.
- Separate
paddlepaddleframework dependency and model downloads
Top-tier CJK and multilingual OCR accuracy with orientation classification, unwarping, and PP-Structure pipelines.
- Supports orientation, unwarping, and
--paddlex_configoverrides
Official PaddlePaddle repository (PaddlePaddle/PaddleOCR) under Apache-2.0 with huge community adoption.
- Official
PaddlePaddle/PaddleOCRrepo under Apache-2.0
Extensive docs at paddleocr.ai, though CLI flags shifted significantly between v2.x and v3.x.
- Updated v3.x CLI documentation at paddleocr.ai
Security, Auth & Guardrails
Local paddleocr ocr requires no auth (caches models in ~/.paddleocr); paddleocr api accepts --token and --base_url.
Apache-2.0 open-source CLI; local inference is free, while hosted API calls via paddleocr api depend on the chosen service.
# PaddleOCR CLI (paddleocr) Agent Rules - Prefer local `paddleocr ocr -i <file>` over `paddleocr api` unless the user explicitly configures a remote `--base_url` and `--token`. - Expect framework initialization logs on stdout/stderr during first run and model download.
Agent-Ready Command Recipes
Safe Read-Only Queries
paddleocr ocr -i ./image.png --use_doc_orientation_classify False
Detects and recognizes text lines in ./image.png using local PaddleOCR models.
Controlled Writes & Previews
paddleocr ocr -i ./scan.png --use_doc_unwarping True
Applies geometric perspective unwarping and extracts text from skewed document photos.
Strengths for Agents
- + Industry-leading accuracy for Chinese, bilingual CJK/English, and distorted document photos.
- + Permissive Apache-2.0 license with zero commercial revenue caps.
Caveats & Pitfalls
- ! Verbose framework logs and lack of a clean
--jsonstdout flag complicate direct agent parsing. - ! Requires
paddlepaddleframework installation and first-run model downloads.