CN112037224B - 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
CN112037224B
CN112037224B CN202010781312.6A CN202010781312A CN112037224B CN 112037224 B CN112037224 B CN 112037224B CN 202010781312 A CN202010781312 A CN 202010781312A CN 112037224 B CN112037224 B CN 112037224B
Authority
CN
China
Prior art keywords
axis
line
marking
shaft
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.)
Active
Application number
CN202010781312.6A
Other languages
Chinese (zh)
Other versions
CN112037224A (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 Group 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 Group Co ltd filed Critical Fujian Chenxi Information Technology Group 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

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 for generating an axis according to a marking line, electronic equipment and a storage medium, which are used for identifying an axis symbol in a two-dimensional drawing and determining a coordinate range of each drawing according to the axis symbol; the coordinate range of each graph is determined by identifying the shaft symbols, so that the automatic segmentation of the graph is realized; compared with other lines, the shaft symbols have obvious characteristics and high identification degree, so that the identification efficiency and accuracy are higher in the drawing segmentation process; meanwhile, the shaft symbols are positioned at the edge positions of each graph, so that the coordinate range of each graph is defined, and the method is simple and effective, so that the separation efficiency is higher and the accuracy is higher; in addition, the shaft symbol can also be used for judging the axis and the marking line, and the building component is judged through the axis, so that convenience is provided for subsequent turnover of the mould.

Description

Method for generating axis according to marking line, electronic equipment and storage medium
The present application is a divisional application taking an invention patent with a filing date of 2018, 12, 27, a filing number of 201811608028.8 and a name of a drawing dividing method, an electronic device and a storage medium as a parent.
Technical Field
The present invention relates to the field of engineering construction costs, and in particular, to a method, an electronic device, and a storage medium for generating an axis according to a marking line.
Background
The construction cost refers to the construction price of the project, which refers to the sum of all the costs expected or actually required for completing the construction of a project, and can also be considered as the construction cost of the project, namely, the investment cost of all the fixed assets which are expected to be paid or actually paid for constructing a project.
In the process of calculating the construction cost, a designer designs a project, generally, a two-dimensional drawing is designed through CAD, and a construction cost budget worker calculates the engineering quantity through the two-dimensional drawing and three-dimensional budget software. The existing three-dimensional budget software can only calculate the model of the software, so that a cost budget person needs to convert a two-dimensional drawing into a building model required by the software through a model turning tool.
When the turnover mould is carried out, a complete engineering drawing is firstly required to be divided, and then the components of the complete engineering drawing are respectively classified and integrated, so that the complete building engineering drawing can be turned out. It can be seen that drawing segmentation is an indispensable important step in the process of turning over the die. However, the conventional mold turning software in the market requires a user to manually divide a piece of drawing paper, and the whole process is extremely complicated and low in efficiency.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method, the electronic equipment and the storage medium for generating the axes according to the marking lines can automatically complete the division of the drawings.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method of generating an axis from a callout line, comprising the steps of:
s1, identifying an axial symbol in a two-dimensional drawing;
s2, determining the coordinate range of each graph according to the shaft symbols.
In order to solve the technical problems, the invention adopts another technical scheme that:
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 callout line as described above when the computer program is executed.
In order to solve the technical problems, the invention adopts another technical scheme that:
a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a method of generating an axis from a callout line as described above.
The invention has the beneficial effects that: a method, electronic equipment and storage medium for generating axes according to a marking line are provided, and the automatic segmentation of the drawing is realized by identifying shaft symbols in a two-dimensional drawing and determining the coordinate range of each drawing according to the shaft symbols; compared with other lines, the shaft symbols have obvious characteristics and high identification degree, so that the identification efficiency and accuracy are higher in the drawing segmentation process; meanwhile, the shaft symbols are positioned at the edge positions of each graph, so that the coordinate range of each graph is defined, and the method is simple and effective, so that the separation efficiency is higher and the accuracy is higher; in addition, the shaft symbol can also be used for judging the axis and the marking line, and the building component is judged through the axis, so that convenience is provided for subsequent turnover of the mould.
Drawings
FIG. 1 is a flow chart of a method for generating an axis from a callout 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 the reference numerals:
1. an electronic device; 2. a processor; 3. a memory; 4. a shaft symbol; 5. an axis; 6. marking lines; 7. the shaft symbol refers to a lead wire; 8. and (5) drawing names.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
The most critical 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 labeling line includes the steps of:
s1, identifying an axial symbol in a two-dimensional drawing;
s2, determining the coordinate range of each graph according to the shaft symbols.
The axis on the building drawing refers to the position base lines of important components such as main wall columns, beam frames and the like, the distance in the transverse direction is called as 'in-between', the longitudinal distance is called as 'in-depth', and the lower left corner on the drawing is used as a starting point coordinate. The symbol used to represent the axis is simply referred to as the shaft web.
From the above description, the beneficial effects of the invention are as follows: the coordinate range of each drawing is determined according to the shaft symbols by identifying the shaft symbols in the two-dimensional drawing, so that the drawing is automatically segmented; compared with other lines, the shaft symbols have obvious characteristics and high identification degree, so that the identification efficiency and accuracy are higher in the drawing segmentation process; meanwhile, the shaft symbols are positioned at the edge positions of each graph, so that the coordinate range of each graph is defined, and the method is simple and effective, so that the separation efficiency is higher and the accuracy is higher; in addition, the shaft symbol can also be used for judging the axis and the marking line, and the building component is judged through the axis, so that convenience is provided for subsequent turnover of the mould.
Further, 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 so, determining the circles containing the English characters or the Arabic characters as the shaft symbols.
Wherein the major components of the shaft symbol include circles and numbers. When the axis symbol is used for representing the transverse plane positioning wiring, namely the transverse axis symbol, the interior of the transverse axis symbol comprises Arabic characters such as 1, 2, 3 and …, and when the axis symbol is used for representing the longitudinal plane positioning wiring, namely the longitudinal axis symbol, the interior of the longitudinal axis symbol comprises uppercase English characters such as A, B, C ….
From the above description, it is known that all the shaft symbols can be quickly and effectively determined by judging the shaft symbols by circles and numbers.
Further, the step S2 specifically includes:
s21, identifying all axes according to the shaft symbols, and executing a step S22 if the axes are not identified according to the shaft symbols;
s22, identifying all marking lines according to the shaft symbols, and generating axes according to the marking lines;
s23, forming axes with an intersecting relation into an axis network, and determining the coordinate range of each axis network;
and S24, expanding the coordinate range of each shaft net outwards by a first numerical value to obtain the coordinate range of each graph, wherein the first numerical value is any numerical value in [500 mm, 3000 mm ].
In a two-dimensional drawing of a building engineering, an axis mainly plays a role in positioning. For the structural diagram, the axes exist in the basic drawings; for building drawings, there is essentially no axis in the drawings.
From the above description, it is known that, after determining the axes, in order to further identify the building elements and more clearly define the coordinate ranges of each figure, it is necessary to identify the axes in the figure, and for the figure with axes, it is only necessary to identify the axes by the axes, while for the figure without axes, the above technical solution generates the axes by the marking lines, so as to facilitate the subsequent element identification and more clearly define the coordinate ranges of each figure.
Further, in the step S21, identifying all axes according to the shaft identifier specifically includes:
s211, each axis symbol takes the axis symbol as a circle center, any numerical value in (0,1000 mm) is taken as a radius, a guide line screening range is obtained, and all line segments intersected with the guide line screening range are put into a guide line set to be confirmed;
s212, selecting a line segment from the guide line set to be confirmed as a first line segment, 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 guide line, otherwise, continuing to select a line segment from the guide line set to be confirmed for judgment until the first axis symbol guide line is obtained;
s213, marking all line segments which are positioned on the same layer with the first axially-oriented line and at least parallel to any line segment positioned on the same layer as axially-oriented lines from the to-be-confirmed guide line set;
s214, sequentially executing step S212 and step S213 on other line segments of the to-be-confirmed guide line set, which are not in the same layer with the first axial sign guide line or are not parallel to all line segments of the to-be-confirmed guide line set, until all line segments of the to-be-confirmed guide line set are judged to be finished, so as to obtain an axial sign guide line set;
s215, marking a line segment collinear with any one of the axial guide lines in the axial guide line set as an axis.
The shaft symbol refers to a line along which the shaft symbol extends to represent an axis, and the shaft symbol refer to a line which is directly connected to each other in normal cases, but may not be directly connected to each other.
From the above description, it can be seen that the shaft symbols need to be expanded by a certain range to screen out the shaft symbol guiding lines so as to avoid omission; judging one of the intersecting line segments, wherein the judging condition is that the layer is structured, so that the intersecting line segment belongs to the shaft symbol finger lead; judging one of the intersecting line segments, and directly determining other line segments through the same layer and the parallel relationship, so that the recognition efficiency can be improved; and judging other intersecting line segments marked as the axicon index line not in the same layer or not parallel to all line segments, thereby avoiding omission.
Further, the step S22 specifically includes:
s221, each axis symbol takes the axis symbol as a circle center, any numerical value in (0,1000 mm) is taken as a radius, a marking line screening range is obtained, all line segments which intersect the marking line screening range and are provided with Arabic characters on two perpendicular sides of the line segment direction are marked as marking lines, a marking line set is obtained, and the corresponding relation between the marking lines and the axis symbol is recorded;
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 same axis symbols of the first marking lines in series to obtain co-axial axis symbol lines;
s223, taking a point on the first marking line perpendicular to the corresponding axis symbol as a starting point, extending an auxiliary line segment in a direction perpendicular to the direction of the same-row axis symbol line where the corresponding axis symbol is located and 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 smaller than or equal to that of the second marking line.
The corresponding axis symbol refers to the corresponding relationship between the recorded labeling line and the axis symbol in step S221, that is, for each first labeling line, there may be a plurality of corresponding axis symbols, and the auxiliary line segments need to be extended by the plurality of corresponding axis symbols. Meanwhile, the first marking line with the longest length is connected with the shaft symbols at the head end and the tail end on the shaft symbol line in the same row, namely, all the shaft symbols on the shaft symbol line in the same row need to extend out of an auxiliary line segment along the direction perpendicular to the first marking line and far away from the shaft symbols, and at the moment, the auxiliary line segment is a line segment extending out of each shaft symbol, namely, an axis.
From the above description, the axes are determined by the marking lines, and all the axes can be ensured to extend out of the axes corresponding to the axes by the marking lines with the longest length, so that the axes can be generated by the marking lines on the graph without the axes to form the shaft network; the length of the auxiliary line segment is limited to avoid the auxiliary line segment extending into other figures.
Further, the step S24 specifically includes:
increasing the maximum abscissa of each shaft network by a first value to obtain an upper limit abscissa, subtracting the first value from the minimum abscissa of each shaft network to obtain a lower limit abscissa, and increasing the maximum ordinate of each shaft network by the first value to obtain an upper limit ordinate; the minimum ordinate of each axis net subtracts the first value to obtain a lower limit ordinate, and 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 axis net.
From the above description, it is known that the coordinate range of the graph is defined by enlarging the axis net by a certain range to ensure the integrity of each graph divided.
Further, the step S2 further includes:
s3, screening out all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and contain preset type names, marking the characters which are arranged 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.
Wherein a preset type name such as floor information, building element information, etc.
From the above description, it can be known that the correspondence between the coordinate range of each graph and the graph name is recorded by judging two features of a preset type name and one to two lines, so as to facilitate subsequent modeling.
Further, the step S3 further includes:
and S4, extracting floor information from the picture names, and importing the coordinate range, the picture names, the floor information and the component types comprising the shaft symbols of each picture into a tree control and XML for storage and display.
From the above description, the drawing segmentation of the present invention means that the coordinate range and the corresponding information of each drawing are determined on the software, that is, a whole two-dimensional drawing is segmented into independent drawings on the software, and the drawings are mutually corresponding through the information of the name, the floor information, the axis symbol, etc., 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 on the memory and executable on the processor, which when executed implements the steps of a method of generating an axis from a callout line as described above.
From the above description, the beneficial effects of the invention are as follows: the coordinate range of each drawing is determined according to the shaft symbols by identifying the shaft symbols in the two-dimensional drawing, so that the drawing is automatically segmented; compared with other lines, the shaft symbols have obvious characteristics and high identification degree, so that the identification efficiency and accuracy are higher in the drawing segmentation process; meanwhile, the shaft symbols are positioned at the edge positions of each graph, so that the coordinate range of each graph is defined, and the method is simple and effective, so that the separation efficiency is higher and the accuracy is higher; in addition, the shaft symbol can also be used for judging the axis and the marking line, and the building component is judged through the axis, so that convenience is provided for subsequent turnover of the mould.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a method of generating an axis from a callout line as described above.
From the above description, the beneficial effects of the invention are as follows: the coordinate range of each drawing is determined according to the shaft symbols by identifying the shaft symbols in the two-dimensional drawing, so that the drawing is automatically segmented; compared with other lines, the shaft symbols have obvious characteristics and high identification degree, so that the identification efficiency and accuracy are higher in the drawing segmentation process; meanwhile, the shaft symbols are positioned at the edge positions of each graph, so that the coordinate range of each graph is defined, and the method is simple and effective, so that the separation efficiency is higher and the accuracy is higher; in addition, the shaft symbol can also be used for judging the axis and the marking line, and the building component is judged through the axis, so that convenience is provided for subsequent turnover of the mould.
Referring to fig. 1 and 2, a first embodiment of the present invention is as follows:
a method of generating an axis from a callout line, comprising the steps of:
s1, identifying an axis symbol 4 in a two-dimensional drawing;
s2, determining the coordinate range of each graph according to the axis symbol 4.
Referring to fig. 1 and 2, a second embodiment of the present invention is as follows:
based on the first embodiment, the method for generating an axis according to the marking line specifically includes the following step S1: and recognizing all circles in the two-dimensional drawing, judging whether English characters or Arabic characters exist in the circles, and if so, determining the circles containing the English characters or the Arabic characters as the shaft symbols 4.
As shown in FIG. 2, circles respectively comprise 1-1, 1-15, 1-A and 1-E, wherein 1 and 15 are Arabic characters, A and E are English characters, and then the graphic elements of the circles 1-1, 1-15, 1-A and 1-E are determined as the axis symbols 4.
Referring to fig. 1 and 2, a third embodiment of the present invention is as follows:
based on the first embodiment, the step S2 specifically includes:
s21, identifying all the axes 5 according to the shaft symbol 4, and executing a step S22 if the axes 5 are not identified according to the shaft symbol 4;
s22, identifying all marking lines 6 according to the shaft symbols 4, and generating an axis 5 according to the marking lines 6;
s23, forming the axes 5 with the intersecting relationship into an axis network, and determining the coordinate range of each axis network, wherein in the embodiment, as shown in fig. 2, if the axes 5 are not in the same graph, the axes 5 with the intersecting relationship are not intersected, so that the axes 5 with the intersecting relationship can be determined to be in the same graph;
and S24, expanding the coordinate range of each shaft net outwards by a first numerical value to obtain the coordinate range of each graph, wherein the first numerical value is any numerical value in [500 mm, 3000 mm ].
It should be noted that, in the actual building drawing, since different line segments can be distinguished by the features of the layers, colors, etc., in this embodiment, the axis symbol guiding line 7 in fig. 2 is set to a dotted line for convenience of description; the fact that the two line segments are collinear means that the two line segments are positioned on the same straight line.
In step S21, all the axes 5 are identified according to the shaft symbol 4 specifically as follows:
s211, each axis symbol 4 takes the axis symbol as a circle center, any numerical value in (0,1000 mm) is taken as a radius, a guide line screening range is obtained, and all line segments intersecting with the guide line screening range are put into a guide line set to be confirmed;
s212, selecting a line segment from the guide line set to be confirmed as a first line segment, 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 guide line, otherwise, continuing to select a line segment from the guide line set to be confirmed for judgment until the first axis symbol guide line is obtained;
s213, marking all line segments which are in the same layer with the first axial sign guide line and at least parallel to any line segment in the same layer as the axial sign guide line 7 from the guide 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 axial sign guide line or are not parallel to all line segments of the guide line set to be confirmed in the guide line set to be confirmed until all the line segments of the guide line set to be confirmed are judged to be finished, and obtaining the axial sign guide line set;
s215, a line segment collinear with any one of the axes guiding lines 7 in the axes guiding line set is marked as an axis 5, and as shown in fig. 2, in this embodiment, the axes guiding lines 7 are used to connect the axis 5 and the axes 4.
The step S22 specifically includes:
s221, each axis symbol 4 takes the axis symbol itself as a circle center, any numerical value in (0,1000 mm) is taken as a radius, a marking line screening range is obtained, all line segments which intersect the marking line screening range and have Arabic characters on two vertical sides in the line segment direction are marked as marking lines 6, a marking line set is obtained, and the corresponding relation between the marking lines 6 and the axis symbol 4 is recorded, in the embodiment, as shown in FIG. 2, the marking lines 6 with the distance X1 respectively have the corresponding relation with the axis symbol 4 with the number 1-1 and the number 1-15, and the marking lines 6 with the distance Y1 respectively have the corresponding relation with the axis symbol 4 with the number 1-E and the number 1-A;
s222, finding out a first marking line with the longest length from marking lines 6 corresponding to each shaft symbol 4, finding out a second marking line with the longest length from all the first marking lines, and connecting the shaft symbols 4 with the same first marking line in series to obtain the shaft symbol lines in the same row;
s223, taking a point on the first marking line perpendicular to the corresponding axis symbol 4 as a starting point, extending an auxiliary line segment towards the direction perpendicular to the direction of the same-row axis symbol line where the corresponding axis symbol 4 is located and away from the corresponding axis symbol 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 smaller than or equal to that of the second marking line.
The step S24 specifically includes:
the maximum abscissa of each axis net is increased by a first value to obtain an upper limit abscissa, the minimum abscissa of each axis net is subtracted by the first value to obtain a lower limit abscissa, and the maximum ordinate of each axis net is increased by the first value to obtain an upper limit ordinate; the minimum ordinate of each axis net subtracts the first value to obtain a lower limit ordinate, and the coordinate range of each graph includes an upper limit abscissa, a lower limit abscissa, an upper limit ordinate and a lower limit ordinate of the corresponding axis net.
Referring to fig. 1 and 2, a fourth embodiment of the present invention is as follows:
the method for generating an axis according to the marking line according to the first embodiment further includes, after step S2:
s3, screening out all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and contain preset type names, 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 floor information from the picture names, and importing the coordinate range, the picture names, the floor information and the component types comprising the shaft symbols of each picture into a tree control and XML for storage and display.
In this embodiment, as shown in fig. 2, the first drawing is a five-thirteen-layer column-leveling construction drawing, in which the five-thirteen layers are floor information, the columns are of a preset type, and the first drawing is a column drawing of the fifth to tenth layers.
Referring to fig. 3, a fifth embodiment of the present invention is as follows:
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, the processor 2 implementing the steps of a method of generating an axis from a callout line according to any one of the first to fourth embodiments when the computer program is executed by the processor 2.
The sixth embodiment of the present invention is:
a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of any one of embodiments one to four of generating an axis from a callout line.
In summary, the method, the electronic device and the storage medium for generating the axes according to the marking line provided by the invention are characterized in that the axes and the marking line are determined by identifying the axes in the two-dimensional drawing, the axes are generated by the marking line under the condition of no axes, so that independent axis networks are formed, each independent axis network represents each independent drawing, and the automatic segmentation of the drawing is realized. The method is characterized in that the shaft symbols are identified, the shaft lines and the marking lines are identified through the shaft symbols, and the method is obvious in characteristics and high in identification degree, so that the identification efficiency and accuracy can be effectively improved; meanwhile, the shaft symbols are positioned at the edge positions of each graph, the axes cover the middle positions of each graph, and the coordinate range of each graph is determined through the expanded range of the shaft net, so that the method is simple and effective, and the separation efficiency is high so that the accuracy is high; in addition, the axis can be used for judging the building member, and convenience is provided for subsequent die turning, namely the invention provides a technical scheme which has higher efficiency, more accurate segmentation effect and convenience for subsequent die turning.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (6)

1. A method of generating an axis from a callout line, comprising the steps of:
s1, identifying an axial symbol in a two-dimensional drawing;
s2, determining the coordinate range of each graph according to the shaft symbols;
the step S2 specifically comprises the following steps:
s21, identifying all axes according to the shaft symbols, and executing a step S22 if the axes are not identified according to the shaft symbols;
s22, identifying all marking lines according to the shaft symbols, and generating axes according to the marking lines;
s23, forming axes with an intersecting relation into an axis network, and determining the coordinate range of each axis network;
s24, expanding the coordinate range of each shaft net outwards by a first numerical value to obtain the coordinate range of each graph, wherein the first numerical value is any numerical value in [500 mm, 3000 mm ];
the step S22 specifically includes:
s221, each axis symbol takes the axis symbol as a circle center, any numerical value in (0,1000 mm) is taken as a radius, a marking line screening range is obtained, all line segments which intersect the marking line screening range and are provided with Arabic characters on two perpendicular sides of the line segment direction are marked as marking lines, a marking line set is obtained, and the corresponding relation between the marking lines and the axis symbol is recorded;
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 same axis symbols of the first marking lines in series to obtain co-axial axis symbol lines;
s223, taking a point on the first marking line perpendicular to the corresponding axis symbol as a starting point, extending an auxiliary line segment in a direction perpendicular to the direction of the same-row axis symbol line where the corresponding axis symbol is located and 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 smaller than or equal to that of the second marking line.
2. A method for generating an axis according to a marking line as claimed in claim 1, wherein said 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 so, determining the circles containing the English characters or the Arabic characters as the shaft symbols.
3. The method of generating an axis according to a marking line of claim 1, wherein said step S2 further comprises:
s3, screening out all characters in the coordinate range of each graph, judging whether one to two lines are arranged below the characters and contain preset type names, marking the characters which are arranged 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. A method of generating an axis from a callout line according to claim 3, wherein step S3 is followed by:
and S4, extracting floor information from the picture names, and importing the coordinate range, the picture names, the floor information and the component types comprising the shaft symbols of each picture 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, characterized by: the processor, when executing the computer program, performs the steps of a method of generating an axis from a callout line as claimed in any one of claims 1 to 4.
6. A computer-readable storage medium having stored thereon a computer program, characterized by: the computer program, when executed by a processor, carries out the steps of a method of generating an axis from a callout line according to any one of claims 1 to 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 CN112037224A (en) 2020-12-04
CN112037224B true CN112037224B (en) 2024-03-22

Family

ID=66117069

Family Applications (2)

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
CN202010781312.6A Active CN112037224B (en) 2018-12-27 2018-12-27 Method for generating axis according to marking line, electronic equipment and storage medium

Family Applications Before (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) CN109658415B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114282288A (en) * 2021-11-29 2022-04-05 万翼科技有限公司 Axle 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 (6)

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

* 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
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 (6)

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

Also Published As

Publication number Publication date
CN112037224A (en) 2020-12-04
CN109658415A (en) 2019-04-19
CN109658415B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN112037224B (en) Method for generating axis according to marking line, electronic equipment and storage medium
CN109165401B (en) Method and device for generating two-dimensional construction map based on civil structure three-dimensional model
CN101882225B (en) Engineering drawing material information extraction method and system based on template
US5819062A (en) Method for converting design intent into a neutral-file-format for computer aided design applications
CN104850633A (en) Three-dimensional model retrieval system and method based on parts division of hand-drawn draft
CN109754460B (en) Automatic die overturning method, electronic equipment and storage medium
CN112668289A (en) Extraction method and device of nested table and storage medium
CN111881868A (en) Layer automatic identification method and device
US6920620B2 (en) Method and system for creating test component layouts
CN107909068A (en) A kind of big data image curve reverse resolution method and system
CN108228998A (en) Computer based on WEB acts improperly design system
JP4756982B2 (en) Part design support method, part design support system, and part design support program
US7304642B2 (en) Analysis model producing/assisting apparatus
CN109670469A (en) A kind of axis net generation method, electronic equipment and storage medium
CN111353284B (en) Part diagram title bar filling method, system and storage medium
CN112163552A (en) Labeling method and device for key points of nose, electronic equipment and storage medium
CN110728114A (en) Analysis report generation method
CN117610478B (en) Method for recovering design diagram, electronic equipment and storage medium
JP2006260119A (en) Three-dimensional shape processor, three-dimensional shape processing method, program and recording medium
JP7484411B2 (en) Information processing device and information processing program
CN117574851B (en) Method, device and storage medium for reconstructing circuit schematic diagram in EDA tool
JPH11175585A (en) Design method and device
CN116681792A (en) Subgraph generation method, device and equipment of vector drawing and readable storage medium
CN115249238A (en) Method, device and equipment for determining multi-part two-dimensional view and storage medium
CN114065323A (en) Problem marking method and device of drawing software and related product

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