{'fraction_non_alphanumeric': 0.017118402282453638, 'fraction_numerical': 0.0, 'mean_word_length': 5.381818181818182, '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}}
Locating Text in Images Based on the Smooth Gray-Level Detection

The morphological technique is widely used for text extraction from images. It is highly effective in extracting geometrical structures and representing shapes in images. However, the morphological technique does not consider the variance of gray levels between neighboring pixels in images. Generally in images, changes in gray levels between neighboring nontext pixels are smoother than those between neighboring text pixels. This paper, therefore, proposes a new method for locating text based on the smooth gray-level detection. Experimental results reveal that the proposed method locates text in images better than other methods.