CN114429639A - Pipeline marking identification method and device - Google Patents
Pipeline marking identification method and device Download PDFInfo
- Publication number
- CN114429639A CN114429639A CN202210102815.5A CN202210102815A CN114429639A CN 114429639 A CN114429639 A CN 114429639A CN 202210102815 A CN202210102815 A CN 202210102815A CN 114429639 A CN114429639 A CN 114429639A
- Authority
- CN
- China
- Prior art keywords
- pipeline
- label
- pipe length
- pipe
- length
- 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
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000010276 construction Methods 0.000 claims abstract description 18
- 230000015654 memory Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 14
- 238000002372 labelling Methods 0.000 claims description 3
- 238000012216 screening Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 229910001294 Reinforcing steel Inorganic materials 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011960 computer-aided design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/66—Analysis of geometric attributes of image moments or centre of gravity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
The invention provides a pipeline marking identification method and a pipeline marking identification device, wherein the method comprises the following steps: acquiring a pipe length mark in a to-be-identified area of a target construction engineering drawing; respectively calculating the distance between each pipe length label and each pipeline in the area to be identified; determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified; extracting a pipeline set meeting the length marking information of the first pipeline along the connecting direction of the first pipeline based on the length marking information of the first pipeline corresponding to the first pipeline; the first pipe length label is matched to the set of pipes. Therefore, a pipeline belonging to the pipeline length mark is determined by using the distance between the pipeline length mark and the pipeline, and then the pipeline set is extracted along the connecting direction of the pipeline according to the pipeline length value of the pipeline length mark for matching, so that the automatic identification of the pipeline length mark is realized, the identification efficiency of the pipeline length mark is improved, the error identification is avoided, the accuracy of the pipeline length mark identification is improved, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of computer aided design, in particular to a pipeline marking identification method and a pipeline marking identification device,
background
In the existing building engineering software, a lot of users are supported to construct a three-dimensional model according to drawings after the users import CAD drawings, and most of the implementations are that the users manually draw the three-dimensional model according to the drawings by pipelines of the drawings, but this takes a lot of time for the users.
In the prior art, a user is usually required to manually identify the pipeline corresponding to each pipeline label. However, due to complex drawing scenes, pipeline label information may or may not be on the same layer, the connection direction of the pipeline label information and the pipeline may not correspond, and one pipeline label may correspond to multiple pipelines, etc., which makes the conventional manual pipeline label identification method time consuming longer, and has low identification efficiency and is prone to identification errors.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for identifying a pipeline label to solve the problems in the prior art that the efficiency is low and the accuracy cannot be guaranteed by a manual pipeline label identification method.
According to a first aspect, an embodiment of the present invention provides a pipeline marking identification method, including:
acquiring a pipe length mark in a to-be-identified area of a target construction engineering drawing;
respectively calculating the distance between each pipe length label and each pipeline in the area to be identified;
determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified;
extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information of the first pipe length marking corresponding to the first pipeline;
matching the first pipe length label with the pipeline set.
Optionally, the calculating the distance from each pipe length label to each pipeline in the area to be identified respectively includes:
acquiring the central point of each pipe length label;
and determining the distance between each pipe length label and each pipeline based on the distance between the central point of each pipe length label and each pipeline.
Optionally, the determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified includes:
acquiring the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label;
respectively inputting the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label into a pipeline identification model to obtain a prediction score corresponding to each pipe length label;
and determining the tube length label with the highest prediction score as the current tube length label corresponding to the current pipeline.
Optionally, the extracting, based on the length-labeled information of the first length label corresponding to the first pipeline, a pipeline set that satisfies the length-labeled information along the connection direction of the first pipeline includes:
sequentially extracting connecting pipelines along the connecting direction of the first pipeline from the first pipeline to form a pipeline set;
determining the actual length of each pipeline set based on the total length of each pipeline set in the target construction engineering drawing and a scale corresponding to the target construction engineering drawing;
screening the pipeline sets with the actual lengths equal to the pipe length value marked by the first pipe length based on the actual lengths of the pipeline sets.
Optionally, before extracting, based on the pipe length labeling information of the first pipe length label corresponding to the first pipe, a pipe set satisfying the pipe length labeling information along the connection direction of the first pipe, the method further includes:
acquiring a first length of the first pipeline in the target construction engineering drawing and a scale corresponding to the target construction engineering drawing;
determining a first actual length of the first pipeline based on the first length and the scale;
judging whether the first actual length is smaller than the pipe length value marked by the first pipe length;
when the first actual length is smaller than the pipe length value marked by the first pipe length, extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information marked by the first pipe length corresponding to the first pipeline;
and matching the first pipe length label with the first pipeline when the actual length is equal to the pipe length value of the first pipe length label.
Optionally, the method further comprises:
acquiring each pipe diameter label in an area to be identified of a target architectural engineering drawing;
respectively calculating the distance between each pipe diameter and each pipeline in the area to be identified;
determining a second pipeline corresponding to each pipe diameter label based on the distance from each pipe diameter label to each pipeline in the area to be identified;
acquiring a first pipe diameter label corresponding to any one pipe in the pipe set based on a second pipe corresponding to each pipe diameter label;
and matching the first pipe diameter label with the pipeline set.
Optionally, before obtaining the pipe diameter labels in the to-be-identified area of the target architectural engineering drawing, the method further includes:
judging whether the first pipe length label contains pipe diameter label information or not;
and when the first pipe length label does not contain pipe diameter label information, acquiring each pipe diameter label in the area to be identified of the target architectural engineering drawing.
According to a second aspect, an embodiment of the present invention provides a pipeline marking identification apparatus, including:
the acquisition module is used for acquiring the pipe length label in the area to be identified of the target architectural engineering drawing;
the first processing module is used for respectively calculating the distance between each pipe length label and each pipeline in the area to be identified;
the second processing module is used for determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified;
the third processing module is used for extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information of the first pipe length marking corresponding to the first pipeline;
a fourth processing module for matching the first pipe length label with the set of pipes.
According to a third aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the method of the first aspect of the present invention and any one of its alternatives.
According to a fourth aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor being configured to execute the computer instructions to perform the method of the first aspect of the present invention and any one of the alternatives thereof.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a pipeline mark identification method and device, wherein a pipe length mark in an area to be identified of a target construction engineering drawing is obtained; respectively calculating the distance between each pipe length label and each pipeline in the area to be identified; determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified; extracting a pipeline set meeting the length marking information of the first pipeline along the connecting direction of the first pipeline based on the length marking information of the first pipeline corresponding to the first pipeline; the first pipe length label is matched with the set of pipes. Thereby confirm a pipeline that belongs to this pipe length mark through utilizing the distance between pipe length mark and the pipeline, then draw the pipeline set along the direction of connection of this pipeline according to the pipe length value of this pipe length mark and match, thereby realized the automatic identification of the pipeline that the pipe length mark corresponds, improved the recognition efficiency of pipeline mark, avoided the problem that artifical discernment appears the wrong discernment easily, improved the accuracy of pipeline mark recognition result, further promoted user and used experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a pipeline tag identification method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the position relationship between the target pipeline and the pipe length mark according to the embodiment of the present invention;
FIG. 3 is a schematic diagram of the correspondence relationship between the pipeline and the pipe length labels in the embodiment of the present invention;
FIG. 4 is a schematic diagram of the position relationship between the pipeline and the length and diameter labels of the pipeline according to the embodiment of the present invention;
FIG. 5 is a schematic diagram of a main pipeline and branch pipelines in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a pipeline mark identifying apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. 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.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
First, technical terms used in the embodiments of the present invention will be described.
Primitive: the graphic element is the smallest operable display unit in the graphic information engineering. Such as: a pillar, which is shown as a cuboid in the graphical software and is described as a primitive; the primitive can be adjusted in length, width, height, reinforcing steel bar information and other attributes.
The components are as follows: when most core characteristics of a group of primitives are the same, in order to avoid repeated definition, the group of primitives are merged into a member, and definition of common characteristic data is completed in the member; such as: one set of 400 × 3000 square columns is the same member, and the other set of 3000-high cylinders with a radius of 500 is the other member.
The component types are as follows: when a group of components belong to the same category from the business, the components are marked as a category and are described by component types. For example: columns, beams, walls, panels, are different types of components.
And (3) same layer: the same layer is referred to herein as representing the same type of CAD primitives under one layer. For example: all well primitives in the CAD drawing are under one layer.
In the existing building engineering software, a lot of users are supported to construct a three-dimensional model according to drawings after the users import CAD drawings, and most of the implementations are that the users manually draw the three-dimensional model according to the drawings by pipelines of the drawings, but this takes a lot of time for the users.
In the prior art, a user is usually required to manually identify the pipeline corresponding to each pipeline label. However, due to complex drawing scenes, pipeline label information may or may not be on the same layer, the connection direction of the pipeline label information and the pipeline may not correspond, and one pipeline label may correspond to multiple pipelines, etc., which makes the conventional manual pipeline label identification method time consuming longer, and has low identification efficiency and is prone to identification errors.
Based on the above problem, an embodiment of the present invention provides a pipeline label identification method, as shown in fig. 1, the pipeline label identification method specifically includes the following steps:
step S101: and acquiring the pipe length mark in the area to be identified of the target architectural engineering drawing.
In the embodiment of the present invention, a target architectural engineering drawing is taken as an example for description, in practical applications, the target architectural engineering drawing may also be a building drawing in other formats, and the present invention is not limited thereto. The area to be identified is an area corresponding to a pipe component graphic element expected to be generated by a user on a CAD drawing. The tube length is marked on the CAD drawing as a marking box with a tube length value, the tube length marking may only be the tube length value, and sometimes the tube diameter value and the tube length value are marked in one marking box, which is not limited in the present invention.
Step S102: and respectively calculating the distance between each pipe length label and each pipeline in the area to be identified.
Specifically, the step S102 is performed by obtaining a central point of each tube length label; and determining the distance between each pipe length label and each pipeline based on the distance between the central point of each pipe length label and each pipeline. The distance between each tube length label and a different tube line is thus determined from the point-to-line distance.
Step S103: and determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified.
The method comprises the following steps of designing a CAD drawing, wherein pipe length labels are usually arranged near corresponding pipelines in the CAD drawing, one pipe length label can be the total length of a plurality of pipelines connected in sequence, and the closer the pipe length label is to the pipelines, the higher the possibility that the pipeline belongs to the label range of the pipe length label is, so that the pipeline belonging to the pipe length label can be determined according to the distance between the pipe length label and the pipelines.
Step S104: and extracting a pipeline set meeting the length marking information along the connection direction of the first pipeline based on the length marking information of the first pipeline corresponding to the length marking.
The pipeline set at least comprises a first pipeline or comprises the first pipeline and other pipelines which are sequentially connected with the first pipeline and belong to the first pipe length label.
Step S105: the first pipe length label is matched with the set of pipes.
Specifically, the corresponding relation between the pipeline number and the first pipe length label is established by acquiring the number of each pipeline in the pipeline set, so that the automatic identification of the pipeline corresponding to the pipe length label is realized.
By executing the steps, the pipeline marking identification method provided by the embodiment of the invention determines a pipeline belonging to the pipeline length marking by using the distance between the pipeline length marking and the pipeline, and extracts the pipeline set for matching according to the pipeline length value marked by the pipeline length along the connecting direction of the pipeline, so that the automatic identification of the pipeline corresponding to the pipeline length marking is realized, the pipeline marking identification efficiency is improved, the problem that the pipeline marking is easy to be identified by mistake in manual identification is avoided, the pipeline marking identification result accuracy is improved, and the user experience is further improved.
Specifically, in an embodiment, the step S103 specifically includes the following steps:
step S301: and acquiring the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label.
In the figure, the line segment between the tube length a and the tube length B is the target line, and the tube length values corresponding to the tube length a and the tube length B are 24.35m and 18.40m, respectively.
Step S302: and respectively inputting the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label into a pipeline identification model to obtain a prediction score corresponding to each pipe length label.
Specifically, as shown in fig. 2, it is assumed that the shortest distance from the central point ptA of the pipe length a to the target pipeline is MinA, and the pipe length value is ALength; the shortest distance from the central point ptB of the pipe length B to the target pipeline is MinB, and the pipe length value is BLength; the actual length of the target pipeline is ActualLength; setting the weight value: a pipe distance weight wdsi, a pipe length weight ldsi, where the sum of wdsi and ldsi equals 1. The specific weight setting can be flexibly adjusted according to the design habit of the CAD drawing, and the invention is not limited to this.
Wherein, the pipeline identification model is expressed by the following formula:
M=MinN*wDis+(NLength-ActualLength)*lDis
and M is the prediction score of the pipeline identification model, MinN is the shortest distance between the Nth pipe length and the target pipeline, and NLength is the pipe length value marked by the Nth pipe length.
A predicted score for tube length a ═ MinA × wDis + (ALength-actualelength) × lDis;
the predicted score for tube length B is MinB wDis + (BLength-actullength) lDis.
Step S303: and determining the tube length label with the highest prediction score as the current tube length label corresponding to the current pipeline.
Illustratively, assuming that the prediction score of the tube length B is greater than the prediction score of the tube length a in fig. 2, the tube length B is determined as the tube length label corresponding to the target pipeline. Therefore, the pipeline distance weight wDis and the pipeline length weight lDis can be flexibly adjusted through the drawing habit of the CAD drawing, and the accuracy of the pipeline length marking identification result is ensured. The embodiment of the invention can adapt to different drawing habits of CAD drawings, has wide application range and strong flexibility, and further improves the user experience.
Specifically, in an embodiment, the step S104 specifically includes the following steps:
step S401: starting from the first pipeline, the connecting pipelines are sequentially extracted along the connecting direction of the first pipeline to form a pipeline set.
Exemplarily, as shown in fig. 3, the number above the pipeline is the pipeline number corresponding to each pipeline, and the value below the pipeline is the actual length of the pipeline corresponding to each pipeline, and assuming that No. 3 pipeline is matched with the L6 pipeline length label, the pipeline is searched from one direction of the connection of No. 3 pipeline until a set of all pipelines with a small margin equal to 6 is found.
Step S402: and determining the actual length of each pipeline set based on the total length of each pipeline set in the target construction engineering drawing and the scale corresponding to the target construction engineering drawing.
Specifically, the CAD drawing is drawn according to a fixed scale, and the actual length of the dimension on the CAD drawing can be obtained by the fixed scale, for example, assuming that the scale is 1:5000, it means that 1cm on the CAD drawing represents actual 50m, and if the total length of all pipelines in the pipeline set on the CAD drawing is 10cm, the actual length of the pipeline set is 500m, and the like.
Step S403: and screening the pipeline sets with the actual lengths equal to the pipe length value marked by the first pipe length based on the actual lengths of the pipeline sets.
Illustratively, as shown in FIG. 3, looking from pipeline # 3, say, to the left, find pipe # 3, # 2, overall length 5, and then looking in one direction for another connection, find pipe # 3, # 4, # 5, overall length 6. Since it is determined that the right side is more in line with the actual value, the pipeline sets No. 3, No. 4, and No. 5 are selected as the pipeline sets corresponding to the pipe length label L6.
Therefore, the actual length of the pipeline set is calculated by utilizing the proportion scale and the total length of the pipeline set on the CAD drawing, the matching relation between the pipeline length mark and the pipeline set can be accurately matched by comparing the pipeline length value of the pipeline length mark with the actual length, the accuracy of the final pipeline length mark identification result is further improved, and the user experience is improved.
Specifically, in an embodiment, before the step S104, the pipeline tag identification method further includes the following steps:
step S41: and acquiring a first length of the first pipeline in the target construction engineering drawing and a scale corresponding to the target construction engineering drawing.
Wherein, the first length is the actual length of the first pipeline on the CAD drawing, such as 3 cm.
Step S42: a first actual length of the first pipeline is determined based on the first length and the scale.
Specifically, the actual length of the first pipeline is calculated in a manner similar to the total length of the pipeline set, and is not described herein again.
Step S43: judging whether the first actual length is smaller than the pipe length value marked by the first pipe length; when the first actual length is smaller than the pipe length value marked by the first pipe length, executing the step S104; when the actual length is equal to the first pipe length value, matching the first pipe length label with the first pipeline.
In practical application, a situation that one pipe length label corresponds to one pipeline may exist, so that the identification of the pipe length label of the single pipeline can be directly realized by comparing whether the actual length of the single pipeline is matched with the pipe length value of the pipe length label or not, subsequent steps do not need to be executed, and the identification efficiency of the pipe length label is further improved.
Specifically, in an embodiment, the above pipeline label identification method further includes the following steps:
step S106: judging whether the first pipe length label contains pipe diameter label information or not; when the first pipe length label does not include the pipe diameter label information, step S107 is executed. When the first pipe length label does not contain pipe diameter label information, the pipe diameter label information contained in the first pipe length label is matched with the pipeline set. . In practical application, the pipeline marking comprises pipe length marking and pipe diameter marking, automatic matching of pipe diameter marking and the pipeline is achieved, automatic matching of complete pipeline marking and the pipeline is achieved, pipeline marking identification efficiency is further improved, and user experience is improved.
Step S107: and acquiring the pipe diameter labels in the area to be identified of the target architectural engineering drawing.
In practical application, in some CAD drawings, the pipe length mark and the pipe diameter mark are in different mark frames, so that the identification of the pipe diameter mark is completely realized, and the matching of the pipe diameter mark and the pipe diameter is also needed to be realized. And marking the independent pipe diameter on the CAD drawing as a marking frame with a pipe diameter value.
Step S108: and respectively calculating the distance between each pipe diameter and each pipeline marked in the area to be identified.
Specifically, in step S108, the central point of each pipe diameter label is obtained; and determining the distance from each pipe diameter mark to each pipeline based on the distance from the central point of each pipe diameter mark to each pipeline. Thus, the distance between each pipe diameter label and different pipes is determined according to the distance from the point to the line.
Step S109: and determining a second pipeline corresponding to each pipe diameter label based on the distance from each pipe diameter label to each pipeline in the area to be identified.
The pipe diameter mark is usually arranged near the corresponding pipeline during CAD drawing design, and the closer the pipe diameter mark is to the pipeline, the higher the possibility that the pipe diameter value of the pipe belongs to the pipe diameter mark is, so that one pipe belonging to the pipe diameter mark can be determined according to the distance between the pipe diameter mark and the pipe.
Step S110: and acquiring a first pipe diameter label corresponding to any pipe line in the pipe line set based on the second pipe line corresponding to each pipe diameter label.
Specifically, any one of the pipelines in the pipeline set may correspond to a pipe diameter label, and since each pipeline in the pipeline set belongs to a pipe length label and a plurality of sequentially connected pipelines having the same pipe diameter in the CAD drawing are labeled with the same pipe length, the pipe diameter value of each pipeline in the whole pipeline set can be obtained by the pipe diameter label of any one pipeline in the pipeline set. Thereby further improved the discernment efficiency of pipe diameter mark, improved user and used experience.
Step S111: and matching the first pipe diameter label with the pipeline set.
Specifically, a matching relation can be established between the pipe diameter value corresponding to the first pipe diameter label and the serial number of each pipeline in the pipeline set, so that automatic identification of the pipe diameter label is realized, full-automatic identification of the pipeline label is realized, the pipeline identification efficiency is further improved, and the user experience is improved.
In addition, in practical application, a pipeline label which is parallel to the pipeline and is closest to the pipeline can be found through the current pipeline, whether the pipeline label comprises a diameter value and a length value is judged, the length value is consistent with the actual length of the current pipeline in a CAD drawing, and if the pipeline label comprises the diameter value and the length value, and the length value is consistent with the actual length of the current pipeline in the CAD drawing, the pipeline label is directly matched with the current pipeline.
Illustratively, as shown in FIG. 4, assume that the total tube length of tubes No. 1, 2, and 3 is 41m, the tube diameters are all 300mm, and the total tube length of tubes 4 and 5 is 35m, the tube diameters are all 500 mm. In the manner of steps S301 to S303, pipeline 2 can be matched to pipe diameter DN300, pipeline 3 can be matched to pipe length L41m, pipeline 4 can be matched to pipe diameter DN500, and pipeline 5 can be matched to pipe length L35 m. Then, finding all pipelines matched with the pipe length, namely 3 and 4, finding a pipe set with the pipe length of No. 3 marked as 41m, finding a pipe set with the pipe length sum of other pipes (the pipes marked with the pipe lengths) connected with the No. 3 pipe being the nearest 41m, namely finding the pipe set with the total length of No. 1, No. 2 and No. 3 pipes being the closest 41m, finding the pipe marked with the pipe diameter from the found pipes, and assigning the pipe diameter DN300 to the pipes 1 and 3 without the pipe diameter.
In practical application, the pipeline and the independent pipe length, the independent pipe diameter, the pipe length and the pipe diameter can be matched, after matching, the independent pipe diameter and the independent pipe length matched with the same pipeline are combined, then all the pipeline marks matched with the pipeline can be obtained, the optimal pipeline path is searched through the marked value of the pipe length, the pipeline length is closest to the pipe length mark, the pipe length mark is considered to be given to the pipes, then the pipe marks matched with the pipe diameters are found on the pipes, and then the pipe diameters are given to the pipes without the pipe diameters, so that the pipe diameters of the pipeline are found. If the pipe with the pipe diameter mark is not found, default pipe diameter and the like are adopted, and the invention is not limited by the method.
In addition, in practical application, because only the pipeline label corresponding to the main pipeline needs to be identified, and the branch pipeline does not need to be identified, the embodiment of the present invention further provides a way of determining whether the pipeline is the main pipeline or the branch pipeline, which specifically includes the following processes:
illustratively, as shown in fig. 5, there are 4 lines, main lines 1, 2, 3, and branch lines 1, 4. The method for judging whether the current pipeline is a branch pipeline comprises the steps of obtaining the starting point position and the end point position of the current pipeline, constructing a three-dimensional bounding box by adding a fault tolerance through the starting point position, extracting all primitives intersected with the bounding box, judging the position relation between the upper point of the current pipeline and the primitives, and if other pipelines except the current pipeline can be found, indicating that the starting point position of the current pipeline is connected with other pipelines. Similarly, whether the end point position of the current pipeline is connected with other pipelines is judged, and if the starting point and the end point are both connected with the pipelines, the current pipeline is considered not to be the branch pipeline but to be the main pipeline.
By executing the steps, the pipeline marking identification method provided by the embodiment of the invention determines a pipeline belonging to the pipeline length marking by using the distance between the pipeline length marking and the pipeline, and extracts the pipeline set for matching according to the pipeline length value marked by the pipeline length along the connecting direction of the pipeline, so that the automatic identification of the pipeline corresponding to the pipeline length marking is realized, the pipeline marking identification efficiency is improved, the problem that the pipeline marking is easy to be identified by mistake in manual identification is avoided, the pipeline marking identification result accuracy is improved, and the user experience is further improved.
The embodiment of the present invention further provides a pipeline marking and identifying device, as shown in fig. 6, the pipeline marking and identifying device specifically includes:
the obtaining module 101 is configured to obtain a pipe length label in an area to be identified of a target architectural engineering drawing. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
The first processing module 102 is configured to calculate distances from each pipe length label to each pipeline in the area to be identified, respectively. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
The second processing module 103 is configured to determine, based on a distance from each pipe length label to each pipeline in the area to be identified, a first pipeline corresponding to each pipe length label. For details, refer to the related description of step S103 in the above method embodiment, and details are not repeated herein.
And the third processing module 104 is configured to extract, based on the length marking information of the first length marking corresponding to the first pipeline, a pipeline set satisfying the length marking information along the connection direction of the first pipeline. For details, refer to the related description of step S104 in the above method embodiment, and no further description is provided here.
A fourth processing module 105, configured to match the first pipe length label with the pipe set. For details, refer to the related description of step S105 in the above method embodiment, and no further description is provided here.
Further functional descriptions of the modules are the same as those of the corresponding method embodiments, and are not repeated herein.
Through the cooperative cooperation of the above components, the pipeline marking identification device provided by the embodiment of the invention determines a pipeline belonging to the pipeline length marking by using the distance between the pipeline length marking and the pipeline, and extracts the pipeline set for matching according to the pipeline length value marked by the pipeline length along the connecting direction of the pipeline, thereby realizing the automatic identification of the pipeline corresponding to the pipeline length marking, improving the identification efficiency of the pipeline marking, avoiding the problem that the manual identification is easy to generate the false identification, improving the accuracy of the pipeline marking identification result, and further improving the use experience of a user.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 7 takes the connection by the bus as an example.
The memory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present invention. The processor 901 performs various functional applications and data processing of the processor, i.e., implements the above-described method, by executing non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an application program required for operating the device, at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 and when executed by the processor 901 perform the methods described above.
The specific details of the electronic device may be understood by referring to the corresponding related description and effects in the above method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
The above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (10)
1. A pipeline marking identification method is characterized by comprising the following steps:
acquiring a pipe length mark in a to-be-identified area of a target construction engineering drawing;
respectively calculating the distance between each pipe length label and each pipeline in the area to be identified;
determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified;
extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information of the first pipe length marking corresponding to the first pipeline;
matching the first pipe length label with the pipeline set.
2. The method of claim 1, wherein the calculating the distance from each pipe length label to each pipeline in the area to be identified comprises:
acquiring the central point of each pipe length label;
and determining the distance between each pipe length label and each pipeline based on the distance between the central point of each pipe length label and each pipeline.
3. The method of claim 1, wherein determining the first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified comprises:
acquiring the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label;
respectively inputting the distance between each pipe length label and the current pipeline and the pipe length value of each pipe length label into a pipeline identification model to obtain a prediction score corresponding to each pipe length label;
and determining the tube length label with the highest prediction score as the current tube length label corresponding to the current pipeline.
4. The method of claim 3, wherein the extracting, based on the pipe length labeling information of the first pipe length label corresponding to the first pipeline, the pipe length label information-satisfying pipe length label set along the connection direction of the first pipeline comprises:
sequentially extracting connecting pipelines along the connecting direction of the first pipeline from the first pipeline to form a pipeline set;
determining the actual length of each pipeline set based on the total length of each pipeline set in the target construction engineering drawing and the scale corresponding to the target construction engineering drawing;
screening the pipeline sets with the actual lengths equal to the pipe length value marked by the first pipe length based on the actual lengths of the pipeline sets.
5. The method of claim 1, wherein before extracting a set of pipelines satisfying the pipe length label information along a connection direction of the first pipeline based on pipe length label information of a first pipe length label corresponding to the first pipeline, the method further comprises:
acquiring a first length of the first pipeline in the target construction engineering drawing and a scale corresponding to the target construction engineering drawing;
determining a first actual length of the first pipeline based on the first length and the scale;
judging whether the first actual length is smaller than the pipe length value marked by the first pipe length;
when the first actual length is smaller than the pipe length value marked by the first pipe length, extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information marked by the first pipe length corresponding to the first pipeline;
and matching the first pipe length label with the first pipeline when the actual length is equal to the pipe length value of the first pipe length label.
6. The method of claim 4, further comprising:
acquiring pipe diameter labels in an area to be identified of a target construction engineering drawing;
respectively calculating the distance between each pipe diameter and each pipeline in the area to be identified;
determining a second pipeline corresponding to each pipe diameter label based on the distance from each pipe diameter label to each pipeline in the area to be identified;
acquiring a first pipe diameter label corresponding to any one pipe in the pipe set based on a second pipe corresponding to each pipe diameter label;
and matching the first pipe diameter label with the pipeline set.
7. The method according to claim 6, wherein prior to obtaining each pipe diameter label in the area to be identified of the target construction drawing, the method further comprises:
judging whether the first pipe length label contains pipe diameter label information or not;
and when the first pipe length label does not contain pipe diameter label information, acquiring each pipe diameter label in the area to be identified of the target architectural engineering drawing.
8. A pipeline marking identification device, comprising:
the acquisition module is used for acquiring the pipe length label in the area to be identified of the target architectural engineering drawing;
the first processing module is used for respectively calculating the distance between each pipe length label and each pipeline in the area to be identified;
the second processing module is used for determining a first pipeline corresponding to each pipe length label based on the distance from each pipe length label to each pipeline in the area to be identified;
the third processing module is used for extracting a pipeline set meeting the pipe length marking information along the connection direction of the first pipeline based on the pipe length marking information of the first pipe length marking corresponding to the first pipeline;
and the fourth processing module is used for matching the first pipe length label with the pipeline set.
9. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method of any one of claims 1-7.
10. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor being configured to execute the computer instructions to perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210102815.5A CN114429639B (en) | 2022-01-27 | 2022-01-27 | Pipeline annotation recognition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210102815.5A CN114429639B (en) | 2022-01-27 | 2022-01-27 | Pipeline annotation recognition method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114429639A true CN114429639A (en) | 2022-05-03 |
CN114429639B CN114429639B (en) | 2024-05-03 |
Family
ID=81312831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210102815.5A Active CN114429639B (en) | 2022-01-27 | 2022-01-27 | Pipeline annotation recognition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114429639B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130028393A (en) * | 2011-09-09 | 2013-03-19 | 현대중공업 주식회사 | Automatic output method for duct manufacturing drawing |
CN107169203A (en) * | 2017-05-17 | 2017-09-15 | 重庆尔安机电设备工程有限公司 | A kind of plumbing system auto-discharing method |
CN108121863A (en) * | 2017-12-13 | 2018-06-05 | 机械工业第六设计研究院有限公司 | Creation method, device, equipment and the computer readable storage medium of pipeline label |
CN110717207A (en) * | 2019-09-06 | 2020-01-21 | 景森设计股份有限公司 | Labeling method, system and storage medium for pipeline design |
CN110851956A (en) * | 2019-10-11 | 2020-02-28 | 南昌大学 | Automatic calculation, labeling and plotting method for construction engineering pipeline construction positioning information |
CN111814664A (en) * | 2020-07-07 | 2020-10-23 | 广联达科技股份有限公司 | Method and device for identifying marks in drawing, computer equipment and storage medium |
CN112149204A (en) * | 2020-09-22 | 2020-12-29 | 合肥小龟快跑信息科技有限公司 | Method for automatically searching position pointed by caption in CAD file |
CN112257629A (en) * | 2020-10-29 | 2021-01-22 | 广联达科技股份有限公司 | Text information identification method and device for construction drawing |
CN112446870A (en) * | 2020-12-02 | 2021-03-05 | 平安科技(深圳)有限公司 | Pipeline damage detection method, device, equipment and storage medium |
CN112464903A (en) * | 2020-12-16 | 2021-03-09 | 广联达科技股份有限公司 | Primitive identification method and device of municipal construction drawing and electronic equipment |
-
2022
- 2022-01-27 CN CN202210102815.5A patent/CN114429639B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130028393A (en) * | 2011-09-09 | 2013-03-19 | 현대중공업 주식회사 | Automatic output method for duct manufacturing drawing |
CN107169203A (en) * | 2017-05-17 | 2017-09-15 | 重庆尔安机电设备工程有限公司 | A kind of plumbing system auto-discharing method |
CN108121863A (en) * | 2017-12-13 | 2018-06-05 | 机械工业第六设计研究院有限公司 | Creation method, device, equipment and the computer readable storage medium of pipeline label |
CN110717207A (en) * | 2019-09-06 | 2020-01-21 | 景森设计股份有限公司 | Labeling method, system and storage medium for pipeline design |
CN110851956A (en) * | 2019-10-11 | 2020-02-28 | 南昌大学 | Automatic calculation, labeling and plotting method for construction engineering pipeline construction positioning information |
CN111814664A (en) * | 2020-07-07 | 2020-10-23 | 广联达科技股份有限公司 | Method and device for identifying marks in drawing, computer equipment and storage medium |
CN112149204A (en) * | 2020-09-22 | 2020-12-29 | 合肥小龟快跑信息科技有限公司 | Method for automatically searching position pointed by caption in CAD file |
CN112257629A (en) * | 2020-10-29 | 2021-01-22 | 广联达科技股份有限公司 | Text information identification method and device for construction drawing |
CN112446870A (en) * | 2020-12-02 | 2021-03-05 | 平安科技(深圳)有限公司 | Pipeline damage detection method, device, equipment and storage medium |
CN112464903A (en) * | 2020-12-16 | 2021-03-09 | 广联达科技股份有限公司 | Primitive identification method and device of municipal construction drawing and electronic equipment |
Non-Patent Citations (1)
Title |
---|
李昌华;李桐;周方晓;崔欢欢;: "Revit管线自动标注方法的实现", 土木建筑工程信息技术, no. 01, 15 February 2016 (2016-02-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN114429639B (en) | 2024-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112651373B (en) | Method and device for identifying text information of building drawing | |
CN112580179B (en) | High-precision map intersection lane shape updating method and system, server and medium | |
CN111177827A (en) | Automatic mapping method, device and system for structural reinforcement section diagram | |
CN110362596A (en) | A kind of control method and device of text Extracting Information structural data processing | |
CN114581639A (en) | Method for generating information of beam steel bars in BIM (building information modeling) model based on beam leveling construction drawing | |
CN112100272B (en) | Drainage line data display method and device, computer equipment and storage medium | |
US20230147594A1 (en) | Method for integratedly updating map data, device and storage medium | |
CN116029012B (en) | Integrated keel distribution diagram drawing, informationized labeling and statistics method and system | |
CN111985366B (en) | Method and device for identifying road center line and pile number | |
CN114429639A (en) | Pipeline marking identification method and device | |
CN104899908A (en) | Method and device for generating evolution diagram of event group | |
CN110390725B (en) | Pipeline completion map generation method, device and system | |
CN113762109A (en) | Training method of character positioning model and character positioning method | |
CN108920749B (en) | Pipeline two-dimensional and three-dimensional data updating method and device and computer readable storage medium | |
CN114282495A (en) | Text labeling method and device | |
CN115688341B (en) | Distribution network thematic map layout method based on multi-tree collision detection and storage medium | |
CN113834493A (en) | High-precision map speed limit processing method, device, equipment and storage medium | |
CN115270377B (en) | Multi-cable optimal path planning method based on improved ant colony algorithm | |
CN115082951A (en) | Beam member identification method, device, equipment and storage medium | |
CN110717207A (en) | Labeling method, system and storage medium for pipeline design | |
CN116822002A (en) | Method and device for automatically arranging facility components, electronic equipment and storage medium | |
CN113538465A (en) | Automatic dividing method and device for regular and irregular polygon areas and storage medium | |
CN113362421A (en) | Method and device for drawing guiding area in map and electronic equipment | |
CN112799404B (en) | Global path planning method and device of AGV and computer readable storage medium | |
CN116962282A (en) | Path planning method, device, terminal equipment and storage medium |
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 |