bikz05 / digit-recognition

Handwritten Digit Recognition using OpenCV, sklearn and Python
131 stars 90 forks source link

Digit Recognition

Handwritten Digit Recognition using OpenCV, sklearn and Python | Video

Check out the blog post here for complete notes on how the code works.

Dependencies

  1. cv2
  2. sklearn
  3. skimage
  4. numpy
  5. collections

Contents

This repository contains the following files-

  1. generateClassifier.py - Python Script to create the classifier file digits_cls.pkl.
  2. performRecognition.py - Python Script to test the classifier.
  3. digits_cls.pkl - Classifier file for digit recognition.
  4. photo_1.jpg - Test image number 1 to test the classifier
  5. photo_2.jpg - Test image numbre 2 to test the classifier

Usage

NOTE - I have already created the digits_cls.pkl, so this step is not necessary.

python generateClassifier.py

Results

Sample Image 1

Result Number 1

Sample Image 2

Result Number 2

TODO