Giter Site home page Giter Site logo

business-card-reader's Introduction

Business Card Reader

Reads the given business card image using image processing. Extracted text then filtered out using regex:

  1. URL
  2. E-Mail
  3. Phone Number

Text classifier used to extract:

  1. Name
  2. Organization

The image is modified to get better results from the image processing. Few forms of noise reduction, binarization, and thresh is tested out in the driver. You can use my business card image under test_image/4.JPG to test the driver.

Libraries Needed

  • cv2
  • numpy
  • re
  • spacy
  • displacy from spacy --> Optional
  • filter_re

How to Run?

  • After installing the libraries using 'pip install libraryname' (except filter_re), simply run the driver using 'python driver.py'.
  • You can try different images and train your own spacy model for better accuracy.
  • Use filter_re for different regex filters.
  • If you don't have GPU, you must comment out the line 110 so that it doesn't try to use your GPU.

Future Work

This is written to be part of a backend code for future projects. Current code is only good for testing. Improvements needed in the text classifier, and image processor. I plan to push the Flask API code which will use improved version of this code.

business-card-reader's People

Contributors

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