[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109658415B - Drawing segmentation method, electronic device and storage medium - Google Patents

Drawing segmentation method, electronic device and storage medium Download PDF

Info

Publication number
CN109658415B
CN109658415B CN201811608028.8A CN201811608028A CN109658415B CN 109658415 B CN109658415 B CN 109658415B CN 201811608028 A CN201811608028 A CN 201811608028A CN 109658415 B CN109658415 B CN 109658415B
Authority
CN
China
Prior art keywords
axis
line
marking
symbol
graph
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
CN201811608028.8A
Other languages
Chinese (zh)
Other versions
CN109658415A (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.)
Fujian Chenxi Information Technology Group Co.,Ltd.
Original Assignee
Fujian Chenxi Information 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 Fujian Chenxi Information Technology Co ltd filed Critical Fujian Chenxi Information Technology Co ltd
Priority to CN201811608028.8A priority Critical patent/CN109658415B/en
Priority to CN202010781312.6A priority patent/CN112037224B/en
Publication of CN109658415A publication Critical patent/CN109658415A/en
Application granted granted Critical
Publication of CN109658415B publication Critical patent/CN109658415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a drawing segmentation method, electronic equipment and a storage medium, which are used for identifying an axis symbol in a two-dimensional drawing and determining the coordinate range of each drawing according to the axis symbol; the coordinate range of each graph is determined by identifying the axis symbol, so that the automatic segmentation of the graph is realized; compared with other lines, the axis symbol has obvious characteristics and high identification degree, so that the identification efficiency and accuracy are high in the drawing segmentation process; meanwhile, the axis symbol is positioned at the edge position of each graph, so that the coordinate range of each graph is defined, simplicity and effectiveness are realized, the segmentation efficiency is high, and the accuracy is high; in addition, the shaft symbol can also be used for judging the axis and the mark line, so that the building component is judged through the axis, and convenience is provided for subsequent rollover.

Description

Drawing segmentation method, electronic device and storage medium
Technical Field
The invention relates to the field of engineering cost, in particular to a drawing segmentation method, electronic equipment and a storage medium.
Background
The construction cost refers to the construction price of the project, refers to the total sum of all expenses expected or actually required for completing the construction of one project, and can also be regarded as the construction cost of the project, i.e. all fixed asset investment expenses expected or actually paid for constructing one project.
In the process of calculating the construction cost, a designer designs a project, generally designs a two-dimensional drawing through CAD, and a construction cost budgeting worker calculates the project amount through three-dimensional budgeting software through the two-dimensional drawing. The existing three-dimensional budget software only can calculate a model of the software, so that a cost budgeting person needs to convert a two-dimensional drawing into a building model required by the software through a rollover tool.
When the turnover formwork is carried out, a complete engineering drawing needs to be firstly divided, and then members of the engineering drawing are classified and integrated respectively, so that the complete construction engineering drawing can be turned out. Therefore, the drawing segmentation is an indispensable important step in the die turnover process. However, the conventional mold-flipping software on the market needs a user to manually separate a piece of paper, and the whole process is extremely complicated and inefficient.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a drawing dividing method, an electronic device and a storage medium are provided, which can automatically divide a drawing.
In order to solve the technical problems, the invention adopts the technical scheme that:
a drawing dividing method comprises the following steps:
s1, identifying an axis symbol in the two-dimensional drawing;
and S2, determining the coordinate range of each graph according to the axis characters.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the drawing segmentation method when executing the computer program.
In order to solve the above technical problems, the present invention adopts another technical solution as follows:
a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method of graph paper segmentation as set forth above.
The invention has the beneficial effects that: a drawing segmentation method, electronic equipment and storage medium, through identifying the axis symbol in the two-dimensional drawing, confirm the coordinate range of each picture according to the axis symbol, thus has realized the automatic segmentation of the drawing; compared with other lines, the axis symbol has obvious characteristics and high identification degree, so that the identification efficiency and accuracy are high in the drawing segmentation process; meanwhile, the axis symbol is positioned at the edge position of each graph, so that the coordinate range of each graph is defined, simplicity and effectiveness are realized, the segmentation efficiency is high, and the accuracy is high; in addition, the shaft symbol can also be used for judging the axis and the mark line, so that the building component is judged through the axis, and convenience is provided for subsequent rollover.
Drawings
FIG. 1 is a schematic flow chart of a drawing dividing method according to an embodiment of the present invention;
FIG. 2 is a schematic plan view of a two-dimensional drawing according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Description of reference numerals:
1. an electronic device; 2. a processor; 3. a memory; 4. axis symbol; 5. an axis; 6. marking a line; 7. an axial indicator lead; 8. the name of the graph.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: by identifying the axis symbols in the two-dimensional drawing, the coordinate range of each drawing is determined according to the axis symbols.
Referring to fig. 1 to 2, a drawing dividing method includes the steps of:
s1, identifying an axis symbol in the two-dimensional drawing;
and S2, determining the coordinate range of each graph according to the axis characters.
The axis on the construction drawing refers to the position base line of important components such as main wall columns, beam frames and the like, the distance in the transverse direction is called 'bay', the longitudinal distance is called 'depth', and the coordinates of the left lower corner on the drawing are taken as starting points. The symbol used to denote the axis is simply called the axis network.
From the above description, the beneficial effects of the present invention are: the coordinate range of each drawing is determined according to the axis symbol by identifying the axis symbol in the two-dimensional drawing, so that the automatic segmentation of the drawing is realized; compared with other lines, the axis symbol has obvious characteristics and high identification degree, so that the identification efficiency and accuracy are high in the drawing segmentation process; meanwhile, the axis symbol is positioned at the edge position of each graph, so that the coordinate range of each graph is defined, simplicity and effectiveness are realized, the segmentation efficiency is high, and the accuracy is high; in addition, the shaft symbol can also be used for judging the axis and the mark line, so that the building component is judged through the axis, and convenience is provided for subsequent rollover.
Further, the step S1 is specifically: identifying all circles in the two-dimensional drawing, judging whether English characters or Arabic characters exist in the circles, and if yes, determining the circles containing the English characters or the Arabic characters as axis characters.
Wherein, the main components of the axis symbol include a circle and a number. When the shaft symbol is used for representing the transverse plane positioning track, namely the transverse shaft symbol, the inner part of the transverse shaft symbol comprises Arabic characters such as 1, 2, 3 … and the like, and when the shaft symbol is used for representing the longitudinal plane positioning track, namely the longitudinal shaft symbol, the inner part of the longitudinal shaft symbol comprises capital English characters such as A, B, C … and the like.
As can be seen from the above description, by judging the axis characters by the circle and the number, all the axis characters can be determined quickly and efficiently.
Further, the step S2 is specifically:
s21, identifying all axes according to the shaft signs, and if no axis is identified according to the shaft signs, executing the step S22;
s22, identifying all marking lines according to the shaft marks, and generating axes according to the marking lines;
s23, forming an axle network by the axes with the intersection relation, and determining the coordinate range of each axle network;
and S24, expanding the coordinate range of each axis net outwards by a first value to obtain the coordinate range of each graph, wherein the first value is any one value in the range of [500 mm, 3000 mm ].
In the two-dimensional drawing of the building engineering, the axis mainly plays a role in positioning. For the structural drawing, the basic drawings all have axes; for architectural drawings, there is no axis in the basic drawings.
As can be seen from the above description, after the axis identifier is determined, in order to further identify the building component and more clearly define the coordinate range of each graph, the axis in the graph needs to be identified, for the graph with the axis, the axis is identified by the axis identifier, and for the graph without the axis, the above technical solution generates the axis by marking the line, thereby facilitating the subsequent component identification and more clearly defining the coordinate range of each graph.
Further, in the step S21, all the axes identified according to the shaft identifier are specifically:
s211, taking each axis symbol as a circle center and taking any numerical value in (0,1000 mm) as a radius to obtain a guide line screening range, and putting all line segments intersected with the guide line screening range into a guide line set to be confirmed;
s212, selecting a line segment from the guidance line set to be confirmed as a first line segment, and judging whether the first line segment is the only line segment intersected with the corresponding first axis symbol, if so, the first line segment is the first axis symbol guidance line, otherwise, continuously selecting a line segment from the guidance line set to be confirmed for judgment until the first axis symbol guidance line is obtained;
s213, marking all line segments which are positioned in the same layer with the first axis index line and at least are parallel to any line segment positioned in the same layer as the first axis index line as axis index lines from the index line set to be confirmed;
s214, sequentially executing the step S212 and the step S213 on other line segments which are not in the same layer with the first axis index line in the index line set to be confirmed or are not parallel to all line segments of the index line set to be confirmed until all the line segments of the index line set to be confirmed are judged, and obtaining an axis index line set;
and S215, marking a line segment which is collinear with any one of the axis index lines in the axis index line set as an axis.
The axis indicator line is a line extending along the axis indicator line, and the axis indicator line are normally connected directly, but may not be directly connected to each other.
From the above description, the axis symbol needs to be expanded by a certain range to screen out the axis symbol guiding line, so as to avoid omission; judging one of the intersecting line segments, wherein the judgment condition is that the layer is structured, and the intersecting line segment can be ensured to belong to an axis indicator lead line; by judging one of the intersecting line segments and directly determining other line segments through the same layer and the parallel relation, the recognition efficiency can be improved; and other intersecting line segments which are not in the same layer or are not parallel to all the line segments are judged, so that omission is avoided.
Further, the step S22 is specifically:
s221, each axis symbol takes the axis symbol as a circle center, takes any numerical value in (0,1000 mm) as a radius, obtains a marking line screening range, marks all line segments which are intersected with the marking line screening range and have Arabic characters on two vertical sides in the line segment direction as marking lines, obtains a marking line set, and records the corresponding relation between the marking lines and the axis symbols;
s222, finding out a first marking line with the longest length from marking lines corresponding to each axis symbol, finding out a second marking line with the longest length from all the first marking lines, and connecting the axis symbols with the same first marking line in series to obtain axis symbol lines in the same row;
and S223, taking a point on the first marking line, which is perpendicular to the corresponding axis symbol, as a starting point, extending an auxiliary line segment towards a direction which is perpendicular to the direction of the same row of axis symbol lines where the corresponding axis symbol is located and is far away from the corresponding axis symbol, wherein the auxiliary line segment is terminated when encountering other auxiliary line segments extending from other first marking lines, and the length of the auxiliary line segment is less than or equal to that of the second marking line.
The corresponding axis symbol is the corresponding relationship between the annotation line and the axis symbol recorded in step S221, that is, for each first annotation line, there may be a plurality of corresponding axis symbols, and the plurality of corresponding axis symbols all need to extend the auxiliary line segment. Meanwhile, the first mark line with the longest length is formed by connecting the axis symbols at the head end and the tail end of the same-row axis symbol line, namely, all the axis symbols on the same-row axis symbol line need to extend out of the auxiliary line segment along the direction which is perpendicular to the first mark line and far away from the first mark line, and at the moment, the auxiliary line segment is the line segment extending out of each axis symbol, namely the axis.
From the above description, the axes are determined by the marked lines, and the marked line with the longest length ensures that all the axis symbols can extend out of the axes corresponding to the axis symbols, so that the axes can be generated by the marked lines on the non-axis graph to form the axle network; the length of the auxiliary line segment is limited to avoid the auxiliary line segment extending into other figures.
Further, the step S24 is specifically:
adding a first value to the maximum abscissa of each axle network to obtain an upper limit abscissa, subtracting the first value from the minimum abscissa of each axle network to obtain a lower limit abscissa, and adding the first value to the maximum ordinate of each axle network to obtain an upper limit ordinate; and subtracting the first value from the minimum ordinate of each axle network to obtain a lower limit ordinate, wherein the coordinate range of each graph comprises an upper limit abscissa, a lower limit abscissa, an upper limit ordinate and a lower limit ordinate of the corresponding axle network.
From the above description, the coordinate range of the graph is defined by expanding a certain range through the axis network, so as to ensure the integrity of each graph which is divided.
Further, the step S2 is followed by:
s3, screening all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and whether the characters contain preset type names, marking the characters which are provided with one to two lines and contain the preset type names as graph names, and recording the corresponding relation between the coordinate range of each graph and the graph names.
Among them, preset type names such as floor information and building member information, etc.
From the above description, it can be determined by presetting the type name and two features of one to two lines, and recording the corresponding relationship between the coordinate range of each graph and the graph name, so as to facilitate the subsequent modeling.
Further, the step S3 is followed by:
and S4, extracting the floor information from the graph name, and importing the coordinate range, the graph name, the floor information and the component type comprising the axis symbol of each graph into a tree control and XML for storage and display.
As can be seen from the above description, the drawing division of the present invention means that the coordinate range and the corresponding information of each drawing are determined on software, that is, a whole two-dimensional drawing is divided into independent drawings on software, and the drawings correspond to each other through information such as the names, the floor information, and the axis symbols, so as to facilitate the subsequent modeling.
As shown in fig. 3, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the drawing segmentation method when executing the computer program.
From the above description, the beneficial effects of the present invention are: the coordinate range of each drawing is determined according to the axis symbol by identifying the axis symbol in the two-dimensional drawing, so that the automatic segmentation of the drawing is realized; compared with other lines, the axis symbol has obvious characteristics and high identification degree, so that the identification efficiency and accuracy are high in the drawing segmentation process; meanwhile, the axis symbol is positioned at the edge position of each graph, so that the coordinate range of each graph is defined, simplicity and effectiveness are realized, the segmentation efficiency is high, and the accuracy is high; in addition, the shaft symbol can also be used for judging the axis and the mark line, so that the building component is judged through the axis, and convenience is provided for subsequent rollover.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method of graph paper segmentation as set forth above.
From the above description, the beneficial effects of the present invention are: the coordinate range of each drawing is determined according to the axis symbol by identifying the axis symbol in the two-dimensional drawing, so that the automatic segmentation of the drawing is realized; compared with other lines, the axis symbol has obvious characteristics and high identification degree, so that the identification efficiency and accuracy are high in the drawing segmentation process; meanwhile, the axis symbol is positioned at the edge position of each graph, so that the coordinate range of each graph is defined, simplicity and effectiveness are realized, the segmentation efficiency is high, and the accuracy is high; in addition, the shaft symbol can also be used for judging the axis and the mark line, so that the building component is judged through the axis, and convenience is provided for subsequent rollover.
Referring to fig. 1 and fig. 2, a first embodiment of the present invention is:
a drawing dividing method comprises the following steps:
s1, identifying an axis symbol 4 in the two-dimensional drawing;
and S2, determining the coordinate range of each graph according to the axis character 4.
Referring to fig. 1 and fig. 2, a second embodiment of the present invention is:
a drawing dividing method, based on the first embodiment, the step S1 specifically includes: and identifying all circles in the two-dimensional drawing, judging whether English characters or Arabic characters exist in the circles, and if yes, determining the circles containing the English characters or the Arabic characters as the axis characters 4.
As shown in fig. 2, the circle includes 1-1, 1-15, 1-a and 1-E, wherein 1 and 15 are arabic characters, and a and E are english characters, the primitives of circle plus 1-1, circle plus 1-15, circle plus 1-a and circle plus 1-E can be determined as the axis symbol 4.
Referring to fig. 1 and fig. 2, a third embodiment of the present invention is:
a drawing dividing method, based on the first embodiment, the step S2 specifically includes:
s21, identifying all axes 5 according to the shaft symbol 4, and if no axis 5 is identified according to the shaft symbol 4, executing the step S22;
s22, identifying all the marking lines 6 according to the shaft marks 4, and generating the axis 5 according to the marking lines 6;
s23, forming the axes 5 with intersecting relationship into an axis network, and determining the coordinate range of each axis network, in this embodiment, as shown in fig. 2, if they are not in the same figure, the axes 5 will not intersect, so it can be determined that the axes 5 with intersecting relationship are always in the same figure;
and S24, expanding the coordinate range of each axis net outwards by a first value to obtain the coordinate range of each graph, wherein the first value is any one of the values of [500 mm, 3000 mm ].
It should be noted that in the actual architectural drawing, since different line segments can be distinguished through the characteristics of the layer, the color, and the like, in this embodiment, for convenience of description, the axis indicator lead 7 in fig. 2 is set as a dotted line; in addition, the two line segments are collinear, which means that the two line segments are located on the same straight line.
In step S21, all the axes 5 identified according to the shaft identifier 4 are specifically:
s211, taking each axis symbol 4 as a circle center, taking any numerical value in (0,1000 mm) as a radius, obtaining a guide line screening range, and putting all line segments intersected with the guide line screening range into a guide line set to be confirmed;
s212, selecting a line segment from the guidance line set to be confirmed as a first line segment, and judging whether the first line segment is the only line segment intersected with the corresponding first axis symbol, if so, the first line segment is the first axis symbol guidance line, otherwise, continuously selecting a line segment from the guidance line set to be confirmed for judgment until the first axis symbol guidance line is obtained;
s213, marking all line segments which are positioned in the same layer with the first axis index line and at least are parallel to any line segment positioned in the same layer as the axis index line 7 from the index line set to be confirmed;
s214, sequentially executing the step S212 and the step S213 on other line segments, which are not in the same layer with the first axis index line or are not parallel to all the line segments of the index line set to be confirmed, in the index line set to be confirmed until all the line segments of the index line set to be confirmed are judged, and obtaining the axis index line set;
s215, mark the line segment collinear with any one of the axis finger lines 7 in the axis finger line set as the axis 5, as shown in fig. 2, in the present embodiment, the axis finger line 7 is used to connect the axis 5 and the axis 4.
Wherein, step S22 specifically includes:
s221, each axis symbol 4 takes the axis symbol 4 as a circle center, takes any numerical value in (0,1000 mm) as a radius, obtains a marking line screening range, marks all line segments which are intersected with the marking line screening range and have Arabic characters on two vertical sides in the line segment direction as marking lines 6, obtains a marking line set, and records the corresponding relation between the marking lines 6 and the axis symbols 4, wherein in the embodiment, as shown in FIG. 2, the marking lines 6 with the distance of X1 respectively have the corresponding relation with the axis symbols 4 with the number of 1-1 and the number of 1-15, and the marking lines 6 with the distance of Y1 respectively have the corresponding relation with the axis symbols 4 with the number of 1-E and the number of 1-A;
s222, finding out a first marking line with the longest length from the marking lines 6 corresponding to each axis symbol 4, finding out a second marking line with the longest length from all the first marking lines, and connecting the axis symbols 4 with the same first marking line in series to obtain axis symbol lines in the same row;
and S223, taking a point on the first marking line, which is perpendicular to the corresponding axis character 4, as a starting point, extending an auxiliary line segment in a direction which is perpendicular to the direction of the same-row axis character line where the corresponding axis character 4 is located and is far away from the corresponding axis character 4, wherein the auxiliary line segment is terminated when encountering other auxiliary line segments extending from other first marking lines, and the length of the auxiliary line segment is less than or equal to that of the second marking line.
Wherein, step S24 specifically includes:
adding a first value to the maximum abscissa of each axis network to obtain an upper limit abscissa, subtracting the first value from the minimum abscissa of each axis network to obtain a lower limit abscissa, and adding the first value to the maximum ordinate of each axis network to obtain an upper limit ordinate; and subtracting the first value from the minimum ordinate of each axle network to obtain a lower limit ordinate, wherein the coordinate range of each graph comprises an upper limit abscissa, a lower limit abscissa, an upper limit ordinate and a lower limit ordinate of the corresponding axle network.
Referring to fig. 1 and fig. 2, a fourth embodiment of the present invention is:
a drawing dividing method according to the first embodiment, after the step S2, the method further includes:
s3, screening all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and whether preset type names are contained or not, marking the characters which are provided with one to two lines and contain the preset type names as graph names 8, and recording the corresponding relation between the coordinate range of each graph and the graph names 8;
and S4, extracting the floor information from the picture name, and leading the coordinate range, the picture name, the floor information and the component type comprising the axis symbol of each picture into a tree control and XML for storage and display.
In this embodiment, as shown in fig. 2, the diagram name of the first diagram is a column parallel construction diagram of fifth-thirteen floors, where the fifth-thirteen floors are floor information, columns are preset type names, and the diagram name of the first diagram is a column diagram of fifth-thirteenth floors.
Referring to fig. 3, a fifth embodiment of the present invention is:
an electronic device 1 comprises a memory 3, a processor 2 and a computer program stored on the memory 3 and capable of running on the processor 2, wherein the processor 2 implements the steps of a drawing segmentation method according to any one of the first to the fourth embodiments when executing the computer program.
The sixth embodiment of the invention is as follows:
a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of a drawing segmentation method according to any one of the first to fourth embodiments.
In summary, according to the drawing dividing method, the electronic device and the storage medium provided by the present invention, the axis and the mark line are determined by identifying the axis symbol in the two-dimensional drawing, and the axis is generated by the mark line under the condition of no axis, so as to form the independent axis networks, and each independent axis network represents each independent drawing, thereby realizing the automatic division of the drawing. The axis and the marking line are identified through the axis identifier, the characteristics are obvious, the identification degree is high, and therefore the identification efficiency and accuracy can be effectively improved; meanwhile, the axis symbol is positioned at the edge position of each image, the axis covers the middle position of each image, and the coordinate range of each image is determined by enlarging the range through the axis network, so that the method is simple and effective, and the segmentation efficiency is high and the accuracy is high; in addition, the axis can be used for judging the building component, and convenience is provided for subsequent rollover, namely the invention provides a technical scheme which is higher in efficiency, more accurate in segmentation effect and convenient for subsequent rollover.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (8)

1. A drawing dividing method is characterized by comprising the following steps:
s1, identifying an axis symbol in the two-dimensional drawing;
s2, determining the coordinate range of each graph according to the axis symbols;
the step S2 specifically includes:
s21, identifying all axes according to the shaft signs, and if no axis is identified according to the shaft signs, executing the step S22;
s22, identifying all marking lines according to the shaft marks, and generating axes according to the marking lines;
s23, forming an axle network by the axes with the intersection relation, and determining the coordinate range of each axle network;
s24, expanding the coordinate range of each axle net outwards by a first value to obtain the coordinate range of each graph, wherein the first value is any one value in the [500 mm, 3000 mm ];
in step S21, all the axes are identified according to the axis identifier as follows:
s211, taking each axis symbol as a circle center and taking any numerical value in (0,1000 mm) as a radius to obtain a guide line screening range, and putting all line segments intersected with the guide line screening range into a guide line set to be confirmed;
s212, selecting a line segment from the guidance line set to be confirmed as a first line segment, and judging whether the first line segment is the only line segment intersected with the corresponding first axis symbol, if so, the first line segment is the first axis symbol guidance line, otherwise, continuously selecting a line segment from the guidance line set to be confirmed for judgment until the first axis symbol guidance line is obtained;
s213, marking all line segments which are positioned in the same layer with the first axis index line and at least are parallel to any line segment positioned in the same layer as the first axis index line as axis index lines from the index line set to be confirmed;
s214, sequentially executing the step S212 and the step S213 on other line segments which are not in the same layer with the first axis index line in the index line set to be confirmed or are not parallel to all line segments of the index line set to be confirmed until all the line segments of the index line set to be confirmed are judged, and obtaining an axis index line set;
and S215, marking a line segment which is collinear with any one of the axis index lines in the axis index line set as an axis.
2. The drawing segmentation method according to claim 1, wherein the step S1 is specifically: identifying all circles in the two-dimensional drawing, judging whether English characters or Arabic characters exist in the circles, and if yes, determining the circles containing the English characters or the Arabic characters as axis characters.
3. The drawing segmentation method according to claim 1, wherein the step S22 is specifically:
s221, each axis symbol takes the axis symbol as a circle center, takes any numerical value in (0,1000 mm) as a radius, obtains a marking line screening range, marks all line segments which are intersected with the marking line screening range and have Arabic characters on two vertical sides in the line segment direction as marking lines, obtains a marking line set, and records the corresponding relation between the marking lines and the axis symbols;
s222, finding out a first marking line with the longest length from marking lines corresponding to each axis symbol, finding out a second marking line with the longest length from all the first marking lines, and connecting the axis symbols with the same first marking line in series to obtain axis symbol lines in the same row;
and S223, taking a point on the first marking line, which is perpendicular to the corresponding axis symbol, as a starting point, extending an auxiliary line segment towards a direction which is perpendicular to the direction of the same row of axis symbol lines where the corresponding axis symbol is located and is far away from the corresponding axis symbol, wherein the auxiliary line segment is terminated when encountering other auxiliary line segments extending from other first marking lines, and the length of the auxiliary line segment is less than or equal to that of the second marking line.
4. The drawing segmentation method according to claim 1, wherein the step S24 is specifically:
adding a first value to the maximum abscissa of each axle network to obtain an upper limit abscissa, subtracting the first value from the minimum abscissa of each axle network to obtain a lower limit abscissa, and adding the first value to the maximum ordinate of each axle network to obtain an upper limit ordinate; and subtracting the first value from the minimum ordinate of each axle network to obtain a lower limit ordinate, wherein the coordinate range of each graph comprises an upper limit abscissa, a lower limit abscissa, an upper limit ordinate and a lower limit ordinate of the corresponding axle network.
5. The drawing splitting method according to claim 1, wherein the step S2 is further followed by:
s3, screening all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and whether the characters contain preset type names, marking the characters which are provided with one to two lines and contain the preset type names as graph names, and recording the corresponding relation between the coordinate range of each graph and the graph names.
6. The drawing splitting method according to claim 5, wherein the step S3 is further followed by:
and S4, extracting the floor information from the graph name, and importing the coordinate range, the graph name, the floor information and the component type comprising the axis symbol of each graph into a tree control and XML for storage and display.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the processor, when executing the computer program, performs the steps of a drawing segmentation method according to any one of claims 1 to 6.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, performs the steps of a drawing segmentation method as claimed in any one of claims 1 to 6.
CN201811608028.8A 2018-12-27 2018-12-27 Drawing segmentation method, electronic device and storage medium Active CN109658415B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811608028.8A CN109658415B (en) 2018-12-27 2018-12-27 Drawing segmentation method, electronic device and storage medium
CN202010781312.6A CN112037224B (en) 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811608028.8A CN109658415B (en) 2018-12-27 2018-12-27 Drawing segmentation method, electronic device and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010781312.6A Division CN112037224B (en) 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109658415A CN109658415A (en) 2019-04-19
CN109658415B true CN109658415B (en) 2020-07-07

Family

ID=66117069

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010781312.6A Active CN112037224B (en) 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium
CN201811608028.8A Active CN109658415B (en) 2018-12-27 2018-12-27 Drawing segmentation method, electronic device and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010781312.6A Active CN112037224B (en) 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium

Country Status (1)

Country Link
CN (2) CN112037224B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114282288B (en) * 2021-11-29 2024-10-18 深圳市万翼数字技术有限公司 Shaft network identification method, device, equipment and storage medium
CN115329420B (en) * 2022-07-18 2023-10-20 北京五八信息技术有限公司 Marking generation method and device, terminal equipment and storage medium
CN116189194B (en) * 2023-04-27 2023-07-14 北京中昌工程咨询有限公司 Drawing enhancement segmentation method for engineering modeling

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150751A (en) * 2013-01-10 2013-06-12 江苏易图地理信息工程有限公司 Three-dimensional modeling method for achieving building inside and outside integration in digital map
CN106372292A (en) * 2016-08-29 2017-02-01 浙江大学城市学院 Calculation method for building settlement caused by shield tunnel construction
CN107045526A (en) * 2016-12-30 2017-08-15 许昌学院 A kind of pattern recognition method of electronics architectural working drawing
CN108596066A (en) * 2018-04-13 2018-09-28 武汉大学 A kind of character identifying method based on convolutional neural networks
CN108648194A (en) * 2018-04-23 2018-10-12 清华大学 Based on the segmentation of CAD model Three-dimensional target recognition and pose measuring method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4068596B2 (en) * 2003-06-27 2008-03-26 株式会社東芝 Graphic processing method, graphic processing apparatus, and computer-readable graphic processing program
JP4771807B2 (en) * 2005-12-27 2011-09-14 富士通株式会社 Computer-aided design apparatus, program and method thereof
CN100476350C (en) * 2007-10-17 2009-04-08 南京大学 Automatic positioning method for global coordinate system under multiple-association engineering chart environment
CN101673410B (en) * 2008-09-12 2012-08-22 中国科学院计算技术研究所 Vector building drawing based method for reconstructing three-dimensional model
CN101446999B (en) * 2008-12-24 2010-09-29 南京大学 Automatic checking method for dimension line marking error in engineering drawing
CN103064993A (en) * 2011-10-20 2013-04-24 鸿富锦精密工业(深圳)有限公司 Processing system and method of size number information
CN102750553B (en) * 2012-06-28 2015-06-17 北京中科广视科技有限公司 Recognizing method of wall plane profile
CN104680578A (en) * 2015-02-13 2015-06-03 上海同筑信息科技有限公司 BIM-based axis labeling method and system
CN107145655B (en) * 2017-04-25 2020-12-08 南京南瑞集团公司 Method for establishing power grid equipment vector primitive symbolic model containing topological information
CN108197348B (en) * 2017-12-11 2021-06-18 杭州品茗安控信息技术股份有限公司 Method and device for correcting and processing surface member errors in constructional engineering
CN108268743B (en) * 2018-02-09 2021-02-02 广州大学 Well automatic identification method and system based on building drawings

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150751A (en) * 2013-01-10 2013-06-12 江苏易图地理信息工程有限公司 Three-dimensional modeling method for achieving building inside and outside integration in digital map
CN106372292A (en) * 2016-08-29 2017-02-01 浙江大学城市学院 Calculation method for building settlement caused by shield tunnel construction
CN107045526A (en) * 2016-12-30 2017-08-15 许昌学院 A kind of pattern recognition method of electronics architectural working drawing
CN108596066A (en) * 2018-04-13 2018-09-28 武汉大学 A kind of character identifying method based on convolutional neural networks
CN108648194A (en) * 2018-04-23 2018-10-12 清华大学 Based on the segmentation of CAD model Three-dimensional target recognition and pose measuring method and device

Also Published As

Publication number Publication date
CN112037224B (en) 2024-03-22
CN109658415A (en) 2019-04-19
CN112037224A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN109165401B (en) Method and device for generating two-dimensional construction map based on civil structure three-dimensional model
CN109658415B (en) Drawing segmentation method, electronic device and storage medium
CN111881868A (en) Layer automatic identification method and device
CN109754460B (en) Automatic die overturning method, electronic equipment and storage medium
CN113128457A (en) Building model identification method, system and related device
CN109670469B (en) Axle network generation method, electronic device and storage medium
CN112347533B (en) Building structure BIM forward automatic checking method based on Revit
CN114581639A (en) Method for generating information of beam steel bars in BIM (building information modeling) model based on beam leveling construction drawing
CN115510520A (en) Beam reinforcement view editing method, device and equipment and storage medium
CN114565703A (en) Method, device and equipment for adjusting centralized labeling and readable storage medium
CN113763541A (en) Method and device for calculating longitudinal bar in column and readable storage medium
CN113590005A (en) Labeling method and device for polygonal vector map, electronic equipment and storage medium
CN113887043A (en) Method, device and equipment for determining breakpoint on steel bar primitive and storage medium
CN112861481A (en) Paging processing method and device, electronic equipment and computer readable storage medium
CN114444185A (en) In-situ labeling identification method and device and electronic equipment
CN116681792A (en) Subgraph generation method, device and equipment of vector drawing and readable storage medium
CN114140813A (en) High-precision map marking method, device, equipment and storage medium
CN112949358A (en) Road description file generation method and equipment
CN113192195B (en) Method for repairing damaged terrain coordinate data
JPH08305735A (en) Method and device for estimating cost of parts
CN118279442B (en) Water system geographic information data processing method and device
CN113901542B (en) Automatic identification method for building outline based on building total plane positioning map
CN112308155B (en) Labeling accuracy rate determining method and device
CN114491720B (en) Method and device for generating detailed steel structure diagram, electronic equipment and storage medium
JPH11175585A (en) Design method and device

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: The invention relates to a drawing division method, an electronic device and a storage medium

Effective date of registration: 20210128

Granted publication date: 20200707

Pledgee: China Merchants Bank Co.,Ltd. Fuzhou branch

Pledgor: FUJIAN CHENXI INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021350000019

PE01 Entry into force of the registration of the contract for pledge of patent right
CP01 Change in the name or title of a patent holder

Address after: Floor 6, building 1, G area, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province 350000

Patentee after: Fujian Chenxi Information Technology Group Co.,Ltd.

Address before: Floor 6, building 1, G area, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province 350000

Patentee before: FUJIAN CHENXI INFORMATION TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220311

Granted publication date: 20200707

Pledgee: China Merchants Bank Co.,Ltd. Fuzhou branch

Pledgor: FUJIAN CHENXI INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021350000019

PC01 Cancellation of the registration of the contract for pledge of patent right