{'fraction_non_alphanumeric': 0.017001545595054096, 'fraction_numerical': 0.0030911901081916537, 'mean_word_length': 5.230769230769231, '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}}
Segmenting document images using diagonal white runs and vertical edges

We introduce a technique based on diagonal white runs and vertical edges, that divides a document image into columns and blocks which are subsequently classified as text or graphics. A diagonal white run (drun) is a set of adjacent white pixels that are diagonally connected, and a vertical edge consists of the white area between two consecutive druns. This technique was designed as a layout-independent approach. Testing the proposed approach on document images with 14 different types and layouts, written in different languages, shows comparative and promising results.