Skip to page content
SAVRN
Search Plan a project

Open-weight model

indra-ocr-onnx

by Tom tomngdev/indra-ocr-onnx

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.

Parameters—
Context—
Weights18.2 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

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.

Weights6 files · 18.2 MB
Configuration2 files · 140.0 KB
Documentation1 file · 1.3 KB
Other7 files · 33.8 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
det.onnxWeights389.9 KB 46b0050ce4c4
order.onnxWeights3.0 MB 23635dd2324b
orient.onnxWeights371.4 KB 8d7bfce5d08b
rec.onnxWeights5.0 MB e243be069b35
rec_cjk.onnxWeights9.3 MB 4cec840b55e1
script.onnxWeights191.0 KB 5ba37030e817
config.jsonConfiguration569 B —
meta.jsonConfiguration139.4 KB —
README.mdDocumentation1.3 KB —
indra-ocr-web.mjsOther2.6 KB —
src/det.mjsOther3.4 KB —
src/imaging.mjsOther3.0 KB —
src/order.mjsOther8.6 KB —
src/pipeline.mjsOther12.0 KB —
src/rec.mjsOther3.1 KB —
src/vocab.mjsOther1.1 KB —
.gitattributesRepository1.5 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
18.2 MB
Download from Tom

Released by Tom through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published18.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.