Sounds like an approach that could work...
There are hundreds (thousands?) of OCR methods out there, they're not trivial, and they're very difficult to generalized. Pick one that you think you can handle, read about it and ask specific MATLAB related questions here.
As a whole, template matching algorithms are easier than other options and should help you at least getting started.