Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
86
2.95k
text
stringlengths
3
127
font
stringclasses
31 values
profile
stringclasses
1 value
“Tuğ kəndində yerləşən zavod böyük sistemə malik idi, bağlar, çənlər, şərab
Caramel-Regular.ttf
mixed
Bildirilir ki, daha bir nəfər Ermənistan Cinayət Məcəlləsinin 312-ci maddəsinin
Caveat-VariableFont_wght.ttf
mixed
dəmir yolunun və Osetiya avtomobil yolunun işə düşməsinə çalışır.
BirthstoneBounce-Regular.ttf
mixed
Araşdırmada o da qeyd edilir ki, bu və digər media qurumları özlərini erməni
SedgwickAveDisplay-Regular.ttf
mixed
- Qərbin bu məsələlərdə nisbətən passiv müşahidəçi statusunda çıxış etməsi,
Caveat-VariableFont_wght.ttf
mixed
lakin gündüz bəzi şimal və qərb rayonlarında yağış yağacağı, şimşək çaxacağı
IngridDarling-Regular.ttf
mixed
2006-cı il əhalinin siyahıya alınmasına əsasən, şəhərin əhalisi 9,318 nəfər və
MomoSignature-Regular.ttf
mixed
aydınlaşdırmaq mümkün olsun.
Caveat-VariableFont_wght.ttf
mixed
Onun bildirdiyinə görə, son günlər Kürün Salyan və Neftçala rayonları
SedgwickAveDisplay-Regular.ttf
mixed
şikətlərə və Mübariz Mənsimova qarşı arbitraj prosedurlarına başlayıb.
Caveat-VariableFont_wght.ttf
mixed
turizm məkanlarında istirahət etməyə üstünlük verirlər.
SedgwickAveDisplay-Regular.ttf
mixed
Belə qənaətə gəlir ki, İslam-müsəlman mədəniyyətində binar əksliklər bildirənlə
Corinthia-Bold.ttf
mixed
saray həyatından çəkilməyə məcbur edilir.
Corinthia-Regular.ttf
mixed
Soçidə və Sankt-Peterburqda baş vermişdi.
MeowScript-Regular.ttf
mixed
qanunun diqqətlə yerinə yetirilməsini tələb edir.
Comforter-Regular.ttf
mixed
müxtəlif dərəcəli bədən xəsarətləri alıblar.
Caveat-Regular.ttf
mixed
yaxınıaşdığının fərqinə varmağa başlayıblar.
Caramel-Regular.ttf
mixed
Möhsün Pak Ayın deyib ki, başqa sərhəd keçid-məntəqələrində ağırlığı 30 tondan
Comforter-Regular.ttf
mixed
ediləcəyini açıqlayıb.
Corinthia-Bold.ttf
mixed
BAMF-dən sözügedən mərkəzə verilən məlumatda bildirilir ki, Onlardan 950 nəfəri
BirthstoneBounce-Regular.ttf
mixed
Abdullayev deputat seçilmişdi.
Carattere-Regular.ttf
mixed
hadisələri zamanı Xüsusi Təyinatlı Polis Dəstəsinin zərərsizləşdirilməsində
OoohBaby-Regular.ttf
mixed
Cevat Çobanlı; 14 sentyabr 1870, Konstantinopol – 13 mart 1938, İstanbul) —
Caveat-Regular.ttf
mixed
Bunu Azərbaycan Respublikasında rəsmi səfərdə olan Rumıniya Prezidenti Klaus
Caramel-Regular.ttf
mixed
münasibətlərinə daha ciddi töhfələr verə bilərik”.
IslandMoments-Regular.ttf
mixed
cəhd etdi (1141 ).
Birthstone-Regular.ttf
mixed
Rusiya Avropa Birliyinin bugünkü qərarını qeyri-məhsuldar adlandırıb və İranla
Corinthia-Bold.ttf
mixed
Qəbul etdi: Mehin Seyidzadə
Caveat-VariableFont_wght.ttf
mixed
"Hizbullah" kimi 14 terror qruplaşmasının 727 terrorçusu pul mükafatı
Caveat-Regular.ttf
mixed
texnikası böyük rol oynayır və o qədər inkişaf etdirilir ki, rəqqaslar asanlıqla
BonheurRoyale-Regular.ttf
mixed
Xatırladaq ki, qurumun 2014-cü il üçün büdcəsində “Genişzolaqlı internetin
Comforter-Regular.ttf
mixed
Əhalinin hər 1000 nəfərinə nikahların sayı 7, boşanmaların sayı isə 1,3 olub.6
LavishlyYours-Regular.ttf
mixed
MMC-dən daxil olan vəsait onun dediyi müəssisələrə köçürülüb.
Mynerve-Regular.ttf
mixed
O vaxtdan bəri Ermənistan hökuməti deyir ki, 100 mindən çox insan öz
MomoSignature-Regular.ttf
mixed
maliyyələşdirir: “Pulu verən də ”mahnı"nı sifariş edir.
LavishlyYours-Regular.ttf
mixed
təvəllüdlü Aytac Nazim qızı Babayevanı bıçaqlayaraq qətlə yetirib.
IngridDarling-Regular.ttf
mixed
Əgər ayıb olsaydı, Birləşmiş Millətlər Təşkilatı da daxil olmaqla dünyanın
Caveat-Medium.ttf
mixed
Eldar Qulam oğlu Quliyev 1994-cü ildə, Həsən Həsənovdan sonra Azərbaycanın
BirthstoneBounce-Medium.ttf
mixed
Kitabxana tikintisi üçün torpaq sahəsi alınır və 1988-ci ildə YUNESKO-nun o
SedgwickAveDisplay-Regular.ttf
mixed
Rusiyanın daha artıq nəzarətinə düşməsinin qarşısını almağa çalışır: “Məncə,
MomoSignature-Regular.ttf
mixed
otaqları istifadəyə verilib.
Comforter-Regular.ttf
mixed
Qəfil hardansa, xalqın sağlamlığını düşünən, xoşməramlı monopolist rezki peyda
SedgwickAveDisplay-Regular.ttf
mixed
Son həbs edilən şəxs - Müdafiə Nazirliyinin Daxili Təhlükəsizlik, həmçinin
LavishlyYours-Regular.ttf
mixed
çatdı və Fransanın Təhlükəsizlik Şurasının daimi üzvü statusundan Ermənistanı və
Caramel-Regular.ttf
mixed
2016-cı ildə Türkiyədə dövlət çevirlişinə cəhddən sonra təşkil olunan
Caveat-Regular.ttf
mixed
fikirləri saxlanılsın: “Belə bir şey gördükdə elə təsəvvür yaranır ki, sanki bir
MomoSignature-Regular.ttf
mixed
Belə şəraitdə Azərbaycanın daxilini müşahidə edən, öz ölkələrinə məxfi
MoonDance-Regular.ttf
mixed
Üstəlik, Cənubi Qafqazda regionda yeni geopolitik oyunçunun – Türkiyənin də
Comforter-Regular.ttf
mixed
Çünki komandanın uğursuzluğundan söz düşən kimi kimliyindən asılı olmayaraq
MySoul-Regular.ttf
mixed
Qeyd edək ki, İP telefon rabitəsi ilk dəfə 1983-cü ildə ABŞ-də ibtidai formada
Caveat-Medium.ttf
mixed
dair ABŞ formatı və AB-nin vasitəçiliyələ başlamış sürəc dayandırılacaq.
MoonDance-Regular.ttf
mixed
qəbul oluna bilər.
Caramel-Regular.ttf
mixed
müəyyən zaman ərzində "xalı" formasını almışdır.
IngridDarling-Regular.ttf
mixed
Terrassa, kaskad və pilləkənlərdən savayı, parkda bir neçə miniatür pavilion –
Mynerve-Regular.ttf
mixed
İslandiyanın yeni seçilmiş prezidenti Qvyudni Youxannesson deyib.
Mynerve-Regular.ttf
mixed
siyasi-hərbi döyüş xəttini sərhədlərindən uzağa sürüməyə çalışdı.
MsMadi-Regular.ttf
mixed
çatandan sonra elan edəcəyik.
Comforter-Regular.ttf
mixed
1982-ci il təvəllüdlü Ramil Əliyevin yeri müəyyən edilərək tutulub.
IngridDarling-Regular.ttf
mixed
uşaqlara 14 yaşında əlvida deyərmiş.
Corinthia-Bold.ttf
mixed
Bizim erməni xalqının elan edə biləcəyi digər konsepsiyalara ehtiyacımız var",
Caveat-Medium.ttf
mixed
ssenarilər qurduğunun fərqindədir.
Caveat-VariableFont_wght.ttf
mixed
Psaki qeyd edib ki, ABŞ-ın gələcəkdə atacağı istənilən addımda beynəlxalq
Birthstone-Regular.ttf
mixed
qədər təkrar araşdırmalıyıq ki, görək, uğurlarımızla bahəm nələrdə səhv etmişik,
MeowScript-Regular.ttf
mixed
Bu adla 2 manat pul alan “dilənçi” təsadüfən iki gün sonra “İnşaatçılar”
VujahdayScript-Regular.ttf
mixed
Kamil Tapdıqlı
IslandMoments-Regular.ttf
mixed
Rusiyalının qeyri-adi davranışından şübhələnən Məmmədyarov çox erkən - 14-cü
MomoSignature-Regular.ttf
mixed
(qabıqda), albalı, gavalı, alma, ərik, qara qarağat, moruq, üzüm, qırmızı bolqar
Caveat-Regular.ttf
mixed
Ekspedisiya üzvləri olan Herrit de Ver və Yakob van Hemskerk o zaman üçün
GrapeNuts-Regular.ttf
mixed
fəaliyyəti, təkamülü və onların idarə olunması problemləri” mövzusunda doktorluq
BonheurRoyale-Regular.ttf
mixed
nəfər, 1970-ci ildə 2415 nəfər, 1979-cu ildə 2632 nəfər, 1987-ci ildə 2985 nəfər
Inspiration-Regular.ttf
mixed
etmələri tövsiyə olunur.
BirthstoneBounce-Medium.ttf
mixed
حاجي آباد) — İranın Qəzvin ostanının eyniadlı şəhristanının Kuhin bəxşinin
Birthstone-Regular.ttf
mixed
qayıdıb.
Corinthia-Bold.ttf
mixed
edir.
Caveat-VariableFont_wght.ttf
mixed
Sərəncamda yalnız mülki əhaliyə, dövlət əmlakına, o cümlədən infrastruktur
MySoul-Regular.ttf
mixed
İnşallah, bu materiallar gələcəkdə digər dillərdə də tərcümə olunacaq.
BirthstoneBounce-Regular.ttf
mixed
bükümdə çəkisi 11,529 qram olan heroin, dörd bükümdə narkotik maddə
Allison-Regular.ttf
mixed
Bunun nəticəsində də Rusiya Mərkəzi Bankının banklara verdiyi kreditlərin
MsMadi-Regular.ttf
mixed
Yıldırım Çindən sonra dünyada ən çox enerji idxal edən ölkənin də Türkiyə
Caramel-Regular.ttf
mixed
bilər və o reallaşma ehtimalı yüksək olduğundan, fikirlər artıq toqquşur.
MsMadi-Regular.ttf
mixed
Məmmədə iş veriləndə cəmiyyət arasında onun barədə məlumat yox idi. Ona görə
SedgwickAveDisplay-Regular.ttf
mixed
arasında Qurban bayramı münasibətilə təbrik məktubu mübadiləsi həyata keçirilib.
Caveat-VariableFont_wght.ttf
mixed
5104
Caramel-Regular.ttf
mixed
Bütövlükdə Azərbaycan artıq dəhlizə nəzarəti bərpa edib və bu vəziyyət bölgədə
MeowScript-Regular.ttf
mixed
Azərbaycan hökuməti qərardan Böyük Palataya şikayət versə də, oktyabrın 4-də
BonheurRoyale-Regular.ttf
mixed
folklorudur, sazıdır, sözüdür.
Caveat-VariableFont_wght.ttf
mixed
Həsənovu saxlayıblar.
SedgwickAveDisplay-Regular.ttf
mixed
yuxarıda göstərilən reaksiya-alkilhalogenidlərin alınması üçün əsas
MomoSignature-Regular.ttf
mixed
Hələ dənizkənarı bulvar təmir olunmadan öncə yay aylarında parkda 3-4 min insan
Caveat-Regular.ttf
mixed
cəmiyyətlərdə təbii qarşılanan belə bir görüşə niyə bu qədər aqressiv reaksiya
MomoSignature-Regular.ttf
mixed
Verilən pulun umduğu 10 manatın yarısı olduğunu görən gürcü “qaişnik” moskvalı
Mynerve-Regular.ttf
mixed
Yasamal Rayon Prokurorluğundan APA-ya verilən məlumata görə, hadisə ötən gecə
Mynerve-Regular.ttf
mixed
A.Həsrət bu məntiqdən çıxış edərək əlavə edib ki, yəni Laçın yolu ilə bağlı
IslandMoments-Regular.ttf
mixed
istifadə etməklə zamanı 1.5 saat qənaət edilməsidir.
SedgwickAveDisplay-Regular.ttf
mixed
AA 9228326
MeowScript-Regular.ttf
mixed
Xüsusi ilə qadınların onu qısqandığını deyən Valeri insanlarla danışarkən
SedgwickAveDisplay-Regular.ttf
mixed
Habil Əliyevin oğlu Rəvan Habiloğlu deyir ki, artıq ikinci dəfədir ki, kaman
MsMadi-Regular.ttf
mixed
demişdi ki, Burda kimsəyi durdurub soruşsanız ki, K-pop haqqında necə
MoonDance-Regular.ttf
mixed
keçirdiyi haqda yazıb.
MySoul-Regular.ttf
mixed
Sonra yeddi gün ərzində bu qurumlar tərəfindən binanın istismarına icazə
IngridDarling-Regular.ttf
mixed
End of preview. Expand in Data Studio

