Persian Pixel
收藏资源简介:
Persian Pixel是由研究团队创建的大规模波斯语合成OCR数据集,旨在解决波斯语因书写系统复杂和高质量标注数据稀缺而导致的OCR技术发展滞后问题。该数据集包含超过34.3万对高保真图像-文本对,覆盖句子、段落和完整页面布局,其文本来源于精心整理的700万词波斯语语料库,并利用SynthOCR-Gen渲染框架生成了逼真的图像。数据生成过程精确模拟了波斯文字的连笔、上下文相关的字形变体、变音符号位置以及多种代表性字体,同时通过超过25种随机退化模型模拟真实文档的扫描瑕疵、墨迹渗透、纸张老化等噪声,以弥合合成与真实数据的域差距。该数据集主要应用于训练和微调现代OCR架构(如TrOCR、Donut),支持波斯语文档分析、历史手稿数字化及端到端文档理解等研究,为低资源、字形复杂的文字识别提供了可扩展且经济高效的解决方案。
Persian Pixel is a large-scale synthetic Persian OCR dataset created by a research team, aiming to address the lagging development of OCR technologies for Persian caused by its complex writing system and the scarcity of high-quality annotated data. This dataset contains over 343,000 pairs of high-fidelity image-text pairs, covering sentences, paragraphs, and full page layouts. Its text is sourced from a meticulously curated 7-million-word Persian corpus, and realistic images are generated using the SynthOCR-Gen rendering framework. The data generation process accurately simulates Persian script features including connected strokes, context-dependent glyph variants, diacritic positions, and a variety of representative fonts. Meanwhile, over 25 random degradation models are employed to simulate noises in real documents such as scanning artifacts, ink bleed, paper aging and other imperfections, so as to bridge the domain gap between synthetic and real-world data. This dataset is mainly used for training and fine-tuning modern OCR architectures such as TrOCR and Donut, supporting research in Persian document analysis, historical manuscript digitization, end-to-end document understanding and other fields. It provides a scalable and cost-effective solution for low-resource, glyph-complex text recognition tasks.
数据集概述:Persian Pixel
Persian Pixel 是一个为波斯语/法尔西语(fa)设计的合成光学字符识别(OCR)数据集。该数据集通过程序化渲染将 Unicode 文本转换为图像,并配以精确的转录文本,适用于 OCR 识别、图像到文本建模、微调和评估等工作流程。
关键属性
| 属性 | 值 |
|---|---|
| 语言 | 波斯语 / 法尔西语 (fa) |
| 文字系统 | 波斯-阿拉伯字母 |
| 模态 | 图像 → 文本 (OCR) |
| 数据来源 | 合成(字体渲染) |
总样本数 (full) |
343,246 |
| 许可证 | CC BY-ND 4.0 |
数据集配置与规模
数据集按照渲染的粒度组织为不同的配置,另有一个 full 配置合并了所有子集。
| 配置 | 描述 | 样本数 | 典型宽度 |
|---|---|---|---|
sentence |
短句/句子级别裁剪 | 251,000 | 640 px |
paragraph |
多行段落块 | 110,138 | 512 px |
page |
整页级别渲染 | 31,108 | 768 px |
full |
以上三个配置的合并 | 343,246 | — |
数据格式:共 320 个 Parquet 分片文件,总大小约 31.8 GB。
Page 配置统计信息:
| 指标 | 最小值 | 最大值 | 平均值 |
|---|---|---|---|
| 高度 (px) | 38 | 1100 | 597.92 |
| 文本长度 (字符数) | 13 | 1896 | 824.22 |
| 行数 | 2 | 75 | 7.88 |
数据字段
所有配置共享相同的字段模式:
| 字段 | 类型 | 描述 |
|---|---|---|
bytes |
bytes |
编码后的图像字节 |
path |
string |
图像路径/名称 |
text |
string |
精确的波斯语 Unicode OCR 目标转录文本 |
sample_type |
string |
样本类型 (sentence, paragraph, 或 page) |
source_run_id |
string |
内部生成/发布运行标识符 |
image_path |
string |
原始相对图像路径 |
width |
int |
渲染图像的宽度 (像素) |
height |
int |
渲染图像的高度 (像素) |
text_chars |
int |
text 中的 Unicode 字符数 |
line_count |
int |
标签中的文本行数 |
推荐使用场景
- 微调图像到文本和 OCR 模型,如 TrOCR、Donut、BLIP-2 和 PaliGemma 风格的解码器。
- 在引入含有噪声的扫描或拍摄的 OCR 语料库之前,进行预训练或课程学习阶段。
- 在波斯-阿拉伯文字上评估归一化、解码和后处理校正流程。
- 在受控的合成条件下,针对不同的行数对波斯文本识别进行基准测试。
局限与注意事项
- 此为合成 OCR 数据,在真实扫描、照片或手写场景上的性能无法保障,需在领域数据上验证。
- 合成渲染可能引入伪影、异常换行、标点变化或源文本噪声。
paragraph和page配置包含较长的多行标签和大尺寸图像,建议始终通过datasets库使用,而非直接解析。

- 1Persian Pixel: A large-scale synthetic OCR dataset for Persian language · 2026年



