Giter Site home page Giter Site logo

tax_receipt's Introduction

Brazilian Tax Receipt Reader

Read a QR Code from a picture of the brazilian tax receipt.

Warning: This only works for BRAZILIAN tax receipt!

Getting Started

These instructions will guide you to copy the project and running on your local machine.

Prerequisites

Python 3.8.1 or higher must be installed.

Installing

  • Download the project "tax_receipt".
  • Install the libraries, use requirements.txt for automatic installation:
pip install -r requirements.txt

How to Use

  • Put a tax receipt in input folder (path_in_image).
  • Run the program (python tax_receipt\tax_receipt.py).

Obs: You can try the project with files from sample folder. This folder contains 3 files, 2 tax receipts (sample 1 and sample 2) and 1 similar to tax receipt (sample 3).

How It Works

  • Read a picture of the brazilian tax receipt from input folder (path_in_image).
  • Generate a unique identifier (uuid4) for the operation.
  • Try to read QR Code:
    • Success: Write the uuid and information extracted from QR Code in tax_receipt.csv - a text file semicolon separated - on output directory (path_out_image).
    • Fail: Do not write the uuid in a CSV file on output directory (path_out_image).
  • When the process end, it renames the picture with uuid and move to output directory (path_out_file).

Versioning

The project use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Leonardo Cezar - Initial work - paaarx

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Roadmap

  • Improve validation from QR Code values
  • Let the input and output folders be defined in a Yaml file.
  • Create more types of "writers" (default is csv), as json or database.

Additional Info

  • Initially, it was my first idea for the Dev For a Change hackathon, when donors send pictures of the tax receipt via Whatsapp or Facebook Messenger, this solution automates the extraction of information from the tax receipt to fill out the forms and send it to the government. Unfortunately it was discarded.

Donations

Toss a coin to your Witcher.

tax_receipt's People

Contributors

paaarx avatar

Stargazers

 avatar

Watchers

 avatar  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.