Axis network identification method, device, equipment and storage medium

By parsing the element information from the architectural drawings, obtaining and determining the axis network layer, the problem of poor versatility of axis network recognition in the existing technology is solved, and accurate recognition of axis network information of various architectural drawings is achieved.

CN114282288BActive Publication Date: 2024-10-18深圳市万翼数字技术有限公司
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The versatility of grid recognition in the existing technology is poor. It is necessary to specify the layer where the grid is located to identify the grid information, and it cannot be applied to non-standardized architectural drawings.

Method used

By parsing the element information from the architectural drawings, we obtain the target line segments connecting the two endpoints to the two circles respectively. There are text inside the two circles. The layer containing the largest number of target line segments is determined as the axis network layer, and based on The grid layer identifies grid information.

Benefits of technology

It enhances the versatility of grid identification, can be applied to various architectural drawings, reduces customization and standardization work, and accurately identifies grid layers and information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114282288B_ABST
    Figure CN114282288B_ABST
Patent Text Reader

Abstract

The present application relates to an axis network recognition method, device, equipment and storage medium, and relates to the technical field of drawing recognition. The axis network recognition method comprises: parsing primitive information from architectural drawings; obtaining target line segments whose two endpoints are respectively connected to two circles according to the primitive information, wherein there are texts inside the two circles; obtaining the layers where each target line segment is located, and taking the layer with the largest number of target line segments as the axis network layer; and identifying the axis network information according to the axis network layer. The present application is used to solve the problem of poor universality of axis network recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of drawing recognition, and in particular to an axis grid recognition method, device, equipment and storage medium. Background Art

[0002] When drawing architectural drawings, it is generally necessary to draw an axis grid. The axis grid is a network composed of building axes. It is artificially set up in architectural drawings to indicate the detailed dimensions of components according to general customary standards. It is usually marked on the center line of the symmetrical interface or cross-sectional component.

[0003] At present, it is necessary to specify the layer where the axis grid is located, and then identify the axis grid information in the layer where the axis grid is located. Therefore, when drawing architectural drawings, it is necessary to limit the layer processing of the elements contained in the axis grid in the architectural drawings. The axis grid information can only be identified for standardized architectural drawings, and the versatility of axis grid identification is poor. Summary of the invention

[0004] The present application provides an axis network identification method, device, equipment and storage medium to solve the problem of poor universality of axis network identification.

[0005] In a first aspect, an embodiment of the present application provides an axis network identification method, including:

[0006] Parse the element information from the architectural drawings;

[0007] According to the primitive information, a target line segment whose two endpoints are respectively connected to two circles is obtained, wherein the two circles have text inside;

[0008] Obtain the layers where the target line segments are located, and use the layer with the largest number of target line segments as the grid layer;

[0009] According to the axis grid layer, the axis grid information is identified.

[0010] Optionally, acquiring, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles includes:

[0011] Acquire a first line segment according to the primitive information, wherein the length of the first line segment is greater than a preset length value;

[0012] The target line segment is obtained from the first line segment.

[0013] Optionally, acquiring the first line segment according to the primitive information includes:

[0014] According to the primitive information, a second line segment is acquired, wherein the second line segment includes at least one of a single-segment line and a multi-segment line;

[0015] If the second line segment includes a polyline, splitting the polyline into individual single-segment lines according to endpoints;

[0016] Determine whether the length of the single-segment line is greater than the preset length value;

[0017] If the length of the single-segment line is greater than the preset length value, the single-segment line is used as the first line segment.

[0018] Optionally, acquiring the target line segment from the first line segment includes:

[0019] Selecting overlapping line segments from the first line segments;

[0020] From the coincident line segments, delete the line segment whose length is not the longest;

[0021] The line segment retained after being deleted from the first line segment is used as the third line segment;

[0022] The target line segment is obtained from the third line segment.

[0023] Optionally, acquiring the target line segment from the third line segment includes:

[0024] Extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment;

