A supermarket receipt parser written in Python using tesseract OCR
Project description
A fuzzy receipt parser written in Python
This is a fuzzy receipt parser written in Python. It extracts information like the shop, the date, and the total from scanned receipts. It can work as a standalone script or as part of our IOS and Android application.
Dependencies
The receipt-parser-core
library depend on imagemagick
. Please install imagemagick
with your favorite package manager.
Usage
To convert all images from the data/img/
folder to text using tesseract and parse the resulting text files, run
make run
Docker
A Dockerfile
is available with all dependencies needed to run the program.
To build the image, run
make docker-build
To run it on the sample files, try
make docker-run
By default, running the image will execute the make run
command. To use with your own images, run the following:
docker run -v <path_to_input_images>:/usr/src/app/data/img mre0/receipt_parser
History
This project started as a hackathon idea. Read more about it on the trivago techblog. Also read the comments on HackerNews There's also a talk about the project. The library is now available at PyPi.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for receipt_parser_core-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc7f0b423196e1902e434fc6046b47857885c4c17db38067cc41f372dbbce9c |
|
MD5 | ebb1c891bdd187c6656abc2d9c403439 |
|
BLAKE2b-256 | 4e12306900799fc3e3e2d722f6a95d209f90aea29eb02da43caefd8eb969ef4f |
Hashes for receipt_parser_core-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2473a86e8baeaa9692b9ddc924c71ad94255b9bbc14165727517f252f3c4e8a5 |
|
MD5 | daea7e050dc754058a4b6c85f997b2e0 |
|
BLAKE2b-256 | c0737aceb25df06fceab954e8c974680cf321c93aafe3305b6e8b70ad0615dcc |