File size: 6,191 Bytes
247cb6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# Text Recognition Dataset 
This dataset is a comprehensive collection of Arabic and English text recognition samples designed for benchmarking and evaluating text recognition models. The dataset combines multiple sources to provide diverse text recognition challenges across different domains, scripts, and image conditions.

---

## πŸ“ Dataset Structure
- Images are stored in .png format
- Accompanied by a CSV file (TextRecognitionDatasetCompleteAnnotation.csv) with ground truth annotations and text characteristics.

---

## πŸ“š Data Sources and Attribution

This dataset is compiled from samples taken from the following sources:

- **EvArEST Dataset**: Arabic scene text samples from [HGamal11/EvArEST-dataset-for-Arabic-scene-text](https://github.com/HGamal11/EvArEST-dataset-for-Arabic-scene-text)
- **AROCRbench_ISIPPT Dataset**: Arabic OCR benchmarking samples
- **OCR-Arabic-Dates Dataset**: Arabic date recognition samples
- **Synthetic Document Datasets**: Artificially generated text samples for various categories including:
  - English Personal Names, IDs, Numbers, Dates, Characters, Words, Sentences
  - Arabic Characters, Names, Numbers, Words
  - Hijri Dates and other specialized text types

*Note: This dataset contains selected samples from the above sources, with additional text characteristics and annotations added for comprehensive text recognition evaluation.*

---

## πŸ“Š Dataset Overview
- **Total Samples**: 3,008
- **Number of Columns**: 11
- **File Size**: 2.02 MB
- **Languages**: Arabic, English.
- **Image Format**: `.png`

---

## πŸ“Š Dataset Statistics

| Column | Unique Values | Missing Values | Missing % |
|--------|---------------|----------------|-----------|
| image_id | 3,008 | 0 | 0.0% |
| Ground_Truth_Text | 2,232 | 0 | 0.0% |
| dataset_name | 16 | 0 | 0.0% |
| image_category | 4 | 0 | 0.0% |
| language | 3 | 0 | 0.0% |
| type_of_word | 8 | 0 | 0.0% |
| text_type | 1 | 0 | 0.0% |
| augmentation_type | 27 | 0 | 0.0% |
| Environment | 2 | 0 | 0.0% |
| difficulty | 4 | 0 | 0.0% |
| text_annotation_level | 2 | 0 | 0.0% |

---

## πŸ“Š Data Distribution

### Dataset Composition
| Dataset Source | Count | Percentage |
|----------------|-------|------------|
| evarest | 1,588 | 52.8% |
| hijri_dates | 100 | 3.3% |
| English Personal Names | 100 | 3.3% |
| English IDs | 100 | 3.3% |
| English Numbers | 100 | 3.3% |
| English Dates | 100 | 3.3% |
| arocrbench_isippt | 100 | 3.3% |
| English Characters | 100 | 3.3% |
| ocr-arabic-dates | 100 | 3.3% |
| arabic_sentence_images | 99 | 3.3% |
| Arabic Characters | 99 | 3.3% |
| Arabic Names | 99 | 3.3% |
| Arabic Numbers | 93 | 3.1% |
| English Words | 89 | 3.0% |
| English Sentences | 81 | 2.7% |
| Arabic-word | 60 | 2.0% |

### Language Distribution
| Language | Count | Percentage |
|----------|-------|------------|
| Arabic | 1,940 | 64.5% |
| English | 1,063 | 35.3% |
| Other | 5 | 0.2% |

### Image Categories
| Category | Count | Percentage |
|----------|-------|------------|
| scene_text | 1,588 | 52.8% |
| Synthetic Document | 1,160 | 38.6% |
| Document | 160 | 5.3% |
| egyptian_id | 100 | 3.3% |

---

## πŸ“ Column Descriptions

- **image_id**: 3,008 unique values (unique identifier for each image)

- **Ground_Truth_Text**: 2,232 unique values (actual text content in the images)

- **dataset_name**: 16 unique values representing different data sources
  - evarest: 1,588 (52.8%)
  - hijri_dates: 100 (3.3%)
  - English Personal Names: 100 (3.3%)
  - English IDs: 100 (3.3%)
  - English Numbers: 100 (3.3%)
  - English Dates: 100 (3.3%)
  - arocrbench_isippt: 100 (3.3%)
  - English Characters: 100 (3.3%)
  - ocr-arabic-dates: 100 (3.3%)
  - arabic_sentence_images: 99 (3.3%)
  - Arabic Characters: 99 (3.3%)
  - Arabic Names: 99 (3.3%)
  - Arabic Numbers: 93 (3.1%)
  - English Words: 89 (3.0%)
  - English Sentences: 81 (2.7%)
  - Arabic-word: 60 (2.0%)

- **image_category**: 4 unique values representing image types
  - scene_text: 1,588 (52.8%)
  - Synthetic Document: 1,160 (38.6%)
  - Document: 160 (5.3%)
  - egyptian_id: 100 (3.3%)

- **language**: 3 unique values
  - Arabic: 1,940 (64.5%)
  - English: 1,063 (35.3%)
  - Other: 5 (0.2%)

- **type_of_word**: 8 unique values representing text content types
  - String: 1,976 (65.7%)
  - Date: 300 (10.0%)
  - Number: 281 (9.3%)
  - Character: 219 (7.3%)
  - AlphaNumeric: 100 (3.3%)
  - Sentence: 99 (3.3%)
  - Mixed: 28 (0.9%)
  - Other: 5 (0.2%)

- **text_type**: 1 unique value (all samples are typed text)
  - Typed: 3,008 (100.0%)

- **augmentation_type**: 27 unique values representing image processing techniques
  - colored: 1,357 (45.1%)
  - original: 730 (24.3%)
  - heavy_salt_pepper: 53 (1.8%)
  - morph_close_bleed: 53 (1.8%)
  - bleed_pepper: 50 (1.7%)
  - heavy_blur_morph: 47 (1.6%)
  - light_salt: 47 (1.6%)
  - subtle_bleed: 45 (1.5%)
  - subtle_noise: 41 (1.4%)
  - light_closing: 41 (1.4%)
  - combo_light: 41 (1.4%)
  - light_opening: 41 (1.4%)
  - horizontal_blur: 39 (1.3%)
  - light_pepper: 37 (1.2%)
  - combined_subtle: 35 (1.2%)
  - blur_tiny_salt: 35 (1.2%)
  - morph_noise: 34 (1.1%)
  - light_erosion: 33 (1.1%)
  - light_blur_salt: 33 (1.1%)
  - multi_morph: 32 (1.1%)
  - morph_open_blur: 31 (1.0%)
  - light_dilation: 31 (1.0%)
  - vertical_blur: 29 (1.0%)
  - offset_bleed: 26 (0.9%)
  - offset_bleed_noise: 25 (0.8%)
  - salt_blur: 23 (0.8%)
  - light_blur: 19 (0.6%)

- **Environment**: 2 unique values indicating data processing state
  - augmented: 2,278 (75.7%)
  - clean: 730 (24.3%)

- **difficulty**: 4 unique values representing recognition complexity
  - scene text: 1,588 (52.8%)
  - medium: 775 (25.8%)
  - hard: 345 (11.5%)
  - easy: 300 (10.0%)

- **text_annotation_level**: 2 unique values indicating annotation granularity
  - word level: 2,529 (84.1%)
  - sentence level: 479 (15.9%)

---

## πŸ› οΈ How to Use
You can load the dataset using:

```python
from datasets import load_dataset

ds = load_dataset("BatSilver/TextRecognition_Document_RealScene_Data")
```

---

## 🎯 Use Cases
This dataset is ideal for:
- Text recognition model training and evaluation
- Cross-lingual OCR system development
- Multi-domain text recognition challenges