## templates file matlab

good morning people

i am trying to create a new ocr program at matlab that it will take a jpg picture and only recognize zero and one numbers and then print them to a txt file. doing some googling i found out some interesting algorithms. the faster is one that takes the picture and compares it with some templates to decide which letter or number is. the problem is that trying to create my own templates file that it will help me complete the work. below i post the code using all 36 templates. if you have any idea how i could make it work for 2 numbers only please help

Code:
%CREATE TEMPLATES
%Letter
%Number
%*-*-*-*-*-*-*-*-*-*-*-
letter=[A B C D E F G H I J K L M...
N O P Q R S T U V W X Y Z];
number=[one two three four five...
six seven eight nine zero];
character=[letter number];
templates=mat2cell(character,42,[24 24 24 24 24 24 24 ...
24 24 24 24 24 24 24 ...
24 24 24 24 24 24 24 ...
24 24 24 24 24 24 24 ...
24 24 24 24 24 24 24 24]);
save ('templates','templates')
clear all