CN112989452A - Accurate identification method for component lead marking text in CAD water supply and drainage professional drawings - Google Patents
Accurate identification method for component lead marking text in CAD water supply and drainage professional drawings Download PDFInfo
- Publication number
- CN112989452A CN112989452A CN202110074099.XA CN202110074099A CN112989452A CN 112989452 A CN112989452 A CN 112989452A CN 202110074099 A CN202110074099 A CN 202110074099A CN 112989452 A CN112989452 A CN 112989452A
- Authority
- CN
- China
- Prior art keywords
- lead
- cad
- text
- component
- acquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 title claims abstract description 12
- 238000010276 construction Methods 0.000 claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 5
- 238000001914 filtration Methods 0.000 claims description 6
- 238000011161 development Methods 0.000 abstract description 3
- 238000011160 research Methods 0.000 abstract description 3
- 239000007787 solid Substances 0.000 abstract description 3
- 238000013473 artificial intelligence Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- WABPQHHGFIMREM-UHFFFAOYSA-N lead(0) Chemical compound [Pb] WABPQHHGFIMREM-UHFFFAOYSA-N 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/14—Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Civil Engineering (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a method for accurately identifying a component lead marking text in a CAD water supply and drainage professional drawing, and relates to the technical field of CAD image identification. The invention comprises the following steps: s1, analyzing a CAD drawing; s2, acquiring primitive information; s3, processing the primitive information; s4, merging the lead primitives: obtaining a lead branch line; and S5, finding the construction through which the universal lead passes, and matching the text and the component according to the construction type, thereby finding the lead marking information corresponding to the component. The method can efficiently and accurately acquire the lead marking texts of all the components in the picture frame, makes up the technical blank of identifying the lead marking texts of the components in the CAD drawing, and provides a solid foundation for the subsequent development of component identification, relation research, examination and the like.
Description
Technical Field
The invention belongs to the technical field of CAD image recognition, and particularly relates to an accurate recognition method for a component lead marking text in a CAD water supply and drainage professional drawing.
Background
The CAD drawings are drawings which are created by AutoCAD software for the overall layout of a project, the external shape, internal layout, structural structure, interior and exterior finishing, material processing, equipment, construction, and the like of a building. The CAD construction drawing has the characteristics of complete drawings, accurate expression and specific requirements, is a basis for engineering construction, construction drawing budget planning and construction organization design, is an important technical document for technical management, can enter a construction stage only by carefully examining the construction drawing before construction, aims to ensure the smooth construction, and can avoid the influence on a use stage after construction due to the mistake of the drawing.
The water supply and drainage plan and the system drawing in the CAD construction drawing mainly draw water supply and drainage professional members and text marking information thereof, and the water supply and drainage plan and the system drawing comprise construction graphs, lead information, text marking information and the like. With the rise of artificial intelligence, a large wave of projects participated by human can be replaced by artificial intelligence, wherein the examination of CAD construction drawings is a time-consuming and labor-consuming repetitive work. In order to facilitate the examination of the CAD construction drawing by artificial intelligence, the components in the drawing and the text marking information of the components connected through the lead wires need to be accurately identified.
Disclosure of Invention
The invention provides a method for accurately identifying a component lead marking text in a CAD water supply and drainage professional drawing, which solves the problems.
In order to solve the technical problems, the invention is realized by the following technical scheme:
the invention discloses a method for accurately identifying a component lead marking text in a CAD water supply and drainage professional drawing, which comprises the following steps:
s1, analyzing a CAD drawing: analyzing the CAD drawing to obtain a series of primitive information such as line segments, texts and the like for classified storage;
s2, acquiring primitive information: acquiring means according to the analysis result: the line-type graphic element acquired in the riser graphic layer is a riser component; the linear graphic elements acquired in the transverse tube graphic layer are transverse tube components; obtaining a lead: the line type graphic element obtained in the lead layer is a lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: acquiring and calculating four vertex coordinates, a long edge inclination angle, a bottom edge midpoint coordinate and text content of all texts, and adjusting the coordinate sequence of lead primitive;
s4, merging the lead primitives: obtaining a lead branch line: filtering out vertical texts and vertical leads, searching texts corresponding to the leads in a certain search range of the lead primitives, and if corresponding texts can be found, determining lead branches; acquiring a universal lead, connecting the lead connected at the head, combining the connected universal leads which are overlapped into one piece, filtering out the universal lead with the length not meeting the requirement, and combining the universal lead with a lead branch line;
and S5, finding the construction through which the universal lead passes, and matching the text and the component according to the construction type, thereby finding the lead marking information corresponding to the component.
Compared with the prior art, the invention has the following beneficial effects:
the method can efficiently and accurately acquire the lead marking texts of all the components in the picture frame, makes up the technical blank of identifying the lead marking texts of the components in the CAD drawing, and provides a solid foundation for the subsequent development of component identification, relation research, examination and the like.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a step diagram of a method for accurately identifying a component lead marking text in a CAD water supply and drainage professional drawing;
FIG. 2 is an exemplary diagram of step S2 in accordance with one embodiment of the present invention;
fig. 3 is an example of parsing and acquiring primitive information in step S2 according to the embodiment of the present invention;
fig. 4 is an example of parsing and acquiring text information in step S2 according to the embodiment of the present invention;
fig. 5 is the content of the transverse tube layer obtained in step S2 according to the embodiment of the present invention;
fig. 6 is a diagram illustrating an example of the embodiment of the present invention labeled through the text of the lead matching means based on step S3-5.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-6, the method for accurately identifying the component lead marking text in the CAD water supply and drainage professional drawing of the invention includes the following steps:
s1, analyzing a CAD drawing: analyzing the CAD drawing to obtain a series of primitive information such as line segments, texts and the like for classified storage;
s2, acquiring primitive information: acquiring means according to the analysis result: the line-type graphic element acquired in the riser graphic layer is a riser component; the linear graphic elements acquired in the transverse tube graphic layer are transverse tube components; obtaining a lead: the line type graphic element obtained in the lead layer is a lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: acquiring and calculating four vertex coordinates, a long edge inclination angle, a bottom edge midpoint coordinate and text content of all texts, and adjusting the coordinate sequence of lead primitive;
s4, merging the lead primitives: obtaining a lead branch line: filtering out vertical texts and vertical leads, searching texts corresponding to the leads in a certain search range of the lead primitives, and if corresponding texts can be found, determining lead branches; acquiring a universal lead, connecting the lead connected at the head, combining the connected universal leads which are overlapped into one piece, filtering out the universal lead with the length not meeting the requirement, and combining the universal lead with a lead branch line;
and S5, finding the construction through which the universal lead passes, and matching the text and the component according to the construction type, thereby finding the lead marking information corresponding to the component.
As shown in fig. 3-6:
in the CAD drawing of the embodiment, the vertical tube, the horizontal tube, and the lead wire are drawn in respective specific layers, and the specified layer can be obtained as long as the corresponding layer name is screened out, and the line under the specified layer is the vertical tube, the horizontal tube, and the lead wire.
For example: the horizontal water supply pipe is arranged on the upper drawing layer, and lines below the drawing layer are all horizontal water supply pipes;
as shown in fig. 3 and 4, the primitive information is obtained by parsing: the line segments in the graph are linear graphic elements, and the characters are text graphic elements;
as shown in fig. 5, layer information is obtained: if the content of the layer of the transverse tube is appointed to be obtained, the line below the layer is the transverse tube component;
has the advantages that:
the method can efficiently and accurately acquire the lead marking texts of all the components in the picture frame, makes up the technical blank of identifying the lead marking texts of the components in the CAD drawing, and provides a solid foundation for the subsequent development of component identification, relation research, examination and the like.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims (1)
1. A method for accurately identifying a component lead marking text in a CAD water supply and drainage professional drawing is characterized by comprising the following steps:
s1, analyzing a CAD drawing: analyzing the CAD drawing to obtain a series of primitive information such as line segments, texts and the like for classified storage;
s2, acquiring primitive information: acquiring means according to the analysis result: the line-type graphic element acquired in the riser graphic layer is a riser component; the linear graphic elements acquired in the transverse tube graphic layer are transverse tube components; obtaining a lead: the line type graphic element obtained in the lead layer is a lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: acquiring and calculating four vertex coordinates, a long edge inclination angle, a bottom edge midpoint coordinate and text content of all texts, and adjusting the coordinate sequence of lead primitive;
s4, merging the lead primitives: obtaining a lead branch line: filtering out vertical texts and vertical leads, searching texts corresponding to the leads in a certain search range of the lead primitives, and if corresponding texts can be found, determining lead branches; acquiring a universal lead, connecting the lead connected at the head, combining the connected universal leads which are overlapped into one piece, filtering out the universal lead with the length not meeting the requirement, and combining the universal lead with a lead branch line;
and S5, finding the construction through which the universal lead passes, and matching the text and the component according to the construction type, thereby finding the lead marking information corresponding to the component.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110074099.XA CN112989452B (en) | 2021-01-20 | 2021-01-20 | Identification method for labeling text on component lead in CAD water supply and drainage professional drawing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110074099.XA CN112989452B (en) | 2021-01-20 | 2021-01-20 | Identification method for labeling text on component lead in CAD water supply and drainage professional drawing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112989452A true CN112989452A (en) | 2021-06-18 |
CN112989452B CN112989452B (en) | 2023-12-29 |
Family
ID=76345366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110074099.XA Active CN112989452B (en) | 2021-01-20 | 2021-01-20 | Identification method for labeling text on component lead in CAD water supply and drainage professional drawing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112989452B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112883801A (en) * | 2021-01-20 | 2021-06-01 | 上海品览智造科技有限公司 | Accurate identification method for household distribution box system diagram subgraph in CAD distribution system diagram |
CN113486054A (en) * | 2021-06-28 | 2021-10-08 | 武汉禾成晟信息技术有限公司 | Intelligent grouping association piece matching method based on cable assembly database |
CN113887508A (en) * | 2021-10-25 | 2022-01-04 | 上海品览数据科技有限公司 | Method for accurately identifying center line of public corridor space in building professional residential plan |
CN114494114A (en) * | 2021-12-20 | 2022-05-13 | 上海品览数据科技有限公司 | Hidden column in structure professional wall column construction drawing based on deep learning and attribute identification method thereof |
CN114882519A (en) * | 2022-05-06 | 2022-08-09 | 青矩技术股份有限公司 | Method and device for extracting layer based on primitive features |
CN114972778A (en) * | 2022-01-04 | 2022-08-30 | 上海品览数据科技有限公司 | Image processing-based identification method for reinforcement attributes of structural professional boards |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110007970A1 (en) * | 2009-07-10 | 2011-01-13 | Palo Alto Research Center Incorporated | System and method for segmenting text lines in documents |
CN109408897A (en) * | 2018-09-26 | 2019-03-01 | 中广核工程有限公司 | The conversion method and system identified based on PDMS to AutoCAD drawing size marking |
CN111159453A (en) * | 2019-12-24 | 2020-05-15 | 清华大学 | Method and device for matching labels and components of CAD drawings |
CN111814575A (en) * | 2020-06-12 | 2020-10-23 | 上海品览数据科技有限公司 | Household pattern recognition method based on deep learning and image processing |
-
2021
- 2021-01-20 CN CN202110074099.XA patent/CN112989452B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110007970A1 (en) * | 2009-07-10 | 2011-01-13 | Palo Alto Research Center Incorporated | System and method for segmenting text lines in documents |
CN109408897A (en) * | 2018-09-26 | 2019-03-01 | 中广核工程有限公司 | The conversion method and system identified based on PDMS to AutoCAD drawing size marking |
CN111159453A (en) * | 2019-12-24 | 2020-05-15 | 清华大学 | Method and device for matching labels and components of CAD drawings |
CN111814575A (en) * | 2020-06-12 | 2020-10-23 | 上海品览数据科技有限公司 | Household pattern recognition method based on deep learning and image processing |
Non-Patent Citations (1)
Title |
---|
付超凡 等: "一种三维几何公差标注信息审查方法", 《组合机床与自动化加工技术》, pages 142 - 146 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112883801A (en) * | 2021-01-20 | 2021-06-01 | 上海品览智造科技有限公司 | Accurate identification method for household distribution box system diagram subgraph in CAD distribution system diagram |
CN112883801B (en) * | 2021-01-20 | 2024-05-24 | 上海品览智造科技有限公司 | Accurate identification method for resident distribution box system diagram sub-graph in CAD distribution system diagram |
CN113486054A (en) * | 2021-06-28 | 2021-10-08 | 武汉禾成晟信息技术有限公司 | Intelligent grouping association piece matching method based on cable assembly database |
CN113486054B (en) * | 2021-06-28 | 2024-06-11 | 武汉禾成晟信息技术有限公司 | Intelligent matching method for group association components based on cable assembly database |
CN113887508A (en) * | 2021-10-25 | 2022-01-04 | 上海品览数据科技有限公司 | Method for accurately identifying center line of public corridor space in building professional residential plan |
CN113887508B (en) * | 2021-10-25 | 2024-05-14 | 上海品览数据科技有限公司 | Accurate identification method for central line of public corridor space in building professional residence plan |
CN114494114A (en) * | 2021-12-20 | 2022-05-13 | 上海品览数据科技有限公司 | Hidden column in structure professional wall column construction drawing based on deep learning and attribute identification method thereof |
CN114972778A (en) * | 2022-01-04 | 2022-08-30 | 上海品览数据科技有限公司 | Image processing-based identification method for reinforcement attributes of structural professional boards |
CN114972778B (en) * | 2022-01-04 | 2024-05-24 | 上海品览数据科技有限公司 | Identification method for reinforcement attribute of structural professional board based on image processing |
CN114882519A (en) * | 2022-05-06 | 2022-08-09 | 青矩技术股份有限公司 | Method and device for extracting layer based on primitive features |
Also Published As
Publication number | Publication date |
---|---|
CN112989452B (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112989452A (en) | Accurate identification method for component lead marking text in CAD water supply and drainage professional drawings | |
CN111008597B (en) | Space identification method and device for CAD drawing, electronic equipment and storage medium | |
Zhao et al. | Reconstructing BIM from 2D structural drawings for existing buildings | |
CN112883799B (en) | Method for accurately identifying ramp in CAD ramp large-scale sample graph | |
Huang et al. | Deep learning-based instance segmentation of cracks from shield tunnel lining images | |
CN112883801B (en) | Accurate identification method for resident distribution box system diagram sub-graph in CAD distribution system diagram | |
CN109614488A (en) | Distribution network live line work condition distinguishing method based on text classification and image recognition | |
CN110838105A (en) | Business process model image identification and reconstruction method | |
CN113887508B (en) | Accurate identification method for central line of public corridor space in building professional residence plan | |
CN115937203B (en) | Visual detection method, device, equipment and medium based on template matching | |
CN113674216A (en) | Subway tunnel disease detection method based on deep learning | |
CN114022894B (en) | Method for accurately identifying stairway front room in CAD drawing | |
Liu et al. | A crack detection system of subway tunnel based on image processing | |
Bruno et al. | Decay detection in historic buildings through image-based deep learning | |
Carraro et al. | The Segment Anything Model (SAM) for accelerating the smart farming revolution | |
CN115097974B (en) | BIM intelligent auxiliary consultation system and method | |
CN109543716B (en) | K-line form image identification method based on deep learning | |
CN111199050B (en) | System for automatically desensitizing medical records and application | |
CN110781851A (en) | Method for identifying decoration house type graph based on picture | |
KR102535054B1 (en) | Automatic extraction method of indoor spatial information from floor plan images through patch-based deep learning algorithms and device thereof | |
CN114154856A (en) | Power grid path planning node calculation method and system based on road network | |
CN113469086A (en) | Method, device, equipment and medium for dividing areas in building plan | |
Yu et al. | Shape analysis and recognition based on skeleton and morphological structure | |
CN114494721A (en) | Structural beam position information identification method | |
Galantucci et al. | Machine Learning for the Semi-Automatic 3D Decay Segmentation and Mapping of Heritage Assets |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |