Building component identification method, device, electronic equipment and storage medium

By identifying parameters, the geometric objects in the drawings are extracted, openings and wall objects are identified, and the mapping relationship between rooms and wall objects is established, and component attributes are adjusted to solve the problems of low efficiency and poor accuracy in building component recognition in the existing technology, and achieve Efficient and automated building component identification and design optimization.

CN118521904BActive Publication Date: 2024-10-18TIANHUA ARCHITECTURE DESIGN COMPANY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410986394.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-18
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently identify and process geometric objects in building components, resulting in difficulties in design and production automation and data statistical verification. The lack of parametric objects makes it difficult to deepen the design.

Method used

Provides a building component identification method that obtains user identification parameters, extracts geometric objects in drawings, identifies openings and wall objects, establishes a mapping relationship between rooms and wall objects, and adjusts component attributes to meet design requirements.

Benefits of technology

It improves the efficiency and accuracy of building component identification, enhances the flexibility and adaptability of the system, and optimizes the consistency and accuracy of the building model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521904B_ABST
    Figure CN118521904B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for identifying building components, belonging to the field of image processing technology, the method comprising: obtaining a user's identification parameters and a drawing file to be identified; extracting a geometric object containing multiple objects from the drawing file according to the identification parameters, and identifying candidate edges of an opening object from the geometric object, so as to construct an opening object area according to the candidate edges; identifying candidate edges of a wall object from the geometric object, and calculating the wall object after performing an offset operation on the candidate edges that deviate from the center of the wall object outside the opening object area; identifying room objects and establishing a mapping relationship between room objects and wall objects, and identifying the room objects containing opening objects according to the mapping relationship; and adjusting the attributes of the opening object, the wall object and the railing object according to the attributes of the room object. The present application can improve the efficiency and accuracy of component identification in building drawing files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for identifying building components. Background Art

[0002] Plan drawings are the basis for communication between all parties in architectural design projects. They usually use two-dimensional geometric objects such as lines and surfaces to describe building components, supplemented by additional information such as layers, text, and annotations. Although this description method ensures the uniformity of the communication format, due to the lack of parametric objects, it is difficult to modify the drawings conveniently by modifying parameters during in-depth design, and it is also impossible to directly obtain component parameters for data statistics and verification, thus hindering the automation of design production. Therefore, it is necessary to provide an efficient and accurate method to identify geometric objects in plan drawings. Summary of the invention

[0003] The present application provides a building component recognition method, device, electronic device and storage medium, aiming to solve the problem of how to recognize building components in graphics.

[0004] In a first aspect, the present application provides a method for identifying a building component, the method comprising:

[0005] Obtain the user's identification parameters and the drawing file to be identified;

[0006] According to the recognition parameters, a geometric object including a plurality of objects is extracted from the drawing file, and candidate edges of an opening object are identified from the geometric object to construct the opening object area according to the candidate edges, wherein the opening object includes a door object and a window object;

[0007] Identify candidate edges of a wall object from the geometric object, and calculate the wall object after performing an offset operation on the candidate edges outside the opening object area that deviate from the center of the wall object, wherein the wall object includes a standard wall object and a line-of-sight wall object;

[0008] Identify a room object and establish a mapping relationship between the room object and the wall object, and identify the room object including the hole object according to the mapping relationship;

[0009] According to the properties of the room object, the properties of the opening object, the wall object and the railing object are adjusted.

[0010] In a second aspect, the present application further provides a building component recognition device, the building component recognition device comprising:

[0011] An acquisition module is used to acquire the user's recognition parameters and the drawing file to be recognized;

[0012] A construction module, used for extracting a geometric object including a plurality of objects from the drawing file according to the identification parameters, and identifying candidate edges of an opening object from the geometric object to construct the opening object region according to the candidate edges, wherein the opening object includes a door object and a window object;

[0013] A calculation module, used for identifying candidate edges of a wall object from the geometric object, and calculating the wall object after performing an offset operation on the candidate edges outside the opening object area that deviate from the center of the wall object, wherein the wall object includes a standard wall object and a line-of-sight wall object;

[0014] A mapping module, used to identify a room object and establish a mapping relationship between the room object and the wall object, and to identify the room object including the hole object according to the mapping relationship;

[0015] The adjustment module is used to adjust the properties of the opening object, the wall object and the railing object according to the properties of the room object.

[0016] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of the building component identification method as described in any one of the first aspects are implemented.

[0017] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the building component identification method as described in any one of the first aspects are implemented.

[0018] The present application provides a method, device, electronic device and storage medium for identifying building components. The method first obtains the user's identification parameters and the drawing file to be identified, so that the identification process is closely connected with the user's needs. Then, the geometric objects are extracted from the drawings, and the candidate edges of the opening objects are identified, and then their areas are constructed. Then, offset operations and wall objects are calculated. On this basis, a mapping relationship between room objects and wall objects is established to identify the type of opening objects. Finally, the properties of the opening objects, wall objects and railing objects are adjusted according to the properties of the room objects, so that the properties of all components meet the preset design requirements.

[0019] Therefore, the building component identification method described in the present application improves the efficiency and accuracy of building component identification in drawing files through an automated and intelligent processing flow, while enhancing the flexibility and adaptability of the system, and automatically adjusts component properties to optimize the consistency and accuracy of the building model. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 is a flow chart of the building component identification method provided by the present application;

[0022] Figure 2 is a flow chart of a building component identification method provided by an embodiment of the present application;

[0023] Figure 3 It is a structural schematic diagram of the building component identification device provided by the present application;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.

[0027] The following is an explanation of the terms used in this application.

[0028] CAD plans are two-dimensional drawings created using computer-aided design (CAD) software that represent the layout and design of buildings, machinery, circuits or other structures on a horizontal plane. These plans usually show the interior and exterior spaces of a building or object, including the location and size of components such as walls, doors and windows, furniture, equipment, pipes, electrical wiring, etc.

[0029] In order to solve the problem of how to identify building components in graphics. The present application provides a building component recognition method, device, electronic device and storage medium. The method first obtains the user's recognition parameters and the drawing file to be recognized, so that the recognition process is closely connected with the user's needs. Next, the geometric objects are extracted from the drawings, and the candidate edges of the opening objects are identified, and then their areas are constructed. Then, through offset operations and calculations of wall objects. On this basis, a mapping relationship between room objects and wall objects is established, and the type of opening objects is identified. Finally, the properties of the opening objects, wall objects and railing objects are adjusted according to the properties of the room objects, so that the properties of all components meet the preset design requirements.

[0030] The building component recognition method of the present application is highly versatile and flexible, and is not limited to the application of CAD plan drawings, but can also be extended to two-dimensional drawings or three-dimensional drawings generated by other drawing tools. The core of the method lies in its ability to recognize and process geometric objects, as well as to classify and adjust the properties of different component types.

[0031] Specifically, the method takes into account the file formats and data structures of different drawing tools, and can read and parse graphic files from various drawing tools through appropriate interfaces or conversion tools. Moreover, the method can automatically adjust relevant parameters according to the characteristics of the input graphic files, and can identify the components in both two-dimensional plan drawings and three-dimensional models. Moreover, the architecture of the method allows the addition of new recognition rules and processing logic to adapt to different types of graphics and design requirements, so that it can maintain efficiency and accuracy in a variety of drawing environments.

[0032] Therefore, the building component recognition method of the present application is a cross-platform solution and can be integrated into different drawing tool environments to improve the efficiency and quality of recognition.

[0033] Combine the following Figure 1-Figure 4 The invention describes the building component identification method, device, electronic device and storage medium of the present application.

[0034] Please refer to Figure 1 , Figure 1 1 is a flow chart of a building component identification method provided by the present application. A building component identification method, the building component identification method comprises steps S10 to S50:

[0035] S10, obtaining the user's identification parameters and the drawing file to be identified.

[0036] Specifically, before the recognition of building components in the graphics begins, the system needs to collect user-defined recognition parameters, which can be set by the user according to specific needs and are used to guide the process of building component recognition. For example, the user can specify the recognition of specific types of components (such as wall objects, door objects, window objects, etc.), or set recognition conditions such as size ranges and position relationships. Among them, the recognition parameters can be entered by the user through the user interface or a menu bar can be provided for the selection of these parameters. The user can fill in the relevant information in the settings or configuration menu of the software, or interact through dialog boxes, forms, etc. The drawing file to be recognized refers to the original drawing file that the user wants to perform graphic recognition on, which can be a CAD file (such as DWG, DXF format), an image file (such as JPEG, PNG format) or a drawing file in other formats.

[0037] S20, extracting a geometric object including a plurality of objects from the drawing file according to the recognition parameters, and identifying candidate edges of the opening object from the geometric object to construct an opening object area according to the candidate edges.

[0038] Specifically, the system needs to parse the drawing file to extract the geometric objects therein, such as lines, arcs, polygons, etc. These geometric objects are the basis for various building components in the drawings (such as opening objects, wall objects, room objects, etc.). After extracting the geometric objects, the system needs to further analyze these graphics and identify the candidate edges of the opening objects from the geometric objects. The opening in this application refers to an opening reserved on the wall for installing doors and windows. The opening can be represented by closed lines or curves that define the outline of the opening. According to the characteristics of the opening (such as shape, size, position, etc.), the characteristics of the geometric object are analyzed, and then the candidate edges that meet the characteristics of the opening are found. After identifying the candidate edges, the system needs to combine these candidate edges to form a candidate edge set to construct the opening object area.

[0039] S30, identifying candidate edges of the wall object from the geometric object, performing an offset operation on the candidate edges outside the opening object area that deviate from the center of the wall object, and then calculating the wall object.

[0040] Specifically, the potential boundaries of the wall object are identified in the geometric object. The candidate edges here are the edges that constitute the wall object. In addition, the system needs to identify those candidate edges that are not in the opening object area and deviate from the center line of the wall. These candidate edges need to be offset so that the wall object can correctly surround the opening object area. After performing the offset operation, the wall object needs to be further calculated to obtain objects of different heights. For example, standard wall objects and line-of-sight wall objects (line-of-sight wall objects are also called low walls) of different heights can be obtained. Among them, low walls are generally used to represent lower objects such as door sills and window sills.

[0041] S40, identifying room objects and establishing a mapping relationship between room objects and wall objects, and identifying room objects including hole objects according to the mapping relationship.

[0042] Specifically, the system first identifies the room object based on the calculated wall object. For example, based on the calculated wall objects (including standard wall objects and sight line wall objects), the boundary of a room object is used to establish a mapping relationship between the room object and the wall object. Then, based on the mapping relationship, the system further identifies the opening objects on the wall object, such as identifying the door and window objects on the wall object. The system can combine the sight line geometric features (such as the edge line of the wall object, the contour line of the opening object, etc.) to assist in identifying the type of the opening object. The types of opening objects include, for example, various types of door objects and various types of window objects.

[0043] It should be noted that the prior art will analyze the lines on the drawings to determine the relationship between them, and after analyzing the relationship between the lines, obtain information on how the lines are combined, and then use this information to associate the related lines to form identifiable component segments, but this method cannot solve the ambiguity of the geometric lines themselves. For example, in a building plan, window objects and railing objects, low wall objects and wall hole objects may be described using the same layers and lines, and they cannot be accurately distinguished only by line relationship analysis. The present application can eliminate the ambiguity of geometric lines by identifying room objects and the mapping relationship between wall objects and room objects, and identifying room objects containing hole objects based on the mapping relationship, because it not only relies on the geometric relationship of the lines, but also takes into account the function and position of the components in the architectural space. In this way, the system can more accurately distinguish and identify components, thereby improving the accuracy of recognition.

[0044] S50, adjusting the properties of the opening object, the wall object, and the railing object according to the properties of the room object.

[0045] Among them, the opening object to the railing object are components extracted from the geometric object, which respectively represent different components in the drawing file. Adjusting the properties of the door and window object, wall object, and railing object is based on the properties of the room object.

[0046] For example, the properties of door and window objects, wall objects, and railing objects (such as size, location, material, function, etc.) are modified accordingly based on the specific properties of room objects (such as use, size, location, adjacent spaces, etc.). If the use of a room changes from an office to a conference room, the size of the doors and windows may need to be increased to improve ventilation and lighting, or the sound insulation performance of the walls may need to be adjusted to meet higher acoustic requirements. Similarly, if the location or adjacent spaces of the room change, the height or style of the railing object may need to be adjusted to meet safety regulations or design styles.

[0047] This step adjusts the properties of other components based on the properties of the room object, aiming to ensure the overall consistency, functionality and aesthetics of the building design while meeting specific usage needs and regulatory requirements.

[0048] The above steps S10 to S50 are described in detail below through specific examples.

[0049] In some embodiments, in step S10, the purpose is to obtain identification parameters from the configuration interface, and the identification parameters include any one of the following or a combination thereof:

[0050] (1) Component layer name list: including a wall object layer, wherein the wall object layer includes a wall line layer having different construction lines and a viewing line layer.

[0051] Specifically, the wall line layer and the visual line layer cannot be repeated. The wall line layer contains the wall section lines to be identified in the plan view. The visual line layer contains the structural visual lines such as door and window lines, railing lines, low walls and bay windows to be identified.

[0052] (2) A list of special component names, including door block objects that require special processing.

[0053] For example, the name of a door object that requires special handling.

[0054] (3) Default value of wall object thickness, indicating the default thickness value of the wall object.

[0055] For example, the default value of the wall object thickness is the default value of wall thickness, which means that when the wall thickness is not clearly marked, the default wall thickness value set by the user is w0.

[0056] (4) The maximum limit of the wall object thickness indicates the upper limit of the wall object thickness.

[0057] For example, the maximum limit of the wall object thickness is the maximum limit of the wall thickness, which means that the upper limit of the wall thickness set by the user is w1.

[0058] (5) The maximum width limit of the opening object includes the first upper limit value of the opening object defined by the wall object in the parallel direction and the second upper limit value of the opening object defined by the wall object in the vertical direction.

[0059] For example, the maximum width limit of the opening object is the maximum width limit of the door and window objects, which is represented by the upper limit of the width of the door and window objects defined by parallel walls and vertical walls set by the user to standardize the size of the opening. The upper limit of the width of the door and window objects defined by parallel walls is d1, and the upper limit of the width of the door and window objects defined by vertical walls is d2.

[0060] In some embodiments, in step S10, the step of obtaining the drawing file to be identified is intended to obtain information of the object to be identified in the drawing file, and specifically includes steps S101 to S103:

[0061] S101, reading line segment object information.

[0062] For example, by calling the data reading interface of the CAD platform software, detailed information of the geometric straight line object in the CAD drawing can be obtained, including the starting point coordinates, end point coordinates and the layer name of the straight line.

[0063] S102, reading arc object information.

[0064] For example, by calling the data reading interface of the CAD platform software, detailed information of the geometric arc object in the CAD drawing can be obtained, including the arc's starting angle, end angle, center coordinates, radius, and layer name.

[0065] S103, reading door block object information.

[0066] For example, by calling the data reading interface of the CAD platform software, detailed information of the door block object in the CAD drawing can be obtained, including the name of the door block, insertion point coordinates, rotation angle, scaling ratio and specific content of the door block.

[0067] The above steps S101 to S103 are the process of reading the information of the object to be identified from the drawing file. This process enables all relevant geometric objects and door block object information to be accurately extracted from the drawing file, providing the necessary data basis for subsequent identification and processing steps.

[0068] In some embodiments, in step S20, the step of extracting a geometric object including multiple objects from the drawing file according to the recognition parameter is intended to filter the acquired geometric object information according to the recognition parameter, and specifically includes steps S201 to S203:

[0069] S201 selects line segment and arc objects in the wall line layer according to the recognition parameters, and incorporates them into the wall line collection.

