A browser-only OCR experiment lab that compares preprocessing pipelines in real time.
- Vite + TypeScript web app
- Image upload and 3 pipeline comparison:
rawgrayscalebinary
- Per-pipeline output card with:
- transformed image preview
- prediction text (6-digit)
- confidence score
- latency (ms)
- Test suite for preprocessing and inference wrapper logic
- Shows practical ML product thinking: pipeline quality is treated as measurable, not cosmetic.
- Demonstrates browser-side inference workflow shape (no backend dependency).
- Provides clear extension point to plug in a real ONNX OCR model.
npm install
npm run dev
npm test
npm run buildsrc/preprocess.ts: image preprocessing stagessrc/ocr.ts: inference wrapper (MVP uses deterministic placeholder path)src/main.ts: UI orchestration and pipeline comparison renderingtests/: unit tests for preprocessing + inference wrapper
- Replace placeholder inference with real ONNX model session loading
- Add character-level confidence visualization
- Add sample dataset replay and CSV benchmark export