{'fraction_non_alphanumeric': 0.018168604651162792, 'fraction_numerical': 0.0, 'mean_word_length': 5.013100436681222, '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}}
Single-Image Dehazing via Dark Channel Prior and Adaptive Threshold

Due to the haze weather, the outdoor image quality is degraded, which reduces the image contrast, thereby reducing the efficiency of computer vision systems such as target recognition. There are two aspects of the traditional algorithm based on the principle of dark channel to be improved. First, the restored images obviously contain color distortion in the sky region. Second, the white regions in the scene easily affect the atmospheric light estimated. To solve the above problems, this paper proposes a single-image dehazing and image segmentation method via dark channel prior (DCP) and adaptive threshold. The sky region of hazing image is relatively bright, so sky region does not meet the DCP. The sky part is separated by the adaptive threshold, then the scenery and the sky area are dehazed, respectively. In order to avoid the interference caused by white objects to the estimation of atmospheric light, we estimate the value of atmospheric light using the separated area of the sky. The algorithm in this paper makes up for the shortcoming that the algorithm based on the DCP cannot effectively process the hazing image with sky region, avoiding the effect of white objects on estimating atmospheric light. Experimental results show the feasibility and effectiveness of the improved algorithm.