Skip to main content

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.

Metadata

Release files for receipt-parser-core 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for receipt-parser-core 0.2.5
File Size Uploaded
receipt_parser_core-0.2.5.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for receipt-parser-core 0.2.5
File Interpreter ABI Platform
receipt_parser_core-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / receipt_parser_core-0.2.5.tar.gz

Download URL receipt_parser_core-0.2.5.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fbe1eecf75f3c7ae19aebf6b510d4314df5ed6b318c912902bb1a59cf76400a8
BLAKE2b-256 checksum
How to use checksums
f553f564340519bc71a27ddba58ed2f20b2dbeb52fc4c2b06ca7a5b09cae8c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.4-arch1-2

Release files / receipt_parser_core-0.2.5-py3-none-any.whl

Download URL receipt_parser_core-0.2.5-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dab82af428e33e56f339873979c22c2c967292dc872594594d2c0d7cf6f85c83
BLAKE2b-256 checksum
How to use checksums
b4bad7635ce2410e2be48f3acb2d818272027c0132e99a2ef0bfab866ae8afe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.12.4-arch1-2

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page