Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
0
167k
image
imagewidth (px)
1
2.62k
text
stringlengths
1
70
135,714
3.00
117,570
24 X 28 (75HT) RED
69,344
totchka quotennial plods leptophyllous
18,532
muddlers Lapsana into tux
154,418
2.78
104,666
dharmakaya postpyramidal Anselma
103,403
anatiferous jyngine spiderwebbing
21,961
kurbash undubitable
64,403
stomachic cannelured
105,687
amoristic straitlacedness platings
44,166
unexcepting
51,184
goggle-eye bronze-purple
56,544
ungossipy trimargarin pessary
108,167
hypothalline calorist aneroid ploughman
45,423
boomkin pneumatophorous polyvinyl Rhipidistia
159,812
(BLUE) - (57MMX60MMX12MM)
31,440
eighty-six predestinated
8,411
now-neglected sant diddle
143,149
0.50
158,619
09/04/2018
102,951
Korchnoi
132,618
REGULAR STAMP(S) : 2
80,472
Raptores
123,652
CHANGE DUE
102,959
broidered Kaycee
10,361
unpolicied breads uranographer reddish-bay
107,104
Alcedo
118,665
%
33,263
hyperscholastic
117,454
5 PVC WALLPLUG
48,520
Picene unpilled nervulet
54,856
adroop hyperspherical recitando outtiring
15,204
five-mile bowly swingeour root-mean-square
105,163
Ehrenbreitstein
132,727
LICENSEE OF MCDONALD'S
109,262
unwhispering shimper lymphoduct
78,098
squamipinnate melotrope benzophloroglucinol erase
2,092
bridecake guestimate alveolite
154,335
20
104,936
fauvisms stomacher governments
80,661
stopband twin-existent countervene fatwood
19,939
cankers
89,450
abraders patrilinear nonprotective
72,774
whole-hogger
116,093
P.P NAPROXEN NA 275 MG
73,568
Frigoris
133,722
QTY
80,800
foxite heterozygous
118,390
94.5
82,678
frusta unevenly
121,646
6935818350846
127,921
262.20
22,529
Sinae
22,952
Miastor microtone chairmanning
152,660
TOTAL 6% SUPPLIES (INC. GST):
137,513
2.18
71,610
savintry
16,049
Derris concessit disseats
27,959
Oriente bootmaking hardest skimpier
143,511
412
132,097
AMOUNT
9,481
Prosperity Bates unconsenting Megalensian
6,101
dignities Staffard Rhinanthus mantids
161,423
SR
12,899
counterenergy bravoing burrah
80,158
stone-still theriodont
158,873
SR I00100000035- 1 MEAT + 3 VEGE
92,576
dilled thermals
78,211
Longkey
80,501
Tri
8,077
frontolysis
68,693
cataclysmatist gulfweed darbukka Bevan
14,655
courtesies titteringly VME bestorm
161,584
SUB-TOTAL (GST)
66,296
isodimorphism recrates Rathauser Medicago
100,852
frazed opposing
9,046
predisplacing morphonemics thermoanalgesia
128,877
0.00
7,396
hyphenating cyprinoidean drapes
79,283
subaffluent chuppahs Alby reapproves
121,180
9556276020392
30,999
redemptively
1,144
sollerets
107,643
bicuculline ASOC unpitched mezzo
44,700
ostentatiousness noninsistency polycentric
69,274
Haag
122,504
12.40
45,312
Lennox surdo-mute ladyloves
28,836
skin-dived Thiobacillus uncreate viatic
142,028
SUB-TOTAL:
43,377
nonconfitent eila
106,981
pronotum fox-colored dolous
26,826
Pitts pyrophosphoric euphemisation nondisputatiously
107,692
creepage
52,791
kolkhos multures soft-finished
80,646
FB distillate Robertsdale
123,881
6%
133,194
F1
64,557
uniformities paleethnological parvifolious Malvie
77,923
basson
End of preview. Expand in Data Studio

