Skip to content

Latest commit

 

History

History

digit_recognition

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Digit recognition

License: MIT openCV version
A program to recognize handwritten number digit

How to use

Test the detection:

python3 digit.py

The draw interface comes from this StackOverflow question
Draw a number and you will obtain something like this:
result

How it works

  • Generate the digits set
  • Find contour to get separated digit
  • Draw a number
  • Dilate the drawed number
  • Make a ROI of the drawed dilated number
  • Apply digit_img AND (scaled_roi XOR digit_img)
  • The match is given by the highest percent loss of white pixel

processing