A Segmentation and Recognition Method for Architectural CAD Drawings Based on Graph Theory Algorithm

Through the depth-first search method of graph theory algorithm, the accuracy problem of segmentation and recognition of architectural CAD drawings is solved, the accurate recognition and segmentation of building components is achieved, the recognition efficiency is improved, and real data is provided for the BIM system.

CN113989826BActive Publication Date: 2024-10-29SHAANXI ZHONGHE SHENGJING ENGINEERING DESIGN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111299996.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2024-10-29
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

The existing segmentation and recognition technology of architectural CAD drawings is difficult to accurately identify and segment building components, resulting in untrue and inaccurate data used in subsequent BIM systems, which affects the accuracy of steel bar sampling and assembly composition.

Method used

The depth-first search method based on graph theory algorithm is used to accurately obtain the minimum building component graphics and save their digital information by establishing the ownership of layer distinction lines, constructing graph structures, finding closed paths, and comparing correlation relationships.

Benefits of technology

It achieves accurate identification and segmentation of building components, improves identification work efficiency, provides real and accurate data for the BIM system, and simplifies identification logic and steps.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention provides a method for segmenting and identifying architectural CAD drawings based on a graph theory algorithm, which establishes the attribution of layer dividing lines; constructs a graph structure using lines in the drawings; and searches for a closed path; a. selects an initial vertex and marks it as visited; b. if the current vertex has an adjacent vertex that has not been visited, selects any vertex as the next vertex and marks the next vertex as visited; c. if all adjacent vertices of the current vertex have been visited, falls back to the vertex that was visited most recently; d. continuously executes steps b and c until all vertices that are connected to the starting vertex have been visited; 4) compares all the closed paths found in pairs, and removes those that contain more than one closed path, that is, only retains the minimum closed path, and a minimum closed path is a building component, and the path is composed of line segments and has position information; 5) establishes an association relationship; and 6) saves information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of architectural design, and relates to a computer recognition software, in particular to an architectural CAD drawing segmentation and recognition method based on a graph theory algorithm. Background Art

[0002] At present, architectural design and construction drawings have been fully CAD-based. The correct identification and analysis of CAD drawings is a necessary condition for the subsequent links.

[0003] Modern buildings usually use steel frame + concrete structure, in which the arrangement and binding of steel bars are closely related to the architectural design drawings. Steel bar re-drawing requires a detailed list of various steel bar styles, specifications, sizes and locations in the construction drawings and structural drawings in accordance with the requirements of national design and construction specifications, and draws the assembly composition as the basis for the work team to produce, manufacture and assemble.

[0004] At present, there are some software for steel bar drawing. The software must first recognize the drawings before it can establish the digital information of building components such as walls, columns, and beams. The computer uses the digital information of building components as the basis and gives the steel bar list and assembly composition according to the construction specifications of steel bar drawing. The digital information of building components includes: size, shape, spatial position, and association relationship; computer software is needed to segment and recognize the CAD drawings to distinguish each component, as well as their respective size, shape, spatial position, and mutual association relationship. Summary of the invention

[0005] The purpose of the present invention is to address the above-mentioned problems in the existing technology and propose a graph theory algorithm-based architectural CAD drawing segmentation and recognition method that uses a depth-first search algorithm to accurately obtain the minimum building component graphics.

[0006] The purpose of the present invention can be achieved by the following technical solutions: A method for segmenting and recognizing architectural CAD drawings based on graph theory algorithm, comprising the following steps:

[0007] 1) Establish the ownership of the layer dividing line;

[0008] The premise of identification is to be able to distinguish which type of component the line belongs to. Therefore, the "layer" in the CAD drawing is used to distinguish the lines. Several different layers are preset in the CAD drawing, and different types of component lines are classified into their corresponding layers.

[0009] 2) Use the lines in the drawing to construct the drawing structure;

[0010] Read the lines in the existing CAD drawing and intersect them two by two to obtain a series of short lines and corresponding intersection points to form a graph structure;

[0011] 3) Use the "depth-first search" algorithm provided by graph theory to find a closed path. A closed path is a closed graph.

[0012] Specific steps of the "Depth First Search" algorithm:

[0013] a. Select an initial vertex and mark it as visited;

[0014] b. If the current vertex has an adjacent vertex that has not been visited, select any vertex as the next vertex and mark the next vertex as visited;

[0015] c. If all adjacent vertices of the current vertex have been visited, then go back to the vertex that was visited most recently;

[0016] d. Continue to execute steps b and c until all vertices connected to the starting vertex have been visited;

[0017] 4) Compare all the closed paths found in pairs, and remove those that contain more than one closed path, that is, only keep the minimum closed path. A minimum closed path is a building component. The path is composed of line segments and has position information.

[0018] 5) Establishing association relationships;

[0019] Compare the retained minimum closed paths in pairs to determine whether they are adjacent;

[0020] 6) Save information;

[0021] At this point, the digital information of the building components has been identified, and the relationship between the edges of the minimum closed path is saved for subsequent use by the BIM system.

[0022] In the above-mentioned architectural CAD drawing segmentation and recognition method based on graph theory algorithm, in step 3), if there are still unvisited vertices in the graph, then one of the vertices is selected as the starting vertex, and steps b to d are continued to be executed, and the traversal ends.

[0023] In the above-mentioned architectural CAD drawing segmentation and recognition method based on graph theory algorithm, in step 4), the architectural component referred to by a minimum closed path is specifically a wall, a wall column, a beam, a window or a door.

[0024] In the above-mentioned architectural CAD drawing segmentation and recognition method based on graph theory algorithm, in step 4), the location information specifically refers to coordinates.

[0025] In the above-mentioned architectural CAD drawing segmentation and recognition method based on graph theory algorithm, in step 5), the algorithm for determining whether it is adjacent is:

[0026] a. Take out the lines of two closed paths and compare them pairwise;

[0027] b. Determine whether they are collinear and overlapping. If so, they are adjacent. Otherwise, they are not adjacent.

[0028] In the above-mentioned architectural CAD drawing segmentation and recognition method based on graph theory algorithm, in step 6), the edge of the minimum closed path is the boundary segment.

[0029] Compared with the prior art, this architectural CAD drawing segmentation and recognition method based on graph theory algorithm has the following beneficial effects:

[0030] The present invention solves the problem of segmentation and recognition of construction CAD design drawings by downstream software represented by steel bar repetition software in building BIM. It can accurately obtain the smallest building component graphics, thereby providing real and accurate data for subsequent BIM system use. In addition, the method has reasonable segmentation and recognition logic, concise and effective execution steps, and improves recognition work efficiency. DETAILED DESCRIPTION

[0031] The specific implementation of the present invention is further described below in conjunction with specific embodiments:

[0032] The building components in CAD drawings are composed of a large number of lines, which are connected to each other to form various parts. The intersections of these lines can be equivalent to a mathematical "graph" structure. Among them, the endpoints and intersections of the lines are the "vertices" of the graph structure, and the lines are the "edges" of the graph structure.

[0033] There is a branch of mathematics called "graph theory" that specializes in studying graph structures. Graph theory provides various algorithms for graph structures, including algorithms for finding closed loops. Finding closed loops means finding all the building components.

[0034] The architectural CAD drawing segmentation and recognition method based on graph theory algorithm includes the following steps:

[0035] 1) Establish the ownership of the layer dividing line;

[0036] The premise of identification is to be able to distinguish which type of component the line belongs to. Therefore, the "layer" in the CAD drawing is used to distinguish the lines. Several different layers are preset in the CAD drawing, and different types of component lines are classified into their corresponding layers.

[0037] 2) Use the lines in the drawing to construct the drawing structure;

[0038] Read the lines in the existing CAD drawing and intersect them two by two to obtain a series of short lines and corresponding intersection points to form a graph structure;

[0039] 3) Use the "depth-first search" algorithm provided by graph theory to find a closed path. A closed path is a closed graph.

[0040] Specific steps of the "Depth First Search" algorithm:

[0041] a. Select an initial vertex and mark it as visited;

[0042] b. If the current vertex has an adjacent vertex that has not been visited, select any vertex as the next vertex and mark the next vertex as visited;

[0043] c. If all adjacent vertices of the current vertex have been visited, then go back to the vertex that was visited most recently;

