Giter VIP home page Giter VIP logo

receiptscanner's Introduction

receiptScanner

About

Almost all of us have gone through the tedious process of filing expense claims, which involves copying over information from the receipt to the claims form. Not only is this process painstaking, but made even worse when you cannot simply Ctrl-C and Ctrl-V information from the receipt because the file is an image.

I myself have been through this before, as such I decided to make receiptScanner; An Automatic Receipt Parser to address this. receiptScanner is able to extract necessary information from a receipt that you will most likely need to file for expense claims, such as "Receipt No, Total Amount Paid, Date of Expense made" etc. This information will be saved as a .csv file

Acknowledgement

This repo's source code is heavily based on the invoice2data, so I would like to thank the authors for creating the original package.

Getting Started

1. Requirements.

Install the necessary required packages through the provided requirements.txt file using Anaconda prompt.

pip install -r requirements.txt

This repo uses Tesseract-OCR, to install Tesseract-OCR for Windows, visit the following link and download the appropriate Tesseract installer .exe depending on your computer specs. If Tesseract-OCR is successfully installed, you should find a folder labelled Tesseract-OCR under C:\Program Files\Tesseract-OCR.

Note that some have reported it being found under C:\Program Files (x86) or C:\Users\USER\AppData\Local\Tesseract-OCR instead. Do take note if you are unable to locate it under C:\Program Files as originally expected.

2. Installation.

  • Clone this repo:
git clone https://github.com/leonardlohky/receiptScanner

Usage

Similar to the original invoice2data package, receipt scanner extracts texts from receipt PDF files or images using Tesseract. After that, it searches for regex in the extracted text using a YAML-based template system to extract the necessary field data. It then saves the result as a CSV file.

To run the application, navigate to the location of main.py script and type in the following in an Anaconda prompt.

cd src\receiptScanner
python main.py <INPUT_FILES_OR_FOLDER>

#Example
python main.py .../docs/receipt1.pdf
python main.py .../doc/receipts_folder

License

Distributed under the MIT License

receiptscanner's People

Contributors

leonardlohky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.