16. A computer program product for enhanced optical character recognition, the computer program product comprising logic code embedded in a non-transitory data storage medium, wherein execution of the logic code on a computer causes the computer to: identify a sample character in a textual context to be optically recognized; compare 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; identify 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, map 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 determine that the sample contour character and the template contour character are a match based on an analysis of the one or more distances.
16. A computer program product for enhanced optical character recognition, the computer program product comprising logic code embedded in a non-transitory data storage medium, wherein execution of the logic code on a computer causes the computer to: identify a sample character in a textual context to be optically recognized; compare 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; identify 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, map 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 determine that the sample contour character and the template contour character are a match based on an analysis of the one or more distances. 20. The computer program product of claim 16 , wherein the correspondence between a template contour pixel in the one or more template contour pixels and the at least one sample contour pixel is based on a number of gradients the template contour pixel has in common with the sample contour pixel.