CN112037224A - Method for generating axis according to marking line, electronic equipment and storage medium - Google Patents

Method for generating axis according to marking line, electronic equipment and storage medium Download PDF

Info

Publication number
CN112037224A
CN112037224A CN202010781312.6A CN202010781312A CN112037224A CN 112037224 A CN112037224 A CN 112037224A CN 202010781312 A CN202010781312 A CN 202010781312A CN 112037224 A CN112037224 A CN 112037224A
Authority
CN
China
Prior art keywords
axis
line
marking
graph
symbol
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
Application number
CN202010781312.6A
Other languages
Chinese (zh)
Other versions
CN112037224B (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 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 CN202010781312.6A priority Critical patent/CN112037224B/en
Publication of CN112037224A publication Critical patent/CN112037224A/en
Application granted granted Critical
Publication of CN112037224B publication Critical patent/CN112037224B/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 method, electronic equipment and a storage medium for generating an axis according to a marking line, 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

Method for generating axis according to marking line, electronic equipment and storage medium
The present application is a divisional application made by taking as a parent an invention patent having an application date of 2018, 12 and 27, and an application number of 201811608028.8, entitled "a drawing division method, an electronic device, and a storage medium".
Technical Field
The present invention relates to the field of engineering cost, and in particular, to a method for generating an axis line according to a mark line, an electronic device, 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: provided are a method for generating an axis according to a marking line, an electronic device and a storage medium, which can automatically complete the segmentation of a drawing.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method of generating an axis from a marked line, comprising 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.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of a method of generating an axis from a marked line as described above 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 above-mentioned steps of a method of generating an axis from a annotation line.
The invention has the beneficial effects that: a method, electronic equipment and storage medium for generating axes according to a marking line are disclosed, which realize automatic segmentation of drawings by identifying axis symbols in two-dimensional drawings and determining the coordinate range of each drawing according to the axis symbols; 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 method for generating an axis according to a marked line 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 method for generating an axis according to a marked line 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 comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above-mentioned method for generating an axis from a marked line 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 above-mentioned steps of a method of generating an axis from a annotation line.
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 method of generating an axis from a marked line, comprising the steps of:
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 method for generating an axis according to a marked line, in the first embodiment, the step S1 is specifically: 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 method for generating an axis according to a marked line, in the first embodiment, the step S2 is specifically:
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 method for generating an axis according to a marking line, in addition 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 comprising a memory 3, a processor 2 and a computer program stored on the memory 3 and executable on the processor 2, when executing the computer program, implementing the steps of a method of generating an axis from a marked line according to any one of the first to fourth embodiments.
The sixth embodiment of the invention is 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 generating an axis from a callout line of any one of the embodiments one to four.
In summary, according to the method, the electronic device, and the storage medium for generating the axes according to the annotation lines provided by the present invention, the axes in the two-dimensional drawing are identified, the axes and the annotation lines are determined by the axes, and the axes are generated by the annotation lines without axes, so as to form independent axis networks, each independent axis network represents each independent graph, and thus, the automatic segmentation of the drawing is realized. 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 (6)

1. A method of generating an axis from a marked line, comprising the steps of:
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 ];
the step S22 specifically includes:
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.
2. The method for generating an axis according to a marking line as claimed in 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 method of 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.
4. The method of claim 3, 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.
5. 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, realizes the steps of a method of generating an axis from a marked line as claimed in any of claims 1-4.
6. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when being executed by a processor realizes the steps of a method of generating an axis from a annotation line according to any one of claims 1-4.
CN202010781312.6A 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium Active CN112037224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
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 (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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN112037224A true CN112037224A (en) 2020-12-04
CN112037224B CN112037224B (en) 2024-03-22

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 After (1)

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

Country Status (1)

Country Link
CN (2) CN112037224B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329420A (en) * 2022-07-18 2022-11-11 北京五八信息技术有限公司 Marking line generation method and device, terminal equipment and storage medium

Families Citing this family (2)

* 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
CN116189194B (en) * 2023-04-27 2023-07-14 北京中昌工程咨询有限公司 Drawing enhancement segmentation method for engineering modeling

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050024361A1 (en) * 2003-06-27 2005-02-03 Takahiro Ikeda Graphic processing method and device
US20070146359A1 (en) * 2005-12-27 2007-06-28 Fujitsu Limited CAD apparatus, CAD method and recording medium storing CAD program thereof
CN101144711A (en) * 2007-10-17 2008-03-19 南京大学 Automatic positioning method for global coordinate system under multiple-association engineering chart environment
CN101446999A (en) * 2008-12-24 2009-06-03 南京大学 Automatic checking method for dimension line marking error in engineering drawing
CN101673410A (en) * 2008-09-12 2010-03-17 中国科学院计算技术研究所 Vector building drawing based method for reconstructing three-dimensional model
CN104680578A (en) * 2015-02-13 2015-06-03 上海同筑信息科技有限公司 BIM-based axis labeling method and system
CN107145655A (en) * 2017-04-25 2017-09-08 南京南瑞集团公司 The method for setting up the grid equipment vector graphical element sign mould comprising topology information
CN108268743A (en) * 2018-02-09 2018-07-10 广州大学 Well automatic identifying method and system based on architectural drawing

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103150751B (en) * 2013-01-10 2016-12-28 江苏易图地理信息科技股份有限公司 The three-dimensional modeling method of building inside and outside integrity is realized in numerical map
CN106372292A (en) * 2016-08-29 2017-02-01 浙江大学城市学院 Calculation method for building settlement caused by shield tunnel construction
CN107045526B (en) * 2016-12-30 2020-04-14 许昌学院 Pattern recognition method for electronic building construction drawing
CN108197348B (en) * 2017-12-11 2021-06-18 杭州品茗安控信息技术股份有限公司 Method and device for correcting and processing surface member errors in constructional engineering
CN108596066B (en) * 2018-04-13 2020-05-26 武汉大学 Character recognition method based on convolutional neural network
CN108648194B (en) * 2018-04-23 2020-11-24 清华大学 Three-dimensional target identification segmentation and pose measurement method and device based on CAD model

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050024361A1 (en) * 2003-06-27 2005-02-03 Takahiro Ikeda Graphic processing method and device
US20070146359A1 (en) * 2005-12-27 2007-06-28 Fujitsu Limited CAD apparatus, CAD method and recording medium storing CAD program thereof
CN101144711A (en) * 2007-10-17 2008-03-19 南京大学 Automatic positioning method for global coordinate system under multiple-association engineering chart environment
CN101673410A (en) * 2008-09-12 2010-03-17 中国科学院计算技术研究所 Vector building drawing based method for reconstructing three-dimensional model
CN101446999A (en) * 2008-12-24 2009-06-03 南京大学 Automatic checking method for dimension line marking error in engineering drawing
CN104680578A (en) * 2015-02-13 2015-06-03 上海同筑信息科技有限公司 BIM-based axis labeling method and system
CN107145655A (en) * 2017-04-25 2017-09-08 南京南瑞集团公司 The method for setting up the grid equipment vector graphical element sign mould comprising topology information
CN108268743A (en) * 2018-02-09 2018-07-10 广州大学 Well automatic identifying method and system based on architectural drawing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329420A (en) * 2022-07-18 2022-11-11 北京五八信息技术有限公司 Marking line generation method and device, terminal equipment and storage medium
CN115329420B (en) * 2022-07-18 2023-10-20 北京五八信息技术有限公司 Marking generation method and device, terminal equipment and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109658415B (en) Drawing segmentation method, electronic device and storage medium
CN109754460B (en) Automatic die overturning method, electronic equipment and storage medium
CN109670469B (en) Axle network generation method, electronic device and storage medium
CN104850633A (en) Three-dimensional model retrieval system and method based on parts division of hand-drawn draft
CN111881868A (en) Layer automatic identification method and device
CN113128457A (en) Building model identification method, system and related device
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
CN113590005A (en) Labeling method and device for polygonal vector map, electronic equipment and storage medium
CN113901540B (en) Automatic identification method for type of door and window table building drawing and door and window
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
CN112949358A (en) Road description file generation method and equipment
CN113192195B (en) Method for repairing damaged terrain coordinate data
CN113901542B (en) Automatic identification method for building outline based on building total plane positioning map
CN112308155B (en) Labeling accuracy rate determining method and device
JPH08305735A (en) Method and device for estimating cost of parts
JP2006260119A (en) Three-dimensional shape processor, three-dimensional shape processing method, program and recording medium
CN114491720B (en) Method and device for generating detailed steel structure diagram, electronic equipment and storage medium
CN118734397A (en) BIM technology-based intelligent recognition method for column steel framework information
JPH11175585A (en) Design method and device
CN114067026A (en) Method, device and equipment for drawing guide mark and storage medium
JP3423775B2 (en) Figure editing and drawing device
CN115292769A (en) Drawing method and device in computer aided design
JP3878174B2 (en) Record extraction method, record extraction device, and record extraction program

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
CB02 Change of applicant information

Country or region after: China

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

Applicant 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

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

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant