I have included all the project files on my github page.
Here's the link: https://github.com/sharath1231/Character-Recognition-using-OCR/tree/master
For the templates you can use MATLAB OCR templates: http://www.mathworks.com/matlabcentral/fileexchange/18169-optical-character-recognition--ocr-/all_files