Datasets:
text stringlengths 37 37 |
|---|
0 0.174219 0.121875 0.049219 0.022656 |
0 0.282031 0.121875 0.146875 0.020312 |
0 0.402344 0.125781 0.062500 0.022656 |
0 0.514844 0.124219 0.153906 0.032031 |
0 0.614844 0.128125 0.019531 0.017969 |
0 0.674219 0.130469 0.072656 0.020313 |
0 0.774219 0.130469 0.102344 0.023438 |
0 0.868750 0.131250 0.075781 0.022656 |
0 0.221875 0.147656 0.153125 0.023438 |
0 0.189844 0.173437 0.080469 0.021094 |
0 0.348438 0.152344 0.074219 0.025781 |
0 0.432031 0.152344 0.069531 0.022656 |
0 0.552344 0.155469 0.147656 0.028125 |
0 0.668750 0.155469 0.064062 0.023438 |
0 0.743750 0.155469 0.071094 0.023438 |
0 0.823438 0.157812 0.064844 0.023438 |
0 0.898438 0.157031 0.071875 0.026562 |
0 0.085156 0.227344 0.025000 0.021875 |
0 0.182812 0.225000 0.081250 0.023438 |
0 0.301563 0.225000 0.133594 0.027344 |
0 0.414844 0.227344 0.065625 0.028125 |
0 0.485156 0.232031 0.053906 0.020313 |
0 0.582812 0.232813 0.116406 0.028125 |
0 0.103125 0.253906 0.030469 0.023438 |
0 0.186719 0.255469 0.096875 0.025000 |
0 0.298438 0.256250 0.110156 0.027344 |
0 0.393750 0.257812 0.066406 0.019531 |
0 0.464062 0.257812 0.049219 0.025781 |
0 0.565625 0.260937 0.125781 0.030469 |
0 0.679688 0.259375 0.078125 0.023438 |
0 0.766406 0.258594 0.071094 0.021875 |
0 0.868750 0.257812 0.112500 0.028906 |
0 0.101562 0.305469 0.033594 0.019531 |
0 0.193750 0.306250 0.115625 0.031250 |
0 0.350781 0.310937 0.154687 0.023438 |
0 0.478906 0.310937 0.065625 0.017188 |
0 0.535156 0.308594 0.026563 0.021875 |
0 0.602344 0.310937 0.092969 0.019531 |
0 0.696875 0.310937 0.076563 0.025000 |
0 0.768750 0.307031 0.057031 0.025000 |
0 0.831250 0.308594 0.050781 0.021875 |
0 0.300781 0.334375 0.063281 0.024219 |
0 0.392969 0.335156 0.097656 0.024219 |
0 0.478906 0.335938 0.053906 0.026563 |
0 0.529687 0.337500 0.019531 0.017188 |
0 0.591406 0.337500 0.083594 0.025000 |
0 0.691406 0.336719 0.085938 0.023438 |
0 0.354687 0.363281 0.162500 0.020312 |
0 0.482031 0.364063 0.076563 0.023438 |
0 0.571875 0.362500 0.078125 0.025781 |
0 0.663281 0.362500 0.080469 0.020312 |
0 0.746094 0.361719 0.058594 0.023438 |
0 0.303125 0.389062 0.060937 0.021875 |
0 0.394531 0.390625 0.092969 0.028125 |
0 0.502344 0.389844 0.101562 0.025000 |
0 0.596875 0.392188 0.062500 0.023438 |
0 0.650781 0.388281 0.031250 0.025781 |
0 0.700781 0.389062 0.050781 0.025781 |
0 0.756250 0.391406 0.051562 0.025781 |
0 0.823438 0.360938 0.075000 0.026563 |
0 0.787500 0.333594 0.075781 0.021875 |
0 0.842969 0.390625 0.101562 0.025000 |
0 0.924219 0.309375 0.123438 0.025000 |
0 0.903125 0.332813 0.128906 0.021875 |
0 0.928125 0.362500 0.106250 0.019531 |
0 0.943750 0.387500 0.081250 0.027344 |
0 0.078125 0.441406 0.038281 0.025781 |
0 0.156250 0.443750 0.057031 0.028125 |
0 0.273438 0.446094 0.133594 0.023438 |
0 0.385937 0.445312 0.069531 0.019531 |
0 0.467187 0.444531 0.076563 0.017969 |
0 0.549219 0.444531 0.054688 0.024219 |
0 0.600781 0.442969 0.032812 0.025000 |
0 0.678125 0.445312 0.090625 0.018750 |
0 0.767969 0.445312 0.072656 0.018750 |
0 0.824219 0.446094 0.024219 0.019531 |
0 0.248438 0.474219 0.083594 0.022656 |
0 0.341406 0.471094 0.060156 0.020312 |
0 0.418750 0.469531 0.075000 0.021875 |
0 0.281250 0.499219 0.131250 0.025000 |
0 0.406250 0.501563 0.091406 0.018750 |
0 0.253125 0.530469 0.079688 0.019531 |
0 0.498437 0.503125 0.064062 0.022656 |
0 0.566406 0.500781 0.053906 0.025000 |
0 0.641406 0.500000 0.082812 0.026563 |
0 0.756250 0.501563 0.129687 0.025000 |
0 0.506250 0.474219 0.063281 0.025781 |
0 0.644531 0.472656 0.194531 0.023438 |
0 0.787500 0.470313 0.075781 0.025781 |
0 0.869531 0.444531 0.035937 0.023438 |
0 0.950781 0.444531 0.097656 0.033594 |
0 0.865625 0.471875 0.049219 0.026563 |
0 0.939063 0.472656 0.081250 0.018750 |
0 0.885938 0.500000 0.106250 0.027344 |
0 0.072656 0.589844 0.041406 0.024219 |
0 0.164062 0.590625 0.090625 0.025781 |
0 0.301563 0.589063 0.130469 0.023438 |
0 0.410156 0.589063 0.044531 0.027344 |
0 0.500781 0.585938 0.106250 0.030469 |
0 0.596875 0.589844 0.061719 0.027344 |
Word Detection β multi-source YOLO dataset
A single-class object-detection dataset for locating word bounding boxes in
scanned documents, screenshots, handwritten notes and photographed pages. Four
public Roboflow datasets were merged into one YOLO-format release with a single
word class.
This dataset is the detection stage of an OCR pipeline: it finds words, it does not read them. Recognition is a separate model.
At a glance
| Task | Object detection (bounding boxes) |
| Classes | 1 β word |
| Images | 7,003 |
| Boxes | 574,576 |
| Annotation format | YOLO (class cx cy w h, normalized) |
| Image format | JPEG |
| License | CC BY 4.0 (attribution required) |
| Sources | 4 Roboflow projects |
Splits
| Split | Images | Boxes | Boxes / image (mean Β· median Β· max) |
|---|---|---|---|
train |
6,337 | 520,866 | 82.2 Β· 74 Β· 360 |
val |
422 | 38,505 | 91.2 Β· 76 Β· 334 |
test |
244 | 15,205 | 62.3 Β· 47 Β· 250 |
| total | 7,003 | 574,576 | 82.1 Β· 74 Β· 360 |
Splits come from the upstream projects and were preserved, so images never move
between train, val and test. 80 duplicate images were dropped during the
merge (all from math_words).
Sources and attribution
Every upstream project is CC BY 4.0. Attribution is required if you use this dataset.
| Source | Roboflow project | Original classes | Images | Boxes |
|---|---|---|---|---|
devanagari_words |
aaa-8kwq1/devanagari-word-detection | word |
297 | 23,662 |
word_detection_yolo |
yogesh-jangir-3utla/word-detection-using-yolo | word |
458 | 86,454 |
words_5tolc |
aabis-siyas-hoisi/words-5tolc | Texto |
1,031 | 14,075 |
math_words |
kyiv-national-university/math-words | Text, W, math, text |
5,217 | 450,385 |
math_words is distributed through the mirror
el-emam/math-words-oahhj,
because the original project has no generated export version.
What the merge changed
- All classes collapsed to
word(id 0).Texto,Text,W,mathandtextwere treated as the same concept. No boxes were dropped for class reasons. - Split names normalized:
validβval,testkept. - Duplicate images removed (80, all from
math_words), identified across sources. - Coordinates validated: every label line has exactly 5 fields, class id
0, and coordinates inside[0, 1]with positive width and height. - Filenames namespaced as
<source>__<original-name>.jpgso the origin of any image is recoverable.
Structure
.
βββ data.yaml # Ultralytics dataset config (nc: 1, names: [word])
βββ classes.json # class list and id mapping
βββ sources.json # provenance and per-source counts
βββ stats.json # full statistics, machine readable
βββ manifest.json # merge manifest produced by the builder
βββ README.md
βββ images/
β βββ train/ (6,337)
β βββ val/ (422)
β βββ test/ (244)
βββ labels/
βββ train/ (6,337 .txt)
βββ val/ (422 .txt)
βββ test/ (244 .txt)
Each label file matches an image by basename and contains one line per word:
class_id center_x center_y width height # all normalized to [0, 1]
Geometry
| Property | Min | Median | Max |
|---|---|---|---|
| Image width (px) | 640 | 640 | 4,032 |
| Image height (px) | 328 | 640 | 4,032 |
| Box width (normalized) | β | 0.060 | 0.987 |
| Box height (normalized) | β | 0.037 | 0.914 |
The median word box is 0.060 Γ 0.037 of the image, i.e. roughly 39 Γ 24 pixels on a 640 px image. This is a small-object detection problem: training at 640 px will merge or lose many boxes. 960β1280 px is recommended.
Median box aspect ratio is 1.54 (p95 = 5.5), so words are typically wider than tall, but long compound words reach ratios above 5.
Usage
Ultralytics YOLO
from ultralytics import YOLO
model = YOLO("yolo26s.pt")
model.train(
data="data.yaml",
imgsz=960,
batch=16,
epochs=40,
single_cls=True,
max_det=512, # up to 360 boxes per image
)
metrics = model.val(split="test")
max_det matters here: some images contain more than 300 words, so the
Ultralytics default of 300 truncates predictions and understates mAP.
Loading the images and labels
from pathlib import Path
from PIL import Image
root = Path(".") # dataset root
for label in (root / "labels" / "val").glob("*.txt"):
image = Image.open(root / "images" / "val" / f"{label.stem}.jpg")
for line in label.read_text().splitlines():
cls, cx, cy, w, h = map(float, line.split())
box = [
(cx - w / 2) * image.width,
(cy - h / 2) * image.height,
(cx + w / 2) * image.width,
(cy + h / 2) * image.height,
]
Limitations
- One class only. No distinction between printed and handwritten text, no script labels, no reading order, no transcription.
- Script imbalance.
devanagari_wordscontains Devanagari text, while the other three are mostly Latin and mathematical notation. Boxes are correct, but the dataset is not script-balanced and should not be described as Latin-only. - Domain imbalance.
math_wordscontributes 78% of all boxes; mathematical documents dominate the label distribution. Plain prose pages are under-represented. - Small boxes. Median word height is ~3.7% of the image. Downstream users should train at high resolution and validate on their own domain.
- No negative images. Every image contains at least one word box, so the model sees no explicit background-only examples.
- Inherited label noise. Box quality is that of the upstream projects; no manual re-annotation was performed.
License
Released under CC BY 4.0, inherited from the four upstream datasets. You must credit:
- aaa-8kwq1 β Devanagari word detection
- yogesh-jangir-3utla β Word Detection using yolo
- aabis-siyas-hoisi β Words
- Kyiv National University β math-words
Citation
@misc{gemma_ocr_words_real,
title = {Word Detection: multi-source YOLO dataset},
author = {Emam},
year = {2026},
note = {Merged from four CC BY 4.0 Roboflow datasets},
url = {https://huggingface.co/datasets/elemam/gemma-ocr-words-real}
}
Provenance
| Field | Value |
|---|---|
| Version | 1.0.0 |
| Generated | 2026-11-10 |
| Merge seed | 42 |
| Builder | scripts/build_real_word_dataset.py |
| Statistics | scripts/dataset_stats.py |
- Downloads last month
- 55