tomdewildt / receipt-scanner

Simple API to convert a picture of a receipt to a structured response

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receipt Scanner

Build License

Simple API to convert a picture of a receipt to a structured response using Pytesseract.

How To Run

Prerequisites:

  • docker version 20.10.8 or later
  • make version 4.2.1 or later (optional)

Development

  1. Run docker run --rm -it -p 8080:8080 -v src:/opt/service/src --name tomdewildt_receipt_scanner_dev tomdewildt_receipt_scanner_dev:latest or make build/dev to build the container (optional).
  2. Run docker build --tag tomdewildt_receipt_scanner_dev:latest --file Dockerfile.dev . or make run/dev to start the container.

Run make init to install the requirements for the service on your local machine (optional).

Production

  1. Run docker run --rm -it -p 8080:8080 -v src:/opt/service/src --name tomdewildt_receipt_scanner_prod tomdewildt_receipt_scanner_prod:latest or make build/dev to build the container (optional).
  2. Run docker build --tag tomdewildt_receipt_scanner_prod:latest --file Dockerfile.prod . or make run/dev to start the container.

References

Python Docs

Pytesseract Docs

Flask Web Framework Docs

Black Formatter Docs

Pylint Linter Docs

Pytest Docs

Docker Docs

Dockerfile Docs

Receipt OCR Part 1

Receipt OCR Part 2

Regex101

About

Simple API to convert a picture of a receipt to a structured response

License:MIT License


Languages

Language:Jupyter Notebook 99.4%Language:Python 0.5%Language:Makefile 0.1%