This invention relates to the field of
computer vision and
image processing, and proposes a method and
system for automatic 3D modeling of 2D
engineering drawings. The method includes the following steps: inputting 2D
engineering drawings;
parsing the context, generating a feature to-do
list, and establishing a cross-view
spatial mapping coordinate
system; extracting the component types from the feature to-do
list; obtaining parameterized topological constraint rules for the component types from a preset
knowledge base; adopting goal-oriented active probing to search for geometric contours matching the features in the three views, obtaining the geometric primitives and their spatial poses corresponding to each feature; reading the dimension annotations, attaching the dimension values as logical variables to the corresponding geometric primitives, and generating an enhanced structured feature
list; constructing an instruction
compiler, inputting the enhanced structured feature list, mapping each feature to a
feature class calling function in the
engineering knowledge base, and synthesizing a Python
source code sequence to generate a parameterized 3D model.