Engineering drawing automatic identification method
Through an automatic identification method of engineering drawings, including unified drawing format, functional layer distinction, component annotation and noise removal, the problem of difficult information distinction and noise removal in the prior art is solved, and more accurate engineering drawing reading and information processing is achieved.
Patent Information
- Application Number
- CN202411709871.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-14
AI Technical Summary
Existing automatic labeling systems cannot effectively distinguish and reduce the information of different types of work in engineering drawings, resulting in an increase in the amount of information. The cross-used equipment labeling and interlaced lines may coincide with component labeling, and machine learning identification is difficult to remove the noise of drawing line.
By obtaining the combination of drawings to be detected, unify the format, identifying the overall and partial drawings, combining the same color lines, distinguishing functional layers, marking components and free nodes, detecting common or crossed lines, adjusting component identification marks, synthesizing the entire drawing and stacking functional layers.
Effectively distinguish and reduce information of different job types, reduce information interference, reasonably connect installation nodes of different drawings of the same job type, and improve the accuracy of reading drawings.
Smart Images

Figure CN119625774A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of engineering drawing, and in particular to an automatic recognition method for engineering drawings. Background Art
[0002] Engineering projects are usually equipped with a large number of engineering drawing files. Engineering drawing files usually have a specific format as the suffix name. The suffix name is also called the file extension name, which is a mechanism used by the operating system to mark the file type. For example, architectural engineering drawings are drawings used to represent the internal layout, external shape, decoration, structure, construction requirements, etc. of a building. They are generally CAD files in the dwg format and usually have dwg as the suffix name.
[0003] Due to the large size of the project and the complexity of the types of work, a large amount of information is stacked, and it is difficult to identify key nodes in the actual use of engineering drawings. At the same time, a large amount of information may cause errors in reading the drawings. On this basis, the same engineering drawings are used cross-wise between different types of work, resulting in a lot of interference information in the drawings, which is prone to missed readings. Existing automatic annotation systems are mostly based on the listing of annotation elements, and do not distinguish and reduce noise from actual types of work, resulting in a higher amount of information in the drawings after annotation. In addition, the annotation of equipment used cross-wise for different types of work and the staggered lines caused by the simplified characteristics of the lines in the drawings may overlap with the marking of a certain component. These are important problems that have not been solved by existing annotation methods. However, since machine learning recognition is often based on learning based on image features, the noise caused by the simple lines of the drawings is difficult to actually remove in practice.
[0004] Based on the above problems, an automatic recognition method for engineering drawings is needed to solve the above problems. Summary of the invention
[0005] The present invention aims to solve the problem that the existing automatic annotation systems in the prior art are mostly based on the listing of annotation elements, and do not distinguish and reduce noise in actual types of work, resulting in a higher amount of information in the engineering drawings after annotation, and the equipment annotations used crosswise in different types of work and the staggered lines caused by the simplified characteristics of the engineering drawing lines may overlap with the marking of a certain component, which are important problems that the existing annotation methods have not solved. However, since machine learning recognition is often based on image features, the noise caused by the simple lines of the engineering drawings is difficult to actually remove in practice. A method for automatic recognition of engineering drawings is provided to solve the above problems.
[0006] The present invention provides a method for automatically identifying engineering drawings, comprising the following steps:
[0007] S1. Obtain a combination of drawings to be inspected for the same building and import them into the engineering drawing recognition system;
[0008] S2. Unify drawings of various formats into the same engineering drawing format;
[0009] S3. Identify the overall drawing and the local drawing according to the drawing scale, section symbol and local magnification symbol, unify the scale of the drawings according to the same projection direction and align the drawing positions;
[0010] S4. Merge the same color lines in the same drawing into the same layer according to the colors in the drawing;
[0011] S5, traverse each component element in the same layer, and search whether it belongs to the same functional type of components, if yes, set this layer as the functional layer and proceed to step S7, otherwise proceed to step S6;
[0012] S6, detecting whether the component types in the current layer are of the same type in proportion to a set value, if so, setting the current layer to this type of function layer, and moving components that do not belong to this function to the corresponding function layer or establishing a related function layer, otherwise, moving all components in the layer to the corresponding function layer or establishing a related function layer;
[0013] S7, merging the layers with the same function in the same image into the final function layer, and arranging the layers with the same function but from different image sources in order;
[0014] S8, marking each component in each layer, free nodes in each layer, and components existing in multiple functional component modules, and moving the components existing in multiple functional component modules to the corresponding functional layers where the construction line nodes are connected to the components, and detecting whether the free nodes in adjacent layers of each layer with the same function overlap, if so, the free nodes of the associated layers are marked, otherwise the free nodes are marked;
[0015] S9, detect whether there are common lines or cross lines in the components of the same layer, if yes, retrieve the component information in the corresponding functional component module through the repeated component identification module, and proceed to step S10, otherwise proceed to step S11
[0016] S10, detect whether the connection node between the component of the common line or the intersection line and the construction line is set at the target position, if it is, it is determined to be a normal component, and all components in this layer are set as blocks, and step S11 is performed; otherwise, it is determined to be a misjudged component, and the component identification mark of the node not at the target position is deleted, and all the marked components in the layer are set as blocks, and step S11 is performed;
[0017] S11. Combining the layers of the same image into a whole image and changing the line colors to the same color as the base image, and stacking the functional layers of the image on the basis of the base image, wherein the line colors of the functional layers are different from the line colors of the base image.
[0018] In the method for automatic identification of engineering drawings described in the present invention, as a preferred embodiment, the colors of the lines of the base map and the functional layer are set to inverted colors.
[0019] The invention discloses an automatic identification method for engineering drawings. As a preferred embodiment, the engineering drawing identification system includes a matching drawing position overlap module, a plurality of functional component modules, a color block identification module, a multifunctional component identification module and a repeated component identification module.
[0020] The functional component module is used to store standard or non-standard graphic symbols of components with similar functions in engineering drawings and record the construction line format and component endpoint format of the components connected to each other;
[0021] The supporting drawing position overlay module is used to overlay engineering drawings in the order of construction and unify the drawings according to the scale;
[0022] The color block recognition module is used to identify lines of the same color in the same drawing;
[0023] The multifunctional component identification module is used to retrieve the component information in each functional component module and record the components that appear in multiple functional component modules;
[0024] The repeated component identification module is used to identify the common lines or crossing lines between repeated components and determine whether they are misjudgments.
[0025] In the method for automatic identification of engineering drawings described in the present invention, as a preferred embodiment, the building sequence is the construction sequence or the elevation sequence.
[0026] The beneficial effects of the present invention are as follows:
[0027] This method takes into account the actual characteristics of engineering drawings, that is, the problem that the lines of components in engineering drawings are relatively simple, and introduces component nodes as the judgment condition for whether a component is a real component, which reasonably eliminates noise. At the same time, this method reasonably connects the installation nodes of related positions in different drawings of the same type of work, which is convenient for actual reading needs. At the same time, this method proposes to distinguish the reading of drawings according to the actual type of work to reduce the interference of image information. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The present invention is a flow chart of an automatic recognition method for engineering drawings. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0030] Example 1
[0031] like Figure 1 As shown, a method for automatically identifying engineering drawings comprises the following steps:
[0032] S1. Obtain a combination of drawings to be inspected for the same building and import them into the engineering drawing recognition system;
[0033] S2. Unify drawings of various formats into the same engineering drawing format;
[0034] S3. Identify the overall drawing and the local drawing according to the drawing scale, section symbol and local magnification symbol, unify the scale of the drawings according to the same projection direction and align the drawing positions;
[0035] S4. Merge the same color lines in the same drawing into the same layer according to the colors in the drawing;
[0036] S5, traverse each component element in the same layer, and search whether it belongs to the same functional type of components, if yes, set this layer as the functional layer and proceed to step S7, otherwise proceed to step S6;
[0037] S6, detecting whether the component types in the current layer are of the same type in proportion to a set value, if so, setting the current layer to this type of function layer, and moving components that do not belong to this function to the corresponding function layer or establishing a related function layer, otherwise, moving all components in the layer to the corresponding function layer or establishing a related function layer;
[0038] S7, merging the layers with the same function in the same image into the final function layer, and arranging the layers with the same function but from different image sources in order;
[0039] S8, marking each component in each layer, free nodes in each layer, and components existing in multiple functional component modules, and moving the components existing in multiple functional component modules to the corresponding functional layers where the construction line nodes are connected to the components, and detecting whether the free nodes in adjacent layers of each layer with the same function overlap, if so, the free nodes of the associated layers are marked, otherwise the free nodes are marked;
[0040] S9, detecting whether there are common lines or cross lines in the components of the same layer, if yes, calling the component information in the corresponding functional component module through the repeated component identification module, and proceeding to step S10, otherwise proceeding to step S11;
[0041] S10, detect whether the connection node between the component of the common line or the intersection line and the construction line is set at the target position, if it is, it is determined to be a normal component, and all components in this layer are set as blocks, and step S11 is performed; otherwise, it is determined to be a misjudged component, and the component identification mark of the node not at the target position is deleted, and all the marked components in the layer are set as blocks, and step S11 is performed;
[0042] S11. Combining the layers of the same image into a whole image and changing the line colors to the same color as the base image, and stacking the functional layers of the image on the basis of the base image, wherein the line colors of the functional layers are different from the line colors of the base image.
[0043] In the method for automatic identification of engineering drawings described in the present invention, as a preferred embodiment, the colors of the lines of the base map and the functional layer are set to inverted colors.
[0044] The invention discloses an automatic identification method for engineering drawings. As a preferred embodiment, the engineering drawing identification system includes a matching drawing position overlap module, a plurality of functional component modules, a color block identification module, a multifunctional component identification module and a repeated component identification module.
[0045] The functional component module is used to store standard or non-standard graphic symbols of components with similar functions in engineering drawings and record the construction line format and component endpoint format of the components connected to each other;
[0046] The supporting drawing position overlay module is used to overlay engineering drawings in the order of construction and unify the drawings according to the scale;
[0047] The color block recognition module is used to identify lines of the same color in the same drawing;
[0048] The multifunctional component identification module is used to retrieve the component information in each functional component module and record the components that appear in multiple functional component modules;
[0049] The repeated component identification module is used to identify the common lines or crossing lines between repeated components and determine whether they are misjudgments.
[0050] In the method for automatic identification of engineering drawings described in the present invention, as a preferred embodiment, the building sequence is the construction sequence or the elevation sequence.
[0051] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for automatic recognition of engineering drawings, characterized in that: The following steps are involved: S1. Obtain a combination of drawings to be inspected for the same building and import them into the engineering drawing recognition system; S2. Unify drawings of various formats into the same engineering drawing format; S3. Identify the overall drawing and the local drawing according to the drawing scale, section symbol and local magnification symbol, unify the scale of the drawings according to the same projection direction and align the drawing positions; S4. Merge the same color lines in the same drawing into the same layer according to the colors in the drawing; S5, traverse each component element in the same layer, and search whether it belongs to the same functional type of components, if yes, set this layer as the functional layer and proceed to step S7, otherwise proceed to step S6; S6, detecting whether the component types in the current layer are of the same type in proportion to a set value, if so, setting the current layer to this type of function layer, and moving components that do not belong to this function to the corresponding function layer or establishing a related function layer, otherwise, moving all components in the layer to the corresponding function layer or establishing a related function layer; S7, merging the layers with the same function in the same image into the final function layer, and arranging the layers with the same function but from different image sources in order; S8, marking each component in each layer, free nodes in each layer, and components existing in multiple functional component modules, and moving the components existing in multiple functional component modules to the corresponding functional layers where the construction line nodes are connected to the components, and detecting whether the free nodes in adjacent layers of each layer with the same function overlap, if so, the free nodes of the associated layers are marked, otherwise the free nodes are marked; S9, detecting whether there are common lines or cross lines in the components in the same layer, if yes, calling the component information in the corresponding functional component module through the repeated component identification module, and proceeding to step S10, otherwise proceeding to step S11; S10, detect whether the connection node between the component of the common line or the intersection line and the construction line is set at the target position, if it is, it is determined to be a normal component, and all components in this layer are set as blocks, and step S11 is performed; otherwise, it is determined to be a misjudged component, and the component identification mark of the node not at the target position is deleted, and all the marked components in the layer are set as blocks, and step S11 is performed; S11, synthesizing the layers of the same image into a whole image and changing the line colors to the same color as a base image, and stacking the functional layers of the image on the basis of the base image, wherein the line colors of the functional layers are different from the line colors of the base image.
2. The method for automatic identification of engineering drawings according to claim 1, characterized in that: The base map and the functional layer line colors are set in reverse colors.
3. The method for automatic identification of engineering drawings according to claim 1, characterized in that: The engineering drawing recognition system includes a matching drawing position overlap module, several functional component modules, a color block recognition module, a multifunctional component recognition module and a repeated component recognition module. The functional component module is used to store standard or non-standard graphic symbols of components of the same function in engineering drawings and record the construction line format of the components connected to each other and the endpoint format of the components; The supporting drawing position overlapping module is used to stack engineering drawings in the order of construction and unify the drawings according to the scale; The color block recognition module is used to recognize lines of the same color in the same drawing; The multifunctional component identification module is used to retrieve the component information in each functional component module and record the components that appear in multiple functional component modules; The repeated component identification module is used to identify common lines or crossing lines between repeated components and determine whether they are misjudgments.
4. The method for automatic identification of engineering drawings according to claim 1, characterized in that: The building sequence is a construction sequence or an elevation sequence.