Roadway cross section comparison method, device, equipment, storage medium and program product
Patent Information
- Application Number
- CN202311358689.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-10-19
AI Technical Summary
具体操作上较为复杂,施工人员较难掌握和操作,且精度较低颗粒度普遍在5米进行抽检,若采集精度较高则耗费大量人力成本,截面获取整体工作量偏大,最终导致巷道验收精度总体偏低,极易造成浪费和安全问题
[0019]从上面所述可以看出,本申请提供的一种巷道截面比对方法、装置、设备、存储介质及程序产品,包括:获取待比对巷道的点云数据,以预设深度值获取点云数据中的至少一个图纸碎片集,根据预训练的空间映射模型确定图纸碎片集对应的函数向量;获取设计图纸数据,确定设计图纸数据对应的至少一个预设截面的第一背景投影向量,根据函数向量确定每个图纸碎片集对应的第二背景投影向量,对第一背景投影向量和第二背景投影向量进行相似度计算;根据相似度计算结果建立预设截面与图纸碎片集的对应关系,选取任一组对应的预设截面与图纸碎片集进行偏差计算;输出偏差计算结果,以根据偏差计算结果确定巷道超欠挖情况。本申请通过获取巷道的点云数据,建立巷道的图纸碎片集,并同时确定图纸碎片集与设计图纸中截面的背景投影向量,通过比较两者的向量相似度,确定两者之间的对应关系,完成对应后,即可对同一位置的截面进行偏差计算,从而确定出超欠挖情况,进而可以高效的进行巷道超欠挖情况的确认,简化操作过程,降低人力成本,提升验收精度,同时减少浪费和安全问题的发生。
Smart Images

