DastKhat
收藏资源简介:
DastKhat(دستخط,意为手写)是一个专门为波斯语光学字符识别(OCR)和手写文本识别(HTR)研究与开发而创建的数据集。该数据集包含从多位参与者处收集的手写波斯语句子图像,旨在捕捉不同个体的书写风格和特征,以促进识别系统对多样化笔迹的泛化能力。每个数据样本均包含以下字段:唯一样本标识符(sample_id)、书写者标识符(participant_id)、手写图像(image)、句子标识符(sentence_id)、波斯语真实转录文本(text)以及数据集划分标签(split,如训练集、验证集、测试集)。数据集通过提供图像-文本对,支持基于监督学习的端到端识别模型训练。其适用任务广泛,包括但不限于波斯手写文本识别、文档图像分析、书写者识别、手写风格分析以及数据增强研究。数据集目前处于活跃开发阶段,可能会持续扩展参与者数量、句子数量和书写风格多样性。
DastKhat (دستخط, meaning "handwriting") is a dataset specially developed for research and development of Persian optical character recognition (OCR) and handwritten text recognition (HTR). This dataset comprises handwritten Persian sentence images collected from multiple participants, aiming to capture the writing styles and individual characteristics of different writers to enhance the generalization capability of recognition systems for diverse handwriting. Each data sample includes the following fields: unique sample identifier (sample_id), writer identifier (participant_id), handwritten image (image), sentence identifier (sentence_id), Persian ground-truth transcription text (text), and dataset split label (split, such as training set, validation set, test set). The dataset supports the training of end-to-end supervised learning-based recognition models by providing image-text pairs. Its applicable tasks cover a wide range, including but not limited to Persian handwritten text recognition, document image analysis, writer identification, handwriting style analysis, and data augmentation research. The dataset is currently in active development and will continue to expand the number of participants, sentence count, and diversity of writing styles.
数据集概述:DastKhat
DastKhat 是一个波斯语手写文本数据集,专为光学字符识别(OCR)和手写文本识别(HTR)的研究与开发而创建。该数据集包含来自多名参与者的手写波斯语句子图像,每个样本均配有相应的元数据。
数据集内容
每个样本包含以下字段:
| 字段 | 描述 |
|---|---|
sample_id |
手写样本的唯一标识符 |
participant_id |
书写该样本的参与者标识符 |
image |
手写图像 |
sentence_id |
句子标识符 |
text |
真实标注的波斯语文本 |
split |
数据集划分(如 train, validation, test) |
示例样本:
text { "sample_id": "000001", "participant_id": "participant_001", "image": <image>, "sentence_id": "000001", "text": "متن فارسی دستنویس", "split": "train" }
数据集结构与划分
数据集围绕手写句子图像组织,每个图像关联唯一样本标识符、参与者标识符、句子标识符、原始波斯语文本及数据集划分。设计上注重保留书写者的多样性。数据集包含以下划分:
trainvalidationtest
各划分的具体样本数量可能随数据集扩展而变化。
数据收集
数据从多名参与者处收集。参与者被提供预定义的波斯语句子并手写提交,经预处理流程(包括提取手写区域、裁剪单句图像、关联文本、分配参与者标识符、准备元数据及组织最终数据集)后得到样本。
预期用途
DastKhat 可用于以下任务:
- 波斯语手写文本识别(HTR)
- 波斯语光学字符识别(OCR)
- 计算机视觉
- 深度学习
- 文档图像分析
- 书写者识别
- 笔迹风格分析
- 数据增强研究
- 序列识别
加载方式
使用 Hugging Face datasets 库加载:
bash python -m pip install datasets
python from datasets import load_dataset
dataset = load_dataset("MrFarahmand/DastKhat")
访问样本:
python sample = dataset["train"][0] image = sample["image"] text = sample["text"]
局限性
- 参与者数量可能有限,无法完全代表波斯语手写风格的多样性。
- 当前仅聚焦于手写波斯语句子。
- 数据集大小和组成可能随新样本收集而发生变化。
许可协议
请参考数据集仓库中指定的许可协议以了解允许的使用、修改和再分发信息。
引用
若在研究中使用了 DastKhat,请引用该数据集。正式引用将在数据集达到稳定版本时添加。
维护者
- Amir Reza Farahmand
- GitHub: https://github.com/AmirRezaFarahmand
- Hugging Face: https://huggingface.co/MrFarahmand