[0070] This step is to filter out the line segments and arc objects belonging to the wall line layer through identification parameters and add them to the wall line collection, which helps to distinguish the wall structure elements in the architectural drawings.

[0071] S202, screening line segment and arc objects in the line-viewing layer according to the recognition parameters, and adding them into the line-viewing set.

[0072] This step uses the recognition parameters to filter out the line segments and arc objects belonging to the look line layer and add them to the look line collection. Look lines are used to represent door and window objects or other areas that require special attention. This distinction helps to accurately process these areas later.

[0073] S203, filtering the door block objects in the special component name list according to the identification parameters, and incorporating them into the door block collection.

[0074] This step uses recognition parameters to filter out door block objects whose names are in the special component name list and adds them to the door block collection. This helps to specifically handle those types of door objects that require special recognition, such as sliding doors, revolving doors, etc., to ensure that these door objects can be correctly identified and classified.

[0075] In some embodiments, in step S20, after the step of extracting a geometric object including a plurality of objects from the drawing file, the building component recognition method further comprises:

[0076] S204, preprocessing the geometric object, specifically including steps S2041 to S2043:

[0077] S2041, in the wall line set, performing deduplication and merging operations on collinear overlapping objects, and performing segmentation operations on intersecting objects.

[0078] This step is the preprocessing of the wall line set. Among them, performing deduplication and merging operations on colinear and overlapping objects in the wall line set helps to eliminate duplicate geometric information, simplify the data structure, and ensure the continuity and consistency of the wall line. The split operation, also known as the interruption operation, is a split operation on intersecting wall line objects, which helps to accurately identify the intersection points of the wall and provide clear geometric boundaries for subsequent wall analysis and modeling.

[0079] S2042: In the line set, de-duplicate and merge collinear overlapping objects, and split intersecting objects.

[0080] This step is the preprocessing of the line set. Among them, performing deduplication and merging operations on the colinear overlapping objects in the line set helps to eliminate duplicate geometric information, simplify the data structure, and ensure the continuity and consistency of the line. The split operation, also known as the interruption operation, splits the intersecting line objects, which helps to accurately identify the boundaries of special areas such as door and window objects, and provides clear geometric boundaries for the subsequent type identification of the opening object.

[0081] S2043, finding the intersection points between the objects of the wall line set and the viewing line set, and splitting the viewing line objects at the intersection points.

[0082] This step is the interactive processing of the wall line set and the sight line set. The intersection points of the wall line set and the sight line set are calculated, and the sight line objects are split at the intersection points, which helps to ensure the accurate position of the sight line on the wall object and provide necessary information for the accurate placement and identification of components such as door and window objects.

[0083] In the above S2041 to S2043, the role of these pre-processing steps is to ensure the data accuracy and consistency of geometric objects, eliminate duplicate and erroneous geometric information, and provide a clear and concise data basis for subsequent automated recognition and processing steps. This not only improves processing efficiency, but also ensures the accuracy and reliability of the final result.

[0084] In some embodiments, in step S20, the step of identifying candidate edges of the hole object from the geometric object is intended to identify candidate edges of the hole object area, and specifically includes steps S205 to S207:

[0085] S205, extracting all objects from the wall line set, and dividing the wall lines into a number of connected subsets according to whether the lines in the wall line set can be connected to each other through intersections.

[0086] The purpose of this step is to extract all wall line objects and divide them into several connected subsets according to whether these wall lines are connected to each other through intersections. A connected subset refers to a group of wall lines that form a continuous structure geometrically, such as the surrounding wall objects of a room object or a closed corridor. By checking the intersections between wall lines, it is possible to determine which wall lines form a continuous structure and classify these wall lines into the same connected subset.

[0087] S206, calculating the outermost contour of each connected subset, and the calculation result is represented by a clockwise loop consisting of a group of directed curve segments connected end to end.

[0088] In this step, the system calculates the outermost contour of each connected subset. The outermost contour refers to the outermost boundary that surrounds all the walls of the connected subset. The calculation result will be represented by a clockwise loop consisting of a set of directed curve segments connected end to end. This means that the outermost contour is composed of a series of continuous, consistent curve segments that are connected in a clockwise direction to form a closed loop.

[0089] S207, traversing each edge on each outer contour loop, if the preset first condition is met, adding the corresponding directed edge into the candidate edge set of the hole object.

[0090] In this step, each edge on each outer contour loop is traversed and checked to see if these edges meet the preset first condition. If an edge meets the first condition, it will be included in the candidate edge set of the hole object.

[0091] Specifically, for each edge, check whether it satisfies the following first condition:

[0092] ①The current edge is a straight line segment.

[0093] That is, the edge should be a straight line, not a curve or other shape.

[0094] ②The length of the current edge is <= w1, where w1 represents the maximum limit of the wall thickness.

[0095] That is, the length of this edge should be less than or equal to the upper limit of the wall thickness w1.

[0096] ③ The inner product of the tangent vectors of the current edge and the previous edge at the intersection is 0 and the vector product is positive, or the inner product of the tangent vectors of the current edge and the previous edge at the intersection is 0 and the vector product is negative.

[0097] That is, the current edge and the previous edge are perpendicular to each other at the intersection, and their rotation direction is clockwise, or the current edge and the previous edge are perpendicular to each other at the intersection, but their rotation direction is counterclockwise.

[0098] If an edge meets all the above conditions ① to ③, it will be added to a candidate edge set. The edges in the candidate edge set are potential edges for defining the opening object.

[0099] In some embodiments, in step S20, the step of constructing the hole object area according to the candidate edges is intended to construct a first constructed area using the candidate edge set of the hole object area, and specifically includes steps S208 and S209:

[0100] S208, from the candidate edge set, two edges that meet the preset second condition are selected, and a rectangular hole object area is constructed based on the overlapping part of their projections, and the rectangular hole object area is added to the hole object area set. Specifically, steps S2081 to S2084 are included:

[0101] S2081, calculate the normal vector of each edge in the candidate edge set, that is, the result of rotating the unit vector of the edge by 90° counterclockwise, and select edge pairs that meet the preset second condition from the candidate edge set.

[0102] For example, take all edge pairs (e1, e2) that satisfy the following second condition from the candidate edge set:

[0103] ①e1 and e2 are not collinear, and their direction vectors are opposite (inner product <0 and vector product = 0).

[0104] This condition requires that edge e1 and edge e2 are not on the same line (i.e. not collinear) and that their direction vectors are opposite. Opposite direction vectors means that if you multiply these two vectors (i.e. inner product), the result should be negative (i.e. inner product < 0). At the same time, a vector product of 0 means that the two vectors are parallel, but since they are not collinear, they are actually antiparallel.

[0105] ②The parallel distance between e1 and e2 is <= d1.

[0106] This condition requires that the parallel distance between edge e1 and edge e2 does not exceed d1, where d1 represents the upper limit of the width of the door and window object defined by the parallel walls. The parallel distance refers to the shortest distance between two parallel lines.

[0107] ③The projection of e1 on the straight line where e2 is located overlaps with e2.

[0108] This condition requires that the projection of edge e1 on the line where edge e2 is located (i.e. the shadow of e1) overlaps with edge e2. This means that at least part of the projection of e1 overlaps with e2.

[0109] ④ The vector from the starting point e1 to the starting point e2 has an angle <90° with the normal vector of e1.

[0110] This condition requires that the angle between the vector from the start point of edge e1 to the start point of edge e2 and the normal vector of e1 is less than 90 degrees. The normal vector is the vector perpendicular to the direction of edge e1. If the angle is less than 90 degrees, it means that the vector from the start point of e1 to the start point of e2 is in the same direction as the normal vector of e1.

[0111] By selecting the edge pairs that meet the preset second condition (i.e. ① to ④), the following processing is performed so that each pair of e1 and e2 constructs a hole object area:

[0112] S2082, calculate the projection line segment of e1 on the straight line where e2 is located, and record the overlapping part with e2 as s1.

