Giter VIP home page Giter VIP logo

cardscan's Introduction

cardscan

Python command-line tool to parse scanned documents with cards to various data structures

features:

  • Reads cards from any valid image source for SimpleCV (Currently expects 300 dpi images)
  • Outputs a yaml or json data structure
  • Reads multiple cards from a single image (Multiple cards on the scanbed)

Supported cards:

  • Dutch personal indentification card
  • Dutch driving licence

Installation

cardscan depends on python2.7, SimpleCV, pyyaml, tesseract-ocr and python-tesseract

$ sudo apt-get install python2 tesseract-ocr
# simplecv instructions
$ sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools python-pip
$ sudo pip install https://github.com/sightmachine/SimpleCV/zipball/develop
# python-tesseract installation
$ wget "https://bitbucket.org/3togo/python-tesseract/downloads/python-tesseract_0.9-0.3ubuntu0_amd64.deb"
$ sudo dpkg -i python-tesseract_0.9-0.3ubuntu0_amd64.deb
$ sudo apt-get -f install
# pyyaml installation
$ sudo pip install pyyaml
# cardscan installation
$ git clone [email protected]:MartijnBraam/cardscan.git
$ cd cardscan
$ echo ":)"

Example output

This is censored example output from a scan of a dutch indentification card

- card:
    class: personal-indentification
    type: nl.government.idcard
  authority: Burg. van Midden-Drenthe
  country: nl
  documentId: ********
  person:
    birth: {date: '1900-01-01', place: Amsterdam}
    gender: male
    givenNames: Example First Names
    height: 1.92
    nationality: Nederlandse
    personalId: ********
    surname: Example-Lastname
  validity: 
    start: 2012-1-09
    end: 2017-1-09

cardscan's People

Contributors

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