[0025] Determine whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value;

[0026] If the distance between the centers of the two circles and the fourth line segment is less than the preset distance value, the third line segment is used as the target line segment.

[0027] Optionally, identifying the axis grid information according to the axis grid layer includes:

[0028] The target line segment belonging to the axis grid layer is used as an axis line;

[0029] The text in the circle connected to the endpoints of the axis is used as the axis number;

[0030] Obtaining information of the axis line and information of the axis number;

[0031] The information of the axis line and the information of the axis number are used as the axis grid information.

[0032] Optionally, parsing the graphic element information from the architectural drawing includes:

[0033] Copying the architectural drawing to generate a copied architectural drawing;

[0034] The copied architectural drawing is parsed to obtain the graphic element information.

[0035] In a second aspect, an embodiment of the present application provides an axis network identification device, including:

[0036] A parsing module, used to parse the graphic element information from the architectural drawings;

[0037] A first acquisition module is used to acquire, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles, wherein there are words inside the two circles;

[0038] The second acquisition module is used to acquire the layers where the target line segments are located, and use the layer including the largest number of the target line segments as the axis grid layer;

[0039] The identification module is used to identify the axis grid information according to the axis grid layer.

[0040] Optionally, the first acquisition module includes:

[0041] A first acquisition submodule, configured to acquire a first line segment according to the primitive information, wherein the length of the first line segment is greater than a preset length value;

[0042] The second acquisition submodule is used to acquire the target line segment from the first line segment.

[0043] Optionally, the first acquisition submodule includes:

[0044] A first acquisition unit, configured to acquire a second line segment according to the primitive information, wherein the second line segment includes at least one of a single-segment line and a multi-segment line;

[0045] a splitting unit, configured to split the polyline into individual single-segment lines according to endpoints if the second line segment includes a polyline;

[0046] A first processing unit, used for determining whether the length of the single-segment line is greater than the preset length value;

[0047] The second processing unit is configured to use the single-segment line as the first line segment if the length of the single-segment line is greater than the preset length value.

[0048] Optionally, the second acquisition submodule includes:

[0049] A screening unit, used for screening out overlapping line segments from the first line segments;

[0050] A deleting unit, used for deleting the line segment whose length is not the longest from the overlapping line segments;

[0051] A third processing unit, configured to use the line segment retained after being deleted from the first line segment as a third line segment;

[0052] The second acquisition unit is used to acquire the target line segment from the third line segment.

[0053] Optionally, the second acquiring unit includes:

[0054] An extension subunit, used to extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment;

[0055] A first processing sub-unit, used for determining whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value;

[0056] The second processing subunit is configured to use the third line segment as the target line segment if the distance between the centers of the two circles and the fourth line segment is less than the preset distance value.

[0057] Optionally, the identification module includes:

[0058] A first processing submodule is used to use the target line segment belonging to the axis grid layer as an axis line;

[0059] A second processing submodule is used to use the text in the circle connected to the end points of the axis as the axis number;

[0060] A third acquisition submodule is used to acquire the information of the axis line and the information of the axis number;

[0061] The third processing submodule is used to use the information of the axis line and the information of the axis number as the axis network information.

[0062] Optionally, the parsing module includes:

[0063] A copy submodule, used to copy the architectural drawing to generate a copied architectural drawing;

[0064] The fourth processing submodule is used to parse the copied architectural drawing to obtain the graphic element information.

[0065] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0066] The memory is used to store computer programs;

[0067] The processor is used to execute the program stored in the memory to implement the axis network identification method described in the first aspect.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the axis network identification method described in the first aspect.