Azerbaijani Synthetic Handwritten OCR Dataset

A large-scale synthetic dataset for training handwritten text recognition (HTR) models on Azerbaijani Latin script. Generated using a procedural pipeline that combines real-world handwriting fonts with realistic scan-style augmentations.

This dataset addresses the lack of publicly available Azerbaijani handwriting OCR data — a low-resource language for which no IAM-equivalent corpus exists.

Dataset Statistics

Property Value
Total samples ~1,500,000 line images
Language Azerbaijani (Latin script)
Image format JPEG, line-level crops
Average image size ~800 × 70 pixels
Total size on disk ~30 GB
Splits train (95%), validation (2.5%), test (2.5%)

Per-sample fields

Field Type Description
image Image Line-level RGB image of synthesized handwriting
text string Ground truth transcription (NFC-normalized)
font string Font filename used for rendering (for analysis)
profile string Augmentation profile applied (mixed, school, office, archival)

How the dataset was built

The pipeline takes plain text from Azerbaijani corpora, renders each line using a randomly selected handwriting font, applies realistic scan-style augmentations, and saves the result as a (image, text) pair.

Step 1 — Text corpus assembly

Two text sources were combined to balance natural prose with document-specific patterns rarely seen in standard corpora:

Source A — Parallel corpus (~95.5% of samples). The Azerbaijani side of LocalDoc/azerbaijani-english-parallel-corpus, which provides ~3.9M unique sentences after deduplication. Sentences shorter than 10 characters or longer than 250 characters were filtered out. Unicode was NFC-normalized.

