CN112989452B - Identification method for labeling text on component lead in CAD water supply and drainage professional drawing - Google Patents

Identification method for labeling text on component lead in CAD water supply and drainage professional drawing Download PDF

Info

Publication number
CN112989452B
CN112989452B CN202110074099.XA CN202110074099A CN112989452B CN 112989452 B CN112989452 B CN 112989452B CN 202110074099 A CN202110074099 A CN 202110074099A CN 112989452 B CN112989452 B CN 112989452B
Authority
CN
China
Prior art keywords
lead
text
component
cad
universal
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.)
Active
Application number
CN202110074099.XA
Other languages
Chinese (zh)
Other versions
CN112989452A (en
Inventor
谈军
彭靖田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Pinlan Zhizao Technology Co ltd
Original Assignee
Shanghai Pinlan Zhizao Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Pinlan Zhizao Technology Co ltd filed Critical Shanghai Pinlan Zhizao Technology Co ltd
Priority to CN202110074099.XA priority Critical patent/CN112989452B/en
Publication of CN112989452A publication Critical patent/CN112989452A/en
Application granted granted Critical
Publication of CN112989452B publication Critical patent/CN112989452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Abstract

The invention discloses a precise identification method for a component lead labeling 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 line elements: acquiring a lead branch line; and S5, finding a component penetrated by the universal lead, and matching the text with the component according to the type of the component, so as to find lead marking information corresponding to the component. The method can efficiently and accurately acquire the lead marking text of all the components in the picture frame, makes up for the technical blank of identifying the lead marking text of the components in the CAD drawing, and provides a solid foundation for subsequent component identification, relationship research, examination and the like.

Description

Identification method for labeling text on component lead in CAD water supply and drainage professional drawing
Technical Field
The invention belongs to the technical field of CAD image recognition, and particularly relates to a recognition method for labeling texts on component leads in a CAD water supply and drainage professional drawing.
Background
CAD construction drawing is a drawing showing the overall layout of engineering projects, the external shape, internal arrangement, structural construction, internal and external decoration, material construction, equipment, construction, etc. of a building by AutoCAD software. The CAD construction drawing has the characteristics of complete drawing, accurate expression and specific requirements, is the basis for engineering construction, construction drawing budget establishment and construction organization design, is also an important technical document for technical management, and can enter a construction stage only by carefully examining the construction drawing before construction, so as to ensure the smooth construction, and avoid the influence on the use stage after the construction is completed due to the fact that the drawing is wrong.
The water supply and drainage plan and the system diagram in the CAD construction drawing mainly draw water supply and drainage professional components and text marking information thereof, and the water supply and drainage professional components comprise component diagrams, lead information, text marking information and the like. With the advent of artificial intelligence, a large wave of projects involving in humans can be replaced with artificial intelligence, where the review of CAD drawings is a time-consuming and labor-consuming repetitive task. In order to facilitate the inspection of artificial intelligence on CAD construction drawings, accurate identification of components in drawings and text marking information of the components connected through leads are required.
Disclosure of Invention
The invention provides a method for identifying a component lead labeling 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 identifying a component lead labeling text in a CAD water supply and drainage professional drawing, which comprises the following steps:
s1, CAD drawing analysis: analyzing the CAD drawing, obtaining a series of primitive information such as line segments, texts and the like, and storing the primitive information in a classified manner;
s2, acquiring primitive information: and obtaining a component according to the analysis result: the line primitives acquired at the riser layer are riser components; the linear graphic elements obtained in the horizontal pipe layer are the horizontal pipe components; obtaining a lead: the linear graphic element obtained in the lead layer is the lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: four vertex coordinates, long-side inclination angles, bottom-side midpoint coordinates, text contents of all texts are obtained and calculated, and the coordinate sequence of the lead primitives is adjusted;
s4, merging the lead line elements: acquiring a lead branch line: filtering out the vertical text and the vertical lead, searching for the text corresponding to the lead in a certain searching range of the lead line element, and if the text corresponding to the text can be found, obtaining a lead branch line; obtaining universal leads, connecting the leads connected at the first position, merging the universal leads which are overlapped after connection into one strip, filtering the universal leads with the length which does not meet the requirement, and merging the universal leads and lead branch lines;
and S5, finding a component penetrated by the universal lead, and matching the text with the component according to the type of the component, so as to find 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 text of all the components in the picture frame, makes up for the technical blank of identifying the lead marking text of the components in the CAD drawing, and provides a solid foundation for subsequent component identification, relationship research, examination and the like.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a step diagram of a method for identifying text for labeling component leads in a CAD water supply and drainage professional drawing;
FIG. 2 is an exemplary diagram of step S2 in accordance with an embodiment of the present invention;
FIG. 3 is an example of obtaining primitive information in a step S2 according to an embodiment of the present invention;
FIG. 4 is an example of parsing text information obtained in step S2 according to an embodiment of the present invention;
FIG. 5 is a cross-pipe layer content obtained in step S2 according to an embodiment of the present invention;
fig. 6 is a diagram of an exemplary text labeling of an embodiment of the present invention by a lead matching means based on step S3-5.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-6, the method for identifying the text marked on the component lead in the CAD water supply and drainage professional drawing of the invention comprises the following steps:
s1, CAD drawing analysis: analyzing the CAD drawing, obtaining a series of primitive information such as line segments, texts and the like, and storing the primitive information in a classified manner;
s2, acquiring primitive information: and obtaining a component according to the analysis result: the line primitives acquired at the riser layer are riser components; the linear graphic elements obtained in the horizontal pipe layer are the horizontal pipe components; obtaining a lead: the linear graphic element obtained in the lead layer is the lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: four vertex coordinates, long-side inclination angles, bottom-side midpoint coordinates, text contents of all texts are obtained and calculated, and the coordinate sequence of the lead primitives is adjusted;
s4, merging the lead line elements: acquiring a lead branch line: filtering out the vertical text and the vertical lead, searching for the text corresponding to the lead in a certain searching range of the lead line element, and if the text corresponding to the text can be found, obtaining a lead branch line; obtaining universal leads, connecting the leads connected at the first position, merging the universal leads which are overlapped after connection into one strip, filtering the universal leads with the length which does not meet the requirement, and merging the universal leads and lead branch lines;
and S5, finding a component penetrated by the universal lead, and matching the text with the component according to the type of the component, so as to find lead marking information corresponding to the component.
As shown in fig. 3-6:
in the CAD drawing of this embodiment, the vertical pipe, the horizontal pipe, and the lead are drawn in respective specific layers, and a specified layer can be obtained by screening out the corresponding layer name, and the line under the specified layer is the vertical pipe, the horizontal pipe, and the lead.
For example: the water supply transverse pipe is at the upper layer, and the lines below the layer are all water supply transverse pipes;
as shown in fig. 3 and 4, the primitive information is obtained by parsing: the line segments in the drawing are linear graphic elements, and the characters are text graphic elements;
as shown in fig. 5, layer information is acquired: if the cross pipe layer content is appointed to be acquired, the line below the layer is a cross pipe component;
the beneficial effects are that:
the method can efficiently and accurately acquire the lead marking text of all the components in the picture frame, makes up for the technical blank of identifying the lead marking text of the components in the CAD drawing, and provides a solid foundation for subsequent component identification, relationship research, examination and the like.
The preferred embodiments of the invention disclosed above are intended only to assist in the explanation of the invention. The preferred embodiments are not exhaustive or to limit the invention to the precise form 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 understand and utilize the invention. The invention is limited only by the claims and the full scope and equivalents thereof.

Claims (1)

1. The identification method for the component lead marking text in the CAD water supply and drainage professional drawing is characterized by comprising the following steps:
s1, CAD drawing analysis: analyzing the CAD drawing, obtaining a line segment and a series of primitive information of the text, and classifying and storing the line segment and the text;
s2, acquiring primitive information: and obtaining a component according to the analysis result: the line primitives acquired at the riser layer are riser components; the linear graphic elements obtained in the horizontal pipe layer are the horizontal pipe components; obtaining a lead: the linear graphic element obtained in the lead layer is the lead; acquiring text information: acquiring all text information in a picture frame;
s3, processing the primitive information: four vertex coordinates, long-side inclination angles, bottom-side midpoint coordinates, text contents of all texts are obtained and calculated, and the coordinate sequence of the lead primitives is adjusted;
s4, merging the lead line elements: acquiring a lead branch line: filtering out the vertical text and the vertical lead, searching for the text corresponding to the lead in the searching range of the lead line element, and if the text corresponding to the text can be found, obtaining a lead branch line; obtaining universal leads, connecting the leads connected at the first position, merging the universal leads which are overlapped after connection, filtering the universal leads with the length which does not meet the requirement, and merging the universal leads and lead branch lines;
and S5, finding a component penetrated by the universal lead, and matching the text with the component according to the type of the component, so as to find lead marking information corresponding to the component.
CN202110074099.XA 2021-01-20 2021-01-20 Identification method for labeling text on component lead in CAD water supply and drainage professional drawing Active CN112989452B (en)

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 CN112989452A (en) 2021-06-18
CN112989452B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8649600B2 (en) * 2009-07-10 2014-02-11 Palo Alto Research Center Incorporated System and method for segmenting text lines in documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
一种三维几何公差标注信息审查方法;付超凡 等;《组合机床与自动化加工技术》;142-146 *

Also Published As

Publication number Publication date
CN112989452A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112989452B (en) Identification method for labeling text on component lead in CAD water supply and drainage professional drawing
CN111008597B (en) Space identification method and device for CAD drawing, electronic equipment and storage medium
US20140313216A1 (en) Recognition and Representation of Image Sketches
WO2019072181A1 (en) Bone marrow cell marking method and system
CN112883799A (en) Method for accurately identifying slope in CAD (computer-aided design) slope big sample graph
CN112883801A (en) Accurate identification method for household distribution box system diagram subgraph in CAD distribution system diagram
US20230112828A1 (en) Inspection support device, inspection support method, and program
CN112396032B (en) Writing detection method and device, storage medium and electronic equipment
CN113674216A (en) Subway tunnel disease detection method based on deep learning
CN112883926A (en) Identification method and device for table medical images
CN115761773A (en) Deep learning-based in-image table identification method and system
KR102535054B1 (en) Automatic extraction method of indoor spatial information from floor plan images through patch-based deep learning algorithms and device thereof
Li et al. A semi-supervised deep learning approach for circular hole detection on composite parts
Pan et al. Recovering building information model from 2D drawings for mechanical, electrical and plumbing systems of ageing buildings
Jiang et al. Machine vision and background remover-based approach for PCB solder joints inspection
CN114022894A (en) Method for accurately identifying front rooms of stairs in CAD (computer-aided design) drawing
CN112070748A (en) Metal oil pipe defect detection method and device
CN116912872A (en) Drawing identification method, device, equipment and readable storage medium
CN111199050A (en) System for automatically desensitizing medical records and application
CN115661851A (en) Sample data acquisition and component identification method and electronic equipment
Kivilcim et al. Parametric Architectural Elements from Point Clouds for HBIM Applications
CN114820870A (en) Nuclear power flow chart auxiliary drawing method and device, computer equipment and storage medium
CN112699736A (en) Bridge bearing fault identification method based on space attention
CN115409966A (en) Method for automatically reconstructing truss structure three-dimensional point cloud from two-dimensional vector drawing
Cheng et al. An Algorithm for Crack Detection, Segmentation, and Fractal Dimension Estimation in Low-Light Environments by Fusing FFT and Convolutional Neural Network

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