Digitization and Validation of CAD Railroad Station Wiring Drawings Based on DXFLib Library
In order to realize the digital verification and automatic calibration of railroad signaling system drawings,and for the current CAD drawings digitization deficiencies,such as the need to select the range of AutoCAD software for extraction,dependent on the secondary development tools,and the unsatisfied text extraction accuracy,an im-proved method is proposed.This method realizes the recognition and extraction of wiring table contents in CAD drawings and data export by writing a program with the help of the C++DXFLib open source library.Firstly,the program reads the table type drawings,decodes and extracts the entity element information,and transforms the CAD coordinates of the resulting elements into two-dimensional image coordinates,while iteratively updating the image boundary values;then,the drawing function of the OpenCV library is used to reproduce the element information,and the relevant element parameters are passed to the plotting function for plotting and comparison with the original con-tent of the drawing;Finally,the resulting element information is digitized and structured,and the necessary content is exported to Excel after analyzing the table structure and element coordinate relationships.The results of the study show that the method is effective for digitizing drawings,which meets the accuracy requirements of the engineering drawing verification,and significantly improves the flexibility and efficiency of the digitization of signal drawings.
drawing digitizationCAD information extractionmeta informationDXFLib