Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

ocrmypdf-rapidocr

ocrmypdf-rapidocr is an OCRmyPDF plugin that uses RapidOCR as an OCR engine.

Status

Supported:

  • OCR engine integration via OCRmyPDF plugin hooks
  • hOCR output path (--pdf-renderer auto or --pdf-renderer fpdf2)
  • ONNXRuntime backend only
  • Single language selection from -l/--language

Not supported:

  • --pdf-renderer sandwich
  • multi-language combinations such as -l eng+fra

Installation

pip install ocrmypdf-rapidocr

Or from source:

pip install .

Usage

Load the plugin explicitly with --plugin:

ocrmypdf --plugin ocrmypdf_rapidocr -l eng input.pdf output.pdf

Optional plugin arguments:

  • --rapidocr-config-path PATH: use a custom RapidOCR YAML config

Example:

ocrmypdf \
  --plugin ocrmypdf_rapidocr \
  -l deu \
  input.pdf output.pdf

Language behavior

The plugin uses the first OCRmyPDF language code and maps it to RapidOCR language families.

  • direct mappings: eng, chi_sim, chi_tra, jpn, kor, ara, rus, ukr, tha, tam, tel, ell/gre
  • selected Latin-script codes map to RapidOCR LATIN

If a language code is unsupported, OCRmyPDF exits with a clear error message.

Runtime model downloads

RapidOCR downloads model files on first use when model paths are not pinned in config. For offline or restricted environments, provide a custom config via --rapidocr-config-path that points to local model files.

References

Metadata

Release files for ocrmypdf-rapidocr 1.0.1

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

Source distribution (sdist)

Source distribution for ocrmypdf-rapidocr 1.0.1
File Size Uploaded Provenance Actions
ocrmypdf_rapidocr-1.0.1.tar.gz 6.1 kB Without provenance Details for ocrmypdf_rapidocr-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ocrmypdf-rapidocr 1.0.1
File Interpreter ABI Platform Actions
ocrmypdf_rapidocr-1.0.1-py3-none-any.whl Python 3 none any Details for ocrmypdf_rapidocr-1.0.1-py3-none-any.whl

Total release size: 14.6 kB

Release files / ocrmypdf_rapidocr-1.0.1.tar.gz

Download URL ocrmypdf_rapidocr-1.0.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
632227d556fcc90c53f47bc1d3da72139a0ddcaf54fb68151d3312ce129e4796
BLAKE2b-256 checksum
How to use checksums
7bfc490fe98c2b7c26e49476c3724803bce1a916b8d2d9399766f98e443ec08c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ocrmypdf_rapidocr-1.0.1-py3-none-any.whl

Download URL ocrmypdf_rapidocr-1.0.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f75dc7b3f82c7b773010c1516fff0f5f74af6974d7c472d5545fe2ad1f39e94
BLAKE2b-256 checksum
How to use checksums
d89ea080b40b9fb466ba0e2f17bcd4549a26393992be6b64b18a881abfe31b6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ocrmypdf-rapidocr 1.0.1

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
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