Deep Learning for Invoice Information Extraction

I am very new to the field of Deep learning, can you guys please help me with an idea to extract invoice information from invoice using the Deep learning.
I would like to use unsupervised learning with unlabeled data. For Image/PDF to text extraction
I have used Amazon textract api.

Santosh H

Tesseract OCR is one of the best OCR models available, however it does give some funky outputs depending on the input image
A few basic OpenCV operations can be used on the input images like negative thresholding ie turning the background black and test white, image straightening, etc

Hey buddy!
From what I have I understood, I think you only need to extract information regarding a product(or service) that has it’s name on the invoice and (information relating to it, maybe price and quantity).

I just want to say, you don’t need deep learning for that. You can use a library (pdf miner, in my opinion) to extract relevant information from PDF, and then use it. It would be a lot more complex without it and won’t worth the effort and time.

If you need any help, do reply and I’ll try my level best to make things moving for you.
All the best!

For this you have to create a data set which contains these classes:

  1. Text
  2. Heading
  3. Bold Paragraph
  4. Table
  5. Form
  6. Histogram
  7. Pie Chart
  8. Image
  9. others

then you can use Object detection based algorithms like:

  1. Faster R CNN,
  2. SSD,
  3. DSSD,
  4. Yolov3,
  5. tiny-yolov3,
  6. RetinaNet

then After detecting all above classes. you will get bounding boxes.
Use Opencv4 to crop all classes.

  1. Text - Use tesseract to get Text data
  2. Heading - Use tesseract to get heading data
  3. Bold Paragraph - Use tesseract to get bold paragraph data
  4. Image - use the tesseract to extract data
  5. for table , histogram and pie chart - use seq2seq model to generate the structure(table structure, pie chart structure, histogram structure).

Object detection works on images, so convert documents into images.

Some Library available on the web:

Table Detection:
Document structure detection(text,heading,dump for of table):

© Copyright 2013-2019 Analytics Vidhya