{'fraction_non_alphanumeric': 0.017045454545454544, 'fraction_numerical': 0.004734848484848485, 'mean_word_length': 5.565217391304348, '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 Improved Sobel Face Gray Image Edge Detection Algorithm

In this paper, an improved Sobel edge detection algorithm is proposed to overcome the shortcomings of traditional Sobel edge detection operators, such as the limitation of detection direction in horizontal and vertical directions, and the need to set detection threshold artificially. Firstly, the detection direction is improved, based on the horizontal and vertical detection directions, two directions of 45 degree and 135 degree are added, which can detect the edge information of multiple gradient directions of the image. Secondly, considering the overall and local gray level of the input image, an edge judgment threshold is adaptively generated to make the detected image edge more complete. Finally, the multi-directional detection and adaptive threshold generation are combined. The experimental results show that the improved Sobel edge detection algorithm can extract more direction edge information, and the edge boundary is clear, which has better robustness to noise interference.