Option 1810 may then detect geometric features formed by features within the bounding box. Operation 1810 may detect one or more of loops, line segments, line crossings, line curves, orthogonal intersections, rectangles, squares, polygons, or other geometric features within the bounding box, as described above for example with respect to
The counts of each type of geometric feature may then be normalized based on a ratio between the height and width of the bounding box. For example, in some aspects, each count of a particular type of geometric feature may be normalized to identify a frequency of the particular type of geometric feature. One or more of the frequencies may be generated according to: frequency=count*height/length??(2)
The frequencies for the geometric features may then, in some aspects, be used to generate a histogram, the histogram indicating the frequencies for each of the geometric features. The histogram may be compared to other histograms for documents of known types, to determine which of the other histograms the histogram is most similar to. This may indicate the language of the handwriting.