Figure CN117575987B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, equipment, storage medium, and program product for comparing tunnel cross sections. Background Technology
[0002] During the excavation of underground mine roadways, over-excavation and under-excavation of cross sections are inevitable. In order to effectively control over-excavation and under-excavation, ensure the progress of roadway construction, and save construction costs, roadway over-excavation and under-excavation detection is a necessary and indispensable part of the construction process and a key link in ensuring construction quality.
[0003] In related technologies, a total station is typically used to measure various parts of the tunnel to obtain three-dimensional coordinate data of the cross-section. Then, manual methods are used to assess whether there is over- or under-excavation of the tunnel. The specific operation is quite complex, difficult for construction personnel to master and operate, and the accuracy is relatively low, with granularity generally limited to 5 meters for sampling inspection. If higher accuracy is required, it consumes a large amount of manpower, resulting in a large overall workload for cross-section acquisition. Ultimately, this leads to a generally low accuracy in tunnel acceptance, easily causing waste and safety issues. Summary of the Invention
[0004] In view of this, this application proposes a method, apparatus, equipment, storage medium, and program product for comparing tunnel cross sections to solve or partially solve the above-mentioned problems.
[0005] To achieve the above objectives, this application provides a method for comparing tunnel cross sections, comprising:
[0006] Obtain point cloud data of the tunnel to be compared, obtain at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model. Acquire design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and calculate the similarity between the first background projection vector and the second background projection vector. Based on the similarity calculation results, establish the correspondence between the preset cross section and the set of drawing fragments, and select any set of corresponding preset cross sections and the set of drawing fragments for deviation calculation; Output the deviation calculation results to determine the over- or under-excavation status of the roadway based on the deviation calculation results.
[0007] In some implementations, obtaining at least one set of drawing fragments from the point cloud data at a preset depth value includes: In response to the preset depth value being greater than or equal to 1, the set of adjacent nodes of any node in the point cloud data is determined, and the set of fragments of the adjacent node set is determined when the preset depth value is reduced by 1. This process is repeated until the preset depth value is reduced to 0, and the set of drawing fragments is deduced in reverse order.
[0008] In some implementations, determining the set of adjacent nodes as the fragment set at the preset depth value minus 1 specifically involves:
[0009] in, For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, In point cloud data Any adjacent node of a node. The preset depth value.
[0010] In some implementations, the first background projection vector or the second background projection vector specifically refers to:
[0011] in, It is either the first background projection vector or the second background projection vector. Let be the function vector. , For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, The preset depth value.
[0012] In some implementations, the step of selecting any set of corresponding preset cross sections and calculating the deviation between them and the set of drawing fragments includes: Establish a plane coordinate system, generate a preset section and drawing fragment set corresponding to each set, and the corresponding coordinate matrix. Calculate the distance matrix between the two coordinate matrices, calculate the difference metric value based on the distance matrix, and determine the deviation calculation result based on the calculation result. The difference metric:
[0013] in, The difference metric value, The coordinate matrix corresponding to the preset cross section. This is the coordinate matrix corresponding to the set of drawing fragments. ,in Let be the distance matrix.
[0014] In some implementations, the output deviation calculation result includes: Determine a preset range threshold, and determine whether the deviation calculation result exceeds the preset range threshold; In response to exceeding the preset range threshold, images of the corresponding preset cross-section and drawing fragment set are generated respectively, and the images are superimposed according to the correspondence relationship; Output the superimposed image.
[0015] Based on the same concept, this application also provides a tunnel cross-section comparison device, comprising: The calculation module is used to acquire point cloud data of the tunnel to be compared, acquire at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model. The comparison module is used to acquire design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and perform similarity calculation on the first background projection vector and the second background projection vector. The deviation module is used to establish the correspondence between the preset cross section and the set of drawing fragments based on the similarity calculation results, and to select any set of corresponding preset cross sections and set of drawing fragments for deviation calculation; The output module is used to output the deviation calculation results to determine the over- or under-excavation status of the roadway based on the deviation calculation results.
[0016] Based on the same concept, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in any of the preceding claims.
[0017] Based on the same concept, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform the method described in any of the preceding claims.
[0018] Based on the same concept, this application also provides a computer program product, including computer program instructions that, when run on a computer, cause the computer to perform the method described in any of the preceding claims.
[0019] As can be seen from the above description, the tunnel cross-section comparison method, apparatus, equipment, storage medium, and program product provided in this application include: acquiring point cloud data of the tunnel to be compared; acquiring at least one set of drawing fragments in the point cloud data with a preset depth value; determining the function vector corresponding to the drawing fragment set based on a pre-trained spatial mapping model; acquiring design drawing data; determining the first background projection vector of at least one preset cross-section corresponding to the design drawing data; determining the second background projection vector corresponding to each drawing fragment set based on the function vector; calculating the similarity between the first background projection vector and the second background projection vector; establishing a correspondence between the preset cross-section and the drawing fragment set based on the similarity calculation result; selecting any set of corresponding preset cross-sections and drawing fragment sets for deviation calculation; and outputting the deviation calculation result to determine the over- or under-excavation status of the tunnel based on the deviation calculation result. This application acquires point cloud data of the tunnel, establishes a set of drawing fragments of the tunnel, and simultaneously determines the background projection vector of the cross-section in the design drawings and the drawing fragments. By comparing the similarity of the two vectors, the correspondence between them is determined. After the correspondence is completed, the deviation of the cross-section at the same location can be calculated, thereby determining the over-excavation and under-excavation situation. This allows for efficient confirmation of over-excavation and under-excavation of the tunnel, simplifies the operation process, reduces labor costs, improves acceptance accuracy, and reduces waste and safety issues. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating an exemplary method provided in an embodiment of this application.
[0022] Figure 2 A schematic diagram of the structure of an exemplary device provided in an embodiment of this application.
[0023] Figure 3 This is a schematic diagram of the electronic device structure provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this specification clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0025] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element, object, or method step preceding the term covers the element, object, or method step listed after the term and its equivalents, without excluding other elements, objects, or method steps. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0026] As described in the background section, over-excavation and under-excavation in underground mine roadways refer to the following: using the roadway excavation outline on the design drawings as a reference, the cross-sectional outline obtained after construction is either outside the reference outline (over-excavation) or inside the reference outline (under-excavation). Both over-excavation and under-excavation can have adverse consequences for mine production. For example, over-excavation during mining not only leads to the waste of materials used for advanced support but also creates safety hazards in the support system. Under-excavation requires correction, resulting in rework and waste, and may involve secondary blasting, also raising safety concerns.
[0027] In related technologies, total stations are generally used to collect tunnel cross-section data (a total station is a high-precision measuring instrument that can measure parameters such as tunnel dimensions, inclination, and curvature). The total station is used to measure various parts of the tunnel, obtaining three-dimensional coordinate data of the cross-section, including the tunnel's plan and elevation information. Data is collected at common intervals, such as 3-5 meters, and then the cross-sections are connected and processed using 3D software such as MeshLab to create a visualized 3D model. This model is then used to assess whether over- or under-excavation of the tunnel is possible. The operation is relatively complex, difficult for construction personnel to master and operate, and the accuracy is relatively low, with granularity typically around 5 meters for sampling. Higher data acquisition precision would require significant manpower, resulting in a large overall workload for cross-section acquisition. Other related technologies propose methods for constructing 3D visualization digital models of tunnels based on tunnel data acquisition modules, tunnel data preprocessing modules, and tunnel 3D visualization model construction modules. The tunnel data acquisition module collects radar data, and the point cloud is processed using software such as Geomagic Studio to establish a 3D visualization digital model of the tunnel. However, no quality assessment is performed upon completion. In addition, the over-excavation and under-excavation analysis also requires manual intervention to obtain the tunnel cross-section, which increases the complexity of the operation and is not conducive to the mastery of construction personnel.
[0028] In light of the above-mentioned practical situation, this application provides a tunnel cross-section comparison scheme. This application acquires point cloud data of the tunnel, establishes a set of drawing fragments of the tunnel, and simultaneously determines the background projection vectors of the cross-sections in the drawing fragments and the design drawings. By comparing the vector similarity between the two, the correspondence between them is determined. After the correspondence is established, the deviation of the cross-sections at the same location can be calculated, thereby determining the over- or under-excavation situation. This allows for efficient confirmation of tunnel over- or under-excavation, simplifies the operation process, reduces labor costs, improves acceptance accuracy, and reduces waste and safety issues.
[0029] like Figure 1 The diagram shown is a flowchart illustrating a tunnel cross-section comparison method proposed in this application. Specifically, it includes: Step 101: Obtain point cloud data of the tunnel to be compared, obtain at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to the pre-trained spatial mapping model.
[0030] In this step, point cloud data can be obtained by scanning the tunnel using devices such as lidar. Lidar performs image imaging by emitting and receiving laser beams. In some embodiments, after emitting a laser beam to scan the surroundings, the lidar determines the distance by measuring the time difference and phase difference of the received laser signals, measures the angle by horizontal rotation scanning, and establishes a two-dimensional polar coordinate system based on these two parameters. Then, it obtains the three-dimensional height information by acquiring different pitch angle signals. High-frequency lasers can acquire a large amount of location point information (approximately 1.5 million) per second (called a point cloud), and use this information to perform three-dimensional modeling. The final image after three-dimensional modeling is the point cloud image or point cloud data. Here, point cloud data can be used to create a three-dimensional point cloud image of the tunnel to reflect the true physical space of the tunnel.
[0031] In this embodiment, the depth value reflects the maximum number of levels that any node can extend outwards. A node is a point in the point cloud data. For any given point, if the depth value is 0, it doesn't need to find its neighboring nodes; if the depth value is 1, it needs to find its nearest neighbor; if the depth value is 2, after finding its nearest neighbor, it needs to find the next level of neighboring nodes, and so on. For example, any node can be considered the top-level parent node in the tree structure. With a depth value of 1, it needs to find the next-level child nodes of that parent node; with a depth value of 2, after finding the next-level child nodes, it also needs to find the grandchild nodes of those child nodes, and so on. Therefore, the resulting drawing fragment set is a set of nodes composed of at least one node. Centered on any given node, and with the depth value as the expansion range, it searches for all neighboring nodes within the depth value range of that node in the point cloud data, thus forming the node set. The same node will generate multiple different drawing fragment sets based on different depth values.
[0032] Subsequently, after obtaining multiple sets of drawing fragments, in order to facilitate subsequent calculations, comparisons, and other processes, the sets of drawing fragments can be transformed into vectors. At this point, a trained spatial mapping model can be used to transform the point set into a high-dimensional vector.
[0033] In a specific embodiment, a collection of underground tunnel design drawings can be used. As input, for any one of the design drawings ,in express The set of all nodes in the drawing. It is the set of all its connected edges. Traverse it. All nodes Extract drawing fragment set using the maximum depth value D All drawing fragments are compiled into a "fragment table" containing all the drawing fragments. Then, the method for extracting the set of drawing fragments can be: Let ,in For the extracted set of drawing fragments, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, The preset depth value. If Then it is easy to conclude Otherwise (i.e.) ), can be set The set of adjacent nodes The fragment set with adjacent nodes at depth D-1 is then... ,in In point cloud data Any adjacent node of a node, and then In summary, we can conclude that By analogy, any depth can be obtained. The drawing fragment set. That is, in some embodiments, obtaining at least one drawing fragment set in the point cloud data with a preset depth value includes: in response to the preset depth value being greater than or equal to 1, determining the set of adjacent nodes of any node in the point cloud data, determining the fragment set of the adjacent node set when the preset depth value is reduced by 1, and repeating this process until the preset depth value is reduced to 0, thereby regressing to obtain the drawing fragment set. In some embodiments, determining the fragment set of the adjacent node set when the preset depth value is reduced by 1 specifically includes: ;in, For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, In point cloud data Any adjacent node of a node. The preset depth value.
[0034] Subsequently, in order to constrain the formulas proposed in the foregoing embodiments, in some embodiments, for a given drawing... and nodes We can maximize the R-value of the following predictions: ;in R is Point exists The one on the drawing is the most likely.
[0035] Furthermore, for the spatial mapping model, in some embodiments, the dimension of the high-dimensional space to be projected can be set to S, then the final output V is an S-dimensional vector. The model assumes L training iterations and sets a learning rate... Then the following training algorithm can be obtained: ; ; ; ; ; ; ; Where D is the maximum fragment depth, and through continuous iteration, the transformation function V from the design drawings and fragment drawings at each depth to the high-dimensional vector space can be obtained.
[0036] Step 102: Obtain design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and calculate the similarity between the first background projection vector and the second background projection vector.
[0037] In this step, after the point cloud data conversion is completed, the design drawing data can be obtained. This acquisition process can be completed before or simultaneously with step 101. The design drawing data refers to the preset tunnel planning drawing data, which can be 3D drawing data created by engineers using professional drawing software. To facilitate subsequent comparison, cross-sections of the planned tunnel can be extracted from the drawing data as preset cross-sections. Next, the background projection vector is the vectorized representation of background projection information. Background projection information refers to the surrounding environment information of a node in a drawing. Although there may be some deviations in coordinate positions between the measured point cloud drawing data and its corresponding design drawing of the underground tunnel, the basic structural features will not change significantly; otherwise, it would lead to a major construction accident. Therefore, if the background projection information of any node in the measured point cloud drawing is highly similar to that of a node in the design drawing, it is considered that they represent the same location, and the corresponding design attributes can be labeled for that measured node.
[0038] Furthermore, in some embodiments, the first background projection vector corresponding to the design drawing data and the second background projection vector corresponding to the drawing fragment set can be obtained first. Here, the drawing fragment set with a depth of D around node n mentioned in the embodiment of step 101 can be used. As its background projection information, the background projection vector (i.e. the second background projection vector) of any node n in the drawing fragment set can be obtained by using the algorithm described in the embodiment of step 101. Similarly, a similar calculation can be performed on the design drawing data, and the resulting background projection vector (i.e., the first background projection vector) is approximately the same as the aforementioned formula. That is, in some embodiments, the first background projection vector or the second background projection vector is specifically: ;in, It is either the first background projection vector or the second background projection vector. Let be the function vector. , For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, The preset depth value.
[0039] This method can then be used to calculate the design drawings separately. and measured drawings The set of background vectors for each node:
[0040] in This represents the set of m background vectors for node i in the design drawing. This represents the set of n background vectors for node j in the measured point cloud drawing.
[0041] After obtaining the background projection vector corresponding to the design drawing data and the second background projection vector corresponding to the set of drawing fragments, the distance between the two vectors can be determined by comparing the vectors, i.e., similarity comparison, thereby determining the correspondence between the design drawing data and the data in the set of drawing fragments. The method for performing the similarity comparison between the two vectors is not limited in this embodiment.
[0042] In a specific embodiment, the similarity between two background vector sets can be calculated using the following method:
[0043] in , A similarity threshold is set, and any point whose projected distance is less than this value is considered a valid similar background point. Furthermore, for any measured drawing node j, the background vector set of its corresponding design drawing node i should satisfy... ;in The set of nodes in the design drawings determines the correspondence between i and j. Through this correspondence, the measured point cloud data can be easily identified and segmented, simply by marking the corresponding attributes of the design data on the measured point cloud.
[0044] Step 103: Establish the correspondence between the preset cross section and the set of drawing fragments based on the similarity calculation results, and select any set of corresponding preset cross sections and the set of drawing fragments to perform deviation calculation.
[0045] In this step, based on the similarity calculation results from step 102, the correspondence between the design drawing data and the points or surfaces of the drawing fragment set can be determined. After the correspondence is completed, one or more sections can be selected in the 3D model of the tunnel for section data comparison, and the deviation between the corresponding preset section and the drawing fragment set can be calculated. In some embodiments, according to the tunnel acceptance standards, the dimensions of the measured section and the design section of the tunnel can be automatically measured and calculated by computer, enabling deviation comparison at any position and angle of the section, thereby determining whether the tunnel section construction at the acceptance location is qualified. A brief introduction to the algorithm for comparing the measured section and the design section: First, the degree of data alignment can be determined to ensure consistency in coordinates and scale. Specifically, in the established 3D coordinate system, ensure that the data of the tunnel design section (i.e., design drawing data) and the measured section (i.e., drawing fragment set) are spatially aligned to ensure consistency in coordinate system and scale. The tunnel is aligned using the centerline. Then, section comparison is performed, comparing the contour lines or surfaces of the tunnel design section and the measured section. In some embodiments, the Hu rectangular matching algorithm can be used to calculate the similarity or difference between two cross-sections. In other embodiments, the following specific comparison algorithm can be used: In a pre-established coordinate system, firstly, for a preset cross-section, its shape can be represented by a polygon, where the coordinates of each vertex are... There are n vertices in total; for the cross-section of the corresponding set of drawing fragments, its shape can also be represented by a polygon, where the coordinates of each vertex are... There are m vertices in total. Then, the coordinates of the preset cross-section and the set of drawing fragments can be represented by two coordinate matrices P and Q, where... ; Next, calculate the distance matrix between the two. , Then, consider the distance matrix. Summing yields a measure of difference. , This difference measure This can be used as the result of the deviation calculation. That is, in some embodiments, the step of selecting any set of corresponding preset cross-sections and drawing fragment sets for deviation calculation includes: establishing a planar coordinate system, generating coordinate matrices corresponding to the preset cross-sections and drawing fragment sets, calculating the distance matrix between the two coordinate matrices, calculating the difference metric based on the distance matrix, and determining the deviation calculation result based on the calculation result; the difference metric: ;in, The difference metric value, The coordinate matrix corresponding to the preset cross section. This is the coordinate matrix corresponding to the set of drawing fragments. ,in Let be the distance matrix.
[0046] Step 104: Output the deviation calculation results to determine the over- or under-excavation status of the roadway based on the deviation calculation results.
[0047] In this step, the deviation calculation results can be directly output for subsequent processes.
[0048] In some embodiments, a threshold judgment can be further performed to determine whether the current deviation calculation result is within an acceptable range. If it is, the over- or under-excavation situation is considered good; if it exceeds this range, the cross-section corresponding to the currently compared data set is considered to have a significant over- or under-excavation problem, requiring specific processing. That is, based on the threshold defined for the standard tunnel cross-section, the difference measurement value is judged to determine whether it is within an acceptable range, thus determining the similarity or consistency of the two cross-sections. Then, to facilitate viewing the specific over- or under-excavation situation at the cross-section, the corresponding preset cross-section and the cross-section of the drawing fragment set can be superimposed, and the superimposed image can be displayed. This allows the operator to intuitively observe the difference between the two, thereby determining the specific over- or under-excavation situation. Specifically, in some embodiments, the output deviation calculation result includes: determining a preset range threshold; determining whether the deviation calculation result exceeds the preset range threshold; in response to exceeding the preset range threshold, generating images of the corresponding preset cross-section and the drawing fragment set respectively, and superimposing the images according to the correspondence; and outputting the superimposed image.
[0049] Subsequently, in some embodiments, the output of the deviation calculation result may not be directly applied to subsequent processes; instead, it may be used to store, display, use, or further process the deviation calculation result. The specific output method for the deviation calculation result can be flexibly selected according to different application scenarios and implementation needs.
[0050] For example, in application scenarios where the method of this embodiment is executed on a single device, the deviation calculation result can be directly output on the display component (monitor, projector, etc.) of the current device, so that the operator of the current device can directly see the content of the deviation calculation result on the display component.
[0051] For example, in application scenarios where the method of this embodiment is executed on a system composed of multiple devices, the deviation calculation result can be sent to other preset devices within the system, i.e., synchronization terminals, as recipients, via any data communication method (wired connection, NFC, Bluetooth, Wi-Fi, cellular mobile network, etc.), so that the synchronization terminals can perform subsequent processing. Optionally, the synchronization terminal can be a preset server, which is generally located in the cloud and serves as a data processing and storage center, capable of storing and distributing the deviation calculation result; wherein, the recipients of the distribution are the terminal devices, such as the planner of the mine task plan, the mine owner, the production safety supervisor, the person in charge of actual mining, etc.
[0052] For example, in the application scenario where the method of this embodiment is executed on a system composed of multiple devices, the deviation calculation result can be directly sent to a preset terminal device through any data communication method. The terminal device can be one or more of the devices listed in the preceding paragraphs.
[0053] As can be seen from the above embodiments, the tunnel section comparison method provided in this application includes: acquiring point cloud data of the tunnel to be compared; acquiring at least one set of drawing fragments in the point cloud data with a preset depth value; determining the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model; acquiring design drawing data; determining the first background projection vector of at least one preset section corresponding to the design drawing data; determining the second background projection vector corresponding to each set of drawing fragments according to the function vector; calculating the similarity between the first background projection vector and the second background projection vector; establishing a correspondence between the preset section and the set of drawing fragments according to the similarity calculation result; selecting any set of corresponding preset sections and the set of drawing fragments for deviation calculation; and outputting the deviation calculation result to determine the over- or under-excavation status of the tunnel according to the deviation calculation result. This application acquires point cloud data of the tunnel, establishes a set of drawing fragments of the tunnel, and simultaneously determines the background projection vector of the cross-section in the design drawings and the drawing fragments. By comparing the similarity of the two vectors, the correspondence between them is determined. After the correspondence is completed, the deviation of the cross-section at the same location can be calculated, thereby determining the over-excavation and under-excavation situation. This allows for efficient confirmation of over-excavation and under-excavation of the tunnel, simplifies the operation process, reduces labor costs, improves acceptance accuracy, and reduces waste and safety issues.
[0054] It should be noted that the method in this application embodiment can be executed by a single device, such as a computer or server. The method in this application embodiment can also be applied in a distributed scenario, where multiple devices cooperate to complete the process. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this application embodiment, and the multiple devices will interact with each other to complete the method described.
[0055] It should be noted that the above description describes specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0056] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides a tunnel cross-section comparison device.
[0057] refer to Figure 2 The tunnel cross-section comparison device includes: The calculation module 210 is used to acquire point cloud data of the tunnel to be compared, acquire at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model.
[0058] The comparison module 220 is used to acquire design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and perform similarity calculation on the first background projection vector and the second background projection vector.
[0059] The deviation module 230 is used to establish the correspondence between the preset cross section and the set of drawing fragments based on the similarity calculation results, and to select any set of corresponding preset cross sections and the set of drawing fragments for deviation calculation.
[0060] The output module 240 is used to output the deviation calculation results to determine the over- or under-excavation status of the roadway based on the deviation calculation results.
[0061] In some embodiments, the computing module 210 is further configured to: In response to the preset depth value being greater than or equal to 1, the set of adjacent nodes of any node in the point cloud data is determined, and the set of fragments of the adjacent node set is determined when the preset depth value is reduced by 1. This process is repeated until the preset depth value is reduced to 0, and the set of drawing fragments is deduced in reverse order.
[0062] In some implementations, determining the set of adjacent nodes as the fragment set at the preset depth value minus 1 specifically involves:
[0063] in, For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, In point cloud data Any adjacent node of a node. The preset depth value.
[0064] In some implementations, the first background projection vector or the second background projection vector specifically refers to:
[0065] in, It is either the first background projection vector or the second background projection vector. Let be the function vector. , For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, The preset depth value.
[0066] In some embodiments, the deviation module 230 is further configured to: Establish a plane coordinate system, generate a preset section and drawing fragment set corresponding to each set, and the corresponding coordinate matrix. Calculate the distance matrix between the two coordinate matrices, calculate the difference metric value based on the distance matrix, and determine the deviation calculation result based on the calculation result. The difference metric:
[0067] in, The difference metric value, The coordinate matrix corresponding to the preset cross section. This is the coordinate matrix corresponding to the set of drawing fragments. ,in Let be the distance matrix.
[0068] In some embodiments, the output module 240 is further configured to: Determine a preset range threshold, and determine whether the deviation calculation result exceeds the preset range threshold; In response to exceeding the preset range threshold, images of the corresponding preset cross-section and drawing fragment set are generated respectively, and the images are superimposed according to the correspondence relationship; Output the superimposed image.
[0069] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing the embodiments of this application, the functions of each module can be implemented in one or more software and / or hardware.
[0070] The apparatus described above is used to implement the corresponding tunnel cross-section comparison method in the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0071] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the tunnel cross-section comparison method as described in any of the above embodiments.
[0072] Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0073] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0074] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0075] The input / output interface 1030 is used to connect input / output modules to realize information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0076] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0077] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0078] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0079] The electronic devices described above are used to implement the corresponding tunnel cross-section comparison method in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0080] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the tunnel cross-section comparison method as described in any of the above embodiments.
[0081] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, which can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0082] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the tunnel cross-section comparison method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0083] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or the processor to perform the tunnel cross-section comparison method. Corresponding to the execution entity for each step in each embodiment of the tunnel cross-section comparison method, the processor executing the corresponding step can belong to the corresponding execution entity.
[0084] The computer program product of the above embodiments is used to enable the computer and / or the processor to execute the tunnel cross-section comparison method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0085] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0086] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0087] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0088] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A method for comparing tunnel cross-sections, characterized in that, include: Obtain point cloud data of the tunnel to be compared, obtain at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model. Acquire design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and calculate the similarity between the first background projection vector and the second background projection vector. Based on the similarity calculation results, establish the correspondence between the preset cross section and the set of drawing fragments, and select any set of corresponding preset cross sections and the set of drawing fragments for deviation calculation; Output the deviation calculation results to determine the over- or under-excavation status of the roadway based on the deviation calculation results; The step of obtaining at least one set of drawing fragments from the point cloud data at a preset depth value includes: In response to the preset depth value being greater than or equal to 1, the set of adjacent nodes of any node in the point cloud data is determined, and the set of fragments of the adjacent node set is determined when the preset depth value is reduced by 1. This process is repeated until the preset depth value is reduced to 0, and the set of drawing fragments is deduced in reverse order. The process of determining the set of adjacent nodes as the fragment set at the preset depth value minus 1 specifically involves: in, For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, In point cloud data Any adjacent node of a node. The preset depth value.
2. The method according to claim 1, characterized in that, The first background projection vector or the second background projection vector is specifically: in, It is either the first background projection vector or the second background projection vector. Let be the function vector. , For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, The preset depth value.
3. The method according to claim 1, characterized in that, The step of selecting any set of corresponding preset sections and calculating the deviation between them and the set of drawing fragments includes: Establish a plane coordinate system, generate a preset section and drawing fragment set corresponding to each set, and the corresponding coordinate matrix. Calculate the distance matrix between the two coordinate matrices, calculate the difference metric value based on the distance matrix, and determine the deviation calculation result based on the calculation result. The difference metric: in, The difference metric value, The coordinate matrix corresponding to the preset cross section. This is the coordinate matrix corresponding to the set of drawing fragments. ,in Let be the distance matrix.
4. The method according to claim 1, characterized in that, The output deviation calculation results include: Determine a preset range threshold, and determine whether the deviation calculation result exceeds the preset range threshold; In response to exceeding the preset range threshold, images of the corresponding preset cross-section and drawing fragment set are generated respectively, and the images are superimposed according to the correspondence relationship; Output the superimposed image.
5. A tunnel cross-section comparison device, characterized in that, include: The calculation module is used to acquire point cloud data of the tunnel to be compared, acquire at least one set of drawing fragments in the point cloud data with a preset depth value, and determine the function vector corresponding to the set of drawing fragments according to a pre-trained spatial mapping model. The comparison module is used to acquire design drawing data, determine the first background projection vector of at least one preset section corresponding to the design drawing data, determine the second background projection vector corresponding to each set of drawing fragments according to the function vector, and perform similarity calculation on the first background projection vector and the second background projection vector. The deviation module is used to establish the correspondence between the preset cross section and the set of drawing fragments based on the similarity calculation results, and to select any set of corresponding preset cross sections and set of drawing fragments for deviation calculation; The output module is used to output the deviation calculation results, so as to determine the over- or under-excavation status of the roadway based on the deviation calculation results; The calculation module is specifically used for: In response to the preset depth value being greater than or equal to 1, the set of adjacent nodes of any node in the point cloud data is determined, and the set of fragments of the adjacent node set is determined when the preset depth value is reduced by 1. This process is repeated until the preset depth value is reduced to 0, and the set of drawing fragments is deduced in reverse order. The process of determining the set of adjacent nodes as the fragment set at the preset depth value minus 1 specifically involves: in, For the determined set of drawing fragments, For the corresponding point cloud data, , A collection of nodes in point cloud data. The set of connecting edges in point cloud data. For any node in the point cloud data, In point cloud data Any adjacent node of a node. The preset depth value.
6. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the method described in any one of claims 1 to 4.
8. A computer program product, characterized in that, It includes computer program instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Dynamic object processing method and system for scene three-dimensional reconstruction, equipment and medium
CN113808253A
Three-dimensional reconstruction method and device, computing equipment and storage medium
CN115953535A