Giter Club home page Giter Club logo

invoice-data-extraction's Introduction

invoice-data-extraction

Using ML and DL to extract information from documents mostly invoices on Windows platform.

Prerequisites

Python 3.4+ installed globally.

  1. Git LFS - for installation of model weights
  2. Anaconda - for setting up environment

Add conda to path or open the project using the Anaconda prompt. But Anaconda is a heavy utility, you can choose miniconda.

Install miniconda, then add conda to path or open the project using the miniconda prompt

Installing Tessaract OCR:

Install the latest version of tessaract OCR into the C directory and add the path (C:\Program Files \Tesseract-OCR) to both System and User environment variables in Windows. Download the additional eng_layer.traineddata file and add it to C:\Program Files\Tesseract-OCR\tessdata

Install poppler

Running the Code.

  1. Clone the repository or downlaod the zip file from GitHub
 git clone https://github.com/abhayhk2001/document-data-extraction
  1. Open a Terminal window in the same folder as the downloaded code. Create a conda environment from the yml file and activate it as follows
conda env create -f env.yml
conda activate data-extraction
  1. Add the invoice to examples subfolder.

  2. To run the application.

 python main.py --file [filename relative path]
  1. Example
 python main.py --file examples\airtel_june_2012.pdf
  1. Results are stored in results.txt and table.csv within runs/detect/exp* directories.

invoice-data-extraction's People

Contributors

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