{'fraction_non_alphanumeric': 0.0187192118226601, 'fraction_numerical': 0.0, 'mean_word_length': 5.471337579617835, '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}}
Strong Shadow Removal of Text Document Images Based on Background Estimation and Shading Scale

Shadows may bring uncomfortable perception when taking text document images. Previous work mainly focuses on weak shadow removal issue. However, strong shadow removal is still a challenging task. This paper proposes a method based on background estimation and shading scale to remove strong shadows from text document images. Firstly, background color estimation is designed by a number of iterations through neighboring pixels' propagation. Then, umbra and penumbra are separated by morphological operations and processed by a divide-and-conquer strategy. For umbra, shading scale strategy is exploited to obtain unshadowed result. For penumbra, background replace strategy is designed to remove the shadow regions. Finally, a reference background and a text binary image are combined to generate unshadowed image. Experiments conducted on some typical strong shadow images demonstrate the effectiveness of our method.