{'fraction_non_alphanumeric': 0.024043715846994537, 'fraction_numerical': 0.017486338797814208, 'mean_word_length': 5.147651006711409, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Fast Seamless Skew and Orientation Detection in Document Images

Reliable and generic methods for skew detection are a necessity for any large-scale digitization projects. As one of the first processing steps, skew detection and correction has a heavy influence on all further document analysis modules, such as geometric and logical layout analysis. This paper introduces a generic, scale-independent algorithm capable of accurately detecting the global skew angle of document images within the range [-90,90] degrees. By using the same framework, the algorithm is then extended for Roman script documents so as to cope with the full range [-180,180) degrees of possible skew angles. Despite its generality, the improved algorithm is very fast and requires no explicit parameters. Experiments on a combined test set comprising around 110000 real-life images show the accuracy and robustness of the proposed method.