The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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
stringlengths 53
56
| chunk
stringlengths 243
3.27k
| font_name
stringclasses 1
value | image_base64
stringlengths 136k
1.34M
|
---|---|---|---|
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) |
Dataset Description
This dataset is designed for training and evaluating Optical Character Recognition (OCR) models for Arabic text. It is an extension of an open-source dataset and includes text rendered in multiple Arabic fonts (Amiri, Sakkal Majalla, Arial, Calibri and Scheherazade New). The dataset simulates real-world book layouts to enhance OCR accuracy.
Dataset Structure
The dataset is divided into five splits based on font name (Sakkal_Majalla, Amiri, Arial, Calibri, and Scheherazade_New). Each split contains data specific to a single font. Within each split, the following attributes are present:
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.
How to Use
from datasets import load_dataset
import base64
from io import BytesIO
from PIL import Image
# Load dataset with streaming enabled
ds = load_dataset("riotu-lab/sample_text2image", streaming=True)
print(ds)
# Load the dataset
# 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))
# Show the image (optional)
image.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
OCR Dataset Generation Pipeline
To create your own dataset, you can use the following repository: text2image.
- Downloads last month
- 0