A program to recognize handwritten number digit
Test the detection:
python3 digit.py
The draw interface comes from this StackOverflow question
Draw a number and you will obtain something like this:
- 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