{'fraction_non_alphanumeric': 0.012224938875305624, 'fraction_numerical': 0.0, 'mean_word_length': 5.348837209302325, '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}}
Line segment detection based on probability map

In this paper, a novel line segment detection method based on probability map is proposed. Firstly, the local gradient information is used to estimate if a pixel belongs to a line segment and a probability map is produced. The probability map combines gradient orientation with gradient magnitude information and can provide candidate points for edge chain extraction. Secondly, these candidate points are connected together to generate edge chains and then edge chains are split to candidate line segments by using least square line fitting method. At last, we apply Helmholtz principle to validate the detected line segments. Experimental results demonstrate that the proposed method outperforms other methods in term of visual comparison and quantitative assessment.