[0069] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application parses the primitive information from the architectural drawing, obtains the target line segment whose two endpoints are connected to the two circles respectively according to the primitive information, wherein the two circles have text inside, obtains the layer where each target line segment is located, and uses the layer with the largest number of target line segments as the axis network layer, and identifies the axis network information according to the axis network layer. Compared with the prior art, it is necessary to specify the layer where the axis network is located, and then identify the axis network information in the layer where the axis network is located. The present application obtains the target line segment whose two endpoints are connected to the two circles respectively through the geometric relationship between the circle where the axis number is located and the axis line, wherein the two circles have text inside, and uses the layer with the largest number of target line segments as the axis network layer, accurately identifies the axis network layer, and then identifies the axis network information according to the axis network layer. It is suitable for axis network identification in various architectural drawings, reduces the customization and standardization work, enhances the universality of axis network identification, and solves the problem of poor universality of axis network identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0072] Figure 1 It is a schematic diagram of the axis grid in the architectural drawing in the prior art;

[0073] Figure 2 A schematic diagram of the method flow of axis network identification in an embodiment of the present application;

[0074] Figure 3 This is a flow chart of a method for obtaining a target line segment according to primitive information in a specific embodiment of the present application;

[0075] Figure 4 A schematic flow chart of a method for obtaining a target line segment from a third line segment in a specific embodiment of the present application;

[0076] Figure 5 It is a structural schematic diagram of the axis network identification device in the embodiment of the present application;

[0077] Figure 6 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

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

[0079] The inventors analyzed the axis grid in the architectural drawings in the prior art and found that: Figure 1 The following is a schematic diagram of the axis grid in the architectural drawing. Figure 1 In the figure, the solid line is the axis line, the text in the circle is the axis number, for example, A, B, C, 1, 2, 3, 4 are the axis numbers, the dotted line is the dimension line, and the text next to the dotted line is the dimension, for example, 400, 600, 300 are the dimension. The dimension is used to mark the distance between the two axis lines.

[0080] In the embodiment of the present application, an axis network identification method is provided, which can be applied to a server, and of course, can also be applied to other electronic devices, such as terminals (mobile phones, tablet computers, etc.). In the embodiment of the present application, the method is applied to a server as an example for description.

[0081] In the present application embodiment, Figure 2 As shown in the figure, the method flow of axis network identification mainly includes:

[0082] Step 201, parse the graphic element information from the architectural drawing.

[0083] The architectural drawings may be in various formats, and the protection scope of the present application is not limited to the specific formats of the architectural drawings. In the embodiments of the present application, the architectural drawings are CAD (Computer Aided Design) drawings as an example for illustration.

[0084] Graphic elements refer to basic graphic elements, including points, line segments, circles, and text. Graphic element information can be the location information of the graphic element in the architectural drawing, or the category of the graphic element, such as line segments, circles, and text.

[0085] In a specific embodiment, parsing the primitive information from the architectural drawing includes: copying the architectural drawing to generate a copied architectural drawing; and parsing the copied architectural drawing to obtain the primitive information.

[0086] Parsing the copied architectural drawings to obtain graphic element information can prevent the inability to parse and obtain graphic element information due to the occupation of the original architectural drawings by other programs.

[0087] Step 202, according to the primitive information, obtain a target line segment whose two endpoints are respectively connected to two circles, wherein there are texts inside the two circles.

[0088] In a specific embodiment, Figure 3 As shown, according to the primitive information, the target line segment whose two endpoints are connected to the two circles is obtained, including:

[0089] Step 301: Obtain a first line segment according to primitive information, wherein the length of the first line segment is greater than a preset length value.

[0090] The preset length value may be an empirical value or a value obtained through multiple tests. For example, the preset length value is 200 mm.

[0091] First, the first line segment is obtained according to the graphic element information, and then the target line segment is obtained from the first line segment. This can exclude line segments whose length is less than or equal to the preset length value, remove some interfering line segments, and improve the efficiency and accuracy of identifying the axis.

[0092] In a specific embodiment, obtaining a first line segment according to primitive information includes: obtaining a second line segment according to primitive information, wherein the second line segment includes at least one of a single-segment line and a polyline; if the second line segment includes a polyline, splitting the polyline into individual single-segment lines according to endpoints; determining whether the length of the single-segment line is greater than a preset length value; if the length of the single-segment line is greater than the preset length value, using the single-segment line as the first line segment.

