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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392173a6cf4f7d8f5aded9d132ad0a80b4d504a04691a1ef191f23631476f555 |
|
MD5 | f1ef76769abfa6dee177d519382dbc20 |
|
BLAKE2b-256 | c9c24c0439f186cf17329aadab4cdd2fc4dfc5d89c2a85b279111fd11577b0b2 |
Hashes for receipt_parser_core-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de8faa7781e57e876c6c3f5e71bd5bd4aab41fb7f3e9e09bd415abc5cba86f4 |
|
MD5 | e3e975bef02e0bf11eb07befb98c7717 |
|
BLAKE2b-256 | 8d411d46605cf4800fac545582c9e4fcc14d91778205023afabec714b16383e1 |