[0113] This step requires calculating the projection line segment of edge e1 on the line where edge e2 is located, and finding the overlapping part of this projection line segment and edge e2. This overlapping part is marked as s1.

[0114] S2082, calculate the projection line segment of e2 on the straight line where e1 is located, and record the overlapping part with e1 as s2.

[0115] This step requires calculating the projection line segment of edge e2 on the line where edge e1 is located, and finding the overlap between this projection line segment and edge e1. This overlap is marked as s2.

[0116] S2083, record the rectangular area formed by the starting and ending points of s1 and s2, and add it to the hole object area set.

[0117] In this step, the system will record the rectangular area formed by the start and end points of s1 and the start and end points of s2. This rectangular area represents a hole object area between e1 and e2, and it will be added to the hole object area set.

[0118] S2084, delete e1 and e2 from the candidate edge set and the wall line set.

[0119] Finally, edges e1 and e2 are removed from the candidate edge set and the wall line set. This means that they are no longer considered as candidate edges because they have been used to define an opening object area.

[0120] S209, from the remaining candidate edge set, select the edges that meet the preset third condition and the edges on the outer contour loop, and construct a rectangular hole object area based on the overlapping part of their projections, and add the rectangular hole object area to the hole object area set. Specifically including steps S2091 to S2094:

[0121] S2091, from the remaining candidate edge set, select the edges that meet the preset third condition and the edges on the outer contour loop, and calculate the overlapping part of the projected line segment again.

[0122] That is, the edge e3 in the remaining candidate edge set and the edge e4 on the outer contour loop are screened and processed.

[0123] Among them, all edges e3 and edges e4 on the outer contour loop that satisfy the following third condition (i.e., conditions ① to ⑦) are selected from the remaining candidate edge set:

[0124] ① The two edges adjacent to e3 on the outer contour loop are both within the wall line set.

[0125] This condition requires that on the outer contour loop, the two edges adjacent to edge e3 must be edges in the wall line set, that is, they are actual wall edges that constitute the outer contour.

[0126] ② The two edges adjacent to e3 on the outer contour loop do not both exist in the candidate edge set of the hole object area.

[0127] This condition requires that on the outer contour loop, the two edges adjacent to edge e3 cannot exist in the candidate edge set of the hole object area at the same time, that is, at least one edge is not used to define the hole.

[0128] ③ If one of the two edges adjacent to e3 on the outer contour loop is in the candidate edge set of the hole object area, the length of the adjacent edge should be greater than the length of e3.

[0129] This condition requires that if one of the edges adjacent to edge e3 on the outer contour loop is in the candidate edge set of the hole object area, then the length of this edge should be greater than the length of edge e3.

[0130] ④e3 and e4 are not collinear, and their direction vectors are opposite (inner product <0 and vector product = 0).

[0131] This condition requires that edge e3 and edge e4 are not on the same straight line (i.e., not collinear) and that their direction vectors are opposite.

[0132] ⑤The parallel distance between e3 and e4 is <= d2.

[0133] This condition requires that the parallel distance between edge e3 and edge e4 does not exceed d2, where d2 represents the upper limit of the width of the door and window object defined by the vertical wall.

[0134] ⑥The projection of e3 on the straight line where e4 is located overlaps with e4.

[0135] This condition requires that the projection of edge e3 on the line where edge e4 lies overlaps with edge e4.

[0136] ⑦ The vector from the starting point e3 to the starting point e4 has an angle <90° with the normal vector of e3.

[0137] This condition requires that the angle between the vector from the starting point of edge e3 to the starting point of edge e4 and the normal vector of edge e3 is less than 90 degrees.

[0138] Filter out the edge pairs that meet the third condition (i.e. ① to ⑦) above, and process them as follows so that each pair of e3 and e4 constructs a hole object area:

[0139] S2092, calculate the projection line segment of e3 on the straight line where e4 is located, and record the overlapping part with e4 as s3.

[0140] This step requires calculating the projection line segment of edge e3 on the straight line where edge e4 is located, and finding the overlapping part of the projection line segment and edge e4, marked as s3.

[0141] S2092, calculate the projection line segment of e4 on the straight line where e3 is located, and record the overlapping part with e3 as s4.

[0142] This step requires calculating the projection line segment of edge e4 on the straight line where edge e3 is located, and finding the overlapping part of the projection line segment and edge e3, marked as s4.

[0143] S2093, record the rectangular area formed by the starting and ending points of s3 and s4, and add it to the hole object area set.

[0144] In this step, the system will record the rectangular area formed by the start and end points of s3 and the start and end points of s4. The rectangular area represents a hole object area between e3 and e4, and it will be added to the hole object area set.

[0145] S2094, delete e3 and e4 from the wall line set.

[0146] Finally, remove edges e3 and e4 from the wall line collection because they have been used to define an opening object area.

[0147] In the above step S208 (including step S2081 to step S2084) and step S209 (step S2091 to step S2094), S209 is to supplement the construction of the hole object area on the basis of S208. Among them, S208 mainly focuses on the edge pair relationship inside the candidate edge set, and S209 mainly focuses on the relationship between the edges in the candidate edge set and the edges on the outer contour loop. By adding S209, all possible hole object areas in the drawing can be more comprehensively identified and constructed, so as to ensure the integrity and accuracy of the hole object area.

[0148] In some embodiments, in S30, the step of calculating the wall object is intended to calculate the standard wall object described by the wall line set and calculate the line-viewing wall object described by the line-viewing set, and specifically includes steps S301 and S302:

[0149] S301, divide the objects in the wall line set into several subsets based on connectivity, calculate the outermost contour of each subset, and select the edge pairs that meet the specific geometric relationship, calculate their midlines and overlapping projections, and build a standard wall object with a first height based on this, and record its mapping relationship with the original edge, and add the standard wall object to the wall set. Specifically including steps S3011 to S3012:

[0150] S3011, in the wall line outer contour edge set obtained from the wall line set, find all directed edges e5 and e6 that meet the following conditions (i.e., ① to ③):

[0151] ①e5 and e6 are not collinear, and their direction vectors are opposite (inner product <0 and vector product = 0).

[0152] This condition requires that edge e5 and edge e6 are not on the same straight line (i.e., not collinear) and that their direction vectors are opposite.

[0153] ②The parallel distance between e5 and e6 is <= d1.

[0154] This condition requires that the parallel distance between edge e5 and edge e6 does not exceed d1, where d1 represents the upper limit of the width of the door and window object defined by the parallel walls.

[0155] ③The projection of e5 on the straight line where e6 is located overlaps with e6.

[0156] This condition requires that the projection of edge e5 on the line where edge e6 lies overlaps with edge e6.

[0157] S3012, for the found directed edges e5 and e6, calculate the midline of e5 and e6, use the overlapping part of the projections of e5 and e6 on the midline as the baseline and the parallel distance of e5 and e6 as the width, construct a standard wall object, assign it a first height h1, and record the bidirectional mapping relationship between the ordinary wall and e5 and e6, and add it to the wall set.

[0158] Among them, calculating the midline of e5 and e6 means finding a straight line that is located in the middle of e5 and e6, usually half the parallel distance between e5 and e6. Taking the overlapping part of the projections of e5 and e6 on the midline as the baseline, it means using the overlapping part of the projections of e5 and e6 on the midline as the base line of the standard wall object. Taking the parallel distance of e5 and e6 as the width, it means that the width of the wall object will be equal to the parallel distance between e5 and e6. Constructing a standard wall object and giving it a first height h1 means constructing a standard wall object based on the above baseline and width, and giving it a first height h1. Recording the bidirectional mapping relationship between the standard wall object and e5 and e6 means establishing a bidirectional association between the wall object and the edges e5 and e6 that constitute it.

[0159] S302, divide the objects in the line-viewing set into several subsets based on connectivity, calculate the outermost contour of each subset, and select edge pairs that meet specific geometric relationships, build line-viewing wall objects with a second height based on their midlines and overlapping projections, and record their mapping relationship with the original edges, and add these line-viewing wall objects to the wall set. Specifically, it includes steps S3021 to S3024:

