{'fraction_non_alphanumeric': 0.0241423125794155, 'fraction_numerical': 0.0, 'mean_word_length': 6.035714285714286, '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}}
A fast technique for vectorization of engineering drawings using morphology and digital straightness

A novel technique for vectorization of engineering drawings is presented. The novelty of the algorithm lies in exploiting certain digital-geometric properties of straightness to vectorize inclined line segments and curve segments after vectorizing the horizontal and the vertical pieces using the conventional morphological opening. The primitives, hence vectorized, are classified into (i) horizontal, (ii) vertical, (iii) inclined line segments, and (iv) curved segments. Such a classification expedites the reconstruction of an engineering drawing from the vector format. Experimental results on several benchmark datasets have been given to demonstrate its efficiency and elegance.