Skip to content

ocrblaze 0.1.0

Choose a tag to compare

@sundarshahi sundarshahi released this 05 Dec 04:30
· 13 commits to main since this release

First public version.

  • Library: Ocr::new(Config), Ocr::read (every text line: text, box, score) and Ocr::read_line (the recogniser
    alone) on an RGB8 Image. PP-OCRv5 mobile detector run in tiles (11 pieces,
    384 px tiles by default), PP-OCRv5 mobile recogniser in groups of at most 2400 columns; one ONNX Runtime thread
    pool for all sessions.
  • Features download-binaries (default, ONNX Runtime 1.31.0 linked) and load-dynamic (ONNX Runtime at run time,
    1.31.1 in the image); decode (Pillow-exact JPEG/PNG/WebP); server.
  • ocrblaze: /health, /ocr, /line, /crop, /rotate; bearer token, fail closed without one;
    --help, --version, --health, --bench, --memory-peak.
  • Distroless Docker image (linux/amd64, linux/arm64), non-root, models fetched and converted at pinned commits
    and SHA-256.
  • Parity suite against the Python reference (RapidOCR 3.10 on ONNX Runtime 1.31.1), with exact comparison: see
    README.md, "How parity is proven".

Models

The 14 files below are the models the parity results were measured with: the PP-OCRv5 mobile detector (whole, and
cut into the 11 pieces the engine runs), and the Devanagari PP-OCRv5 mobile recogniser with its character list.
They are converted from PaddlePaddle's official releases (Apache-2.0, see NOTICE) by build/fetch_models.py and
build/split_det.py, and every file matches the SHA-256 pinned there.

mkdir models && cd models
gh release download v0.1.0 --repo sundarshahi/ocrblaze
shasum -a 256 -c SHA256SUMS

Or build them yourself: docker build --target models --output type=local,dest=models .