[0093] When parsing the primitive information, the polyline will be parsed as a whole. It is necessary to split the polyline into individual single-segment lines according to the endpoints, and then determine whether the single-segment line is the first line segment.

[0094] Step 302: Obtain a target line segment from the first line segment.

[0095] In a specific embodiment, obtaining a target line segment from a first line segment includes: filtering out overlapping line segments from the first line segment; deleting line segments whose lengths are not the longest from the overlapping line segments; using the line segments retained after deletion from the first line segment as the third line segment; and obtaining the target line segment from the third line segment.

[0096] From the first line segment, perform overlapping filtering, retain the overlapping line segment with the longest length as the third line segment, delete the overlapping line segment that is not the longest, and then obtain the target line segment from the third line segment, further remove some overlapping interfering line segments, so as to improve the efficiency and accuracy of identifying the axis.

[0097] In a specific embodiment, Figure 4 As shown, obtaining the target line segment from the third line segment includes:

[0098] Step 401: Extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment.

[0099] The preset extension length value may be an empirical value or a value obtained through multiple tests. For example, the preset extension length value is 30 mm.

[0100] The third line segment is extended from the two end points by preset extension length values ​​to obtain a fourth line segment, so as to facilitate calculation of the distance between the centers of the two circles and the fourth line segment.

[0101] Step 402, determining whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value.

[0102] The preset distance value may be an empirical value or a value obtained through multiple tests. For example, the preset distance value is 5 mm.

[0103] Step 403: If the distance between the centers of the two circles and the fourth line segment is less than a preset distance value, the third line segment is used as a target line segment.

[0104] Specifically, the distance between the centers of the two circles and the fourth line segment is less than the preset distance value, or the distance between the centers of the two circles and the fourth line segment is zero, that is, the centers of the two circles are on the fourth line segment, and the third line segment is used as the target line segment. Alternatively, the distance between the centers of the two circles and the fourth line segment is a value less than the preset distance value but not zero, which increases fault tolerance and avoids the inability to identify the axis and axis number when a small range of deviation occurs in the drawing, resulting in missed identification of the axis and axis number.

[0105] Step 203, obtaining the layers where the target line segments are located, and taking the layer including the largest number of target line segments as the axis grid layer.

[0106] There may still be some interfering line segments in the target line segment. There is only one axis grid layer in each architectural drawing. By using the layer with the largest number of target line segments as the axis grid layer, the efficiency and accuracy of axis grid information recognition can be improved.

[0107] Step 204, identifying the axis grid information according to the axis grid layer.

[0108] In a specific embodiment, the axis grid information is identified according to the axis grid layer, including: using the target line segment belonging to the axis grid layer as the axis line; using the text in the circle connected to the endpoints of the axis line as the axis number; obtaining the axis line information and the axis number information; using the axis line information and the axis number information as the axis grid information.

[0109] Using the target line segments belonging to the axis grid layer as the axis, rather than directly using the identified target line segments as the axis, can further remove some interfering line segments and improve the efficiency and accuracy of identifying the axis. Then identifying the axis number based on the axis can improve the efficiency and accuracy of identifying the axis number.

[0110] In summary, the method provided by the embodiment of the present application parses the primitive information from the architectural drawing, obtains the target line segment whose two endpoints are connected to the two circles respectively according to the primitive information, wherein the two circles have text inside, obtains the layer where each target line segment is located, and uses the layer with the largest number of target line segments as the axis grid layer, and identifies the axis grid information according to the axis grid layer. Compared with the prior art, it is necessary to specify the layer where the axis grid is located, and then identify the axis grid information in the layer where the axis grid is located. The present application obtains the target line segment whose two endpoints are connected to the two circles respectively according to the geometric relationship between the circle where the axis number is located and the axis line, wherein the two circles have text inside, and uses the layer with the largest number of target line segments as the axis grid layer, accurately identifies the axis grid layer, and then identifies the axis grid information according to the axis grid layer. It is suitable for axis grid identification in various architectural drawings, reduces the customization and standardization work, enhances the universality of axis grid identification, and solves the problem of poor universality of axis grid identification.

