Datasets:
Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html>
<h"... is not valid JSON
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.
ποΈ Legend-OCR Dataset
Welcome to the Legend-OCR dataset! This is a highly robust, synthetically generated Vision dataset designed specifically for training Optical Character Recognition (OCR) models and Vision-Language Models (VLMs) like TrOCR, Florence-2, LLaVA, and Qwen-VL.
π Dataset Overview
- Name: Legend-OCR
- Type: Synthetic Vision-Text Pair
- Size: 100,000 High-Quality Images (Configurable)
- Format: Parquet (Embedded PNG Bytes + String Text)
- Task: Image-to-Text / OCR
- Characters Covered: Alphabets (A-Z, a-z), Numbers (0-9), and all standard Punctuation/Symbols.
π Key Features & Generation Logic
This dataset was procedurally generated using Python (PIL) with advanced randomization techniques to make the AI models robust against real-world variations:
- Massive Font Variety: Uses multiple Linux-native fonts (
Ubuntu,Roboto,Noto,Liberation) encompassing Regular, Bold, Italic, and Thin styles. - Dynamic Text Lengths:
- 30% of the dataset features Single Characters (perfect for basic symbol recognition and bounding box training).
- 70% features 10 to 20 Characters (perfect for word and sentence-level context recognition).
- High-Contrast Backgrounds:
- 50% Images: Dark Background with Light/White Text.
- 50% Images: Light Background with Dark/Black Text.
- Dynamic Image Sizing: Bounding boxes and image canvas sizes scale automatically based on text length and randomized padding, teaching the model to focus on the subject rather than a fixed aspect ratio.
- Zero Hallucination: Since the dataset is synthetically generated natively in code, the ground truth text has a 100% accuracy rate.
π Dataset Structure
Under the hood, the dataset is saved in highly compressed Parquet format. The schema looks like this:
{
"image": {
"bytes": "\u0089PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR...",
"path": null
},
"text": "Hello@123!"
}
- Downloads last month
- 65