[0160] S3021, taking all objects in the line set, and dividing the wall lines into a number of connected subsets according to whether the lines in the set can be connected to each other through intersections.

[0161] This step is to divide all objects in the line set (such as some line segments or curve segments) into several connected subsets according to whether they can be connected to each other through intersections. Connected subsets mean that these lines are connected to each other in space and can form one or more closed regions.

[0162] S3022, calculating the outermost contour of each connected subset, and the calculation result is represented by a clockwise loop consisting of a group of directed curve segments connected end to end.

[0163] This step requires calculating the outermost contour of each connected subset, that is, the boundary of the closed area of ​​the subset. The boundary is composed of a set of directed curve segments connected end to end, and these curve segments are arranged in a clockwise direction to represent the boundary of the closed area.

[0164] S3023, in the set of outer contour edges of the look-line obtained from the look-line set, search for all directed edges e7 and e8 that satisfy the following conditions (i.e., ① to ③):

[0165] ①e7 and e8 are not collinear, and their direction vectors are opposite (inner product <0 and vector product = 0).

[0166] ②The parallel distance between e7 and e8 is <= d1.

[0167] ③The projection of e7 on the straight line where e8 is located overlaps with e8.

[0168] This step is to find directed edges e7 and e8 that meet specific conditions in the edge set of the outer contour of the viewing line. It is required that edge e7 and edge e8 are not collinear, the direction vectors are opposite, the parallel distance does not exceed the upper limit d1 of the width of the door and window object defined by the parallel wall, and the projection of e7 on the line where e8 is located overlaps with e8.

[0169] S3024, for the directed edges e7 and e8 found, calculate the midline of e7 and e8, use the overlapping part of the projections of e7 and e8 on the midline as the baseline and the parallel distance of e7 and e8 as the width, construct a visual line wall object, give it a second height h2, and record the bidirectional mapping relationship between the visual line wall object and e7 and e8, and add it to the wall set.

[0170] Among them, calculating the midline of e7 and e8 means finding a straight line located in the middle of e7 and e8. Taking the overlapping part of the projections of e7 and e8 on the midline as the baseline means using the overlapping part of the projections of e7 and e8 on the midline as the base line of the visual line wall object. Taking the parallel distance of e7 and e8 as the width means that the width of the room object will be equal to the parallel distance between e7 and e8. Constructing a visual line wall object and giving it a second height h2 means constructing a visual line wall object based on the above baseline and width, and giving it a second height h2. Recording the bidirectional mapping relationship between the visual line wall object and e7 and e8 means establishing a bidirectional association between the visual line wall object and the edges e7 and e8 that constitute it.

[0171] In some embodiments, after executing steps S301 and S302, the building component recognition method further includes a step of processing the intersection of adjacent wall objects, specifically including:

[0172] S303, identifying and processing intersecting wall object edge pairs, and extending the wall baselines to their intersection points for the cases where the wall baselines are mapped to different wall objects and do not intersect.

[0173] The purpose of this step is to process the intersections between adjacent wall objects so that they are correctly connected at the intersection, specifically including taking all intersecting edge pairs e9 and e10 from the wall line contour edge set and the visual line contour edge set. If e9 and e10 are mapped to a wall object respectively, and the wall baselines of the two wall objects do not intersect, then the two wall baselines are extended to the intersection respectively.

[0174] That is to say, e9 and e10 correspond to two different wall objects, and the baselines of the two wall objects (i.e. the bottom contour lines of the wall objects) do not intersect, so it is necessary to extend the baselines of the two wall objects separately until they meet at the intersection. This is done to make the wall objects correctly connected at the intersection to form a continuous structure.

[0175] In some embodiments, after executing S301 and S302, the building component recognition method further includes supplementing the wall object in the hole object area, specifically including:

[0176] S304, constructing new standard wall objects by taking the long side center line of the opening object area as the baseline and the short side width as the width, assigning them a first height, and then adding these standard wall objects to the wall set.

[0177] The purpose of this step is to construct additional wall objects in the opening object area, specifically, using the center line of the long side of each opening object area as the baseline and the width of the short side of the opening object area as the width, constructing a new standard wall object, giving it a first height h1, and adding it to the wall set.

[0178] Among them, the center line of the long side of each opening object area is used as the baseline, which means that for each opening object area, the center line of its long side is used as the baseline of the newly constructed standard wall object. The baseline is the bottom outline of the wall object, which defines the position and direction of the wall object. The new standard wall object is constructed with the short side width of the opening object area as the width, which means that the width of the newly constructed standard wall object will be equal to the short side width of the opening object area. This is done to make the wall symmetrical on both sides of the opening object area and to be able to correctly enclose the opening object. Assigning it the first height h1 and adding it to the wall set means that the newly constructed standard wall object will be assigned the first height h1 and added to the wall set. The wall set is a collection of all wall objects (including standard wall objects and line-of-sight wall objects).

[0179] In some embodiments, in S40, the step of identifying the room object and establishing a mapping relationship between the room object and the wall object is to first identify the room object and establish a mapping relationship between the room object and the wall object, specifically including steps S401 to S406:

[0180] S401, extracting all wall objects from the wall set, and performing offset and intersection processing on the baseline according to the width of the wall object to obtain the edge line of the wall object.

[0181] For example, take all wall objects from the wall collection and offset their baselines (bottom outlines) by the width of the wall objects to get the edge lines of the wall objects. These edge lines are used to define the outline of the room objects.

[0182] S402, identifying the outline of the room object according to the edge line of the wall object to establish a mapping relationship between the room object and the wall object, and classifying the text within the outline of the room object.

[0183] For example, by enclosing the edge lines of the wall object, the inner contour domain is calculated, and these inner contour domains represent the outline of the room object. At the same time, the mapping relationship between the wall object and the outline of the room object is recorded. If the outline of the room object contains text (such as the name or function identifier of the room object), the room object is classified according to the priority order of the name recognition of these texts. Classification helps to accurately name and assign functions to room objects, improving design and management efficiency.

[0184] Suppose that in an architectural model of an office building, there are multiple rooms, and each room has text labeled in its outline, such as "Conference Room 101", "Office 102", "Lounge 103", "Data Center 104", etc. "Data Center" has a higher priority, while "Lounge" has a lower priority. The room labeled "Conference Room 101" will be named "Conference Room 101" and assigned the function of a conference room.

[0185] S403: For the unrecognized straight line segment, create a zero-width wall object and add it to the wall set, and recalculate the mapping relationship between the room object and the wall object.

[0186] For example, for the line-of-sight wall object that is not identified as e7 or e8 in the above step S3023, if it is a straight line segment, a line-of-sight wall object with a width of 0 and a height of h2 is created with this straight line segment as the baseline, and it is added to the wall set, and S401 to S402 are repeated to recalculate the mapping relationship between the wall object and the outline of the room object.

[0187] S404: For the line-of-sight wall object created in the above step S403, if the number of room objects mapped to it is <= 1, delete it from the wall set.

[0188] For example, if the sight-line wall objects created in step S403 are only mapped to one room or are not mapped to any room, then these sight-line wall objects are deleted from the wall set because they are unnecessary or erroneous.

[0189] S405, repeating the above steps S401 to S404 again, so that the mapping relationship between the outlines of all wall objects and room objects is up-to-date and correct.

[0190] In some embodiments, in step S40, the step of identifying the room object containing the opening object according to the mapping relationship can, for example, realize the identification and processing of the building exterior wall where the bay window is located. Step S40 includes steps S406 and S407, wherein step S406 can, for example, realize the identification of the room that meets the preset conditions as the bay window room, and step S407 can, for example, realize the modification of the properties of the wall object mapped to the bay window room in S406, as follows:

[0191] S406, based on the mapping relationship, the type of the hole object is identified by analyzing the name of the room object and the attributes of the wall object, including directly identifying the room object whose name contains the hole object, and judging whether it is a room object containing the hole object based on the width of the wall object, the hole object area and the name of the adjacent wall object.

[0192] For example, room objects containing bay windows (referred to as bay window rooms for short) are identified by analyzing the names of room objects and the properties of wall objects. Specifically, room objects whose names contain "bay windows" or "bay windows" are directly identified, and whether it is a bay window room is determined based on the width of the wall object, the area of ​​the opening object, and the names of the adjacent wall objects.

[0193] The purpose of step S406 is to identify a room object including a hole object. For example, a room object including a bay window may be identified.

[0194] Exemplarily, a room object that meets the following conditions is identified as a room object containing a hole object. For example, a window object containing a hole object is used as an example:

[0195] ① If the name of the room object contains "bay window" or "bay window", it is directly identified as a room object containing a bay window, that is, a bay window room.

[0196] ② If the room object is mapped to a wall object with a width of 0, or a wall object with an opening object area, or a sight-line wall object generated by the above step S3023, and the name of the room object on the other side of the sight-line wall object is in the indoor room name set S1; at the same time, the room object is mapped to a wall with an opening object area, or a sight-line wall object generated by the above step S3023, and there is no room object on the other side of the sight-line wall object or the name of the room object is not in the set S1, then it is identified as a bay window room.

[0197] S407, modifying properties according to the name of the room object on one side of the wall object and the characteristics of the wall object itself, including adjusting the width and height of the wall object and inserting an opening object into the wall object.

[0198] For example, step S407 may be used to modify the properties of the wall object mapped to the bay window room in step S406, and specifically includes steps S4071 to S4073:

[0199] S4071, if the name of the room object on the other side of the wall object is in the indoor room name set S1, and the width is 0, then the width of the wall object on the side close to the bay window is modified to the default wall thickness value w0, the height value h2 of the wall object is modified to h1, and an opening object with the same length as the wall object is inserted.

[0200] S4072, if the name of the room object on the other side of the wall object is in the indoor room name set S1, and the wall object is the sight line wall object generated by step S3023, then the height value h2 of the sight line wall object is modified to h1, and a window object with the same length as the sight line wall object is inserted.

[0201] S4073, if there is no room object on the other side of the wall object or the name of the room object is not in the indoor room name set S1, and the wall object is a sight line wall object generated by step S3023, then the height value h2 of the sight line wall object is modified to h1, and a window object with the same length as the sight line wall object is inserted.

[0202] In some embodiments, the building component identification method further includes:

[0203] S408, the step of identifying and classifying door objects, includes finding the door object according to the door block object in the special component name list, and determining the type of the door object by calculating the bounding box of the door object.

[0204] This step is used to identify the door object according to the name of the door block object in the special component name list predefined by the user.

[0205] Exemplarily, step S408 specifically includes steps S4081 to S4083:

[0206] S4081, identify the door object.

[0207] Specifically, all door objects are found according to the door block objects in the user-defined special component name list. This step can accurately locate and identify all door objects in the drawing.

[0208] S4082, determine the type of the door object.

[0209] Specifically, the bounding box of the door object in the local coordinates is calculated, and the type of the door object is determined, such as a sliding door or a single-leaf swing door, by comparing the short side of the bounding box with the upper limit value w1 of the wall thickness set by the user. This step provides a basis for the subsequent classification and processing of door objects by distinguishing different types of door objects.

[0210] S4083, associate the door object with the opening object.

[0211] Specifically, the hole object closest to the bounding box of the door object is found, and the type of the hole object is set to the door object of the corresponding type. This step realizes the correct association between the door object and the hole object, so that the door object can be accurately placed in the corresponding hole object, providing accurate location information for the construction of the building model.

[0212] In some embodiments, the building component identification method further includes:

[0213] S409, supplementally identifying the types of the hole objects according to the geometric features, so that all the hole objects can be classified.

[0214] Geometric features refer to specific properties that describe and distinguish different geometric objects in geometry. For example, in the process of identifying door and window objects, geometric features may include:

[0215] Shape: such as straight line segment, arc segment, rectangle, circle, etc.

[0216] Size: such as the length of a line segment, the radius of an arc, the size of a bounding box, etc.

[0217] Position: such as the coordinate position of the geometric object in the drawing.

[0218] Direction: such as the direction of a line segment or arc, the direction of a hole, etc.

[0219] Intersection relationship: such as the intersection of line segments, the intersection of arcs and boundaries, etc.

[0220] Exemplarily, the opening object includes a window object and a door object, and the above step S409 specifically includes steps S4091 to S4096:

[0221] S4091, identify the window object.

[0222] If there is at least one straight line segment of the view line set parallel to the direction of the hole object within the range of the hole object, and the length of the line segment is at least 80% of the width of the hole object, then the hole object is identified as a window object. This step distinguishes window objects through geometric features to ensure accurate identification of window objects.

[0223] S4092, identifying a sliding door object.

[0224] If there are at least two straight line segments of the sight line set parallel to the direction of the opening object within the range of the opening object, and the length of each line segment is at least 450 mm, then the opening object is identified as a sliding door object. This step distinguishes the sliding door object through geometric features to ensure accurate identification of the sliding door object.

[0225] S4093, identifying a single swing door object.

[0226] If the boundary of the opening object intersects with an arc segment in the look line set, the opening object is identified as a single-leaf swing door. This step distinguishes single-leaf swing door objects through geometric features to ensure accurate identification of single-leaf swing door objects.

[0227] S4094, identifying a double-leaf swing door object.

[0228] If the boundary of the opening object intersects with two arc segments in the look line set and their radii are equal, the opening object is identified as a double-leaf swing door object. This step distinguishes the double-leaf swing door object through geometric features to ensure accurate identification of the double-leaf swing door object.

[0229] S4095, identifying the parent-child door object.

[0230] If the boundary of the opening object intersects with two arc segments in the look line set and their radii are not equal, the opening object is identified as a sub-door object. This step distinguishes sub-door objects by geometric features to ensure accurate identification of sub-door objects.

[0231] S4096, identify the door object.

[0232] If none of the conditions in S4091 to S4095 are met, the hole object is identified as a door object. This step ensures that all hole objects that are not identified as door objects of a specific type are classified as door objects.

[0233] In the above steps S4091 to S4096, the type of the opening object is determined by analyzing the geometric features of the opening object, especially the geometric features of the viewing line, which can help the system automatically identify and classify components such as door and window objects, thereby improving the accuracy and efficiency of the design.

[0234] In some embodiments, in step S50, the step of adjusting the properties of the opening object, the wall object, and the railing object according to the properties of the room object includes:

[0235] S501, based on the properties of the room object, modify the height of the wall object and insert the opening object; and, based on the properties of the room object, replace the opening object and the railing object and modify the height of the wall object.

[0236] Exemplarily, step S501 specifically includes steps S5011 and S5012:

[0237] S5011, modify the height value of the wall object and insert a window object.

[0238] Traverse all wall objects, if the height value of the current wall object is h2, and one of the room objects on both sides mapped to the wall object belongs to set S1, and the other side does not exist or does not belong to S1, then modify the height value h2 of the wall object to h1, and insert a window object of the same length as the wall object. This step ensures that under specific room object attribute conditions, the height of the wall object and the layout of the window object can meet the design specifications or user requirements.

[0239] S5012, replace the window object with a railing object and modify the height value of the wall object.

[0240] Traverse all wall objects. If the height value of the current wall object is h1, and there is a window object on the wall object, and the room objects on both sides mapped to the wall object do not exist or do not belong to S1, then replace the window object on the wall object with a railing object, and modify the height value h1 of the wall object in the corresponding range of the window object to h2. This step ensures that under the attribute conditions of a specific room object, the window object is correctly replaced with a railing object, and the height of the wall object is adjusted to an appropriate height.

