EasyOCR's accuracy in a single Rust binary — CRAFT text detection and gen2 CRNN recognition over ONNX, with no Python
runtime.
What and Why?
EasyOCR is accurate, but it is a PyTorch stack: a Python interpreter, a multi-gigabyte runtime, and a heavy process to
keep warm. sceptre is a from-scratch Rust reimplementation of the same pipeline — CRAFT text detection then gen2
CRNN recognition with CTC decoding, over ONNX — that keeps the accuracy and drops all of that.
It agrees with EasyOCR's output across the scripts it supports, runs faster —
even a cold, one-shot run beats EasyOCR's warm reader (measured figures) — and ships as one
self-contained executable with no Python runtime. Models download once, cache locally, and run offline thereafter.
Use it as a Rust library, a CLI, or an MCP server.
Every model call goes through one backend seam, so the deployment target is a build-time choice rather than a rewrite:
ONNX Runtime for native speed, pure-Rust ONNX for WASM and Android, and candle for GPU devices or a build that links
no ONNX Runtime at all.
Features
Feature
Description
Parity accuracy
Validated against real EasyOCR output across the gen2 scripts — English, Latin, Simplified Chinese, Japanese, Korean, Cyrillic, Telugu, Kannada — on text (word/char-F1) and boxes (IoU), held to a per-image floor rather than character-for-character equality
Faster, warm or cold
Higher throughput than EasyOCR warm on the same corpus; even a cold, one-shot CLI run beats EasyOCR's already-loaded reader (measured figures)
No Python, no torch
No interpreter, no multi-gigabyte runtime, no process to keep warm; peak memory is dominated by the CRAFT detector both engines share, so it scales with page size — see benchmarks
One binary, no Python
A single self-contained executable. Models download once, cache locally, and run offline thereafter — nothing to pip install, no interpreter to ship
Three surfaces
The same engine as a Rust library, a CLI (sceptre), and an MCP server for agents
Three backends, one seam
ONNX Runtime (ort) for native speed, pure-Rust ONNX (tract) for WASM / Android, and candle for a GPU or a build with no ONNX Runtime at all
Pure-Rust image decoding
PNG, JPEG, BMP, GIF, TIFF, WebP, and NetPBM
⭐ Star this repo to show your support — it helps others discover sceptre.
Quick Start
Install
cargo install sceptre-cli --locked
--locked uses the dependency versions tested for that release.
Every build, including the optional candle backend, supports Rust 1.99 or newer;
see Rust version requirements.
Prebuilt release archives for Linux x86_64/ARM64,
macOS ARM64, and Windows x86_64 include sceptre mcp, bundled ONNX Runtime, and model downloads.
Extract the archive and put sceptre (sceptre.exe on Windows) on PATH.
That default build is self-contained: it links a prebuilt ONNX Runtime fetched at build time (ort-bundled) and enables
model download (download), so the binary needs no ORT_DYLIB_PATH and no separately installed libonnxruntime.