Optical Character Recognition (OCR) with template matching