{'fraction_non_alphanumeric': 0.017341040462427744, 'fraction_numerical': 0.0, 'mean_word_length': 5.183035714285714, '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}}
A crude to fine method to detect salient region

The task of salient region detection aims at establishing the most important and informative regions of an image. In this work, we propose a novel method that tackles such task as a process from superpixel-level locating to pixel-level refining. Firstly, we over-segment the image into superpixels and compute an affinity matrix to estimate the similarity between each two superpixels according to both color contrast and space distribution. The matrix is then applied to aggregate superpixels into several clusters by using affinity propagation. To measure the saliency of each cluster, three parameters are taken into account including color contrast, cluster compactness and proximity to the focus. We appoint the most salient one to three clusters as the crude salient region. For the refining step, we regard each selected superpixel as an influential center. Hence, the saliency value of a pixel is simultaneously determined by all the selected superpixels. Practically, several Gauss curves are constructed based on the selected superpixels. Pixel-wise saliency value is decided by the color distinction and spatial distance between one pixel and the curves’ centers. We evaluate our algorithm on the publicly available dataset with human annotations, and experimental results show that our approach has competitive performance.