Source B — Specialized strings (~4.5% of samples). Programmatically generated using the az-data-generator library, producing realistic short strings that are common in handwritten documents but absent from prose corpora:

Category Examples
Dates 15.06.1985, 12 aprel 2025-ci il, 1985-ci ildə
Full names Eldar Məmmədov, E. Əliyev, Qənirə İmanzadə
Phone numbers +994 50 143 59 89, (055) 211-58-69, 010-914-16-12
Addresses Bakı şəhəri, Nizami küçəsi, bina 45, mənzil 12, AZ 1005
Geographic names Zaqatala, Yasamal, Əhməd Cəmil küçəsi
Document IDs AA 7146179, 68-CH-088, AZE 1234567
Amounts 1 234,56 AZN, 37,4%, 7766 €, 25 kq
Form fields Doğum tarixi: 15.06.1985, Tel: +994 70 156 91 54
Signatures Hazırladı: N. Əliyev, 12.04.2025

These specialized strings significantly increase digit density (~23% vs ~3% in plain prose) and improve coverage of out-of-vocabulary tokens like proper names and addresses, which are common failure modes of OCR models trained on prose alone.

The two sources were merged and shuffled deterministically (seed 42) into a combined corpus of ~4.1M unique strings.

Step 2 — Font collection and validation

