File size: 1,774 Bytes
7a6269b
 
 
 
67ab70b
7a6269b
 
 
 
ac33413
7a6269b
67ab70b
ac33413
7a6269b
 
 
 
 
ac33413
 
7a6269b
ac33413
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 1759539306
    num_examples: 2160000
  download_size: 1866820804
  dataset_size: 1759539306
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
language:
- ar
---
# Arabic OCR Dataset

## Overview
The Arabic OCR Dataset is a comprehensive resource aimed at enhancing Optical Character Recognition (OCR) capabilities for the Arabic language. The dataset consists of over 2 million labeled images of Arabic text extracted from diverse sources, ideal for training and benchmarking Arabic OCR models.

## Dataset Details
- **Dataset Size**: ~2.16 million labeled samples
- **Total File Size**: 1.87 GB
- **Format**: Parquet
- **Modalities**: Images and Text
- **Languages**: Arabic

## Structure
Each entry in the dataset includes:
- `image`: An image file containing Arabic text.
- `text`: Corresponding Arabic text as ground truth.

The images vary in width from 29px to 222px, containing text samples ranging from 7 to 10 characters in length.

## Intended Uses
This dataset is designed for:
- Training state-of-the-art Arabic OCR models.
- Evaluating performance of OCR systems.
- Research in Arabic Natural Language Processing (NLP).

## Limitations
- Text length is limited to short to medium-length Arabic text snippets.
- Variability in image quality may affect OCR performance.

## How to Use
### Loading the Dataset
```python
from datasets import load_dataset

# Load Arabic OCR Dataset
dataset = load_dataset("mssqapi/Arabic-OCR-Dataset")
```

### Accessing Data Samples
```python
# Example of accessing data sample
sample = dataset['train'][0]
print(sample['text'])
display(sample['image'])
```