I am developing an application to read the letters and numbers from an image using opencv in c++. I first changed the given colour image and colour template to binary image, the
See my answer to How to read time from recorded surveillance camera video? You can/should use cvMatchTemplate() to do that.
cvMatchTemplate()