CoolFace
Datasetpublic

samarth010/nano-receipts

๐Ÿงพ Nano Receipts Dataset A diverse collection of 2428 hyper-realistic synthetic receipt images generated using state-of-the-art text-to-image AI models. ๐Ÿš€ Quick Start from datasets import load_dataset # Load dataset (fast parquet format!) dataset = load_dataset("34data/nano-receipts") # Access images image = dataset["train"][0]["image"] # PIL Image filename = dataset["train"][0]["filename"] ๐Ÿ“Š Dataset Details Total Images: 2428 receiptsโ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/samarth010/nano-receipts.

sourceHugging Facemitupdated 26d agoView on Hugging Face
0likes70downloads
Dataset Card

๐Ÿงพ Nano Receipts Dataset

A diverse collection of 2428 hyper-realistic synthetic receipt images generated using state-of-the-art text-to-image AI models.

๐Ÿš€ Quick Start

python
from datasets import load_dataset

# Load dataset (fast parquet format!)
dataset = load_dataset("34data/nano-receipts")

# Access images
image = dataset["train"][0]["image"]  # PIL Image
filename = dataset["train"][0]["filename"]

๐Ÿ“Š Dataset Details

  • โ€”Total Images: 2428 receipts
  • โ€”Format: Parquet (optimized for fast loading)
  • โ€”Image Format: PNG
  • โ€”Generation: Text-to-image synthesis (Google Gemini 2.5 Flash Image)
  • โ€”Quality: Hyper-realistic synthetic receipts

๐Ÿช Receipt Types (28+ Categories)

Physical Receipts (Thermal Printed)

  • โ€”๐Ÿ›’ Retail (Walmart, Target, CVS, Walgreens, etc.)
  • โ€”๐Ÿฝ๏ธ Restaurants (casual & fine dining)
  • โ€”๐Ÿ” Fast Food (McDonald's, Burger King, Taco Bell, etc.)
  • โ€”โ˜• Coffee Shops (Starbucks, Dunkin', Peet's, etc.)
  • โ€”โ›ฝ Gas Stations (Shell, Chevron, Exxon, etc.)
  • โ€”๐Ÿ…ฟ๏ธ Parking receipts
  • โ€”๐Ÿ’Š Pharmacies
  • โ€”โœ‚๏ธ Salons & beauty services
  • โ€”๐Ÿš— Car washes

Digital Receipts & Confirmations

  • โ€”๐Ÿš• Rideshare (Uber, Lyft)
  • โ€”๐Ÿ• Food Delivery (DoorDash, Uber Eats, Grubhub)
  • โ€”๐Ÿ“ฆ E-commerce (Amazon, eBay, Etsy, Walmart.com)
  • โ€”๐Ÿ“บ Subscriptions (Netflix, Spotify, Adobe, etc.)
  • โ€”๐Ÿ’ธ Money Transfers (Venmo, PayPal, Zelle, Cash App)
  • โ€”๐Ÿ›ฃ๏ธ Toll Roads (E-ZPass, FasTrak, SunPass)

Service Invoices

  • โ€”๐Ÿฅ Medical billing statements
  • โ€”๐Ÿ’ก Utility bills (electric, gas, water)
  • โ€”๐Ÿจ Hotel folios
  • โ€”โœˆ๏ธ Airline e-tickets
  • โ€”๐Ÿ”ง Car service & repairs
  • โ€”๐Ÿ  Home services (plumbing, electrical, cleaning)
  • โ€”๐Ÿš™ Car rentals (Hertz, Enterprise, Budget, Avis)
  • โ€”๐Ÿพ Pet services (grooming, vet, boarding)
  • โ€”๐Ÿ’ช Gym memberships
  • โ€”๐ŸŽฌ Entertainment tickets

Financial Documents

  • โ€”๐Ÿง ATM transaction receipts
  • โ€”๐Ÿ“ฎ Shipping receipts (USPS, FedEx, UPS, DHL)

๐ŸŽฏ Use Cases

  • โ€”Receipt OCR Training: Train and test OCR models on diverse receipt formats
  • โ€”Document Classification: Multi-class receipt type classification
  • โ€”Layout Analysis: Study receipt structure and layout patterns
  • โ€”Expense Tracking AI: Build automated expense categorization systems
  • โ€”Financial Document Understanding: Train models to understand financial documents
  • โ€”Fraud Detection: Develop receipt authenticity verification systems
  • โ€”Mobile Banking Apps: Test receipt scanning features
  • โ€”Accounting Software: Receipt parsing and data extraction

๐Ÿ“ Dataset Structure

python
Dataset({
    features: ['image', 'filename', 'receipt_id'],
    num_rows: 2428
})
  • โ€”image: PIL Image object (PNG format)
  • โ€”filename: Original filename (e.g., receipt_t2i_000123.png)
  • โ€”receipt_id: Sequential ID extracted from filename

โšก Why Parquet Format?

This dataset uses Parquet format for optimal performance:

  • โ€”10-100x faster loading compared to individual image files
  • โ€”Efficient storage with automatic compression
  • โ€”Streaming support for large datasets
  • โ€”Direct integration with HF datasets library
  • โ€”Zero-copy reads for maximum speed

๐Ÿ”ง Generation Process

Each receipt was generated with detailed prompts specifying:

  • โ€”Business/service name and realistic locations
  • โ€”Transaction dates and times
  • โ€”Itemized purchases or services
  • โ€”Realistic pricing, taxes, and totals
  • โ€”Payment methods (cash, credit card, digital)
  • โ€”Authentic formatting for each receipt type
  • โ€”Format-appropriate rendering (thermal, digital, printed)

๐Ÿ“ License

MIT License - Free to use for commercial and non-commercial purposes.

๐Ÿ”„ Updates

This dataset is actively maintained. To add more receipts:

bash
# Generate more receipts
python3 generate_receipts_t2i.py

# Upload incrementally
python3 upload_to_hf_parquet.py

๐Ÿ“š Citation

bibtex
@dataset{nano_receipts_2024,
  title={Nano Receipts: Synthetic Receipt Dataset},
  author={34data},
  year={2024},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/34data/nano-receipts}
}

๐Ÿค Contributing

Found an issue or want to contribute? Open an issue on the repository.


Generated with โค๏ธ using AI text-to-image models