[0111] Based on the same concept, an axis network identification device is provided in the embodiment of the present application. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 5 As shown, the device mainly includes:

[0112] A parsing module 501 is used to parse the image element information from the architectural drawing;

[0113] A first acquisition module 502 is used to acquire, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles, wherein there are words inside the two circles;

[0114] The second acquisition module 503 is used to acquire the layers where the target line segments are located, and use the layer including the largest number of the target line segments as the axis grid layer;

[0115] The identification module 504 is used to identify the axis grid information according to the axis grid layer.

[0116] Optionally, the first acquisition module includes:

[0117] A first acquisition submodule, configured to acquire a first line segment according to the primitive information, wherein the length of the first line segment is greater than a preset length value;

[0118] The second acquisition submodule is used to acquire the target line segment from the first line segment.

[0119] Optionally, the first acquisition submodule includes:

[0120] A first acquisition unit, configured to acquire a second line segment according to the primitive information, wherein the second line segment includes at least one of a single-segment line and a multi-segment line;

[0121] a splitting unit, configured to split the polyline into individual single-segment lines according to endpoints if the second line segment includes a polyline;

[0122] A first processing unit, used for determining whether the length of the single-segment line is greater than the preset length value;

[0123] The second processing unit is configured to use the single-segment line as the first line segment if the length of the single-segment line is greater than the preset length value.

[0124] Optionally, the second acquisition submodule includes:

[0125] A screening unit, used for screening out overlapping line segments from the first line segments;

[0126] A deleting unit, used for deleting the line segment whose length is not the longest from the overlapping line segments;

[0127] A third processing unit, configured to use the line segment retained after being deleted from the first line segment as a third line segment;

[0128] The second acquisition unit is used to acquire the target line segment from the third line segment.

[0129] Optionally, the second acquiring unit includes:

[0130] An extension subunit, used to extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment;

[0131] A first processing sub-unit, used for determining whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value;

[0132] The second processing subunit is configured to use the third line segment as the target line segment if the distance between the centers of the two circles and the fourth line segment is less than the preset distance value.

[0133] Optionally, the identification module includes:

[0134] A first processing submodule is used to use the target line segment belonging to the axis grid layer as an axis line;

[0135] A second processing submodule is used to use the text in the circle connected to the end points of the axis as the axis number;

[0136] A third acquisition submodule is used to acquire the information of the axis line and the information of the axis number;

[0137] The third processing submodule is used to use the information of the axis line and the information of the axis number as the axis network information.

[0138] Optionally, the parsing module includes:

[0139] A copy submodule, used to copy the architectural drawing to generate a copied architectural drawing;

[0140] The fourth processing submodule is used to parse the copied architectural drawing to obtain the graphic element information.

[0141] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 6 As shown, the electronic device mainly includes: a processor 601, a memory 602 and a communication bus 603, wherein the processor 601 and the memory 602 communicate with each other through the communication bus 603. The memory 602 stores a program executable by the processor 601, and the processor 601 executes the program stored in the memory 602 to implement the following steps:

[0142] Parse the graphic element information from the architectural drawing; obtain the target line segment whose two endpoints are respectively connected to the two circles according to the graphic element information, wherein there are texts inside the two circles; obtain the layer where each target line segment is located, and use the layer with the largest number of target line segments as the axis grid layer; identify the axis grid information according to the axis grid layer.

[0143] The communication bus 603 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0144] The memory 602 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 601.

[0145] The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0146] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the axis grid identification method described in the above embodiment.

[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk), etc.

