ms42Q / receipt-to-json

Converts paper receipts to JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receipt to JSON

Description

Paper receipts you get from grocery stores are an insult to modern technology. If your local store does not provide an API via which you can access your spending history, you have to collect all your bills and manually copy all positions to your budgeting app.

With "Receipt to JSON" you have to struggle no more. Just take a photo of your receipt, pour it into the receipt engine and receive a dictionary containing all the information you need to process your spendings further.

Usage

Receipt to json relies on OpenCV2, tesseract-ocr and jsoncpp. In case you use GNU/Linux, you may install those dependencies via the package management.

# apt-get install tesseract-ocr-dev tesseract-ocr-deu libjsoncpp-dev libopencv-dev opencv-data
# cmake ./
# make
# ./example "/path/to/your/receipt/image.jpg"

Features

  • Input images are improved for OCR. There is a high chance "sloppy" photos will work fine.
  • Output format: JSON
  • Output contains:
    • Total amount
    • Date of purchase
    • Positions (amount, price, name)
  • Free and OpenSource

About

This Project was started at the FH-Aachen - University of Applied Sciences, in line with the image processing lecture held by Prof. Scholl in 2016/2017.

About

Converts paper receipts to JSON

License:GNU General Public License v3.0


Languages

Language:C++ 98.2%Language:CMake 1.8%