{'fraction_non_alphanumeric': 0.009324009324009324, 'fraction_numerical': 0.0, 'mean_word_length': 5.817460317460317, '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}}
Generic Ribbons: A Morphological Approach Towards Natural Shape Decomposition

In this paper, we propose a shape decomposition scheme which decomposes complex shapes into their natural components. Each component is represented by a shape primitives called generic ribbon. A generic ribbon is defined by sweeping a structuring element along a specified trajectory which is decomposed from the morphological skeleton of the shape through the skeleton decomposition. Five decomposition rules are devised to facilitate a natural decomposition. The decomposed generic ribbons form a hierarchical representation in which each component is described by a feature vector placed at a certain level according to its significance in the representation. The hierarchical structure makes the representation reliable and simplifies the matching process during recognition.