A method for automatically reconstructing a three-dimensional point cloud of a truss structure from a two-dimensional vector drawing
By automatically reconstructing the 3D point cloud model of the truss structure using image processing and computer vision technology, this method solves the problem of converting 2D drawings of truss structures into 3D models in existing technologies, achieving efficient and accurate 3D modeling, and is suitable for the design of complex truss structures.
Patent Information
- Application Number
- CN202210988496.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Existing 3D modeling software systems cannot effectively convert complex 2D truss structure design drawings into 3D models, and manual drawing is time-consuming and inconvenient for model updates and modifications.
By employing image processing algorithms and computer vision technology, the system automatically reconstructs a 3D point cloud model of a truss structure by recognizing the dimensional information and topology of drawings. This process includes steps such as drawing preprocessing, topology recognition, feature matching, and point cloud generation, enabling automated modeling for UAV interaction.
It achieves high-precision 3D point cloud reconstruction, improves architectural design efficiency, is applicable to complex truss structures, and reduces labor costs and operational complexity.
Smart Images

Figure CN115409966B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for automatically reconstructing a three-dimensional point cloud of a truss structure from a two-dimensional vector drawing, belonging to the fields of three-dimensional reconstruction, computer vision, and artificial intelligence. Background Technology
[0002] Truss structures, as a type of lattice-beam structure, are commonly used in public buildings such as factories, exhibition halls, stadiums, and bridges. Due to their complex structure and strong symmetry, truss structures are often designed as two-dimensional architectural vector drawings composed of multiple view planes, rather than the traditional three-view format, to avoid the problem of topological overlap between different planes of the truss structure from a single viewpoint. However, while these two-dimensional vector drawings are convenient for design and modification, they lack intuitiveness and demonstrativeness. With the development of computer-aided three-dimensional modeling technology, three-dimensional design has become an inevitable trend in industries such as machinery and architecture. How to transfer these two-dimensional design drawings to a new three-dimensional system is a problem worthy of research.
[0003] Currently, 3D modeling software such as SolidWorks enables the design and drawing of 3D products. However, while similar architectural structures may have minor differences, their variety is vast. Relying on manual drawing not only consumes a large amount of repetitive labor but also makes model updates and modifications inconvenient. Although some 3D modeling software systems offer the function of converting 2D views into 3D shapes, such as AutoCAD and 2D to 3D Utility, these software programs can only convert very simple three-view drawings and have many constraints on the input 2D vector graphics. They are not suitable for truss architectural drawings with special design rules and complex structures; moreover, they often require human-computer interaction, which lacks convenience. Summary of the Invention
[0004] Technical issues:
[0005] Truss structures, widely used in public buildings, often employ specific design specifications in their drawings, consisting of multiple perspective planes with complex topologies. Current 3D modeling software cannot convert 2D to 3D from such drawings; manual drawing not only consumes a significant amount of repetitive labor but also hinders model updates and modifications. This invention proposes a method for automatically reconstructing 3D point clouds of truss structures from 2D vector drawings. It uses image processing algorithms to identify the dimensions and topology of the drawings, fusing semantic information from each plane to obtain the planar spatial positions, and finally reconstructing the true 3D point cloud of the model. This method utilizes computer graphics and computer vision techniques, eliminating the need for human-computer interaction in the modeling process, and automatically reconstructing a real-world 3D point cloud model from 2D vector drawings. This method represents an application of artificial intelligence in the conversion of 2D vector drawings to 3D physical objects, offering high reconstruction accuracy and significantly improving the efficiency of architectural design.
[0006] Technical solution:
[0007] A method for automatically reconstructing a 3D point cloud of a truss structure from a 2D vector drawing paper, characterized by the following specific steps:
[0008] Step 1: Preprocess the 2D vector paper, including structural component mask extraction, number extraction, plane segmentation and viewpoint correction, simplify and split the various planes of the component model and attach plane labels ("main plane", "auxiliary plane").
[0009] Step 2: Extract two-dimensional information from each plane separated in Step 1. Using a topology recognition algorithm, obtain the pixel distance between the endpoints of each steel bar on the two-dimensional vector drawing paper; use an OCR algorithm to identify the steel bar numbers and, based on features such as position and distance, perform a one-to-one matching with the identified topological line segments; and obtain the actual length corresponding to each numbered steel bar by identifying the component details table. Finally, establish a mapping relationship between topological line segments, steel bar numbers, and steel bar lengths to obtain a scale between the pixel distances on the drawing and the actual distances, achieving a transformation from the pixel coordinate system to the real-world coordinate system, and obtaining the two-dimensional feature information of the steel bars on each plane.
[0010] Step 3: Perform feature matching on the two-dimensional information of each plane obtained in Step 2. At the same time, based on the plane labels marked in Step 1, obtain the connection relationship and relative position between the "main" plane and the "auxiliary" plane, thereby calculating the three-dimensional spatial plane equation of each plane, realizing the dimensionality upgrade from the two-dimensional view plane to the three-dimensional spatial plane, and finally obtaining the real-world three-dimensional point cloud of each component through the point cloud generation algorithm.
[0011] Step 4: By recognizing the overview drawing, obtain the spatial position information of the point clouds of each component obtained in Step 3, and translate and stitch them accordingly to finally merge them into a complete three-dimensional point cloud model.
[0012] The specific contents of the plan include:
[0013] 1. Preprocess the drawings. The drawings used should include truss structure drawings, structural component numbers, component details, etc. A deep learning-based method is used to extract structural component contour masks from the component details drawings. A modified ResNet network is used, but other networks or their variants can also be used; data annotation is based on Labelme software. Structural component number information is obtained by combining OCR algorithms with Hough transform circle detection algorithms. Planar topology clustering is obtained through connected component algorithms to achieve plane segmentation, separating the planes of the same component, and rotating them to the frontal viewpoint by calculating OBB bounding boxes.
[0014] 2. Two-dimensional information extraction is performed on each separated plane. First, edge detection and line detection algorithms are used to detect all line segments throughout the image. The goal is simply to ensure that all detected line segments encompass the topological lines of the image; parameters such as line segment length and number are not critical. Next, a clustering algorithm based on a custom neighborhood radius is used to cluster actually collinear line segments together. The neighborhood radius is set to consist of two features: collinearity similarity and positional overlap. This extracts actually collinear line segments from multiple dimensions to form a category. Then, for each category, a vector concatenation algorithm is used to obtain a complete vector line segment. Finally, these concatenated line segments are smoothly connected at their endpoints to obtain the optimal solution for topological line detection.
[0015] 3. Based on the 2D and label information of each plane, feature matching is performed to find the collinearity and relative spatial position between the "main plane" and the "auxiliary plane," thereby calculating the coordinates of the endpoints of the plane intersection line. For any plane, the FPS farthest point sampling algorithm is used to select several uniformly distributed 3D coordinate points, and the plane equation is fitted to obtain the plane equation. Finally, the dimensionality of the 2D view plane is increased to the 3D space plane, and the real-world 3D point cloud of each component is obtained through a point cloud generation method based on the Rodriguez algorithm.
[0016] 4. The segment number and numerical label of each local segment in the overview drawing are identified by the OCR algorithm. The corner detection algorithm is used to identify the endpoints of the label lines and match them with the segment number to obtain the relative spatial position of each local segment component. Then, the components are translated and spliced accordingly to finally merge them into a complete three-dimensional point cloud model.
[0017] Beneficial effects:
[0018] 1. Compared with manually completing the 3D modeling of a model using 3D modeling software such as SolidWorks, this invention eliminates the need for manual labor costs, not only allowing for faster reconstruction but also facilitating the updating and modification of product designs.
[0019] 2. Compared with the 2D to 3D conversion function of 3D modeling system software such as AutoCAD and 2D to 3D Utility, this invention is suitable for truss building drawings with special design rules and complex structures. It has no many constraints on the input 2D drawing information and does not require human-computer interaction, making it more intelligent.
[0020] 3. Compared with other traditional methods for 3D reconstruction based on 2D design drawings, this invention makes full use of the symmetry of the truss structure for reconstruction. The algorithm is simple, the running speed is fast, and the result accuracy is high.
[0021] 4. The method of this invention directly generates real-world 3D point clouds from 2D design drawings. It can be used for LiDAR scanning point cloud registration and detection, model structure segmentation, feature extraction, and other tasks, and has high engineering application value and academic research value. Attached Figure Description
[0022] Figure 1 This is a diagram of the overall algorithm of the present invention.
[0023] Figure 2 This is a schematic diagram of the overall process for reconstructing a certain type of iron tower according to the present invention. Detailed Implementation
[0024] To illustrate the technical content, structural features, achieved objectives, and effects of this invention in detail, the invention will be described below with reference to the accompanying drawings of the embodiments. Obviously, the embodiments described in the drawings are merely one embodiment of the invention, and not all embodiments. The components of the embodiments of the invention described and shown in the drawings can be arranged and designed in different numbers and orders. Therefore, all other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of this invention.
[0025] The method for automatically reconstructing a 3D point cloud of a truss structure from 2D drawings involves the following steps:
[0026] Step 1: Preprocess the 2D drawings, including line mask extraction, steel bar number extraction, plane segmentation and view correction, simplify and split the various planes of the component model and attach plane labels ("main plane", "auxiliary plane").
[0027] Step 2: Extract two-dimensional information from each plane separated in Step 1. Using a topology recognition algorithm, obtain the pixel distance between the endpoint of each steel bar on the two-dimensional drawing; use an OCR algorithm to identify the steel bar number and, based on features such as position and distance, match it one-to-one with the identified topological line segments; use the component details table to obtain the actual length corresponding to each numbered steel bar. Finally, establish a mapping relationship between topological line segments, steel bar numbers, and steel bar lengths to obtain a scale between the pixel distance on the drawing and the actual distance, achieving a conversion from the pixel coordinate system to the real-world coordinate system, and obtaining the two-dimensional feature information of the steel bars on each plane.
[0028] Step 3: Perform feature matching on the two-dimensional information of each plane obtained in Step 2. At the same time, based on the plane labels marked in Step 1, obtain the connection relationship and relative position between the "main" plane and the "auxiliary" plane, thereby calculating the three-dimensional spatial plane equation of each plane, realizing the dimensionality upgrade from the two-dimensional view plane to the three-dimensional spatial plane, and finally obtaining the real-world three-dimensional point cloud of each component through the point cloud generation algorithm.
[0029] Step 4: By recognizing the overview drawing, obtain the spatial position information of the point clouds of each component obtained in Step 3, and translate and stitch them accordingly to finally merge them into a complete three-dimensional point cloud model.
[0030] The specific contents of the plan include:
[0031] 1. Preprocessing of Drawings. The drawings used are detailed component drawings of transmission line towers actually used by the State Grid, including steel frame structure drawings, steel bar numbers, component details, etc. A deep learning-based method is used to extract steel bar contour masks from the component details drawings. A modified ResNet network is used, but other networks or their variants can also be used; data annotation is based on Labelme software. Steel bar number information is identified by combining OCR algorithms with Hough transform circle detection algorithms. Planar topology clustering is obtained through connected component algorithms to achieve plane segmentation, separating the planes of the same component, and rotating them to the frontal viewpoint by calculating OBB bounding boxes.
[0032] 2. Two-dimensional information extraction is performed on each separated plane. First, edge detection and line detection algorithms are used to detect all line segments throughout the image. The goal is simply to ensure that all detected line segments encompass the topological lines of the image; parameters such as line segment length and number are not critical. Next, a clustering algorithm based on a custom neighborhood radius is used to cluster actually collinear line segments together. The neighborhood radius is set to consist of two features: collinearity similarity and positional overlap. This extracts actually collinear line segments from multiple dimensions to form a category. Then, for each category, a vector concatenation algorithm is used to obtain a complete vector line segment. Finally, these concatenated line segments are smoothly connected at their endpoints to obtain the optimal solution for topological line detection.
[0033] 3. Based on the 2D and label information of each plane, feature matching is performed to find the collinearity and relative spatial position between the "main plane" and the "auxiliary plane," thereby calculating the coordinates of the endpoints of the plane intersection line. For any plane, the FPS farthest point sampling algorithm is used to select several uniformly distributed 3D coordinate points, and the plane equation is fitted to obtain the plane equation. Finally, the dimensionality of the 2D view plane is increased to the 3D space plane, and the real-world 3D point cloud of each component is obtained through a point cloud generation method based on the Rodriguez algorithm.
[0034] 4. The segment number and numerical label of each tower segment in the overview drawing are identified by the OCR algorithm. The corner detection algorithm is used to identify the endpoints of the label lines and match them with the segment number to obtain the relative spatial position of each tower segment component. Then, the components are translated and spliced accordingly to finally merge them into a complete three-dimensional point cloud model.
[0035] The above description is merely one embodiment of the present invention. The present invention uses design drawings of transmission line towers actually used by the State Grid, but other design drawings can also be used, such as design drawings of bridges, stage trusses, and other truss structures. Furthermore, the image processing and feature extraction algorithm provided by the present invention can have various variations and improvements. Any modifications or variations of the above-described methods using different drawing data and algorithms, without the need for creative effort by those skilled in the art, are all included within the scope of patent protection of this invention.
Claims
1. A method for automatically reconstructing a three-dimensional point cloud of a truss structure from two-dimensional vector paper, characterized in that, The specific steps are as follows: Step 1: Preprocess the 2D vector paper, including contour mask extraction, number extraction, plane segmentation and view correction, simplify and split the various planes of the part model and attach plane labels, including "main plane" and "auxiliary plane"; Step 2: Extract two-dimensional information from each plane separated in Step 1; use a topology recognition algorithm to obtain the pixel distance between the endpoints of each structural component on the two-dimensional vector paper; use an OCR algorithm to identify the structural component number and match it one-to-one with the identified topological line segments based on the positional distance features; use the component detail table to obtain the actual length corresponding to each numbered structural component; finally, realize the mapping relationship between topological line segments, structural component numbers, and structural component lengths to obtain the scale between the pixel size of the drawing and the actual size, realize the transformation from the pixel coordinate system to the real-world coordinate system, and obtain the two-dimensional feature information of each planar structural component; Step 3: Perform feature matching on the two-dimensional information of each plane obtained in Step 2. At the same time, based on the plane labels marked in Step 1, obtain the connection relationship and relative position between the "main plane" and the "auxiliary plane", thereby calculating the three-dimensional spatial plane equation of each plane, realizing the dimensionality upgrade from the two-dimensional view plane to the three-dimensional spatial plane, and finally obtaining the real-world three-dimensional point cloud of each component through the point cloud generation algorithm. Step 4: By recognizing the overview drawing, obtain the spatial position information of the point clouds of each component obtained in Step 3, and translate and stitch them accordingly to finally merge them into a complete three-dimensional point cloud model; In step 3, feature matching is performed based on the two-dimensional information and label information of each plane to find the collinearity and relative spatial position between the "main plane" and the "auxiliary plane", thereby calculating the coordinates of the endpoints of the plane intersection line; for any plane, the FPS farthest point sampling algorithm is used to select several uniformly distributed three-dimensional coordinate points and fit the plane equation; the point cloud generation algorithm uses the Rodriguez algorithm to rotate and translate the connection vector to the vertical direction, randomly generate scattered points with ideal density, and then perform an inverse transformation to quickly generate a smooth and uniformly dense truss point cloud.
2. The method for automatically reconstructing a three-dimensional point cloud of a truss structure from a two-dimensional vector drawing paper according to claim 1, characterized in that: The drawings used in step 1 should include truss structure drawings, structural component numbers, and component details; the structural component contour mask is extracted using a modified ResNet network; Data annotation is based on Labelme software; structural component number extraction is achieved by combining OCR algorithm with Hough transform circle detection algorithm to identify number information; plane segmentation is achieved by clustering the plane topology through connected component algorithm to segment each plane; viewpoint correction is achieved by calculating the obb bounding box and rotating it to the frontal viewpoint.
3. The method for automatically reconstructing a three-dimensional point cloud of a truss structure from a two-dimensional vector drawing paper according to claim 1, characterized in that: The topology recognition algorithm in step 2 first uses edge detection and line detection algorithms to detect all line segments throughout the image. It only needs to ensure that all detected line segments encompass the topological lines of the image, without requiring specific lengths or numbers of line segments. Next, a clustering algorithm based on a custom neighborhood radius is used to cluster actually collinear line segments together. The neighborhood radius is set to consist of two features: collinearity similarity and positional overlap. This extracts actually collinear line segments from multiple dimensions to form a category. Then, for each category, a vector concatenation algorithm is used to obtain a complete vector line segment. These concatenated line segments are then smoothly connected at their endpoints to obtain the optimal solution for topological line detection. The OCR algorithm is based on the Paddle framework.
4. The method for automatically reconstructing a three-dimensional point cloud of a truss structure from a two-dimensional vector drawing paper according to claim 1, characterized in that: In step 4, the segment number and numerical label of each local segment are identified by the OCR algorithm, and the endpoints of the label line are identified by the corner detection algorithm and matched with the segment number to obtain the relative spatial position of each local segment component.
