add credit to khob benchmark dataset
Browse files
README.md
CHANGED
|
@@ -21,3 +21,118 @@ configs:
|
|
| 21 |
- split: train
|
| 22 |
path: data/train-*
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
- split: train
|
| 22 |
path: data/train-*
|
| 23 |
---
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# KHOB‑LEVEL2 (Scene Text OCR Subset)
|
| 27 |
+
|
| 28 |
+
## Important Attribution (Full Credit)
|
| 29 |
+
|
| 30 |
+
This dataset is a cropped/simplified subset of Level 2: Scene Text Images from the original open‑source project:
|
| 31 |
+
|
| 32 |
+
Khmer OCR Benchmark Dataset — created and maintained by EKYC Solutions and collaborators.
|
| 33 |
+
|
| 34 |
+
- Original GitHub repository: https://github.com/EKYCSolutions/khmer-ocr-benchmark-dataset?tab=readme-ov-file
|
| 35 |
+
- Official full dataset download (Google Drive): https://drive.google.com/drive/folders/1YczKEIha64Qpjk9Wsbp0-r7PFoYrgvga
|
| 36 |
+
|
| 37 |
+
All credit goes to EKYC Solutions and the original authors. This Hugging Face version is only shared as a convenient subset for quick OCR testing.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## Background
|
| 42 |
+
|
| 43 |
+
In Cambodia, Khmer Optical Character Recognition (OCR) is an active area of AI development. However, evaluating Khmer OCR engines is difficult because:
|
| 44 |
+
|
| 45 |
+
1. Many OCR systems benchmark only on internal datasets (biased results).
|
| 46 |
+
2. Some benchmarks rely on synthetic computer‑generated datasets, which do not reflect real‑world images.
|
| 47 |
+
|
| 48 |
+
The Khmer OCR Benchmark Dataset addresses this by providing a standardized benchmark with increasing difficulty levels.
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
## Dataset Description
|
| 53 |
+
|
| 54 |
+
This subset is derived from:
|
| 55 |
+
|
| 56 |
+
### Level 2: Scene Text Images
|
| 57 |
+
|
| 58 |
+
Level 2 focuses on Khmer printed text appearing in real‑world scenes. Images were captured using mobile devices (e.g., iPhone 13) and include:
|
| 59 |
+
|
| 60 |
+
- Curved Khmer printed text
|
| 61 |
+
- Occlusions and noise
|
| 62 |
+
- Reflections
|
| 63 |
+
- Varied lighting (bright and low light)
|
| 64 |
+
- Real‑world backgrounds
|
| 65 |
+
|
| 66 |
+
### What does Level 2 evaluate?
|
| 67 |
+
|
| 68 |
+
OCR models that perform well here can recognize Khmer printed text in uncontrolled real‑world environments.
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
## Dataset Format
|
| 73 |
+
|
| 74 |
+
This subset is provided in a simple structure that maps each cropped image to a single text label.
|
| 75 |
+
|
| 76 |
+
| Column | Description |
|
| 77 |
+
|-------------|-----------------------------------------------|
|
| 78 |
+
| `image` | Scene text image (Level 2 subset) |
|
| 79 |
+
| `text` | Ground‑truth transcription |
|
| 80 |
+
| `file_name` | Original image filename |
|
| 81 |
+
| `id` | Unique identifier |
|
| 82 |
+
|
| 83 |
+
Example entry:
|
| 84 |
+
|
| 85 |
+
```json
|
| 86 |
+
{
|
| 87 |
+
"image": "LS_10_img_01.png",
|
| 88 |
+
"text": "ហាមចោលសំរាម"
|
| 89 |
+
}
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Usage Example
|
| 95 |
+
|
| 96 |
+
```python
|
| 97 |
+
from datasets import load_dataset
|
| 98 |
+
|
| 99 |
+
# Replace with your dataset repo ID on Hugging Face
|
| 100 |
+
ds = load_dataset("SoyVitou/KHOB-LEVEL2")
|
| 101 |
+
|
| 102 |
+
print(ds["train"][0])
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## Original Source & License
|
| 108 |
+
|
| 109 |
+
This subset is released in the same open‑source spirit as the original benchmark. For the complete dataset, license details, and full acknowledgments, please refer to the official repository:
|
| 110 |
+
|
| 111 |
+
- https://github.com/EKYCSolutions/khmer-ocr-benchmark-dataset
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Acknowledgment
|
| 116 |
+
|
| 117 |
+
This benchmark dataset was initiated in collaboration with institutions in Cambodia, including:
|
| 118 |
+
|
| 119 |
+
- EKYC Solutions
|
| 120 |
+
- Prudential Life Assurance PLC
|
| 121 |
+
- Paragon International University
|
| 122 |
+
|
| 123 |
+
We are grateful for their contribution to improving Khmer OCR research.
|
| 124 |
+
|
| 125 |
+
Note: This Hugging Face dataset is only a small cropped subset for convenience. For serious benchmarking, please download and use the complete dataset from the original authors.
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
## Next Steps
|
| 130 |
+
|
| 131 |
+
If helpful, we can extend this dataset card with:
|
| 132 |
+
|
| 133 |
+
- A BibTeX citation
|
| 134 |
+
- Additional tags (e.g., `ocr`, `scene-text`, `khmer`)
|
| 135 |
+
- Train/test split description and data curation notes
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
|