Datasets:
image imagewidth (px) 30 744 | text stringclasses 124
values |
|---|---|
\log(ab)=\log a+\log b | |
α
αΌαααααα½ααααααα | |
\lim_{x\to\infty}\frac{1}{x}=0 | |
\sigma=\sqrt{\frac1n\sum(x_i-\mu)^2} | |
ααααΆααααααα
α»αααααα | |
αααααααΆαααααααααααααΆα | |
\sum_{i=1}^{n}i=\frac{n(n+1)}2 | |
ααα’αα»ααααααααΎα | |
ααααααΈααααα’αα»αααα | |
ααααΌα’ααααα | |
ααααΆα’αα»ααΆα | |
y=ax^2+bx+c | |
ααααΆααα·ααΆα | |
ααααΆααΈααΈαααα’αα»ααααααΆαααααα | |
α
αΌααααααααΆα
ααααΎα | |
\tan x=\frac{\sin x}{\cos x} | |
\tan x=\frac{\sin x}{\cos x} | |
\sin x | |
\cos x | |
\cos x | |
\pi r^2 | |
ααα
ααα»α
ααΆαα | |
α
αΌααααααααα | |
\frac{d}{dx}(\sin x)=\cos x | |
ααα’αα»ααααααΎα | |
αααα»α | |
V=\frac43\pi r^3 | |
ααααΆααα·ααα | |
ααααΆααΆααα | |
αααααααΆααααΈααΆαααΆαααααα | |
αααααααααα | |
ααααΆαααααα | |
αααααααΆααααααααΈααα’ααα | |
\int \sin x\,dx=-\cos x+C | |
\left(\frac{x+y}{2}\right)^2 | |
\alpha+\beta+\gamma=180^\circ | |
\lim_{x\to\infty}\frac{1}{x}=0 | |
ααα’αααααααα
α·α | |
\int_0^1 x^2dx=\frac13 | |
\sqrt[n]{x} | |
ααα’αα»ααααααααΎα | |
ααααΆααΆα | |
\lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12 | |
\lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12 | |
\overline{AB} | |
α
αΌααααα αΆαααΆ | |
\binom{n}{k} | |
\sin^2x+\cos^2x=1 | |
f''(x)=6x | |
\log(ab)=\log a+\log b | |
αααααααΆαααααααααααααΆα | |
ααααΆαααααα | |
\pi r^2 | |
y=ax^2+bx+c | |
ααααΆααΆα | |
ααα’αα»ααααααααΎα | |
ααα’αα·ααααΆ | |
ααα
ααα½ααααααααααΆα | |
\log(ab)=\log a+\log b | |
\lim_{x\to\infty}\frac{1}{x}=0 | |
ααααΆα’αα»αααα | |
\prod_{i=1}^{n}i=n! | |
ααα’αα·ααααΆ | |
α
ααααΎα | |
\binom{n}{k} | |
ααα’αα»αααααααα
αααΆα | |
αααααααΆααααααααΈααα’ααα | |
αααα»α | |
αααααααΆαααααααααααααΆα | |
\lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12 | |
αααα»α | |
\lim_{x\to\infty}\frac{1}{x}=0 | |
αααααα
αααααααΆαααααα | |
y=ax^2+bx+c | |
\angle ABC=90^\circ | |
V=\frac43\pi r^3 | |
αααααααΆααααααααααααΈααΆα | |
\sum_{i=1}^{n}i^2=\frac{n(n+1)(2n+1)}6 | |
\sum_{i=1}^{n}i^2=\frac{n(n+1)(2n+1)}6 | |
\bar{x}=\frac1n\sum x_i | |
ααααΌα’ααααα | |
αααααααΆααααααααΈααα’ααα | |
\prod_{i=1}^{n}i=n! | |
\frac{1}{1+x} | |
\lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12 | |
\sqrt[n]{x} | |
ααααααΈααααα’αα»αααα | |
αααααααααα’ααα | |
αααααααααα | |
ααααΆααΈααΈαααα’αα»ααααααΆαααααα | |
ααα αΆααααΈ α‘ | |
\vec{AB} | |
ααα’αα»ααααααααΎα | |
α
αΌαααααΆ | |
ααααΆααααααα
α»αααααα | |
ααααΆα’αα»αααα | |
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} | |
\alpha+\beta+\gamma=180^\circ | |
ααααΆααα·ααα | |
P(A)=\frac{n(A)}{n(S)} |
End of preview. Expand in Data Studio
Khmer Math OCR Dataset
OCR dataset for Khmer text and LaTeX math expression recognition, generated from synthetic document images with YOLOv8 OBB detection.
Dataset Summary
| Split | Samples | Khmer | LaTeX |
|---|---|---|---|
| train | 8,962 | 5,529 | 3,433 |
| validation | 1,537 | 1,498 | 39 |
| Total | 10,499 | 7,027 | 3,472 |
Features
| Feature | Type | Description |
|---|---|---|
image |
PIL Image | Cropped text region from synthetic document |
text |
string | Ground truth text (Khmer or LaTeX source) |
Classes
| ID | Name | Description |
|---|---|---|
| 0 | khmer |
Khmer script text (books, newspapers, conversations) |
| 1 | expression |
LaTeX math formulas (integrals, matrices, equations) |
Examples
Khmer:
- ααα’αα·ααααΆ (Find the maximum)
- ααααΆααΈααΈαααα’αα»ααααααΆαααααα (Calculate the limit of the following function)
- ααΌααααα αΆααα·ααΈααααΎ (Please show the working)
LaTeX:
x^2+2x+1\frac{-b\pm\sqrt{b^2-4ac}}{2a}\int_0^1 x^2dx=\frac13
Usage
from datasets import load_dataset
ds = load_dataset("krotreaksmey/khmer_math")
# View a sample
example = ds["train"][0]
print(example["text"])
example["image"]
Generation Pipeline
- Synthetic data generation β LuaLaTeX + Khmer fonts (KhmerOS) on random backgrounds
- YOLOv8 OBB training β 12,213 synthetic document pages, mAP50=0.995
- OCR dataset building β YOLO detects text regions β crop β match with ground truth labels via IoU
- Label quality β 98% actual text labels (IoU matching with threshold=0.3)
Image Stats
- Width: 60β1046 px (avg ~380 px)
- Height: 38β171 px (avg ~74 px)
Citation
@misc{khmer_math_ocr_2026,
title={Khmer Math OCR Dataset},
author={krotreaksmey},
year={2026},
url={https://huggingface.co/datasets/krotreaksmey/khmer_math}
}
- Downloads last month
- 58