Giter Club home page Giter Club logo

mlnd-capstone's Introduction

MLND-Capstone: Photo OCR Prototype

In this capstone project I present the prototype of a photo OCR (optical character recognition) pipeline based on a sliding window algorithm that is able to automatically detect and parse text (digits) in images. The CNN classifiers used in the pipeline have been trained on images synthesized from a large collection of fonts. A demo application is included that detects/transcribes digits from a webcam.

Instructions

  • Report.pdf
  • Execute prepare_project.py, which will download and extract fonts from https://github.com/google/fonts and will create a font cache.
  • Run demo.py with a webcam connected to the computer. Digits will be detected/transcribed in the webcam feed. Requires GPU!
  • Test the whole OCR pipeline with test_ocr.py. This will randomly create images with digit sequences that are then detected/transcribed.
  • Test the character segmentation on randomly generated text bounding boxes with test_segmentation.py. Will place test images in TestImagesSegmentation.
  • Test the separate classifiers with test_classifiers.py, randomly generated test images are generated. Some examples are collected in test/classifier.png, test/segmentation.png and test/detection.png.
  • Test the character classifier on svhn test images: test_char_classifier_on_svhn_test_data.py. This will download test.tar.gz from http://ufldl.stanford.edu/housenumbers/ (264Mb). Some examples of the test images are collected in svhn/test.png.

Dependencies

  • keras / tensorflow
  • OpenCV
  • Pillow
  • numpy
  • python-levenshtein

mlnd-capstone's People

Contributors

wolfgangsteiner avatar

Stargazers

Ivy Liu avatar Tong Zou avatar Thomas C. Corcoran avatar

Watchers

James Cloos avatar  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.