12. A computer-implemented method comprising: identifying edges in an image using an edge detection filter; identifying a plurality of edge points of the image using the identified edges; determining respective first edge transition widths at each respective edge point of the plurality of edge points; determining a first statistic based on the first edge transition widths; determining a sharpness of the image based on the first statistic; processing the image to identify text; determining, from the plurality of edge points, a set of edge points that are proximate to the text; determining respective second edge transition widths for each edge point of the set of edge points; determining a second statistic using the respective second edge transition widths; and performing optical character recognition on the text based on the second statistic.
18. The computer-implemented method of claim 12 , wherein the first statistic is selected from a group consisting of: an average of the edge transition widths; a standard deviation of the edge transition widths; and a variance of the edge transition widths.