JosephCatrambone / receipt_scan

A small experimental api to convert receipts into structured JSON.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receipt Scan

Just playing around with structured LLM generation and OCR.

An image of assorted receipts, some handwritten, and the resulting structured JSON.

Setting Up (Dev):

# Clone the repo:
git clone https://github.com/JosephCatrambone/receipt_scan
# OR
git clone git@github.com:JosephCatrambone/receipt_scan.git

# Initialize your virtual environment

# Install the requirements:
pip install -r ./requirements.txt

# Install fastapi-cli
pip install fastapi-cli

# Define your OpenAI API keys:
export OPENAI_API_KEY="not-a-real-api-key"
# OR
export SELF_HOSTED="true"

# Serve:
fastapi dev

# Access the site at http://localhost:8000

About

A small experimental api to convert receipts into structured JSON.

License:MIT License


Languages

Language:Python 94.9%Language:Dockerfile 5.1%