language:
- ar
configs:
- config_name: default
data_files:
- split: Amiri
path: Amiri/*.csv
- split: Sakkal_Majalla
path: Sakkal_Majalla/*.csv
- split: Arial
path: Arial/*.csv
- split: Calibri
path: Calibri/*.csv
- split: Scheherazade_New
path: Scheherazade_New/*.csv
features:
text:
dtype: string
tags:
- dataset
Dataset Card for Dataset Name
This dataset card aims to be a base template for new datasets. It has been generated using this raw template.
Dataset Details
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.
Direct Use
from datasets import load_dataset
import base64
from io import BytesIO
from PIL import Image
# Load dataset with streaming enabled
ds = load_dataset("xya22er/text_to_image", 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
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Dataset Structure
[More Information Needed]
Dataset Creation
Curation Rationale
[More Information Needed]
Source Data
Data Collection and Processing
[More Information Needed]
Who are the source data producers?
[More Information Needed]
Annotations [optional]
Annotation process
[More Information Needed]
Who are the annotators?
[More Information Needed]
Personal and Sensitive Information
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Dataset Card Authors [optional]
[More Information Needed]
Dataset Card Contact
[More Information Needed]