Abstract
Decomposition and representation of electrical circuit drawings to a suitable vector form has widespread applications related to data compression, storage, analysis, and editing. In this paper, we propose an efficient method for segmenting and identifying electrical circuit symbols from the image of a circuit drawing with an objective of its complete vectorization. The segmentation procedure is based on morphological operations with automatic selection of structuring elements. After segmentation, the symbols are identified by an SVM classifier that works with certain morphological and topological features of the segmented symbols. Related information like orientations and terminal attributes of the circuit symbols are finally stored in appropriate vector form. Text annotations associated with the symbols are also recognized and vectorized. Detailed performance analysis demonstrates the efficiency and robustness of the proposed method.

































Similar content being viewed by others
References
SVG stands for scalable vector graphics. http://www.w3schools.com/svg (1999). Copyright 1999–2014 by Refsnes Data
Scalable Vector Graphics. http://en.wikipedia.org/wiki/Scalable_Vector_Graphics (2014)
Amin A, Fischer S (2000) A document skew detection method using the Hough transform. Pattern Anal Appl 3(3):243–253
Bhowmick P, Bhattacharya BB (2007) Fast polygonal approximation of digital curves using relaxed straightness properties. IEEE Trans Pattern Anal Mach Intell 29(9):1590–1602
Chai I, Dori D (1992) Extraction of text boxes from engineering drawings. In: Proceedings of SPIE—the international society for optical engineering, SPIE ’1661, pp 38–49
Chang CC, Lin CJ (2011) LIBSVM: a library for support vector machines. ACM Trans Intell Syst Technol 2:27:1–27:27. http://www.csie.ntu.edu.tw/~cjlin/libsvm
Chiang J, Tue S, Leu Y (1993) A symbol recognition system. In: ICDAR, pp 918–921
Chiang JY, Tue SC, Leu YC (1998) A new algorithm for line image vectorization. Pattern Recognit 31(10):1541–1549
Chowdhury SP, Mandal S, Das AK, Chanda B (2007) Segmentation of text and graphics from document images. In: Proceedings of ninth international conference on document analysis and recognition, pp 619–623
Das AK, Chanda B (1998) Segmentation of text and graphics from document image: a morphological approach. In: Proceedings of international conference on computational linguistics, speech, document processing, pp A50–A56
Das AK, Chanda B (2001) A fast algorithm for skew detection of document images using morphology. Int J Doc Anal Recognit 4:109–114
De P, Mandal S, Bhowmick P (2014) Identification of annotations for circuit symbols in electrical diagrams of document images. In: Proceedings of fifth international conference on signals and image processing, pp 297–302
Dori D, Velkovitch Y (1998) Segmentation and recognition of dimensioning text from engineering drawings. Comput Vis Image Underst 69(2):196–201
Fan KC, Liu CH, Wang YK (1994) Segmentation and classification of mixed text/graphics/image documents. Pattern Recognit Lett 15:1201–1209
Fletcher L, Kasturi R (1988) A robust algorithm for text string separation from mixed text/graphics images. IEEE Trans Pattern Anal Mach Intell 10:910–918
Gonzalez RC, Wood RE (2005) Digital image processing. Prentice-Hall, Upper Saddle River
Google Drive image database, electrical circuit drawings (106 images). https://drive.google.com/file/d/0B0SFRsuz9p-tZjUyYVYxLXRpSm8/view?usp=sharing (2016)
Groen FC, Sanderson AC, Schlag JF (1985) Symbol recognition in electrical diagrams using probabilistic graph matching. Pattern Recognit Lett 3(5):343–350
Han CC, Fan KC (1994) Skeleton generation of engineering drawings via contour matching. Pattern Recognit 27(2):261–275
Hilaire X, Tombre K (2006) Robust and accurate vectorization of line drawings. IEEE Trans Pattern Anal Mach Intell 28(6):890–904
Jain AK, Bhattacharjee S (1992) Texture segmentation using gabor filters for automatic document processing. Mach Vis Appl 5:169–184
Kasturi R, Tombre K (eds) (1996) Graphics recognition, methods and applications first international workshop, University Park, PA, USA, August 10–11, 1995. Selected papers, lecture notes in computer science, vol 1072. Springer, Berlin
Kim SH, Suh JW, Kim JH (1993) Recognition of logic diagrams by identifying loops and rectilinear polylines. In: Proceedings of the second international conference on document analysis and recognition, ICDAR ’93, pp 349–352
Kumar S, Gupta R, Khanna N, Chaudhury S, Joshi SD (2007) Text extraction and document image segmentation using matched wavelets and MRF model. IEEE Trans Image Process 16:2117–2128
Lai CP, Kasturi R (1994) Detection of dimension sets in engineering drawings. IEEE Trans Pattern Anal Mach Intell 16(8):848–855
Lamiroy B, Ogier J (eds) (2014) Graphics recognition. In: Current trends and challenges—10th international workshop, GREC 2013, Bethlehem, PA, USA, August 20–21, 2013, Revised selected papers, lecture notes in computer science, vol 8746. Springer, Berlin
Lee SW (1992) Recognizing hand-drawn electrical circuit symbols with attributed graph matching. In: Baird HS, Bunke H, Yamamoto K (eds) Structured document image analysis, pp 340–358
Liu W, Dori D (1999) From rasters to vectors: extracting visual information from line drawings. Pattern Anal Appl 2(1):10–21
Lladós J, Valveny E, Sánchez G, Martí E (2002) Symbol recognition: current advances and perspectives. In: Blostein D, Kwon YB (eds) Proceedings of Graphics recognition algorithms and applications (GREC 2001). Lecture notes in computer science, vol 2390. pp 104–128
Lu T, Tai CL, Su F, Cai S (2005) A new recognition model for electronic architectural drawings. Comput Aided Des 37(10):1053–1069
Luo H, Kasturi R (1998) Improved directional morphological operations for separation of characters from maps/graphics. In: Tombre K, Chhabra AK (eds) Proceedings of Graphics recognition algorithms and systems (GREC 1997), lecture notes in computer science, vol 1389. pp 35–47
Malvino A, Bates JD (2007) Electronic principles, 7th edn. TMH, New York
Nieto M, Cuevas C, Salgado L, García NN (2011) Line segment detection using weighted mean shift procedures on a 2D slice sampling strategy. Pattern Anal Appl 14(2):149–163
Okazaki A, Kondo T, Mori K, Tsunekawa S, Kawamoto E (1988) An automatic circuit diagram reader with loop-structure-based symbol recognition. IEEE Trans Pattern Anal Mach Intell 10(3):331–341
Otsu N (1979) A threshold selection method from gray-level histograms. IEEE Trans Syst Man Cybern 9(1):62–66
Parker JR, Pivovarov J, Royko D (2000) Vector templates for symbol recognition. In: Proceedings of fifteenth international conference on pattern recognition, ICPR’2000, pp 602–605
Pratihar S, Bhowmick P, Sural S, Mukhopadhyay J (2013) Skew correction of document images by rank analysis in farey sequence. IJPRAI 27(7):1353004
Pucknell DA, Eshraghian K (2000) Basic VLSI design, 3rd edn. PHI, New Delhi
Rashid M (2000) Spice for circuits and electronics using PSPICE, 2nd edn. Prentice Hall of India, New Delhi
Song J, Su F, Chen J, Tai C, Cai S (2000) Line net global vectorization: an algorithm and its performance evaluation. In: Proceedings of IEEE conference on computer vision and pattern recognition, pp 383–388
Wenyin L, Zhang W, Yan L (2007) An interactive example-driven approach to graphics recognition in engineering drawings. Int J Doc Anal Recognit 9(1):13–29
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
De, P., Mandal, S., Bhowmick, P. et al. Robust vectorization method for electrical circuit drawings using component morphology. Pattern Anal Applic 22, 1341–1359 (2019). https://doi.org/10.1007/s10044-018-0686-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10044-018-0686-3