About receipt-scanner
receipt-scanner is a Python skill for extracting structured fields from receipt images. It supports individual and batch processing, with JSON or CSV output.
Key features
- 01OCR text extraction
- 02Vendor, date, item, amount, tax, and total extraction
- 03JPG, PNG, and PDF support
- 04JSON and CSV export
- 05Batch receipt processing
Use cases
- 01Convert receipt images into structured records
- 02Process a folder of receipts into a CSV file
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dkyazzentwatwa/ chatgpt-skills --skill receipt-scannerAfter installing, type/receipt-scannerin Claude Code to confirm it loaded.
Bundled filesscripts/receipt_scanner.pyscripts/requirements.txt
Details
From the project READMEReceipt Scanner
Extract structured data from receipt images using OCR.
Features
- OCR Processing: Extract text from receipt images
- Data Extraction: Vendor, date, items, amounts, total, tax
- Pattern Matching: Smart regex patterns for receipts
- Multi-Format Support: JPG, PNG, PDF receipts
- JSON/CSV Export: Structured data output
- Batch Processing: Process multiple receipts
CLI Usage
python receipt_scanner.py --input receipt.jpg --output data.json
python receipt_scanner.py --batch receipts/ --output receipts.csv
Dependencies
- pytesseract>=0.3.10
- pillow>=10.0.0
- opencv-python>=4.8.0
- pandas>=2.0.0
Comments
Markdown supported