indra-ocr-onnx is an open-weight model from Tom, released under Apache License 2.0. Its published files total 18.3 MB.
The indra-ocr ONNX models (tag v3.1.1) plus a browser loader that runs them on onnxruntime-web (wasm). The pre/post-processing is ported from the In a bundler/npm app, skip the importmap and install onnxruntime-web. optional models.
Model Card
By Tom, published under apache-2.0, revision aa8c3d86c060.
The indra-ocr ONNX models (tag v3.1.1) plus a browser loader that runs them on onnxruntime-web (wasm). The pre/post-processing is ported from the In a bundler/npm app, skip the importmap and install onnxruntime-web. optional models. Without cross-origin isolation (COOP/COEP) the wasm backend runs single-threaded.
Read Tom's full model card
indra-ocr (browser)
The indra-ocr ONNX models (tag v3.1.1) plus a browser loader that runs them on onnxruntime-web (wasm). The pre/post-processing is ported from the indra-ocr Python package.
<script type="importmap">
{ "imports": {
"onnxruntime-web": "https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.wasm.bundle.min.mjs"
} }
</script>
<script type="module">
import { loadIndra, readGrayBrowser } from
"https://huggingface.co/YOUR-USERNAME/indra-ocr-web/resolve/main/indra-ocr-web.mjs";
const ocr = await loadIndra("https://huggingface.co/YOUR-USERNAME/indra-ocr-web/resolve/main");
const gray = await readGrayBrowser("page.png"); // -> {data, width, height}
const page = await ocr.__call__(gray); // {lines: [{box, text, conf}], text, rotation}
console.log(page.text);
</script>
In a bundler/npm app, skip the importmap and install onnxruntime-web.
Options: loadIndra(base, { cjk: false, orient: false, order: false }) skips
optional models. Without cross-origin isolation (COOP/COEP) the wasm backend
runs single-threaded.
Configuration
- Model type
- indra-ocr
Identity and Version
- Repository
- tomngdev/indra-ocr-onnx
- Publisher
- Tom
- Task
- Not stated by the source
- Modality
- Other
- Library
- Not stated by the source
- Parameters
- Not stated by the source
- Languages
- Not stated by the source
- Revision
- aa8c3d86c0607e06acaec4e6a5b47afef35265ac
- First published
- 2026-10-18
- Last updated
- 2026-10-18
Files and Weights
17 files, 18.3 MB in total. The weights are 6 files totalling 18.2 MB in onnx.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| det.onnx | Weights | 389.9 KB | 46b0050ce4c4 |
| order.onnx | Weights | 3.0 MB | 23635dd2324b |
| orient.onnx | Weights | 371.4 KB | 8d7bfce5d08b |
| rec.onnx | Weights | 5.0 MB | e243be069b35 |
| rec_cjk.onnx | Weights | 9.3 MB | 4cec840b55e1 |
| script.onnx | Weights | 191.0 KB | 5ba37030e817 |
| config.json | Configuration | 569 B | — |
| meta.json | Configuration | 139.4 KB | — |
| README.md | Documentation | 1.3 KB | — |
| indra-ocr-web.mjs | Other | 2.6 KB | — |
| src/det.mjs | Other | 3.4 KB | — |
| src/imaging.mjs | Other | 3.0 KB | — |
| src/order.mjs | Other | 8.6 KB | — |
| src/pipeline.mjs | Other | 12.0 KB | — |
| src/rec.mjs | Other | 3.1 KB | — |
| src/vocab.mjs | Other | 1.1 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 18.2 MB
Released by Tom through its official repository on Hugging Face. Read the license.
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 18.2 MB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About indra-ocr-onnx
Can I use indra-ocr-onnx commercially?
Yes. indra-ocr-onnx is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.