[0044] d. Continue to execute steps b and c until all vertices connected to the starting vertex have been visited;

[0045] e. If there are still unvisited vertices in the graph, select one of the vertices as the starting vertex and continue to execute steps b to d, and the traversal ends.

[0046] 4) Compare all the closed paths found, and remove those containing more than one closed path, that is, only keep the minimum closed path. A minimum closed path is a building component. The path is composed of line segments and carries position information, that is, coordinates. Among them, the building component referred to by a minimum closed path is specifically a wall, a wall column, a beam, a window or a door.

[0047] 5) Establishing association relationships;

[0048] Compare the retained minimum closed paths in pairs to determine whether they are adjacent;

[0049] The algorithm to determine whether it is bordering:

[0050] a. Take out the lines of two closed paths and compare them pairwise;

[0051] b. Determine whether they are collinear and overlapping. If so, they are adjacent. Otherwise, they are not adjacent.

[0052] 6) Save information;

[0053] At this point, the digital information of the building components has been identified, and the association between the edges of the minimum closed path is saved. The edges of the minimum closed path are the boundary segments for subsequent use by the BIM system.

[0054] Compared with the prior art, this architectural CAD drawing segmentation and recognition method based on graph theory algorithm has the following beneficial effects:

[0055] The present invention solves the problem of segmentation and recognition of construction CAD design drawings by downstream software represented by steel bar repetition software in building BIM. It can accurately obtain the smallest building component graphics, thereby providing real and accurate data for subsequent BIM system use. In addition, the method has reasonable segmentation and recognition logic, concise and effective execution steps, and improves recognition work efficiency.

[0056] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for segmenting and recognizing architectural CAD drawings based on graph theory algorithm, characterized in that: The following steps are involved: 1) Establish the ownership of the layer dividing line; The premise of identification is to be able to distinguish which type of component the line belongs to. Therefore, the "layer" in the CAD drawing is used to distinguish the lines. Several different layers are preset in the CAD drawing, and different types of component lines are classified into their corresponding layers. 2) Use the lines in the drawing to construct the drawing structure; Read the lines in the existing CAD drawing and intersect them two by two to obtain a series of short lines and corresponding intersection points to form a graph structure; 3) Use the "depth-first search" algorithm provided by graph theory to find a closed path. A closed path is a closed graph. The specific steps of the "Depth First Search" algorithm are: a. Select an initial vertex and mark it as visited; b. If the current vertex has an adjacent vertex that has not been visited, select any vertex as the next vertex and mark the next vertex as visited; c. If all adjacent vertices of the current vertex have been visited, then go back to the vertex that was visited most recently; d. Continue to execute steps b and c until all vertices connected to the starting vertex have been visited; 4) Compare all the closed paths found in pairs, and remove those that contain more than one closed path, that is, only keep the minimum closed path. A minimum closed path is a building component. The path is composed of line segments and has position information. 5) Establishing association relationships; Compare the retained minimum closed paths in pairs to determine whether they are adjacent; 6) Save information; At this point, the digital information of the building components has been identified, and the relationship between the edges of the minimum closed path is saved for subsequent use by the BIM system; In step 4), the building component referred to by a minimum closed path is specifically a wall, a wall column, a beam, a window or a door; In step 5), the algorithm for determining whether the border is present is: a. Take out the lines of two closed paths and compare them pairwise; b. Determine whether they are collinear and overlapped. If so, they are adjacent. Otherwise, they are not adjacent. In step 6), the edge of the minimum closed path is the boundary segment.

2. The architectural CAD drawing segmentation and recognition method based on graph theory algorithm as claimed in claim 1, characterized in that: In step 3), if there are still unvisited vertices in the graph, select one of the vertices as the starting vertex, and continue to execute steps b to d, and the traversal ends.

3. The architectural CAD drawing segmentation and recognition method based on graph theory algorithm as claimed in claim 1, characterized in that: In step 4), the location information specifically refers to coordinates.

Citation Information

Patent Citations

  • Graph theory-based rapid construction method of digital prototype of spindle system

    CN108647433A

  • Vertical graph identification method for converting architectural drawing into three-dimensional BIM model

    CN109993827A