GithubHelp home page GithubHelp logo

ptinvoiceautomation's Introduction

PtInvoiceParser

Starting on January 2022 all invoices in Portugal started to be issued with a QR code containing most of the information of the invoice.

This projects explores two different ways to parse this invoices. One built with Rust that provides a simple GUI where invoices can be grabbed from the camera or from the screen and another built with Python that parses invoices from a folder, ideal for batch processing.

Rust Invoice Parser

Rust Invoice Parser

The main motivation for building this application was to learn Rust and to explore the possibility of building multi threaded GUI application with a glimpse of computer vision.

This application uses OpenCV with 2 threads to grab images from the screen or from the camera, parse the QR code and then displaying the contents of it on the screen.

In addition to that, it provides a way determine the subset of invoices that best matches a specific values, this can be usefull for Bank reconciliations in the accounting department.

Building

To build the project it might be needed to install OpenCV libraries. Head over to OpenCV installation guidelines

Python Invoice Parser

This is a command line tool that uses OpenCV to capture images from a specific file or directory, parse any QR codes present, and stores their content as table in an excel sheet that can be later used for analysis.

Installing

Clone the repository and install the package:

cd python && pip install .

Usage

ptinvoiceparser -d /path/to/invoices
ptinvoiceparser -f invoice.pdf

ptinvoiceautomation's People

Contributors

downd avatar

Watchers

 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.