Roadbed cross-section identification method, system, electronic device and storage medium
Through the vector drawing-based method, the roadbed cross section is automatically identified, which solves the problem that the existing software cannot identify it and improves the efficiency and accuracy of the roadbed earthwork calculation.
Patent Information
- Application Number
- CN202311021229.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2043-08-14
AI Technical Summary
Existing software cannot automatically identify the roadbed cross section, resulting in low efficiency in calculating the roadbed earthwork volume.
The original ground line, roadbed design line and slope line are identified through a vector drawing-based method, and the roadbed cross section is automatically identified using the path and position characteristics of the vector lines on the drawing.
Automatic identification of roadbed cross sections is achieved, which improves the efficiency and accuracy of calculating roadbed earthwork volume.
Smart Images

Figure CN117058705B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a roadbed cross-section identification method, system, electronic equipment and storage medium. Background Art
[0002] With technological advancements, there's a growing demand for software capable of automatically identifying roadbed cross sections. For example, in the field of engineering cost estimation, many cost estimators are using software to calculate roadbed earthwork quantities in highway projects. When calculating earthwork quantities, the area between the roadbed design line and the original ground line in the roadbed cross section is typically used as the cross-sectional area for calculating earthwork quantities. This context has led to the need for quantity calculation software capable of automatically identifying roadbed cross sections.
[0003] Currently, the software in some technologies cannot automatically identify the roadbed cross section. Summary of the Invention
[0004] In view of this, an embodiment of the present invention provides a roadbed cross-section identification method based on vector drawings, a roadbed cross-section identification system, an electronic device and a computer-readable storage medium, which can solve the problem that the software cannot automatically identify the roadbed cross-section.
[0005] In one aspect, the present invention provides a method for identifying a roadbed cross section based on a vector drawing, wherein the vector drawing includes vector lines. The method includes:
[0006] Retrieving a first path formed by the first vector lines in the transverse direction of the vector drawing from the first vector lines connected at their ends, and identifying an original ground line and a slope retrieval line based on the span of the first path;
[0007] Retrieving a second path formed by the second vector lines in a transverse direction of the vector drawing from among the second vector lines that are parallel to each other and form a closed area, and identifying a roadbed design line based on a position of the second path;
[0008] Identifying a slope line based on a connecting line between the slope retrieval line and the roadbed design line;
[0009] The area enclosed by the original ground line, the roadbed design line and the slope line is used as the identified roadbed cross section.
[0010] In the technical solutions of some embodiments of the present application, the original ground line and slope retrieval line can be identified based on the span of the first path formed by the first vector lines connected at the ends; the roadbed design line can be identified based on the position of the second path formed by the second vector lines that are parallel and connected; and the slope line can be identified based on the connecting line between the slope retrieval line and the roadbed design line. Based on the original ground line, the roadbed design line, and the slope line, the roadbed cross section can be identified. In this way, the automatic identification of the roadbed cross section is achieved, solving the problem that the software in some technologies cannot automatically identify the roadbed cross section.
[0011] In some embodiments, before retrieving the first path, the first vector line is obtained based on the following method:
[0012] Among the vector lines within the first range, performing a first clustering on the vector lines connected at their ends to obtain first vector lines for identifying the original ground line;
[0013] Among the vector lines within the second range, the vector lines connected at their ends are subjected to a second clustering to obtain first vector lines for identifying the slope retrieval line, wherein the vector lines within the second range do not include the vector lines constituting the original ground line.
[0014] By removing the vector lines constituting the original ground lines from the vector lines within the second range, the influence of the original ground lines can be avoided when performing the second clustering on the vector lines, thereby improving the recognition accuracy of the slope retrieval lines.
[0015] In some embodiments, identifying the original ground line according to the span of the first path includes:
[0016] Retrieving a first path formed by the first vector line in a horizontal direction of the vector drawing from the first vector line used to identify the original ground line;
[0017] The first path with the largest span is used as the original ground path, and the cross-sectional line formed by the first vector lines in the original ground path is used as the original ground line.
[0018] The first path is retrieved from the first vector line used to identify the original ground line, and the first path with the largest span is used as the original ground path. This conforms to the business characteristics of the original ground line and can ensure the recognition accuracy of the original ground line.
[0019] In some embodiments, identifying the slope retrieval line according to the span of the first path includes:
[0020] Retrieving a first path formed by the first vector line in a transverse direction of the vector drawing from the first vector line used to identify the slope retrieval line;
[0021] The first path with the largest span is used as the slope retrieval path, and the cross-sectional line formed by the first vector lines in the slope retrieval path is used as the slope retrieval line.
[0022] Retrieving a first path from a first vector line for identifying a slope retrieval line, and using the first path with the largest span as the slope retrieval path, conforms to business characteristics of the slope retrieval line and can ensure the recognition accuracy of the slope retrieval line.
[0023] In some embodiments, before retrieving the second path, the second vector line is obtained based on the following method:
[0024] For a target vector line connected to other vector lines through a non-end position, breaking the target vector line from the non-end position into two new vector lines;
[0025] After the interruption operation is completed, a second clustering is performed on the vector lines that are parallel to each other and form a closed area to obtain the second vector lines.
[0026] After the vector line is interrupted, the interruption position becomes the end, which facilitates the determination of the direction of the vector line and can provide support for retrieving the second path formed by the second vector line, thereby improving the feasibility of the solution.
[0027] In some embodiments, before obtaining the first vector line or the second vector line, the method further includes:
[0028] Clustering intersecting vector lines into cluster units according to the coordinate information of the vector lines, and removing cluster units whose lengths and widths do not exceed preset values; and / or
[0029] Identify and eliminate inclination marks formed by inclined vector lines and horizontal vector lines based on the coordinate information of the vector lines; and / or
[0030] The vector lines are sorted according to the coordinate information of the vector lines, and the end point marks with an inverted U-shaped position relationship and / or marks with an isosceles triangle position relationship are eliminated from the sorted vector lines.
[0031] In this way, the cross-section lines of the roadbed cross section can be retained in the vector drawing, and other interfering vector lines except the interface line can be eliminated, so that the cross-section lines of the roadbed cross section can be identified more accurately in the future.
[0032] In some embodiments, identifying a roadbed design line based on the position of the second path includes:
[0033] Retrieving a second path formed by the second vector lines in a horizontal direction of the vector drawing;
[0034] The second path closest to the original ground line is used as the roadbed path, and the cross-sectional line formed by the second vector lines in the roadbed path is used as the roadbed design line.
[0035] The second path closest to the original ground line is used as the roadbed path, which conforms to the characteristics of the roadbed design line in business and can ensure the recognition accuracy of the roadbed design line.
[0036] In some embodiments, retrieving a path formed by the first vector line or the second vector line in a horizontal direction of the vector drawing includes:
[0037] sorting the vector lines in the horizontal direction of the vector drawing according to the coordinate information of the vector lines and determining the direction of each vector line;
[0038] Based on the sorted and direction-determined vector lines, a path formed by the vector lines is retrieved in the horizontal direction of the vector drawing.
[0039] By sorting the vector lines and determining the direction of each vector line, the efficiency of path retrieval can be improved.
[0040] In some embodiments, identifying the slope line based on the connecting line between the slope retrieval line and the roadbed design line includes:
[0041] Starting from the connecting line, along a direction away from the roadbed design line, a third path formed by vector lines is retrieved;
[0042] The third path with the largest span is used as the slope search path, and the cross-sectional line formed by the vector lines in the slope search path is used as the slope line.
[0043] The third path with the largest span is used as the slope retrieval path, and the cross-section line formed by the vector lines in the slope retrieval path is used as the slope line, which conforms to the characteristics of the slope line in business and can ensure the recognition accuracy of the slope line.
[0044] Another aspect of the present invention provides a roadbed cross-section identification system based on vector drawings, wherein the vector drawings include vector lines, and the system includes:
[0045] A first identification module is configured to retrieve, from the first vector lines connected at their ends, a first path formed by the first vector lines in the transverse direction of the vector drawing, and identify an original ground line and a slope retrieval line based on a span of the first path;
[0046] a second identification module configured to retrieve, from among second vector lines that are parallel to each other and form a closed area, a second path formed by the second vector lines in a transverse direction of the vector drawing, and identify a roadbed design line based on a position of the second path;
[0047] A third identification module is used to identify the slope line based on the connection line between the slope retrieval line and the roadbed design line;
[0048] The fourth identification module is used to take the area enclosed by the original ground line, the roadbed design line and the slope line as the identified roadbed cross section.
[0049] Another aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.
[0050] Another aspect of the present invention provides a computer-readable storage medium for storing a computer program. When the computer program is executed by a processor, the method described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0052] Figure 1 A schematic diagram of a roadbed cross section provided by an embodiment of the present application is shown;
[0053] Figure 2 A schematic diagram of a pavement design line provided by an embodiment of the present application is shown;
[0054] Figure 3 A schematic diagram of a roadbed design line provided by an embodiment of the present application is shown;
[0055] Figure 4 A schematic diagram of an original ground line provided by an embodiment of the present application is shown;
[0056] Figure 5 A schematic diagram of a slope line provided by an embodiment of the present application is shown;
[0057] Figure 6 A schematic diagram of a gutter line provided by an embodiment of the present application is shown;
[0058] Figure 7 A schematic diagram of a roadbed cross section provided by another embodiment of the present application is shown;
[0059] Figure 8A schematic diagram of a process flow of a roadbed cross-section identification method based on vector drawings provided by an embodiment of the present application is shown;
[0060] Figure 9 A schematic diagram of a first vector line provided by an embodiment of the present application is shown;
[0061] Figure 10 A schematic diagram of a first path provided by an embodiment of the present application is shown;
[0062] Figure 11 A schematic diagram of a second vector line provided by an embodiment of the present application is shown;
[0063] Figure 12 A schematic diagram of a second path provided by an embodiment of the present application is shown;
[0064] Figure 13 A schematic diagram of a second path provided by another embodiment of the present application is shown;
[0065] Figure 14 A schematic diagram of a connecting line provided by an embodiment of the present application is shown;
[0066] Figure 15 A schematic diagram of a process for identifying a roadbed cross section provided by an embodiment of the present application is shown;
[0067] Figure 16 A schematic diagram of a vector drawing provided by an embodiment of the present application is shown;
[0068] Figure 17 A schematic diagram of a vector drawing after removing interfering vector lines is shown according to an embodiment of the present application;
[0069] Figure 18 A schematic diagram of sorting first vector lines provided by one embodiment of the present application is shown;
[0070] Figure 19 A schematic diagram of determining the direction of a first vector line provided by an embodiment of the present application is shown;
[0071] Figure 20 A partial schematic diagram of a vector drawing after removing the original ground lines provided by an embodiment of the present application is shown;
[0072] Figure 21 A schematic diagram of interrupting a vector line provided by an embodiment of the present application is shown;
[0073] Figure 22 A schematic diagram showing the direction of a vector line after the vector line is interrupted according to an embodiment of the present application is shown;
[0074] Figure 23 A schematic diagram of modules of a roadbed cross-section identification system based on vector drawings provided by one embodiment of the present application is shown;
[0075] Figure 24 A schematic diagram showing an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0076] To make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0077] Before explaining the solution of this application, the relevant concepts involved in this application are first explained.
[0078] The roadbed cross section refers to the cross section of the roadbed in the direction perpendicular to the road centerline. Figure 1 , which is a schematic diagram of a roadbed cross section provided for one embodiment of the present application. Figure 1 In the figure, the distance in the transverse direction can represent the width of the roadbed. The transverse direction can refer to the direction from left to right or from right to left on the vector drawing.
[0079] Due to terrain variations along a road, the roadbed cross-section can vary at different locations. For example, cross-section A at 10 kilometers from the road's starting point can be different from cross-section B at 20 kilometers. In other words, a road can have multiple cross-sections, each corresponding to a different location along the road.
[0080] In architectural design drawings, the roadbed cross section may include the pavement design line, roadbed design line, original ground line, slope line and ditch line.
[0081] Pavement design line refers to the design line used to mark the road surface. Figure 2 As shown, the thick line is the pavement design line.
[0082] The roadbed design line refers to the roadbed marking line arranged on the roadbed constructed by filling or excavation according to the thickness and elevation requirements of the road surface structure layer. Figure 3 As shown in the figure, the thick line is the roadbed design line. The roadbed design line is parallel to the pavement design line and is always below the pavement design line.
[0083] The original ground line refers to the marking line used to identify the original ground undulation state. Figure 4 As shown, the thick line is the original ground line.
[0084] Slope line refers to the marking line used to mark the slope between the roadbed design line and the original ground line. Figure 5 As shown, the thick line is the slope line.
[0085] Ditch line refers to the marking line used to identify drainage ditch information. Figure 6 As shown in the figure, the thick line is the gutter line. The gutter line can be part of the slope line.
[0086] Figures 1 to 6 In the example, if the existing ground line is lower than the roadbed design line, this means that earth and stone will need to be added to the existing ground to raise the roadbed during road construction. In this case, the area enclosed by the existing ground line, the slope line, and the roadbed design line is called the fill roadbed. In a road construction project, the volume occupied by the fill roadbed is called the earth and stone fill volume. The earth and stone fill volume can also be understood as the volume of earth and stone required to fill and raise the roadbed during a road construction project.
[0087] Please continue to see Figure 7 , which is a schematic diagram of a roadbed cross section provided as another embodiment of the present application. Figure 7 In the figure, the existing ground line is higher than the roadbed design line, indicating that earth and rock will need to be excavated from the existing ground during road construction. In this case, the area enclosed by the existing ground line, the side slope line, and the roadbed design line is called the excavation roadbed. In a road construction project, the volume occupied by the excavated roadbed is called the earth and rock excavation volume. The earth and rock excavation volume can also be understood as the volume of earth and rock required to be excavated during a road construction project.
[0088] In a road construction project, the volume of earthwork filled and excavated can be collectively referred to as the roadbed earthwork. Currently, when using software to calculate roadbed earthwork, it is necessary for the software to automatically identify the roadbed cross-section in the architectural design drawings, so that the average cross-section method or cross-sectional area method can be used to calculate the roadbed earthwork required for the entire road construction project.
[0089] In view of this, the present application provides a roadbed cross-section identification method that can automatically identify the roadbed cross-section in the vector drawing. The so-called vector drawing is an architectural design drawing that uses vector lines with coordinate information to represent the drawing information. In the vector drawing, one or more vector lines can be used to form the section line, text mark, inclination mark, end point mark, etc. of the roadbed cross-section. For example, after multiple vector lines are connected, they can form the original ground line in the roadbed cross-section, or a single vector line can also form the original ground line in the roadbed cross-section.
[0090] The roadbed cross-section identification method can be applied to the quantity calculation software, or can be applied to the electronic device running the quantity calculation software. Electronic devices include but are not limited to laptops, desktop computers, smartphones, tablets, etc. Figure 8 , which is a flow chart of a roadbed cross-section identification method based on vector drawings provided in one embodiment of the present application. Figure 8 In the present invention, the roadbed cross section identification method may include the following steps:
[0091] Step S81: searching for a first path formed by the first vector lines in the horizontal direction of the vector drawing among the first vector lines connected at their ends, and identifying the original ground line and the slope search line according to the span of the first path.
[0092] Among them, the end can refer to the endpoint of the vector line. Each vector line has two ends, and among the two ends, one end is the head end and the other end is the tail end. In this embodiment, for the horizontal vector line, the end located on the left side of the vector drawing is the head end, and the end located on the right side of the vector drawing is the tail end; for the vertical vector line, the end used to connect with the tail end of the horizontal vector line is the head end, and the end used to connect with the head end of the horizontal vector line is the tail end. In some embodiments of the present application, for one of the ends of the vertical vector line, if the end is used to connect the head end of a horizontal vector line and the tail end of another horizontal vector line at the same time, then the end can be either the tail end or the head end. The scenarios related to this can be seen in the subsequent embodiments, which will not be repeated here.
[0093] For any two vector lines, if the two vector lines are connected by one of their respective ends, the two vector lines can be considered the first vector lines connected end-to-end. For example, if the first end of vector line 1 is connected to the first end of vector line 2, or the last end of vector line 1 is connected to the first end of vector line 2, then vector line 1 and vector line 2 can be considered the first vector lines connected end-to-end.
[0094] The first vector line can be a vector line set in a vector drawing. In the vector line set, any vector line is end-to-end connected to at least one other vector line in the set. For ease of understanding, please refer to Figure 9 , is a schematic diagram of a first vector line provided in one embodiment of the present application. Figure 9In the example, vector line a is connected end-to-end with vector line b, and vector line b is connected end-to-end with vector line c. Therefore, vector lines a, b, and c can be the first vector lines connected end-to-end. Furthermore, since one of the ends of vector line d is connected to the middle of vector line a, that is, one of the ends of vector line d is not connected to an end of vector line a, vector line d and vector lines a, b, and c are not the first vector lines connected end-to-end.
[0095] It is understandable that a vector drawing may include multiple groups of first vector lines. Figure 9 In , vector lines a, b, and c may belong to the first group of first vector lines, and vector lines d and e may belong to the second group of first vector lines. In each group of first vector lines, the first paths formed by the first vector lines in the horizontal direction of the vector drawing may be retrieved separately. Specifically, the first path may be a path formed in the horizontal direction of the vector drawing by connecting the first vector lines end to end. For example, the tail end of the first vector line a is connected to the head end of the first vector line b, the tail end of the first vector line b is connected to the head end of the first vector line c, and so on. In the end-to-end connection manner, the first vector lines may form multiple first paths in the horizontal direction of the vector drawing. For example, please refer to Figure 10 , which is a schematic diagram of a first path provided for an embodiment of the present application. Figure 10 In the figure, starting from the upper side of position A and following the arrow, the first vector lines can form a first path AC. Starting from the right of position B and following the arrow, the first vector lines can form a first path BD. By searching, you can obtain all the first paths formed by the first vector lines in the horizontal direction of the vector drawing.
[0096] Considering that in the horizontal direction of the vector drawing, the original ground line of the roadbed cross section is usually the section line with the largest span, therefore, in the first path obtained, the first path with the largest span can be used as the original ground path, and the section line formed by the first vector line in the original ground path can be used as the original ground line. Figure 10 In the example, since the span of the first path BD is the largest, the cross-sectional line formed by the first vector lines in the first path BD can be used as the original ground line.
[0097] Furthermore, a slope retrieval line can refer to a cross-sectional line used to retrieve the slope line. The slope retrieval line can be a cross-sectional line that includes both the ground line and the slope line. In a roadbed cross section, the slope retrieval line can be the cross-sectional line with the largest span other than the original ground line. Therefore, after removing the first path corresponding to the original ground line, the first path with the largest span among the remaining first paths can be used as the slope retrieval path, and the cross-sectional line formed by the first vector lines in the slope retrieval path can be used as the slope retrieval line.
[0098] In this way, combined with the cross-section line characteristics of the roadbed cross section, the original ground line and slope retrieval line are obtained by retrieving the path formed by the vector lines in the horizontal direction of the vector drawing.
[0099] Step S82 : searching for a second path formed by the second vector lines in the transverse direction of the vector drawing among the second vector lines that are parallel to each other and form a closed area, and identifying the roadbed design line according to the position of the second path.
[0100] Similar to the first vector line, the second vector line can also be a vector line set in a vector drawing. The vector lines in the vector line set meet the following conditions:
[0101] Some vector lines are parallel to other vector lines;
[0102] Vector lines form closed areas.
[0103] For example, see Figure 11 , which is a schematic diagram of a second vector line provided in one embodiment of the present application. Figure 11 In the figure, vector lines a, b, c are parallel to vector lines d, e, and vector lines a, b, c are connected to vector lines d, e by vertical vector lines to form a closed area, then vector lines a, b, c and vector lines d, e can be used as second vector lines.
[0104] The second path can be a path formed by connecting the second vector lines based on the vertical vector lines in the horizontal direction of the vector drawing, or a path formed by directly connecting the second vector lines. For example, see Figure 12 , which is a schematic diagram of the second path provided in one embodiment of the present application. Figure 12 In the example, the path formed by the thick lines is the path formed by connecting the second vector lines based on the vertical vector lines. Figure 13 , is a schematic diagram of a second path provided by another embodiment of the present application. Figure 12 Compared with the roadbed cross section in Figure 13 The middle part of the roadbed cross section does not include the bulge. Figure 13 In the figure, the path formed by the thick lines is the path formed by the second vector lines being directly connected to each other. By searching, all the second paths formed by the second vector lines in the horizontal direction of the vector drawing can be obtained.
[0105] Considering that in the horizontal direction of the vector drawing, the roadbed design line and the pavement design line of the roadbed cross section have the following characteristics:
[0106] The roadbed design line of the roadbed cross section is parallel to the pavement design line;
[0107] In the direction perpendicular to the parallel direction, the distance between the roadbed design line and the pavement design line is approximately 200 mm to 1200 mm;
[0108] The roadbed design line is connected to the pavement design line at both ends to form a closed area;
[0109] The roadbed design line is below the pavement design line.
[0110] In view of this, the second path closest to the original ground line can be used as the roadbed path in the obtained second path, and the cross-section line formed by the second vector lines in the roadbed path can be used as the roadbed design line. For example, Figure 12 The second path in is closest to the original ground line, so Figure 12 The second path shown is used as the roadbed path, and the cross-sectional line formed by the second vector lines in the roadbed path is used as the roadbed design line.
[0111] Step S83: Identify the slope line based on the connecting line between the slope retrieval line and the roadbed design line.
[0112] The connecting line between the slope retrieval line and the roadbed design line can be the first transverse section line starting from the intersection of the roadbed design line and the slope retrieval line and in the direction away from the roadbed design line. Figure 14 , is a schematic diagram of connecting lines provided in one embodiment of the present application. Figure 14 In the figure, the part shown by the thick line is the connecting line between the slope retrieval line and the roadbed design line.
[0113] See also Figure 14 It can be seen that starting from the connecting line, the slope line can be retrieved in the direction away from the roadbed design line.
[0114] In step S84, the area enclosed by the original ground line, the roadbed design line, and the slope line is used as the identified roadbed cross section.
[0115] It is understood that in steps S81, S82, and S83, the original ground line, roadbed design line, and side slope line retrieved based on the vector line may have coordinate information. Based on the coordinate information of the original ground line, roadbed design line, and side slope line, the area enclosed by the original ground line, roadbed design line, and side slope line can be determined, and the area of the roadbed cross section can also be determined (i.e., the roadbed cross section is identified).
[0116] In the technical solutions of some embodiments of the present application, the original ground line and slope retrieval line can be identified based on the span of the first path formed by the first vector lines connected at the ends; the roadbed design line can be identified based on the position of the second path formed by the second vector lines that are parallel and connected; and the slope line can be identified based on the connecting line between the slope retrieval line and the roadbed design line. Based on the original ground line, the roadbed design line, and the slope line, the roadbed cross section can be identified. In this way, the automatic identification of the roadbed cross section is achieved, solving the problem that the software in some technologies cannot automatically identify the roadbed cross section.
[0117] The following is a detailed description of the technical solution of this application in conjunction with a specific embodiment. Figure 15 , which is a schematic diagram of the process of identifying the roadbed cross section provided by an embodiment of the present application. Figure 15 In the process of identifying the roadbed cross section, the following steps can be included:
[0118] Step S151: import vector drawings and extract the roadbed cross section to be identified.
[0119] Specifically, the imported vector drawing can be a PDF drawing. In one vector drawing, you can include roadbed cross sections at multiple locations in the same road construction project. These roadbed cross sections are distributed in different areas of the vector drawing. For details, please refer to Figure 16 , which is a schematic diagram of a vector drawing provided in one embodiment of the present application. Figure 16 The vector drawing shown includes 4 roadbed cross sections to be identified and the marking information of these roadbed cross sections. The marking information may include text, an inclination mark composed of an inclined vector line and a horizontal vector line, an inverted U-shaped end point mark, an isosceles triangle triangle mark, a pile number mark, etc. Specifically, in each roadbed cross section area, the mark corresponding to the dotted line is the pile number mark of the roadbed cross section. The pile number mark is used to mark the position corresponding to the roadbed cross section. In the pile number mark, the number after K represents the number of kilometers from the starting point of the road, and the number after + represents the number of meters after the kilometer. For example, from Figure 16 It can be seen that the roadbed cross section in the upper left corner is the roadbed cross section at 16 kilometers + 460 meters from the starting point of the road, and the roadbed cross section in the upper right corner is the roadbed cross section at 16 kilometers + 550 meters from the starting point of the road.
[0120] After importing the vector drawing, all vector lines included in each roadbed cross section can be extracted through computer recognition, with each roadbed cross section as a unit. These vector lines can constitute the cross-section line of the roadbed cross section and the identification information of the roadbed cross section. In simple terms, a relatively general recognition method is used. In this step, all vector lines of each roadbed cross section are first extracted. Then, in subsequent steps, a more refined recognition method is used to further identify the vector lines that constitute the cross-section line from the extracted vector lines.
[0121] Specifically, based on the coordinate information of each vector line in the vector drawing and the characteristics of the inverted triangle + dotted line, the pile number identification of each roadbed cross section can be identified, and then based on the principle of bounding box intersection, the vector lines can be clustered starting from the pile number identification of each roadbed cross section. In the set obtained by clustering, any vector line has a bounding box intersection relationship with at least one other vector line in the set. For example, the pile number identification A of the roadbed cross section A has a bounding box intersection relationship with the vector line a, then the pile number identification A is clustered with the vector line a to obtain set A. Further, assuming that the vector line b, vector line c and vector line a have a bounding box intersection relationship, and the vector line d has a bounding box intersection relationship with the vector line c, then the vector lines b, c, and d are divided into the above-mentioned set A. And so on, the vector lines in the vector drawing are clustered.
[0122] pass Figure 16 As can be seen, there is a certain distance between each roadbed cross section, so the vector lines between different roadbed cross sections may not have intersecting bounding boxes. In this way, through the above clustering method, all vector lines of each roadbed cross section to be identified can be extracted through computer recognition methods.
[0123] Based on all the extracted vector lines of each roadbed cross section to be identified, the following steps can be performed respectively to identify each section line of the roadbed cross section from the extracted vector lines, and then obtain the specific area range of each roadbed cross section.
[0124] Step S152: Identify and remove other interference vector lines except the cross-section lines.
[0125] In some embodiments, identifying and removing interference vector lines other than the cross-section line may include:
[0126] According to the coordinate information of the vector lines, the vector lines that have an intersecting relationship are clustered into cluster units, and the cluster units whose length and width do not exceed the preset value are eliminated.
[0127] Specifically, the intersecting vector lines can be defined as the intersecting bounding boxes of the vector lines. During clustering, if a vector line intersects any vector line in a cluster unit, the vector line is clustered into that cluster unit. For example, if vector line A intersects only with vector line B in cluster unit A, vector line A is clustered into cluster unit A.
[0128] Since the text in the vector drawing has the characteristic that the length and width do not exceed the preset value (for example, 1000), after the intersecting vector lines are clustered into cluster units, if the length and width of the cluster unit do not exceed the preset value, it can be determined that the cluster unit is the text in the vector drawing and can be eliminated.
[0129] In this embodiment, considering that the vector lines constituting the text not only have the above-mentioned characteristics of length and width not exceeding the preset values, but also have the characteristics of being on the same layer, having the same color, having the same line type, and having continuous primitive IDs, when clustering the vector lines, vector lines that simultaneously meet the following conditions may be clustered into cluster units:
[0130] There is an intersection relationship, the same layer, the same color, the same line type, and the element ID is continuous.
[0131] In this way, the text removal effect is better and can effectively prevent accidental deletion or omission.
[0132] In some embodiments, identifying and removing interference vector lines other than the cross-section line may include:
[0133] According to the coordinate information of the vector lines, the inclination marks formed by the inclined vector lines and the horizontal vector lines are identified and eliminated.
[0134] Specifically, if the horizontal and vertical coordinates of the two ends of a vector line are different, the vector line can be determined to be an inclined vector line; if the coordinates of the two end points of a vector line are the same in the left and right directions, the vector line can be determined to be a horizontal vector line. If an inclined vector line is identified as connecting to a horizontal vector line, it is determined that the vector line forms a dip indicator and the corresponding vector line can be removed.
[0135] In this embodiment, considering that the vector lines constituting the inclination mark also have the characteristics of being in the same layer, the same color, and the same line type, it can be determined that the vector lines constitute the inclination mark if the vector lines meet the following conditions:
[0136] The oblique vector lines are connected with the horizontal vector lines;
[0137] The inclined vector lines and the horizontal vector lines are on the same layer, color, and line type.
[0138] If a vector line satisfies all of the above conditions, it is determined that the vector line constitutes a dip marker and the corresponding vector line can be removed. This allows for more accurate identification of dip markers and prevents accidental or missed deletions.
[0139] In some embodiments, identifying and removing interference vector lines other than the cross-section line may include:
[0140] The vector lines are sorted according to their coordinate information, and the end point marks with an inverted U-shaped position relationship and / or marks with an isosceles triangle are removed from the sorted vector lines. The marks with an isosceles triangle may include elevation marks and triangle marks.
[0141] Specifically, the vector lines may be sorted from left to right according to their coordinate information. If the sorted vector lines form an inverted U-shaped end point mark or an isosceles triangle mark, the corresponding vector lines are removed.
[0142] In this embodiment, considering that the vector lines constituting the end point mark, elevation mark, and triangle mark have the characteristics of being on the same layer, having the same color, having the same line type, and having continuous primitive IDs, the end point mark or triangle mark constituted by the vector lines can be determined when the vector lines meet the following conditions:
[0143] Multiple vector lines form an inverted U shape or an isosceles triangle shape;
[0144] Vector lines in the shape of an inverted U or an isosceles triangle are of the same layer, color, line type, and have continuous element IDs.
[0145] If a vector line satisfies all of the above conditions, it is determined that the vector line constitutes an end point mark or a triangle mark, and the corresponding vector line can be removed. This allows for more accurate identification of end point marks, elevation marks, and triangle marks, preventing accidental or missed deletions.
[0146] After step S152 , the cross-section lines of the roadbed cross section can be retained in the vector drawing, and other interfering vector lines except the interface lines can be removed, so as to facilitate more accurate identification of the cross-section lines of the roadbed cross section in the future.
[0147] In this embodiment, the so-called elimination of interference vector lines may be to mark these vector lines, so that when subsequently identifying each cross-section line of the roadbed cross section, it is not necessary to consider these marked interference vector lines.
[0148] See also Figure 17 , is a schematic diagram of a vector drawing after removing interfering vector lines provided by an embodiment of the present application. Figure 16 compared to, Figure 17There are no relevant interference vector lines anymore.
[0149] Step S153: Identify the original ground line.
[0150] In some embodiments, the vector lines within the first range may be clustered together with the vector lines connected at their ends to obtain first vector lines for identifying the original ground line. The vector lines within the first range may be the vector lines remaining after removing the interfering vector lines (e.g., Figure 17 As shown in FIG. 1 , when performing the first clustering on the vector lines, the influence of the interference vector lines can be avoided, thereby improving the recognition accuracy of the original ground lines.
[0151] See also Figure 10 When identifying the original ground line, the first path formed by the first vector line in the horizontal direction of the vector drawing can be retrieved from the first vector line used to identify the original ground line. It can be understood that in the computer, vector lines are not stored in the form of lines. The computer stores vector lines by storing the coordinate information, color, width, length and other attribute information of the vector lines. Each vector line has corresponding attribute information. In view of this, when identifying the first path formed by the first vector line, the first vector lines can be sorted in the horizontal direction of the vector drawing according to the coordinate information of the first vector line, and the direction of each first vector line can be determined. Then, based on the sorted and direction-determined first vector lines, the path formed by the vector lines in the horizontal direction of the vector drawing can be retrieved.
[0152] The aforementioned sorting of the first vector lines refers to determining the order of the first vector lines in the horizontal direction of the vector drawing based on the coordinate information of each first vector line stored in the computer. The aforementioned determining the direction of each first vector line refers to determining the direction from the starting point to the ending point of each first vector line based on the coordinate information of each first vector line stored in the computer. For example, assuming there are five first vector lines, the end coordinates of these five first vector lines in the computer are:
[0153] First vector line a: (20, 20), (22, 20)
[0154] First vector line b: (15, 20), (20, 20)
[0155] First vector line c: (22, 25), (28, 25)
[0156] First vector line d: (22, 20), (22, 25)
[0157] First vector line e: (28, 25), (28, 18)
[0158] Assume that the first coordinate in each bracket above represents the coordinate of the end of the first vector line on the X-axis of the plane rectangular coordinate system, and the second coordinate represents the coordinate of the end of the first vector line on the Y-axis of the plane rectangular coordinate system. Figure 18 , which is a schematic diagram of sorting the first vector lines in the above example. Figure 18 In the left-to-right direction (i.e., the horizontal direction of the vector drawing), the order of the first vector lines is b, a, d, c, e. The arrow in each first vector line points to the direction of the corresponding first vector line. In this way, based on the first vector lines after sorting and direction determination, the path formed by the first vector lines can be retrieved in the horizontal direction of the vector drawing. Specifically, when searching for the path formed by the first vector lines, you can search downward in order according to the direction of each first vector line until you can no longer search downward. For example Figure 18 In the process, the search is performed downwards in sequence according to the directions of the sorted first vector lines until the first vector line e is found. Since the first vector line e is not connected to other first vector lines, the search is stopped.
[0159] By sorting the first vector lines and determining the directions of the first vector lines, the retrieval efficiency of the first path can be improved.
[0160] In order to ensure the retrieval accuracy of the first path, all possible paths formed by the first vector lines in the horizontal direction of the vector drawing are retrieved. The following focuses on how to determine the direction of each first vector line. Based on the above step S81, it can be known that:
[0161] In the case where the first vector line is a horizontal vector line, the end on the left side of the vector drawing is the leading end, and the end on the right side of the vector drawing is the trailing end. Therefore, in this case, the direction of the first vector line is from the leading end to the trailing end.
[0162] If the first vector line is a vertical vector line, its end connected to the trailing end of a horizontal vector line is called the leading end, and its end connected to the leading end of a horizontal vector line is called the trailing end. If the end of a vertical vector line is used to connect to both the leading and trailing ends of a horizontal vector line, then the end of the vertical vector line can be either the leading or trailing end. In this case, the direction of the vertical vector line can be bidirectional.
[0163] For easier understanding, please refer to Figure 19 , which is a schematic diagram of determining the direction of the first vector line provided by an embodiment of the present application. Figure 19 middle:
[0164] For the horizontal first vector lines a, b, c, e, h, and g, the directions of these first vector lines are from left to right (ie, the starting end points to the tail end).
[0165] For the vertical first vector line f, its end f1 connects the trailing end of the first vector line b and the leading end of the first vector line c, and its end f2 connects the trailing end of the first vector line e and the leading end of the first vector line h. Therefore, ends f1 and f2 can be either leading or trailing ends. Therefore, the direction of the first vector line f can be from end f1 to end f2, or from end f2 to f1.
[0166] For the vertical first vector line d, its end d1 connects the trailing end of the first vector line g and the starting end of the first vector line a, so end d1 can be either the starting end or the trailing end. However, end d2 only connects to the starting end of the first vector line e, so end d2 can only be the trailing end. Therefore, the direction of the first vector line d can only be from end d1 to end d2.
[0167] In summary, when searching for a first path formed by the first vector lines based on their directions, the first path can include: g>a>b>f>h, g>d>e>f>c, g>a>b>c, and g>d>e>h. This shows that accurately determining the directions of the first vector lines improves the accuracy of first path retrieval.
[0168] Among the retrieved first paths, the path with the largest span can be used as the original ground path, and the cross-section formed by the first vector lines in the original ground path can be used as the original ground line. This completes the identification of the original ground line. Retrieving the first path from the first vector lines used to identify the original ground line and using the path with the largest span as the original ground path meets the operational characteristics of the original ground line and ensures the accuracy of original ground line identification.
[0169] In this embodiment, considering that the original ground line in the vector drawing has the characteristics of having the least number of vector lines and no return lines, the first path that satisfies the following conditions at the same time in the retrieved first path is used as the original ground path:
[0170] The largest span;
[0171] The first vector includes the least number of lines;
[0172] There are no return paths in the route.
[0173] In this way, the recognition accuracy can be further improved.
[0174] In this embodiment, after the original ground line is identified, the first vector line constituting the original ground line can be removed from the vector drawing, that is, the first vector line constituting the original ground line can be marked. Figure 20 , is a partial schematic diagram of a vector drawing after removing the original ground lines provided by an embodiment of the present application. Figure 20 It can be seen that after the first vector lines constituting the original ground line are removed (marked), the vector lines not removed (not marked) in the vector drawing are further reduced.
[0175] Step S154: Identify the slope retrieval line.
[0176] In some embodiments, the vector lines within the second range may be clustered for the vector lines connected at their ends to obtain the first vector lines for identifying the slope retrieval line, wherein the vector lines within the second range do not include the vector lines constituting the original ground line. Specifically, the vector lines within the second range may be the vector lines remaining after removing the interfering vector lines and the original ground line, i.e. Figure 20 Eliminating the vector lines constituting the original ground lines from the vector lines within the second range can avoid the influence of the original ground lines when performing the second clustering on the vector lines, thereby improving the recognition accuracy of the slope retrieval line.
[0177] In the first vector line used to identify the slope retrieval line, the first path formed by the first vector line in the horizontal direction of the vector drawing can be retrieved. In the retrieved first path, the first path with the largest span can be used as the slope retrieval path, and the cross-sectional line formed by the first vector line in the slope retrieval path can be used as the slope retrieval line. This process is similar to the process in step S153 and will not be repeated here. Retrieving the first path in the first vector line used to identify the slope retrieval line and using the first path with the largest span as the slope retrieval path meets the business characteristics of the slope retrieval line and can ensure the recognition accuracy of the slope retrieval line.
[0178] In this embodiment, after the original ground line is identified, the first vector line constituting the original ground line may be removed from the vector drawing, that is, the first vector line constituting the original ground line may be marked.
[0179] Step S155: Identify the roadbed design line.
[0180] In some embodiments, a second vector line for identifying a roadbed design line may be obtained from the vector lines after removing the interference vector lines and the original ground lines, using the following method:
[0181] For a target vector line connected to other vector lines at a non-end position, the target vector line is broken into two new vector lines at the non-end position;
[0182] After the interruption operation is completed, a second clustering is performed on the vector lines that are parallel to each other and form a closed area to obtain second vector lines.
[0183] For easier understanding, please refer to Figure 21 , which is a schematic diagram of vector line interruption provided by an embodiment of the present application. Figure 21 In the figure, vector line c connects position A of vector line a, and vector line d connects position B of vector line b, but position A is not the end position of vector line a, and position B is not the end position of vector line b. Therefore, vector line a can be broken into two new vector lines a1 and a2 at position A, and vector line b can be broken into two new vector lines b1 and b2 at position B. Positions A and B become the endpoints of the new vector lines. According to the method for determining the direction of the vector lines described in the above steps, the directions of the new vector lines a1, a2, b1, b2 and vector lines c and d are as follows: Figure 22 shown.
[0184] Based on the vector lines after the interruption operation, after clustering the vector lines that are parallel to each other and form a closed area, we can get Figure 11 The bold lines shown above can be used as second vector lines for identifying the roadbed design line. In the horizontal direction of the vector drawing, the second path formed by the second vector lines can be retrieved. The second path closest to the original ground line is used as the roadbed path, and the cross-sectional line formed by the second vector lines in the roadbed path is used as the roadbed design line. The retrieval of the second path can be found in the description of steps S82 and S153 above and will not be repeated here.
[0185] In some embodiments of the present application, after the vector line is interrupted, the interruption position becomes the end, which facilitates the determination of the direction of the vector line, can provide support for retrieving the second path formed by the second vector line, and improve the feasibility of the solution.
[0186] At the same time, the second path closest to the original ground line is used as the roadbed path, which conforms to the characteristics of the roadbed design line in business and can ensure the recognition accuracy of the roadbed design line.
[0187] Step S156: Identify the slope line.
[0188] See also Figure 14In some embodiments, a third path formed by vector lines can be retrieved starting from the connecting line between the side slope search line and the roadbed design line, in a direction away from the roadbed design line. Among the obtained third paths, the third path with the largest span can be used as the side slope search path, and the cross-sectional line formed by the vector lines in the side slope search path can be used as the side slope line. The search for the third path can be found in the description of step S153 above and is not repeated here.
[0189] The third path with the largest span is used as the slope retrieval path, and the cross-section line formed by the vector lines in the slope retrieval path is used as the slope line, which conforms to the characteristics of the slope line in business and can ensure the recognition accuracy of the slope line.
[0190] Step S157: The area enclosed by the roadbed design line, the original ground line, and the slope line is used as the identified roadbed cross section.
[0191] For details, please refer to the relevant description of step S84 above, which will not be repeated here.
[0192] See also Figure 23 , is a schematic diagram of a module of a roadbed cross-section identification system based on vector drawings provided in one embodiment of the present application. The vector drawings include vector lines. The roadbed cross-section identification system includes:
[0193] A first identification module is used to retrieve a first path formed by the first vector lines in the transverse direction of the vector drawing from the first vector lines connected at their ends, and to identify the original ground line and the slope retrieval line based on the span of the first path;
[0194] a second identification module for searching, among second vector lines that are parallel to each other and form a closed area, a second path formed by the second vector lines in a transverse direction of the vector drawing, and identifying a roadbed design line based on a position of the second path;
[0195] A third identification module is used to identify the slope line based on the connection line between the slope retrieval line and the roadbed design line;
[0196] The fourth recognition module is used to take the area enclosed by the original ground line, the roadbed design line and the slope line as the recognized roadbed cross section.
[0197] In some embodiments, before retrieving the first path, the first recognition module is further configured to obtain the first vector line based on the following method:
[0198] Among the vector lines within the first range, performing a first clustering on the vector lines connected at their ends to obtain first vector lines for identifying the original ground line;
[0199] Among the vector lines within the second range, vector lines connected at their ends are subjected to a second clustering to obtain first vector lines for identifying slope retrieval lines, wherein the vector lines within the second range do not include vector lines constituting original ground lines.
[0200] In some embodiments, the first identification module is specifically configured to:
[0201] Retrieving a first path formed by the first vector line in a horizontal direction of the vector drawing from a first vector line used to identify an original ground line;
[0202] The first path with the largest span is used as the original ground path, and the cross-sectional line formed by the first vector line in the original ground path is used as the original ground line.
[0203] In some embodiments, the first identification module is specifically configured to:
[0204] In a first vector line for identifying a slope search line, a first path formed by the first vector line in a transverse direction of the vector drawing is retrieved;
[0205] The first path with the largest span is used as the slope retrieval path, and the cross-sectional line formed by the first vector lines in the slope retrieval path is used as the slope retrieval line.
[0206] In some embodiments, before retrieving the second path, the second recognition module obtains the second vector line based on the following method:
[0207] For a target vector line connected to other vector lines at a non-end position, the target vector line is broken into two new vector lines at the non-end position;
[0208] After the interruption operation is completed, a second clustering is performed on the vector lines that are parallel to each other and form a closed area to obtain second vector lines.
[0209] In some embodiments, before obtaining the first vector line, or before obtaining the second vector line, the first recognition module is further configured to:
[0210] Clustering intersecting vector lines into cluster units based on the coordinate information of the vector lines, and removing cluster units whose lengths and widths do not exceed preset values; and / or
[0211] Identify and remove inclination marks formed by inclined vector lines and horizontal vector lines based on the coordinate information of the vector lines; and / or
[0212] The vector lines are sorted according to their coordinate information, and the end point marks with an inverted U-shaped position relationship and / or marks with an isosceles triangle position relationship are removed from the sorted vector lines.
[0213] In some embodiments, the second identification module is specifically configured to:
[0214] Retrieving a second path formed by the second vector line in the horizontal direction of the vector drawing;
[0215] The second path closest to the original ground line is used as the roadbed path, and the cross-sectional line formed by the second vector lines in the roadbed path is used as the roadbed design line.
[0216] In some embodiments, the first identification module or the second identification module is specifically configured to:
[0217] According to the coordinate information of the vector lines, the vector lines are sorted in the horizontal direction of the vector drawing, and the direction of each vector line is determined;
[0218] Based on the sorted and oriented vector lines, a path formed by the vector lines in the horizontal direction of the vector drawing is retrieved.
[0219] In some embodiments, the third identification module is specifically configured to:
[0220] Starting from the connecting line, the third path formed by the vector lines is retrieved in the direction away from the roadbed design line;
[0221] The third path with the largest span is used as the slope retrieval path, and the cross-sectional line formed by the vector lines in the slope retrieval path is used as the slope line.
[0222] See also Figure 24 , is a schematic diagram of an electronic device provided in one embodiment of the present application. The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.
[0223] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0224] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods described in the embodiments of the present invention. The processor executes the non-transitory software programs, instructions, and modules stored in the memory to perform various processor functions and data processing, thereby implementing the methods described in the aforementioned method embodiments.
[0225] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely located relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0226] One embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above method is implemented.
[0227] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A roadbed cross-section identification method based on vector drawings, characterized in that: The vector drawing includes vector lines, and the method includes: Among the vector lines within the first range, performing a first clustering on the vector lines connected at their ends to obtain a first vector line for identifying the original ground line; and among the vector lines within the second range, performing a second clustering on the vector lines connected at their ends to obtain a first vector line for identifying the slope retrieval line, wherein the vector lines within the second range do not include the vector lines constituting the original ground line; Retrieving a first path formed by the first vector line in a transverse direction of the vector drawing from the first vector line used to identify the original ground line, and identifying the original ground line based on the span of the first path; In the first vector lines used to identify the slope retrieval line, a first path formed by the first vector lines in the transverse direction of the vector drawing is retrieved, and the slope retrieval line is identified based on the span of the first path; Retrieving a second path formed by the second vector lines in a transverse direction of the vector drawing from among the second vector lines that are parallel to each other and form a closed area, and identifying a roadbed design line based on a position of the second path; Identifying a slope line based on a connecting line between the slope retrieval line and the roadbed design line; The area enclosed by the original ground line, the roadbed design line and the slope line is used as the identified roadbed cross section.
2. The method according to claim 1, wherein Based on the span of the first path, identify the original ground line, including: The first path with the largest span is used as the original ground path, and the cross-sectional line formed by the first vector lines in the original ground path is used as the original ground line.
3. The method according to claim 1, wherein Based on the span of the first path, identify the slope retrieval line, including: The first path with the largest span is used as the slope retrieval path, and the cross-sectional line formed by the first vector lines in the slope retrieval path is used as the slope retrieval line.
4. The method according to claim 1, wherein Before retrieving the second path, the second vector line is obtained based on the following method: For a target vector line connected to other vector lines through a non-end position, breaking the target vector line from the non-end position into two new vector lines; After the interruption operation is completed, a second clustering is performed on the vector lines that are parallel to each other and form a closed area to obtain the second vector lines.
5. The method according to claim 1 or 4, wherein: Before acquiring the first vector line or the second vector line, the method further includes: Clustering intersecting vector lines into cluster units according to the coordinate information of the vector lines, and removing cluster units whose lengths and widths do not exceed preset values; and / or Identify and eliminate inclination marks formed by inclined vector lines and horizontal vector lines based on the coordinate information of the vector lines; and / or The vector lines are sorted according to the coordinate information of the vector lines, and the end point marks with an inverted U-shaped position relationship and / or marks with an isosceles triangle position relationship are eliminated from the sorted vector lines.
6. The method according to claim 1, wherein The identifying the roadbed design line according to the position of the second path includes: Retrieving a second path formed by the second vector lines in a horizontal direction of the vector drawing; The second path closest to the original ground line is used as the roadbed path, and the cross-sectional line formed by the second vector lines in the roadbed path is used as the roadbed design line.
7. The method according to any one of claims 2, 3 and 6, wherein: Retrieving a path formed by the first vector line or the second vector line in the horizontal direction of the vector drawing, comprising: sorting the vector lines in the horizontal direction of the vector drawing according to the coordinate information of the vector lines and determining the direction of each vector line; Based on the sorted and direction-determined vector lines, a path formed by the vector lines in the horizontal direction of the vector drawing is retrieved.
8. The method according to claim 1, wherein The identifying of the slope line based on the connecting line of the slope retrieval line and the roadbed design line includes: Starting from the connecting line, along a direction away from the roadbed design line, a third path formed by vector lines is retrieved; The third path with the largest span is used as the slope search path, and the cross-sectional line formed by the vector lines in the slope search path is used as the slope line.
9. A roadbed cross-section identification system based on vector drawings, characterized in that: The vector drawing includes vector lines, and the system includes: a first identification module configured to perform a first clustering on the vector lines connected at their ends within a first range to obtain first vector lines for identifying an original ground line, and to perform a second clustering on the vector lines connected at their ends within a second range to obtain first vector lines for identifying a slope retrieval line, wherein the vector lines within the second range do not include the vector lines constituting the original ground line, and to retrieve, from the first vector lines for identifying the original ground line, a first path formed by the first vector lines in a transverse direction of the vector drawing, and identify the original ground line based on the span of the first path, and to retrieve, from the first vector lines for identifying the slope retrieval line, a first path formed by the first vector lines in a transverse direction of the vector drawing, and identify the slope retrieval line based on the span of the first path; a second identification module configured to retrieve, from among second vector lines that are parallel to each other and form a closed area, a second path formed by the second vector lines in a transverse direction of the vector drawing, and identify a roadbed design line based on a position of the second path; A third identification module is used to identify the slope line based on the connection line between the slope retrieval line and the roadbed design line; The fourth identification module is used to take the area enclosed by the original ground line, the roadbed design line and the slope line as the identified roadbed cross section.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
11. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method and device for identifying longitudinal section in construction drawing
CN112906572A
Three-dimensional modeling method for layered excavation roadbed
CN115688219A