文摘
We propose here an efficient algorithm for high-level vectorization of scanned images of mechanical engineering drawings. The algorithm is marked by several novel features, which merit its superiority over the existing techniques. After preprocessing and necessary refinement of junction points in the image skeleton, it first extracts the graphic primitives, such as lines, circles, and arcs, based on certain digital geometric properties of straightness and circularity in the discrete domain. The primitives are classified into different types with all associated details based on fast and efficient geometric analysis. The vector set is succinctly reduced by such classification in tandem with further consolidation to make out meaningful objects like rectangles and annuli, together with hatching information. Exhaustive testing shows the efficiency of the algorithm and also its robustness and stability toward any affine transformation and injected noise. Easy reconstruction to scalable vector graphics demonstrates its readiness and usability as a state-of-the-art solution.