OCR-Finetuning-EN-Dataset

A large-scale English OCR fine-tuning dataset containing synthetic and real-world text images for training modern OCR recognition models.

The dataset is distributed in Apache Parquet format with embedded image data, making it fully compatible with the Hugging Face datasets library and the Hugging Face Dataset Viewer.


Features

  • ✅ 167,330 OCR image-text pairs
  • ✅ Images embedded directly inside Parquet files
  • ✅ Compatible with Hugging Face Dataset Viewer
  • ✅ Works directly with datasets.load_dataset()
  • ✅ Optimized for efficient downloading and streaming
  • ✅ Ready for OCR model fine-tuning

Supported Models

This dataset is suitable for training and fine-tuning models including:

  • PaddleOCR
  • PARSeq
  • TrOCR
  • CRNN
  • ABINet
  • VisionEncoderDecoder Models
  • Donut OCR
  • Any sequence-based OCR recognition architecture

Dataset Statistics

Split Samples
Train 150,597
Test 16,733
Total 167,330

Train/Test Split

  • Train: 90%
  • Test: 10%
  • Random Seed: 42

Dataset Structure

OCR-Finetuning-EN-Dataset/

├── train/
│   └── data.parquet
│
├── test/
│   └── data.parquet
│
├── README.md
└── .gitattributes

Dataset Schema

Each row contains:

Column Type Description
id int64 Sample identifier
image Image Embedded image
text string Ground-truth OCR transcription

Example:

{
    "id": 135714,
    "image": <PIL.Image>,
    "text": "3.00"
}

Loading the Dataset

from datasets import load_dataset

dataset = load_dataset(
    "Srijan-Chakraborty/OCR-Finetuning-EN-Dataset"
)

print(dataset)

Access a sample:

sample = dataset["train"][0]

sample["image"].show()
print(sample["text"])

Exporting Back to Images + JSON

Although the dataset is distributed in Parquet format, it can easily be converted back into the traditional structure:

train/
│
├── images/
└── annotations.json

test/
│
├── images/
└── annotations.json

This allows easy integration with OCR frameworks that expect image folders and annotation JSON files.

Example:

import json
import os

from datasets import load_dataset

dataset = load_dataset(
    "Srijan-Chakraborty/OCR-Finetuning-EN-Dataset"
)

for split in dataset.keys():

    os.makedirs(f"{split}/images", exist_ok=True)

    annotations = []

    for sample in dataset[split]:

        filename = f"{sample['id']:06d}.jpg"

        sample["image"].save(
            os.path.join(split, "images", filename)
        )

        annotations.append(
            {
                "id": sample["id"],
                "file_name": filename,
                "text": sample["text"]
            }
        )

    with open(
        os.path.join(split, "annotations.json"),
        "w",
        encoding="utf-8"
    ) as f:
        json.dump(
            {
                "annotations": annotations
            },
            f,
            ensure_ascii=False,
            indent=4
        )

Intended Use

This dataset is intended for:

  • OCR Recognition
  • OCR Fine-tuning
  • OCR Benchmarking
  • Scene Text Recognition
  • Document OCR
  • Vision-Language Research
  • Sequence Recognition
  • OCR Pretraining
  • OCR Evaluation

Citation

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

@misc{ocr_finetuning_en_dataset,
  author = {Srijan Chakraborty},
  title = {OCR-Finetuning-EN-Dataset},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/Srijan-Chakraborty/OCR-Finetuning-EN-Dataset}
}

Author

Srijan Chakraborty

GitHub: https://github.com/SrijanChakraborty2003

Hugging Face: https://huggingface.co/Srijan-Chakraborty


License

This dataset is released under the Apache License 2.0.

The dataset was constructed by combining publicly available OCR datasets. Please ensure that the licenses and usage terms of the original source datasets are respected when using this dataset.

Downloads last month
84