The reading pipeline
Before a single letter is read, the image is cleaned: background and paper texture are separated from the ink, the page is straightened, and lines of writing are located. Each line is split into words, and each word is matched against common letter forms. Surrounding words then help settle ambiguous characters, which is why a whole word is often read correctly even when individual letters are unclear.