|
Download README.md from PiotrSty/ocr-pl-lines: direct link, hf CLI and curl.
- Browser
- Download file 921 Bytes
-
https://huggingface.co/datasets/PiotrSty/ocr-pl-lines/resolve/main/README.md
- Command line
-
hf download hf://datasets/PiotrSty/ocr-pl-lines/README.md
-
curl -L -o README.md https://huggingface.co/datasets/PiotrSty/ocr-pl-lines/resolve/main/README.md
921 Bytes
| license: mit | |
| language: | |
| - pl | |
| tags: | |
| - ocr | |
| - synthetic | |
| - text-line-images | |
| size_categories: | |
| - 1K<n<10K | |
| # ocr-pl-lines | |
| Syntetyczny zbiór linii tekstu po polsku do fine-tuningu OCR (TrOCR). | |
| Pary `NNNNN.png` (obraz linii) + `NNNNN.txt` (transkrypcja). | |
| ## Struktura | |
| - `train/` — 2000 par (seed 42) | |
| - `val/` — 200 par (seed 123) | |
| ## Generowanie | |
| [OCR_engine](https://github.com/PiotrStyla/OCR_engine) — | |
| `python -m training.generate_synthetic` | |
| Korpus: zdania potoczne i urzędowe, domeny (faktury, umowy, medyczne, | |
| prawnicze), losowe daty/kwoty/adresy/NIP/PESEL, zdania z pl.wikipedia.org. | |
| Augmentacje: pochylenie, blur, szum, gamma; 152 czcionki z pełnymi | |
| polskimi glifami (`ąćęłńóśźż`). | |
| ## Użycie | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| path = snapshot_download("PiotrSty/ocr-pl-lines", repo_type="dataset") | |
| # path/train, path/val — katalogi par dla training.train_trocr_pl | |
| ``` | |