{'fraction_non_alphanumeric': 0.019230769230769232, 'fraction_numerical': 0.0, 'mean_word_length': 4.783950617283951, '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}}
An approach to image retrieval based on shape

In a content-based image retrieval system, it is necessary to find a metric to index shapes of objects in the images. The metric should be unique to each shape, regardless of size and orientation. A similarity measure is also needed which should reflect the perceptual similarity, i.e. the perceptual similar shapes should have high similarity values. Chain codes have been used for shape description in previous works, but chain codes are non-invariant to shape size and orientation. In this paper, a method is introduced to eliminate the inherent non-invariance of chain codes to obtain unique chain codes for shapes. The shape index is derived from this unique chain code representation. The shape distance and similarity measures based on the shape indexes are then discussed. The indexing and retrieval procedures discussed in this paper should be applicable to large image databases.