A pool of handwriting fonts was collected from Google Fonts (Latin Extended subset), filtered through a custom validator that checks:

  1. Character coverage — every font must support all Azerbaijani-specific characters: ə Ə ğ Ğ ş Ş ı İ ü Ü ö Ö ç Ç. The schwa ə is the most commonly missing glyph in handwriting fonts; ~50% of candidate fonts fail this check.
  2. Visual suitability — decorative calligraphic scripts (Qwitcher Grypen, Great Vibes, Allura, Birthstone, etc.) were excluded by name-based blacklist. These fonts have thin connected strokes that produce unreadable "worm-like" output incompatible with realistic OCR training.
  3. Variant filtering — Bold variants of handwriting families were excluded because they tend to "blob out" under ink-thickening augmentations, producing unreadable "sausage-like" samples.

The final font set contains 31 validated handwriting fonts representing diverse writing styles (marker, pen, brush, school-cursive).

Step 3 — Image generation

Each line image was generated as follows:

Word-level rendering with organic deformations. Instead of rendering the full line as a single text element, each word is rendered separately with:

  • Per-word vertical jitter (±6 pixels) — words sit at slightly different baselines
  • Per-word rotation (±1.2°) — each word is independently angled
  • Per-word elastic deformation (55% probability) — slight non-linear distortion
  • Negative inter-word spacing — soft contact between adjacent words