[0241] The above steps S5011 and S5012 are used to further correct the properties of the door, window and railing objects according to the properties of the room object, ensuring that under certain conditions, the height of the wall object, the layout of the window object and the setting of the railing object can meet the design specifications or user needs, thereby improving the flexibility and accuracy of the design.

[0242] In some embodiments, the building component identification method further includes:

[0243] S60: Draw the identified component in a preset drawing tool.

[0244] Exemplarily, step S60 specifically includes steps S601 to S603:

[0245] S601, drawing a wall object.

[0246] For example, drawing a wall object. By traversing all the wall objects in the identified wall set, calling the drawing interface of the preset drawing tool (such as CAD platform software), inputting the wall baseline start coordinates, end coordinates (or the start angle, end angle, center coordinates, radius of the arc wall), wall thickness, and wall height parameters, the wall object is drawn in the drawing of the preset drawing tool. This step ensures that all identified wall objects can be accurately presented on the drawings of the preset drawing tool, providing an accurate reference for subsequent design and construction.

[0247] S602, draw the hole object.

[0248] For example, draw door and window objects. Traverse all the door and window objects in the identified door and window set, call the drawing interface of the preset drawing tool, pass in the positioning point coordinates, width, and style parameters, and draw the door and window objects in the drawing of the preset drawing tool. This step ensures that all identified door and window objects can be accurately presented on the drawing of the preset drawing tool, providing an accurate reference for the layout and installation of door and window objects.

[0249] S603, drawing a railing object.

[0250] For example, draw a railing object. Traverse all the railing objects in the identified railing set, call the drawing interface of the preset drawing tool, input the starting coordinates and end coordinates of the wall railing, and draw the railing object in the drawing of the preset drawing tool. This step ensures that all identified railing objects can be accurately presented on the drawing of the preset drawing tool, providing an accurate reference for the layout and installation of the railing objects.

[0251] It should be noted that room objects are generally not drawn directly, but the space of room objects is defined and delimited by drawing components such as wall objects, door and window objects, and railing objects. This not only complies with industry standards, but also provides higher flexibility and detail control capabilities.

[0252] Please refer to Figure 2 , Figure 2 1 is a flow chart of a method for identifying building components provided by an embodiment of the present application. A method for identifying building components, taking identifying building components in CAD drawings as an example, specifically comprises steps S701 to S714:

[0253] S701, obtaining identification parameters.

[0254] For example, parameters for identifying objects in a CAD drawing are obtained from the configuration interface.

[0255] S702, reading information of the object to be identified.

[0256] For example, the geometric information of the object to be identified contained in the CAD drawing is read.

[0257] S703, filter geometric objects.

[0258] For example, geometric objects that need further processing are screened out based on recognition parameters.

[0259] S704, preprocessing geometric objects.

[0260] For example, preprocessing such as data cleaning and shape simplification is performed on the geometric objects to be identified.

[0261] S705, identifying candidate edges of the opening object.

[0262] For example, candidate edges are identified that may constitute door objects and window objects.

[0263] S706, constructing the hole object area.

[0264] For example, use the identified candidate edges to construct a specific opening object area.

[0265] S707, offset the candidate edge.

[0266] For example, an offset operation is performed on the candidate edge outside the opening object area that deviates from the center of the wall object.

[0267] S708, calculating standard wall objects.

[0268] For example, a specific standard wall object is calculated based on a set of wall lines.

[0269] S709, calculating the line-of-sight wall object.

[0270] For example, calculate the special wall object described by the look-line set, namely the look-line wall object.

[0271] S710, processing the handover of wall objects.

[0272] This step ensures that the intersections between adjacent wall objects are correct.

[0273] S711, add wall objects.

[0274] For example, a wall object that supplements the construction area of ​​an opening object.

[0275] S712, identifying room objects and establishing mapping relationships.

[0276] For example, identify room objects and establish a mapping relationship between room objects and wall objects.

[0277] S713, distinguish different objects.

[0278] For example, distinguish and classify door objects, window objects, railing objects, and so on.

[0279] S714, drawing the recognition object.

[0280] For example, the various recognized objects are drawn in a CAD drawing.

[0281] This step draws the various identified objects into the CAD drawing to ensure that all recognition and processing results can be accurately presented on the CAD drawing.

[0282] In the above steps S701 to S714, these steps constitute a complete process, starting from reading and screening geometric objects in the CAD drawing to finally drawing the identified and processed building components in the CAD drawing. This process ensures the accuracy and consistency of the architectural design, while also improving the design efficiency.

[0283] The building component recognition device provided by the present application is described below. The building component recognition device and the building component recognition method described below can be referenced to each other in correspondence with the building component recognition method described above.

[0284] Please refer to Figure 3 , Figure 3 800 is a structural diagram of a building component recognition device provided by the present application. The building component recognition device 800 includes an acquisition module 801 , a construction module 802 , a calculation module 803 , a mapping module 804 and an adjustment module 805 .

[0285] Exemplarily, the acquisition module 801 is used to acquire the user's identification parameters and the drawing file to be identified;

[0286] Exemplarily, the construction module 802 is used to extract a geometric object containing multiple objects from the drawing file according to the identification parameters, and identify candidate edges of the opening object from the geometric object to construct the opening object area according to the candidate edges.

[0287] Exemplarily, the calculation module 803 is used to identify candidate edges of the wall object from the geometric object, and calculate the wall object after performing an offset operation on the candidate edges outside the opening object area that deviate from the center of the wall object.

[0288] Exemplarily, the mapping module 804 is used to identify the room object and establish a mapping relationship between the room object and the wall object, and to identify the room object including the opening object according to the mapping relationship.

[0289] Exemplarily, the adjustment module 805 is used to adjust the properties of the opening object, the wall object, and the railing object according to the properties of the room object.

[0290] Exemplarily, the opening object represents an opening object, which includes a door object and a window object; the wall object represents a wall object, which includes a standard wall object and a sight line wall object of different heights; the room object represents a room object; and the railing object represents a railing object.

[0291] Exemplarily, the identification parameter includes any one of the following or a combination thereof:

[0292] A component layer name list, including a wall object layer, wherein the wall object layer includes a wall line layer and a view line layer of different construction lines;

[0293] A list of special component names, including door block objects that require special processing;

[0294] The default value of wall object thickness indicates the default thickness value of wall objects;

[0295] The maximum limit of the wall object thickness indicates the upper limit of the wall object thickness;

[0296] The maximum width limit of the opening object includes the upper limit value of the opening object defined by the wall objects in the parallel direction and the upper limit value of the opening object defined by the wall objects in the vertical direction.

[0297] It should be noted here that the above-mentioned building component identification device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be specifically repeated here.

[0298] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device may include: a processor (Processor) 810, a communication interface (Communications Interface) 820, a memory (Memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the building component identification method.

[0299] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0300] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the building component identification method provided by the above methods.

[0301] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the above-mentioned building component identification methods.

[0302] The embodiments of the present application provide an electronic device, a computer program product, and a processor-readable storage medium, on which the computer program stored enables the processor to implement all the method steps implemented in the above-mentioned method embodiments and to achieve the same technical effects. The parts and beneficial effects of this embodiment that are the same as those in the method embodiments will not be described in detail herein.

