GithubHelp home page GithubHelp logo

charmichokshi / optical-character-recognition Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.44 MB

Detecting boxes and extract them one by one accurately for all PDFs of invoice to extract text within it like consignee and shipper name & address.

Shell 100.00%

optical-character-recognition's Introduction

Optical-Character-Recognition

Detecting boxes and extract them one by one accurately for all PDFs of invoice to extract text within it like consignee and shipper name & address.

Algorithm:

  • Convert PDF to PNG
  • Apply morphological operations. I have defined two kernels.
    1. Kernel to detect horizontal lines.
    2. Kernel to detect vertical lines.
  • Add the output of this two images which will detect all the boxes
  • Crop all boxes which have height and width in a specific range and apply OCR on them to detect text

Naming convention:

  • input: should have the input PDFs
  • outputPNG: it will store PNG with respect to every PDF file
  • Cropped: contains cropped images after applying morphological operations and text file generated after applying OCR

Input: Input

Cropped boxes a a

Extracted Consignee's Text

M/S JEENA & COMPANY JEENA HOUSE PLOT 170 OM NAGAR OFF PIPELINE ROAD SAGAR ANDHERI E MUMBAI 400 099 INDIA MR. SHIRISH BAADKAR 91 22 44222111

Extracted Shipper's Text

TRANSGROUP INTERNATIONAL 140 Eastern Ave Chelsea, MA 02150 (617) 889-5089

optical-character-recognition's People

Contributors

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