1. A computer-implemented method, comprising: receiving an output from an optical character recognition (OCR) performed on an image; determining, from the output, first values associated with a first pixel region of the image and second values associated with a second pixel region of the image; determining a character string indicative of a text entity from the output when one or more differences between the first values and the second values exceeds a threshold; assigning each character of the character string to a character class to produce a character class string; identifying the character string as being the text entity; identifying a text entity type associated with the text entity; and autocorrecting at least one character in the character string to provide a corrected character, the at least one character belonging to a character class not associated with the text entity type.