Views
No views yet
| Property | Value |
|---|---|
| Architecture | 5 CNN layers + 2 bidirectional LSTM layers + CTC output |
| Input | Grayscale image, resized to 128×32 (uniform scale, centered) |
| Output | CTC log-probabilities (seq_len × num_classes) |
| Decoding | Greedy best-path |
| Format | ONNX (opset 17) |
| Parameters | ~3.2M |
| Training data | IAM Handwriting Database |
| Best val CER | 0.056 (5.6%) |
| Best val word accuracy | 84.2% |
| License | MIT |
1from xournalpp_htr.inference_models import SimpleHTRModel
2
3model = SimpleHTRModel.from_pretrained()
4text = model.recognize(word_image_grayscale) # strpip install xournalpp-htr (pulls onnxruntime and
huggingface-hub, no PyTorch needed).| Hyperparameter | Value |
|---|---|
| Optimizer | Adam |
| Learning rate | 0.0005 |
| Batch size | 64 |
| Dropout | 0.5 |
| Data augmentation | Enabled (blur, geometric, morphological, contrast) |
| Max epochs | 200 |
| Early stopping patience | 25 |