Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

image_name
string
chunk
string
font_name
string
image_base64
string
dataset_Alukah_Arabic_font_Amiri_article_1_part_1.png
"ุงู„ุบู„ูˆ ููŠ ู†ุธุฑูŠุฉ ุงู„ู…ุคุงู…ุฑุฉ ุงู„ุญู…ุฏ ู„ู„ู‡ ุฎุงู„ู‚ู ุงู„ุณู…ุงูˆุงุช ูˆุงู„ุฃ(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzddWBT1//4/5O0tBQrLsOGDIa7O8MZNhyGDjrcJ8i(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_1_part_2.png
"ูƒูŠููŠุฉ ุชุนุงู…ู„ ุงู„ู†ุงุณ ู…ุน ุงู„ุฃุฒู…ุงุชุŒ ู…ู† ุงู„ู…ุญุชู…ู„ ุฃู† ูŠูƒูˆู† ู„ู„ุฃุฒู…(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzddXxTV9z48ZO0tKWF4g7DvbjDYNgoLsPdGe4bDGc(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_1_part_3.png
"ุฃู…ุฑู‡ุงุŒ ูˆูƒู„ ู…ุง ูŠุญุฏุซ ู…ู† ุดุฑู‘ู ูู‡ูˆ ุชุญุช ุชุฏุจูŠุฑู‡ุงุŸ! ุฅู† ู…ู…ุง ุชููˆ(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzddWBT1//4/5PUaItT3N3dhssYUtwZMnQ4wxk2ZAw(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_1_part_4.png
"ุชุฏุจูŠุฑู‡ุŒ ุฃูˆ ูŠุชู…ู†ู‘ูŽูˆุง ุณูˆุงู‡ุŒ ูˆู‡ู… ุฃุนู„ู… ุจู‡ ูˆุฃุนุฑู ุจุฃุณู…ุงุฆู‡ ูˆุต(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdZWAbR7io4ZE5dthhZmZmZoY2zAxN03Cbpk3Shpk(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_2_part_1.png
"ุงู„ุงุฎุชู„ุงู: ู…ูู‡ูˆู…ู‡ ููŠ ุงู„ู„ุบุฉ ูˆุงู„ุงุตุทู„ุงุญ ูˆููŠ ุงู„ู‚ุฑุขู† ุงู„ูƒุฑูŠู… (...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzddXwUx//48bkkxHAI7iVoIEUKNLgXp1AcWtydDxQ(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_2_part_2.png
"ุฅู„ุง ููŠู…ุง ู„ุง ุฏู„ูŠู„ ุนู„ูŠู‡\" [12] . ูˆู‡ุฐุง ุงู„ุชูุฑูŠู‚ ุณุจู‚ู‡ ุฅู„ูŠู‡ ุฃุจูˆ ุง(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdZWAU1/uw4bMbI4Hg7sEdAgWKB5dQ3KW4W7FSpGh(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_2_part_3.png
"ุงู„ู†ุธุฑ... ูˆู„ู‡ุฐุง ู„ุง ุชุฌุฏ ูุฑู‚ู‹ุง ุจูŠู†ู‡ู…ุง ููŠ ุงุณุชุนู…ุงู„ ุงู„ูู‚ู‡ุงุก\" [(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdZ1wU1/v4/bOAINixd1HsWLBh712TWLHHhjX2aIz(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_2_part_4.png
"ุงู„ุชููƒูŠุฑุŒ ูˆุชู†ูˆูŠุน ุงู„ุชุตุฑู ููŠ ูˆุถุน ุงู„ู„ุบุงุชุŒ ูˆุชุจุฏู„ ูƒูŠููŠุงุชู‡ุง (...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdd2BTVdzw8ZPuwWjZe29K2SBUQBFBhgiWvUFkKnu(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_2_part_5.png
"ุนุจุฏุงู„ุฑุคูˆู ุจู† ุชุงุฌ ุงู„ุนุงุฑููŠู† ุงุจู† ุนู„ูŠ ุจู† ุฒูŠู† ุงู„ุนุงุจุฏูŠู† ุงู„ุญุฏ(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdZXwUV/vw8RMnwaFYcEhxglPkxt1di7e4U7R4cYc(...TRUNCATED)
dataset_Alukah_Arabic_font_Amiri_article_3_part_1.png
"[21] ุงู„ู…ุญุฑุฑ ุงู„ูˆุฌูŠุฒ ููŠ ุชูุณูŠุฑ ุงู„ูƒุชุงุจ ุงู„ุนุฒูŠุฒุŒ ุงุจู† ุนุทูŠุฉ ุงู„ุฃู†(...TRUNCATED)
Amiri
"iVBORw0KGgoAAAANSUhEUgAACbEAAA20CAIAAABOHAVkAAEAAElEQVR4nOzdZYATV/v4/ZOsw+LutrguFHco7kWLuzsUWqRAabF(...TRUNCATED)
End of preview.

