{'fraction_non_alphanumeric': 0.017269736842105265, 'fraction_numerical': 0.0, 'mean_word_length': 5.177664974619289, '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}}
Image Dehazing Algorithm Based on Region Segmentation and Block Optimization

In image dehazing, due to the influence of sky area and local light spot, dehazing images often have problems with brightness and light spot. Therefore, accordinng to the prior theory of dark channel, an image dehazing algorithm based on region segmentation and block optimization is proposed. Firstly, the quadrant tree cycle method is used to find the region with the highest local brightness in the whole image, and the atmospheric light value is estimated through this region. Secondly, combined with the image information, the image is divided into a bright region, transition region and dark region, and the transmittance of each region is compensated and controlled. Finally, the dehazing image is obtained by using the atmospheric scattering model, and the brightness of the image scene is improved by singular value decomposition. The experimental results show that the restored image is bright and natural, with obvious details and high color fidelity. The algorithm effectively solves the defect that the dark channel prior algorithm fails in the sky area and highlight area, and can restore a more natural sky highlight scene.