Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocrmypdf_rapidocr-1.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocrmypdf_rapidocr-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file ocrmypdf_rapidocr-1.0.1.tar.gz.

File metadata

  • Download URL: ocrmypdf_rapidocr-1.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for ocrmypdf_rapidocr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 632227d556fcc90c53f47bc1d3da72139a0ddcaf54fb68151d3312ce129e4796
MD5 a717e433a5448360d15c77602494f302
BLAKE2b-256 7bfc490fe98c2b7c26e49476c3724803bce1a916b8d2d9399766f98e443ec08c

See more details on using hashes here.

File details

Details for the file ocrmypdf_rapidocr-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ocrmypdf_rapidocr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for ocrmypdf_rapidocr-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f75dc7b3f82c7b773010c1516fff0f5f74af6974d7c472d5545fe2ad1f39e94
MD5 64e4baf943124a428dd7941483fc8d5e
BLAKE2b-256 d89ea080b40b9fb466ba0e2f17bcd4549a26393992be6b64b18a881abfe31b6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page