SAND: Large-Scale Synthetic Arabic OCR Dataset

Hugging Face Datasets GitHub

Overview

SAND (Synthetic Arabic OCR Dataset) is a large-scale, synthetically generated dataset designed for training and evaluating Optical Character Recognition (OCR) models for Arabic text. This dataset addresses the critical need for comprehensive Arabic text recognition resources by providing controlled, diverse, and scalable training data that simulates real-world book layouts.

Key Features

  • Massive Scale: 743,000 document images containing 662.15 million words
  • Typographic Diversity: Five distinct Arabic fonts (Amiri, Sakkal Majalla, Arial, Calibri, and Scheherazade New)
  • Structured Formatting: Designed to mimic real-world book layouts with consistent typography
  • Clean Data: Synthetically generated with no scanning artifacts, blur, or distortions
  • Content Diversity: Text spans multiple domains including culture, literature, Shariah, social topics, and more

Dataset Structure

The dataset is divided into five splits based on font name:

  • Amiri: ~148,541 document images
  • Sakkal Majalla: ~148,541 document images
  • Arial: ~148,541 document images
  • Calibri: ~148,541 document images
  • Scheherazade New: ~148,541 document images

๐Ÿ“‹ Sample Images

Sample 1 - Amiri Font Sample 2 - Arial Font
Sample 3 - Calibri Font Sample 4 - Scheherazade Font

Each split contains data specific to a single font with the following attributes:

  • image_name: Unique identifier for each image
  • chunk: The text content associated with the image
  • font_name: The font used in text rendering
  • image_base64: Base64-encoded image representation

Content Distribution

Category Number of Articles
Culture 13,253
Fatawa & Counsels 8,096
Literature & Language 11,581
Bibliography 26,393
Publications & Competitions 1,123
Shariah 46,665
Social 8,827
Translations 443
Muslim's News 16,725
Total Articles 133,105

Font Specifications

Font Words Per Page Font Size
Sakkal Majalla 50โ€“300 14 pt
Arial 50โ€“500 12 pt
Calibri 50โ€“500 12 pt
Amiri 50โ€“300 12 pt
Scheherazade 50โ€“250 12 pt

Page Layout

Specification Measurement
Left Margin 0.9 inches
Right Margin 0.9 inches
Top Margin 1.0 inch
Bottom Margin 1.0 inch
Gutter Margin 0.2 inches
Page Width 8.27 inches (A4)
Page Height 11.69 inches (A4)

Usage Example

from datasets import load_dataset
import base64
from io import BytesIO
from PIL import Image
import matplotlib.pyplot as plt

# Load dataset with streaming enabled
ds = load_dataset("riotu-lab/SAND", streaming=True)
print(ds)

# Iterate over a specific font dataset (e.g., Amiri)
for sample in ds["Amiri"]:
    image_name = sample["image_name"]
    chunk = sample["chunk"]  # Arabic text transcription
    font_name = sample["font_name"]
    
    # Decode Base64 image
    image_data = base64.b64decode(sample["image_base64"])
    image = Image.open(BytesIO(image_data))

    # Display the image
    plt.figure(figsize=(10, 10))
    plt.imshow(image)
    plt.axis('off')
    plt.title(f"Font: {font_name}")
    plt.show()

    # Print the details
    print(f"Image Name: {image_name}")
    print(f"Font Name: {font_name}")
    print(f"Text Chunk: {chunk}")
    
    # Break after one sample for testing
    break

Applications

SAND is designed to support various Arabic text recognition tasks:

  • Training and evaluating OCR models for Arabic text
  • Developing vision-language models for document understanding
  • Fine-tuning existing OCR models for better Arabic script recognition
  • Benchmarking OCR performance across different fonts and layouts
  • Research in Arabic natural language processing and computer vision

Citation

If you use SAND in your research, please cite:

@misc{sand2025,
  title={SAND: A Large-Scale Synthetic Arabic OCR Corpus for Vision-Language Models},
  author={RIOTU Lab},
  year={2025},
  howpublished={\url{https://huggingface.co/datasets/riotu-lab/SAND}}
}

Acknowledgments

The authors thank Prince Sultan University for their support in developing this dataset.

Downloads last month
1,015