Receipt ocr extract

From XuShuwenn/RedAct · View interactive version

Receipt ocr extract is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Extract dates and final totals from OCR text of receipts and produce a strict single-sheet spreadsheet.

How to use this skill

Skill file

Receipt OCR Extraction and Strict Spreadsheet Output

This skill provides a reusable workflow to OCR scanned receipts, robustly parse the transaction date and final total amount, and write a single-sheet spreadsheet that exactly matches strict format requirements.

Use this when you need to:

When to Use

Core Workflow

  1. Inspect a few sample receipts
  1. OCR pipeline per image
  1. Parse date
  1. Parse final total amount using prioritized keyword matching
  1. Assemble results
  1. Write the spreadsheet

Verification

Perform programmatic checks before finalizing:

Suggested quick verification snippet (Python, pseudo-structure):

Common Pitfalls and Concrete Avoidance Steps

Optional Script Usage

This repository includes a generic helper module that encapsulates OCR, date parsing, and total extraction logic. You can import it into your task-specific runner script.

Example (pseudo):

The helper functions implement prioritized keyword matching, exclusions, next-line fallback, and amount normalization.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.