Views
No views yet
| Metric | Value |
|---|---|
| Character error rate (CER) | 1.3% |
| Exact-word accuracy | 93.4% |
32x160 grayscale image to a sequence of 40 feature columns.0-9A-Za-z) plus a blank.1import sys
2from huggingface_hub import snapshot_download
3
4repo = snapshot_download("Abulqosim0227/ocr-crnn-printed")
5sys.path.insert(0, repo)
6from infer import load_model, read
7
8model, device = load_model(f"{repo}/model.safetensors")
9print(read(model, device, "word.png"))python infer.py word.pngapp.py) for testing in your browser:1pip install -r requirements.txt
2python app.pysamples/.
0-9A-Za-z only — no spaces or punctuation.I vs lowercase l). Add a language prior for production use.python train.py (requires the DejaVu fonts used in dataset.py).model.safetensors weights, config.json architecture, and the full training +
inference code (alphabet.py, preprocess.py, model.py, dataset.py, train.py, infer.py).