franken_ocr

Pure-Rust CPU-only OCR engine for a few hand-ported vision models

A Rust library and single-binary CLI (focr) that runs Baidu Unlimited-OCR on CPU with no Python, CUDA or FFI, plus GOT-OCR2 for formulas and tables, SmolVLM2 for image questions, OneChart for charts and TrOMR for sheet music. Weights become custom int8 artifacts run on kernels shaped per model.

  • 13–17 MBRelease binary
  • 0.193Corpus CER, 20 pages

Trade-offs

  • CPU only by design, for one portable binary with no driver stack; a 3B-parameter model on ordinary hardware takes minutes per page, not seconds.
  • A small family of hand-ported models instead of a general runtime, so kernels can specialize to each model's exact shapes.

Q&A2

One real-page run measured CER 0.0094 and matched the reference decode to within a token, but a hard page still sits at CER 0.62, so the default artifact keeps attention and the output head at high precision.

Reviews

Loading reviews

    More from @dicklesworthstone

    All 5 →
    • Beads RustLocal issue tracker in the repo: SQLite plus JSONL for git
    • FrankenSQLiteSQLite rewritten in Rust with page-level concurrent writers
    • cassTUI and CLI search over local coding agent session history
    • franken_accountingEvidence-native double-entry accounting system of record in Rust

    More in OCR

    See all 8 →
    • dowseWindows search over file names, contents and text in screenshots
    • MDFluxDesktop app that turns documents into clean Markdown for LLMs
    • Texo20M-parameter LaTeX formula OCR model that runs in the browser
    • pdf2zh-desktopPortable desktop app that translates academic PDFs and keeps their layout
    • Jason ToolsSelf-hosted PDF and Office toolbox with 52 tools, OCR and team access control
    • OverTranslateWindows screen translator that overlays translations on games, manga and video

    More in Local inference

    See all 43 →
    • GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU
    • BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
    • AnubisNative macOS app for benchmarking local LLMs on Apple Silicon
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
    • CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
    • AlzeoOne-command installer that turns a DGX Spark or GB10 box into an AI server

    More in Performance

    See all 47 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • EntrolyLocal context layer that picks what coding agents send to the model
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • XDPerfXDP traffic generator with WASM packet plugins