{'fraction_non_alphanumeric': 0.012440191387559809, 'fraction_numerical': 0.0, 'mean_word_length': 5.578616352201258, '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 interactive image inpainting algorithm based on Markov Random Field

A novel approach to image inpainting is introduced in this paper. The novelty lies in the combination of pixel-diffusing technique and a user interaction mechanism. This combination takes both local geometrical information via the pixel-diffusing technique and global structure information via the user interaction to improve the image inpainting quality. The user interaction mechanism manually specifies important missing structure information by drawing some curves from the known to the unknown regions and synthesizes image structure along these user-specified curves in the unknown region using structure information selected around the curves in the known region. The pixel-diffusing technique builds on the Markov Random Field (MRF) model to exploit the image contextual knowledge. The interactive inpainting algorithm fills in the remaining unknown regions based on the MRF model. The experiment results show this interactive algorithm is reasonable and efficient.