Skip to content

Implementation of handwriting recognition using machine learning.

Notifications You must be signed in to change notification settings

jcsison/handwriting-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

handwriting-recognition

Implementation of handwriting recognition using machine learning.

Requirements

Instructions

Training

Before training, ensure that emnist-byclass.mat from the EMNIST dataset is stored within the data/ directory.

Run the training script using:

python3 train.py

A model h5, YAML, and Pickle file will be generated within the model/ directory.

Prediction

Once the model has been created, a handwritten character images can be predicted by running:

python3 predict.py [file1] ...

Note: multiple files can be predicted in one instance and a wildcard * can be used to process all files within a directory.

Drawing Prediction GUI

A Tkinter GUI with a drawing canvas has been created to test the model implementation more easily. This can be started with the command:

python3 draw_gui.py

To-do

  • GUI testing environment for live demo
  • Train on byclass dataset
  • Improve prediction accuracy (should improve after switching to byclass)
  • Compare byclass with other EMNIST datasets
  • Improve image preprocessing
  • Train using other learning algorithms (if time permits)
    • SVM
    • Random forest
  • Image process strings of letters (if time permits)

About

Implementation of handwriting recognition using machine learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages