1. A method for enhanced optical character recognition, the method comprising: identifying a sample character in a textual context to be optically recognized; comparing the sample character with a template character, wherein the sample character is scaled into a first grid and the template character is scaled into a second grid; identifying one or more pixels in the sample character within the first grid and one or more pixels in the template character in the second grid, wherein the one or more pixels are identified as belonging to a foreground category in the textual content, a foreground pixel having at least N gradients corresponding to edges of the foreground pixel that are juxtaposed to a neighbor pixel, wherein a contour foreground pixel has at least one gradient that is neighbored by a background pixel in the textual context; identifying one or more template contour pixels in the template character that correspond to at least one sample contour pixel in the sample character, mapping the at least one sample contour pixel to the corresponding template contour pixels such that one or more distances are calculated between the at least one sample contour pixel and the respective one or more template contour pixels; and determining that the sample contour character and the template contour character are a match based on an analysis of the one or more distances.