Skip to main content

Arjuna-OCR [Kn&En]

Layout-aware Kannada + English document OCR: a layout model, a text detector and a CTC recognizer in ONNX, with tables, reading order, per-line confidence and review flags. No language model, no GPU required.

pip install arjuna-ocr          # CPU, works anywhere


arjuna doctor                   # what this machine can do and what the pipeline will use
arjuna ocr page.pdf -o out/     # files, folders, globs or PDFs -> JSON / Markdown / hOCR / ALTO / TSV
arjuna serve --port 8080        # HTTP server
from kanen_infer import KanEnOCR
ocr = KanEnOCR()            # detects hardware, configures itself
doc = ocr.page("page.png")  # kanen-ocr/1.0 JSON
print(ocr.render(doc, "md"))

The models (~170 MB) download once from anandkaman/arjuna-ocr at the revision matching this package version, and are cached. Point ARJUNA_MODELS at a local copy for air-gapped installs.

Speed and accuracy. 12.8 pages/s on an RTX 5060 Ti with TensorRT, ~4.6 on the CUDA provider, seconds per page on CPU. On a frozen 40-page private-document set: word F1 0.967, page CER 3.1 %; 96.3 % word accuracy on Mozhi, 93.7 % on MILE. TensorRT engines are built in the background on first use — the pipeline serves immediately on CUDA and swaps each engine in only after it reproduces the output of the session it replaces.

Full documentation, hosted-inference instructions and the evaluation record: the model repositories linked above. Licences: code, recognizer and detector Apache-2.0; the layout model is AGPL-3.0 (see its NOTICE).

Release files for arjuna-ocr 1.2.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 arjuna-ocr 1.2.1
File Size Uploaded
arjuna_ocr-1.2.1.tar.gz 52.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arjuna-ocr 1.2.1
File Interpreter ABI Platform
arjuna_ocr-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 107.4 kB

Release files / arjuna_ocr-1.2.1.tar.gz

Download URL arjuna_ocr-1.2.1.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5fc2ba1ec4dd5e1880506360b0e67eedde8777806cb97e057c4d72daeca02ae6
BLAKE2b-256 checksum
How to use checksums
132c0f0fa7ec10f1c3ea4a5023aea91b13bb5d60f4ab98451556e6a0919b1424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / arjuna_ocr-1.2.1-py3-none-any.whl

Download URL arjuna_ocr-1.2.1-py3-none-any.whl
Size 55.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf22156d809b123c90a96fe50fff96a6c601a31bc7478633677b59a00541cc50
BLAKE2b-256 checksum
How to use checksums
034cc300e5112aafbc1ef9628adae913d0122d0c6c380bcd8e1629449ad24ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

1.2.2

2 release files

This release

1.2.1 This release

2 release files

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