This produces the natural "wobble" of human handwriting that uniform line rendering misses.

Baseline waviness uses Perlin noise rather than a sine wave, giving aperiodic baseline drift that better matches real handwriting.

Ink effects include random dilation (30% probability), Gaussian blur, ink color variation (black, blue, dark blue, sepia for aged backgrounds), occasional ink blobs, and double-stroke artifacts.

Backgrounds include white, cream-colored, lined notebook, grid, and aged/yellowed paper textures, weighted according to the chosen profile.

Geometric and photometric augmentations include:

  • Rotation up to ±4°
  • Light perspective warping
  • Random shadows from page folds (25% probability)
  • Bleed-through from reverse side (15% probability for archival profile)
  • Gaussian noise
  • JPEG recompression at quality 55–95

Step 4 — Profile selection

Each sample is generated under one of four profiles, controlling the distribution of background types and degradations:

  • mixed — balanced default, used for the majority of samples
  • school — emphasizes lined paper, simulates student notebooks
  • office — clean white backgrounds, simulates official forms
  • archival — yellowed paper, bleed-through, heavier noise

For this release, all samples use the mixed profile.

Step 5 — Output

Images are saved as JPEG (quality 90) to keep file sizes manageable. Labels are stored alongside in JSONL format with one record per image. The full dataset comprises ~1.5M (image, text) pairs.

Important caveats

This is synthetic data — not real handwriting. Models trained exclusively on this dataset will achieve high accuracy on similar synthetic data, but performance on real-world scans depends on:

  1. How well the augmentation profile matches the target distribution (notebook scans vs. archival documents vs. forms)
  2. The diversity of handwriting styles represented by the font pool
  3. Domain shift between synthetic and real handwriting

Expected baseline performance when fine-tuning a TrOCR-base model on this dataset:

  • CER 1–3% on held-out synthetic test set
  • CER 15–25% on real handwritten documents (without fine-tuning on real data)

To reduce the gap, this dataset is best used as a pretraining stage, followed by fine-tuning on a smaller set of manually labeled real handwriting samples.

The dataset includes some noisy samples that survived the generation pipeline. The author chose to release the full unfiltered output — researchers who prefer cleaner data can apply post-hoc filtering on font field (excluding decorative/calligraphic fonts) or on image properties (ink density, aspect ratio, connected components).

Usage

from datasets import load_dataset

ds = load_dataset("LocalDoc/azerbaijani-htr-synthetic")

print(ds)
# DatasetDict({
#     train: Dataset({features: ['image', 'text', 'font', 'profile'], num_rows: ~1425000}),
#     validation: Dataset({features: [...], num_rows: ~37500}),
#     test: Dataset({features: [...], num_rows: ~37500})
# })

# Access a sample
sample = ds["train"][0]
sample["image"].show()
print(sample["text"])

Citation

If you use this dataset in your research, please cite:

@dataset{azerbaijani_htr_synthetic_2026,
  author = {LocalDoc},
  title = {Azerbaijani Synthetic Handwritten OCR Dataset},
  year = {2026},
  publisher = {HuggingFace},
  url = {https://huggingface.co/datasets/LocalDoc/azerbaijani-htr-synthetic}
}

License

Released under CC BY 4.0 — free to use for research and commercial purposes with attribution.

The underlying text comes from a CC-licensed parallel corpus and from programmatically generated synthetic strings. Fonts used for rendering are licensed under SIL Open Font License (OFL).

Acknowledgments

Downloads last month
46