[0303] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0304] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0305] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for identifying building components, It is characterized in that The building component identification method comprises: Obtain the user's identification parameters and the drawing file to be identified; According to the recognition parameters, extracting a geometric object containing multiple objects from the drawing file, including: according to the recognition parameters, filtering line segments and arc objects located in the wall line layer, and incorporating them into the wall line set; according to the recognition parameters, filtering line segments and arc objects located in the look line layer, and incorporating them into the look line set; and identifying candidate edges of opening objects from the geometric objects to construct the opening object area according to the candidate edges, wherein the opening objects include door objects and window objects; Identify candidate edges of a wall object from the geometric object, and calculate the wall object after performing an offset operation on the candidate edges outside the opening object area and deviating from the center line of the wall, wherein the wall object includes a standard wall object and a line-of-sight wall object of different heights, that is, a standard wall object with a first height and a line-of-sight wall object with a second height; Identify a room object and establish a mapping relationship between the room object and the wall object, and identify the room object including the hole object according to the mapping relationship; According to the properties of the room object, adjust the properties of the opening object, the wall object and the railing object; The step of calculating the wall object includes: Divide the objects in the wall line set into several subsets based on connectivity, calculate the outermost contour of each subset, and screen the edge pairs that meet the specific geometric relationship, calculate their midlines and overlapping projections, and based on this, construct a standard wall object with a first height, and record its mapping relationship with the original edge, and add the standard wall object to the wall set; Divide the objects in the look-line set into several subsets based on connectivity, calculate the outermost contour of each subset, and screen the edge pairs that meet the specific geometric relationship, construct the look-line wall object with the second height based on their midlines and overlapping projections, and record the mapping relationship between the look-line wall object and the original edge, and add the look-line wall object to the wall set; The step of establishing a mapping relationship between the room object and the wall object includes: Extract all wall objects from the wall set, and perform offset and intersection processing on the baseline according to the width of the wall object to obtain the edge line of the wall object; Identifying the outline of the room object according to the edge line of the wall object to establish a mapping relationship between the room object and the wall object, and classifying the room object according to the text within the outline; For unrecognized straight line segments, a zero-width wall object is created and added to the wall set, and the mapping relationship between the room object and the wall object is recalculated.

2. The building component identification method according to claim 1, It is characterized in that The identification parameters include any one or a combination of the following: A component layer name list, including a wall object layer, wherein the wall object layer includes a wall line layer and a view line layer of different construction lines; A list of special component names, including door block objects that require special processing; The default value of wall object thickness indicates the default thickness value of wall objects; The maximum limit of the wall object thickness indicates the upper limit of the wall object thickness; The maximum width limit of the opening object includes the upper limit value of the opening object defined by the wall objects in the parallel direction and the upper limit value of the opening object defined by the wall objects in the vertical direction.

3. The building component identification method according to claim 1, It is characterized in that The step of extracting a geometric object including a plurality of objects from the drawing file according to the recognition parameter comprises: According to the identification parameters, the door block objects in the special component name list are screened and included in the door block collection.

4. The building component identification method according to claim 3, It is characterized in that The building component identification method further comprises: Preprocessing the geometric object specifically includes: In the wall line set, duplicate removal and merging operations are performed on collinear overlapping objects, and segmentation operations are performed on intersecting objects; In the line set, duplicate removal and merging operations are performed on collinear overlapping objects, and segmentation operations are performed on intersecting objects; The objects of the wall line set and the viewing line set are intersected with each other, and the viewing line objects are segmented at the intersections.

5. The building component identification method according to claim 3, It is characterized in that The step of identifying candidate edges of the hole object from the geometric object comprises: Extracting all objects from the wall line set, and dividing the wall lines into a number of connected subsets according to whether the lines in the wall line set can be connected to each other through intersections; Calculate the outermost contour of each connected subset, and the calculation result is represented by a clockwise loop consisting of a group of directed curve segments connected end to end; Each edge on each outer contour loop is traversed, and if a preset first condition is met, the corresponding directed edge is included in the candidate edge set of the hole object.

6. The building component identification method according to claim 5, It is characterized in that The step of constructing the hole object area according to the candidate edges comprises: From the candidate edge set, two edges that meet a preset second condition are selected, and a rectangular hole object region is constructed based on the overlapping portion of their projections, and the rectangular hole object region is added to the hole object region set; From the remaining candidate edge set, the edges that meet the preset third condition and the edges on the outer contour loop are screened out, and a rectangular hole object area is constructed based on the overlapping part of their projections, and the rectangular hole object area is added to the hole object area set.

7. The building component identification method according to claim 1, It is characterized in that The building component identification method further comprises: Identify and process intersecting wall object edge pairs, and extend the wall baselines to their intersection points if they are mapped to different wall objects and their wall baselines do not intersect. A new standard wall object is constructed by taking the long side center line of the opening object area as the baseline and the short side width as the width, and is given a first height, and then the new standard wall object is added to the wall set.

8. The building component identification method according to claim 1, It is characterized in that The step of identifying the type of the hole object according to the mapping relationship comprises: According to the mapping relationship, the type of the hole object is identified by analyzing the name of the room object and the attributes of the wall object, including directly identifying the room object containing the hole object in the name of the room object, and judging whether it is a room object containing the hole object according to the width of the wall object, the hole object area and the name of the adjacent wall object; The properties of the room object on one side of the wall object and the characteristics of the wall object are modified, including adjusting the width and height of the wall object and inserting the opening object into the wall object.

9. The building component identification method according to claim 1, It is characterized in that The building component identification method further comprises: Identifying and classifying the door object of the opening object, including finding the door object according to the door block object in the special component name list, and determining the type of the door object by calculating the bounding box of the door object; and The type of the hole object is additionally identified according to the preset geometric features so that all hole objects can be classified.

10. The building component identification method according to claim 1, It is characterized in that The step of adjusting the properties of the opening object, the wall object and the railing object according to the properties of the room object comprises: Based on the properties of the room object, the height of the wall object is modified, and the opening object is inserted; and based on the properties of the room object, the opening object and the railing object are replaced and the height of the wall object is modified.

11. A building component recognition device, It is characterized in that The building component identification device comprises: An acquisition module is used to acquire the user's recognition parameters and the drawing file to be recognized; A construction module is used to extract a geometric object containing multiple objects from the drawing file according to the recognition parameters, including: filtering line segments and arc objects in a wall line layer according to the recognition parameters, and incorporating them into a wall line set; filtering line segments and arc objects in a look line layer according to the recognition parameters, and incorporating them into a look line set; and identifying candidate edges of opening objects from the geometric objects to construct the opening object area according to the candidate edges, wherein the opening objects include door objects and window objects; A calculation module, used for identifying candidate edges of a wall object from the geometric object, and calculating the wall object after performing an offset operation on the candidate edges outside the opening object area and deviating from the center line of the wall, wherein the wall object includes a standard wall object and a sight-line wall object of different heights, that is, a standard wall object with a first height and a sight-line wall object with a second height; A mapping module, used to identify a room object and establish a mapping relationship between the room object and the wall object, and to identify the room object including the hole object according to the mapping relationship; An adjustment module, used for adjusting the properties of the opening object, the wall object and the railing object according to the properties of the room object; Wherein, the calculation module is also used for: Divide the objects in the wall line set into several subsets based on connectivity, calculate the outermost contour of each subset, and screen the edge pairs that meet the specific geometric relationship, calculate their midlines and overlapping projections, and based on this, construct a standard wall object with a first height, and record its mapping relationship with the original edge, and add the standard wall object to the wall set; Divide the objects in the look-line set into several subsets based on connectivity, calculate the outermost contour of each subset, and screen the edge pairs that meet the specific geometric relationship, construct the look-line wall object with the second height based on their midlines and overlapping projections, and record the mapping relationship between the look-line wall object and the original edge, and add the look-line wall object to the wall set; Wherein, the mapping module is also used for: Extract all wall objects from the wall set, and perform offset and intersection processing on the baseline according to the width of the wall object to obtain the edge line of the wall object; Identifying the outline of the room object according to the edge line of the wall object to establish a mapping relationship between the room object and the wall object, and classifying the room object according to the text within the outline; For unrecognized straight line segments, a zero-width wall object is created and added to the wall set, and the mapping relationship between the room object and the wall object is recalculated.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the building component identification method according to any one of claims 1 to 10 are implemented.

13. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the building component identification method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Method and system for making two-dimensional house type graph based on touch screen interaction terminal and panorama

    CN112364420A

  • Architectural drawing-based room area identification method and system

    CN114741754A

  • Building space analysis-oriented BIM model lightweight method

    CN115640630A

  • Parameter-driven building three-dimensional modeling system

    CN118196328A

  • Systems and methods for automating conversion of drawings to indoor maps and plans

    US11514633B1