[0148] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0149] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for identifying an axis grid. It is characterized in that include: Parse the element information from the architectural drawings; According to the primitive information, a target line segment whose two endpoints are respectively connected to two circles is obtained, wherein the two circles have text inside; Obtain the layers where the target line segments are located, and use the layer with the largest number of target line segments as the grid layer; According to the axis grid layer, identify the axis grid information; Wherein, obtaining, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles comprises: Acquire a first line segment according to the primitive information, wherein the length of the first line segment is greater than a preset length value; Acquire the target line segment from the first line segment; The acquiring the first line segment according to the primitive information includes: According to the primitive information, a second line segment is acquired, wherein the second line segment includes at least one of a single-segment line and a multi-segment line; If the second line segment includes a polyline, splitting the polyline into individual single-segment lines according to endpoints; Determine whether the length of the single-segment line is greater than the preset length value; If the length of the single-segment line is greater than the preset length value, the single-segment line is used as the first line segment; The acquiring the target line segment from the first line segment comprises: Selecting overlapping line segments from the first line segments; From the coincident line segments, delete the line segment whose length is not the longest; The line segment retained after being deleted from the first line segment is used as the third line segment; Acquire the target line segment from the third line segment; The step of acquiring the target line segment from the third line segment comprises: Extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment; Determine whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value; If the distance between the centers of the two circles and the fourth line segment is less than the preset distance value, the third line segment is used as the target line segment.

2. The axis network identification method according to claim 1, It is characterized in that The step of identifying the axis grid information according to the axis grid layer includes: The target line segment belonging to the axis grid layer is used as an axis line; The text in the circle connected to the endpoints of the axis is used as the axis number; Obtaining information of the axis line and information of the axis number; The information of the axis line and the information of the axis number are used as the axis grid information.

3. The axis grid identification method according to claim 1, It is characterized in that The step of parsing the graphic element information from the architectural drawing includes: Copying the architectural drawing to generate a copied architectural drawing; The copied architectural drawing is parsed to obtain the graphic element information.

4. A shaft network identification device, It is characterized in that include: A parsing module, used to parse the graphic element information from the architectural drawings; A first acquisition module is used to acquire, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles, wherein there are words inside the two circles; The second acquisition module is used to acquire the layers where the target line segments are located, and use the layer including the largest number of the target line segments as the axis grid layer; An identification module, used for identifying axis grid information according to the axis grid layer; Wherein, obtaining, according to the primitive information, a target line segment whose two endpoints are respectively connected to two circles comprises: Acquire a first line segment according to the primitive information, wherein the length of the first line segment is greater than a preset length value; Acquire the target line segment from the first line segment; The acquiring the first line segment according to the primitive information includes: According to the primitive information, a second line segment is acquired, wherein the second line segment includes at least one of a single-segment line and a multi-segment line; If the second line segment includes a polyline, splitting the polyline into individual single-segment lines according to endpoints; Determine whether the length of the single-segment line is greater than the preset length value; If the length of the single-segment line is greater than the preset length value, the single-segment line is used as the first line segment; The acquiring the target line segment from the first line segment comprises: Selecting overlapping line segments from the first line segments; From the coincident line segments, delete the line segment whose length is not the longest; The line segment retained after being deleted from the first line segment is used as the third line segment; Acquire the target line segment from the third line segment; The step of acquiring the target line segment from the third line segment comprises: Extend the third line segment from two end points by preset extension lengths to obtain a fourth line segment; Determine whether the distance between the centers of the two circles and the fourth line segment is less than a preset distance value; If the distance between the centers of the two circles and the fourth line segment is less than the preset distance value, the third line segment is used as the target line segment.

5. An electronic device, It is characterized in that include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the axis network identification method described in any one of claims 1 to 3.

6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the axis grid identification method described in any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Drawing segmentation method, electronic equipment and storage medium

    CN109658415A

  • Axial network generation method, electronic device and storage medium

    CN109670469A

  • Primitive identification method and identification device based on CAD drawing

    CN111881809A

  • Automatic layer identification method and device

    CN111881868A

  • Construction drawing preparing device

    JP1996180082A