Tools that perform Optical Character Recognition (OCR) have much in common with pattern matching and share many of the same underlying techniques such as pattern finding and contour detection.