Equipment structure segmentation method and system based on point cloud data and storage medium
Using a top-down approach to voxelize point cloud data, a multi-level parts hierarchy of power grid equipment is constructed, which solves the problems in updating and maintaining digital twin models and enables flexible changes and partial changes at the equipment part level. Updated to improve the efficiency of device management.
Patent Information
- Application Number
- CN202311697789.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-12
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult for existing digital twin models to effectively reflect changes in power grid equipment when updating and maintaining them. Particularly, there are challenges in partial update and management at the part level, resulting in inconvenient management of the real status and life cycle of the equipment.
Using a top-down approach, the point cloud data is processed through principal component analysis and voxelization, and the multi-level part hierarchy of the equipment is adaptively constructed to achieve automatic segmentation and synchronous updating of the equipment point cloud data.
It realizes flexible changes and partial updates of equipment part levels, supports fine management and full life cycle management of digital twin 3D models, and improves the update and storage efficiency of equipment models.
Smart Images

Figure CN118736166A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid technology, and in particular to a method, system and storage medium for device structure segmentation based on point cloud data. Background Art
[0002] The grid site cloud data quickly acquired by scanning is the foundation of the grid digital twin and automation construction, and is the key to achieving high-quality, high-authenticity dynamic full-factor supervision of complex grid environments. The ground-based 3D laser scanner uses the laser ranging method to efficiently acquire 3D data of the target area, so the automatic construction of the digital twin model based on laser point cloud data is of great significance in actual production.
[0003] Currently, digital twin models are almost all built manually. Once the model is built for the collected laser point cloud data, it is difficult to update. The three-dimensional model in the database cannot reflect the real ground objects after the changes, which is not conducive to the true representation of the current situation and the construction of technical collaborative service capabilities.
[0004] Breaking through the technical barriers between point cloud data and partial updates of existing models is the basic guarantee for the full life cycle and full factor management of digital twins. In practical applications, routine maintenance usually requires replacing some parts of the equipment rather than the entire equipment. Different parts have different lifespans and replacement cycles. Constructing a multi-level part hierarchy relationship of the equipment is crucial for the maintenance, update and life cycle management of digital twin 3D models.
[0005] Ground laser point cloud can capture the three-dimensional information of the surface of an object and is an important data source for applications such as three-dimensional reconstruction of substations and digital twins. After acquiring point cloud data through collection, a very important step is object component segmentation, which deconstructs and connects the unrelated points in the point cloud data according to semantic functional components to form functional components such as switches, transformers, cables, etc., providing a model base for fine three-dimensional reconstruction and digital twins. Object part segmentation helps users understand the structure and connection of the various functional components that make up an object in space. The spatial position and topological relationship of these functional components provide support for the refined management of the entire life cycle of the equipment and the analysis of holographic complex physical fields.
[0006] However, part-level object segmentation faces many challenges in practical applications in power grids, such as uneven point cloud density, complex and diverse part postures and shapes, lack of large amounts of labeled point cloud data available for AI training, and lack of part semantic data. Due to the high cost of acquisition, there is less available data, and labeled data is even rarer. Deep learning-based methods rely on large amounts of data for training, which limits their application in automatic modeling of power grid equipment. Summary of the invention
[0007] In response to the shortcomings of the prior art, the present application proposes a device structure segmentation method, system and storage medium based on point cloud data. The method adopts a top-down approach, and according to the natural distribution characteristics presented in the point cloud data, voxels are used to associate specific point data. On the basis of voxelized integer coordinates, the device point cloud data is adaptively segmented and a multi-level part hierarchy is synchronously constructed, which solves the problem of automatic construction of the hierarchical part structure of power grid equipment based on point cloud data.
[0008] In order to achieve the above purpose, the technical solution of this application is as follows:
[0009] A device structure segmentation method based on point cloud data includes the following steps S1-S6:
[0010] S1. Obtain point cloud data: obtain point cloud data of the device.
[0011] The point cloud data includes the surface point cloud data and internal point cloud data of the device.
[0012] S2. Voxelize the point cloud data: voxelize the point cloud data through principal component analysis to obtain voxelized point cloud data.
[0013] S3. Mark device voxels: Based on the voxelized point cloud data, mark the surface voxels and internal voxels occupied by the device.
[0014] S4. Establishing a queue of parts to be deconstructed and a tree-like hierarchical structure: Decomposing the voxels occupied by the device according to the voxel labels of the device, and establishing a queue of parts to be deconstructed and a tree-like hierarchical structure of the device.
[0015] S5. Segmentation of the parts to be deconstructed: According to the surface voxel distribution characteristics of the queue of parts to be deconstructed, the voxels of each part to be deconstructed are segmented respectively to obtain a plurality of sub-part voxel queues corresponding to each part to be deconstructed.
[0016] S6. Update tree hierarchy: update the tree hierarchy according to the sub-part voxel queue.
[0017] Optionally, step S2 includes the following steps S21-S24:
[0018] S21. Decentralize the point cloud data to obtain decentralized point cloud data.
[0019] S22. Calculate the covariance matrix of the decentralized point cloud data to obtain the eigenvectors and eigenvalues of the centralized point cloud data.
[0020] S23. Construct a linear transformation matrix based on the eigenvectors and eigenvalues to transform the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in a space aligned with the principal component analysis.
[0021] S24. voxelize the point cloud data in the new three-dimensional coordinate system to obtain voxelized point cloud data.
[0022] Optionally, step S21 includes the following steps S211-S212:
[0023] S211. Calculate the geometric center of the point cloud data.
[0024] S212: Convert the point cloud data from point coordinates to offset coordinates relative to the geometric center to obtain decentralized point cloud data.
[0025] Optionally, step S3 includes the following steps S31-S34:
[0026] S31 , respectively confirming the maximum value and the minimum value of the voxelized point cloud data on each coordinate axis of the new three-dimensional coordinate system.
[0027] S32. Determine the minimum rectangular parallelepiped space corresponding to the device in the new three-dimensional coordinate system according to the maximum value and the minimum value on each coordinate axis.
[0028] S33. Eliminate empty voxels one by one in the minimum cuboid space and search for voxels occupied by the device surface to obtain the surface voxels occupied by the device.
[0029] S34. Mark the remaining voxels in the minimum cuboid space as internal voxels.
[0030] Optionally, step S4 includes the following steps S41-S45:
[0031] S41. Create an initialized queue of parts to be deconstructed and a tree hierarchy.
[0032] S42. Calculate voxel distribution characteristics of the device according to the voxel label of the device.
[0033] S43. Segment the voxels occupied by the equipment according to voxel distribution characteristics to obtain parts to be deconstructed.
[0034] S44. Associating and updating the surface voxels and internal voxels of the part to be deconstructed to obtain the voxel properties of the part to be deconstructed.
[0035] S45. Update the initialized queue of parts to be deconstructed and the tree hierarchy structure according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy structure.
[0036] Optionally, step S5 includes the following steps S51-S55:
[0037] S51. Create and initialize a candidate segmentation surface queue, a non-hole surface block queue, and an isolated surface queue according to the surface voxels associated with each part to be deconstructed in the part to be deconstructed queue.
[0038] S52. According to the plane determination criteria, plane voxels are selected from the surface voxel set in the queue of parts to be deconstructed to construct a new plane; and according to the hole voxel attribute of the new plane, the new plane voxel is added to the candidate segmentation surface queue or the non-hole surface block queue.
[0039] S53. According to the connectivity judgment criterion, the curved surface voxels are selected from the remaining surface voxels in the queue of parts to be deconstructed, and the curved surface voxels are added to the queue of non-hole surface blocks.
[0040] S54. According to the isolation judgment criterion, isolated voxels are screened out from the remaining surface voxels in the queue of parts to be deconstructed, and the isolated voxels are added to the isolated surface queue.
[0041] S55. Sort the candidate segmentation surface queue according to the porosity.
[0042] Based on the same technical concept, the present application also provides a device structure segmentation system based on point cloud data, including:
[0043] The acquisition module is used to acquire the point cloud data of the device; the point cloud data includes the surface point cloud data and internal point cloud data of the device.
[0044] The processing module is used to voxelize the point cloud data through principal component analysis to obtain voxelized point cloud data; mark the surface voxels and internal voxels occupied by the device according to the voxelized point cloud data; decompose the voxels occupied by the device according to the voxel marks of the device, and establish the queue of parts to be deconstructed and the tree hierarchy of the device; divide the voxels of each part to be deconstructed according to the surface voxel distribution characteristics of the queue of parts to be deconstructed, and obtain a number of sub-part voxel queues corresponding to each part to be deconstructed; and update the tree hierarchy according to the sub-part voxel queues.
[0045] Optionally, the processing module is specifically used to perform decentralized processing on the point cloud data to obtain decentralized point cloud data; calculate the covariance matrix of the decentralized point cloud data to obtain the eigenvectors and eigenvalues of the centralized point cloud data; construct a linear transformation matrix based on the eigenvectors and eigenvalues to transform the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in a space aligned with the principal component analysis; voxelize the point cloud data in the new three-dimensional coordinate system to obtain voxelized point cloud data.
[0046] Optionally, the processing module is specifically used to calculate the geometric center of the point cloud data; convert the point cloud data from point coordinates to offset coordinates relative to the geometric center to obtain decentralized point cloud data.
[0047] Optionally, the processing module is specifically used to respectively confirm the maximum and minimum values of the voxelized point cloud data on each coordinate axis of the new three-dimensional coordinate system; determine the minimum rectangular space corresponding to the device in the new three-dimensional coordinate system based on the maximum and minimum values on each coordinate axis; eliminate empty voxels one by one in the minimum rectangular space and search for voxels occupied by the device surface to obtain the surface voxels occupied by the device; and mark the remaining voxels in the minimum rectangular space as internal voxels.
[0048] Optionally, the processing module is specifically used to create an initialized queue of parts to be deconstructed and a tree hierarchy; calculate the voxel distribution characteristics of the device based on the voxel label of the device; segment the voxels occupied by the device according to the voxel distribution characteristics to obtain the parts to be deconstructed; associate and update the surface voxels and internal voxels of the parts to be deconstructed to obtain the voxel properties of the parts to be deconstructed; update the initialized queue of parts to be deconstructed and the tree hierarchy according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy.
[0049] Optionally, the processing module is specifically used to create and initialize a candidate segmentation surface queue, a non-porous surface block queue and an isolated surface queue based on the surface voxels associated with each part to be deconstructed in the parts to be deconstructed queue; according to the plane judgment criterion, filter out plane voxels from the surface voxel set in the parts to be deconstructed queue to construct a new plane; and according to the pore voxel properties of the new plane, add the new plane voxel to the candidate segmentation surface queue or the non-porous surface block queue; according to the connectivity judgment criterion, filter out surface voxels from the remaining surface voxels in the parts to be deconstructed queue, and add the surface voxels to the non-porous surface block queue; according to the isolation judgment criterion, filter out isolated voxels from the remaining surface voxels in the parts to be deconstructed queue, and add the isolated voxels to the isolated surface queue; sort the candidate segmentation surface queue according to porosity.
[0050] Based on the same technical concept, the present application also provides a device structure segmentation storage medium based on point cloud data. When the computer-readable instructions are executed by one or more processors, one or more processors execute the steps in any of the above-mentioned device structure segmentation methods based on point cloud data.
[0051] The beneficial effects of the present application are as follows: the spatial distribution characteristics of surface voxels and internal voxel data with reference to the geometric center of the equipment are obtained through point cloud data, and the equipment voxel data is divided from top to bottom into a set of parts with a multi-level hierarchical relationship by utilizing the equipment voxel distribution characteristics. The multi-level part hierarchical relationship of the equipment is adaptively constructed, providing the digital twin three-dimensional model with flexible changes of parts and their combinations at any level such as equipment level, part level, sub-part level, etc., and also facilitating the part-level local update, transmission, storage and sharing of the substation equipment model. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 Schematic diagram of the process of device structure segmentation method based on point cloud data in an embodiment of the present application.
[0053] Figure 2 Schematic diagram of the structure of the device structure segmentation system based on point cloud data in an embodiment of the present application.
[0054] in, Figure 2 The figures in the figure are marked as: 1-acquisition module, 2-processing module. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, procedures, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, procedures, steps, operations, elements, components and / or groups thereof.
[0057] Figure 1 Flowchart of a device structure segmentation method based on point cloud data in some embodiments of the present application, such as Figure 1 As shown, the following steps S1-S6 may be included:
[0058] S1. Obtain point cloud data: obtain point cloud data of the device.
[0059] The point cloud data includes the surface point cloud data and internal point cloud data of the device.
[0060] Point cloud data refers to a set of vectors in a three-dimensional coordinate system. Scanning data is recorded in the form of points, each of which contains three-dimensional coordinates, and some may contain color information (RGB) or reflection intensity information (Intensity).
[0061] S2. Voxelize the point cloud data: voxelize the point cloud data through principal component analysis to obtain voxelized point cloud data.
[0062] Principal Component Analysis (PCA) is a data analysis method that is often used for dimensionality reduction of high-dimensional data. This application extracts the main characteristic components of point cloud data through principal component analysis.
[0063] In some implementations, step S2 includes the following steps S21-S24:
[0064] S21. Decentralize the point cloud data to obtain decentralized point cloud data.
[0065] Optionally, step S21 includes the following steps S211-S212:
[0066] S211, calculating the geometric center of the point cloud data;
[0067] S212: Convert the point cloud data from point coordinates to offset coordinates relative to the geometric center to obtain decentralized point cloud data.
[0068] That is, move the origin of the coordinate system of the point cloud dataset to its geometric center.
[0069] S22. Calculate the covariance matrix of the decentralized point cloud data to obtain the eigenvectors and eigenvalues of the centralized point cloud data.
[0070] S23. Construct a linear transformation matrix based on the eigenvectors and eigenvalues to transform the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in a space aligned with the principal component analysis.
[0071] S24. voxelize the point cloud data in the new three-dimensional coordinate system to obtain voxelized point cloud data.
[0072] According to the number of point cloud data points N, use Voxelize the voxel edge length; that is, establish the integer coordinates of the voxel (which is also the 3D index of the voxel where the point is located), add 0.5 voxel units to the coordinate value of the point and round it down to obtain the voxel coordinates to which the point belongs, and associate the point with the voxel with the corresponding coordinates.
[0073] After all points in the point cloud data are voxelized, each voxel is either empty or occupied by one or more points. The point set associated with the voxel contains the original point coordinate value and the integer voxel coordinate value.
[0074] S3. Mark device voxels: Based on the voxelized point cloud data, mark the surface voxels and internal voxels occupied by the device.
[0075] In some implementations, step S3 includes the following steps S31-S34:
[0076] S31 , respectively confirming the maximum value and the minimum value of the voxelized point cloud data on each coordinate axis of the new three-dimensional coordinate system.
[0077] S32. Determine the minimum rectangular parallelepiped space corresponding to the device in the new three-dimensional coordinate system according to the maximum value and the minimum value on each coordinate axis.
[0078] Since the device is irregular, we first determine the approximate regular shape of the device in the new three-dimensional coordinate system. According to the maximum value max() and minimum value min() corresponding to each coordinate axis (x, y, z) of the device in the new three-dimensional coordinate system, we virtualize the smallest regular rectangular space that can accommodate the device in the new three-dimensional coordinate system.
[0079] S33. Eliminate empty voxels one by one in the minimum cuboid space and search for voxels occupied by the device surface to obtain the surface voxels occupied by the device.
[0080] From the maximum value max() and the minimum value min() of the integer voxel coordinates on each coordinate axis, search for the voxels occupied by the device surface voxels by voxel toward the center of the minimum rectangular space: (1) If the current voxel is empty, then the voxel is an empty voxel outside the device and is removed and marked as {flag = -1}; move the current voxel one unit toward the center of the axis and return to step (1) and repeat the process until the current voxel contains at least one point (or min()>=max(), which means that there is no device data on the current search scan line and no processing is performed), and mark the voxel as the device surface {flag = 1}.
[0081] S34. Mark the remaining voxels in the minimum cuboid space as internal voxels.
[0082] Empty voxels outside the device are eliminated to obtain a surface voxel set {flag=1}, and the remaining voxels are marked as device internal voxels {flag=0}.
[0083] All voxels of the device are marked: device surface {flag = 1}, device interior {flag = 0}, and excluded voxels outside the device {flag = -1}. The voxels occupied by the device are organized using sets, including: surface voxel sets Internal voxel collection
[0084] S4. Establishing an initialized queue of parts to be deconstructed and a tree-like hierarchical structure: decomposing the voxels occupied by the device according to the markings of the surface voxels and internal voxels occupied by the device, and establishing a queue of parts to be deconstructed and a tree-like hierarchical structure of the device.
[0085] In some implementations, step S4 includes the following steps S41-S45:
[0086] S41. Create an initialized queue of parts to be deconstructed and a tree hierarchy.
[0087] Create a queue Q of parts to be deconstructed part , initially empty. Create a tree hierarchy T, initially with the root node and no child nodes.
[0088] S42. Calculate voxel distribution characteristics of the device according to the voxel label of the device.
[0089] The surface voxels and internal voxels occupied by the device are projected onto the PCA principal axis (such as the x-axis) and counted to form a histogram-like voxel distribution, with each voxel distribution feature bin i The number of surface voxels and interior voxels of the projections were recorded.
[0090] S43. Segment the voxels occupied by the equipment according to voxel distribution characteristics to obtain parts to be deconstructed.
[0091] Specifically include: (1) If there is no voxel distribution feature bin i =0, then select the smallest one and calculate the value according to min(bin i ) Obtain the segmentation surface x = i; the equipment can be decomposed into two level 1 parts: respectively assigned with a mark i∈[0,1]; (2) If there are m voxel distribution feature bins i = 0, m segmentation faces are obtained, and the equipment can be decomposed into (m+1) level 1 parts: each of them is marked i∈[0,m].
[0092] S44. Associating and updating the surface voxels and internal voxels of the part to be deconstructed to obtain the voxel properties of the part to be deconstructed.
[0093] Update parts to be deconstructed Voxel properties of: surface voxel set Internal voxel set According to the device's segmentation surface, each segmentation surface is used to segment the voxels occupied by the device in turn, and the surface voxel set S skin and the internal voxel set S body , associate and update each part to be deconstructed Associated surface voxel set Internal voxel set
[0094] S45. Update the initialized queue of parts to be deconstructed and the tree hierarchy structure according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy structure.
[0095] Specifically include: (1) Update the initialized queue Q of parts to be deconstructed part : The (m+1) parts to be deconstructed obtained in step S43 i∈[0,m] is inserted into Q part (2) Update the initialized tree hierarchy T: for the (m+1) parts to be deconstructed obtained in step S43 i∈[0,m], creates m+1 child nodes for the root node, each of which points to the corresponding part to be deconstructed
[0096] S5. Segmentation of the parts to be deconstructed: According to the surface voxel distribution characteristics of the queue of parts to be deconstructed, the voxels of each part to be deconstructed are segmented respectively to obtain a plurality of sub-part voxel queues corresponding to each part to be deconstructed.
[0097] For each to-be-deconstructed part in the to-be-deconstructed parts queue, the voxel distribution characteristics in the associated surface voxel set are analyzed, and the candidate segmentation surface queue and voxel attributes corresponding to the to-be-deconstructed part are established and updated.
[0098] Specifically, if the queue of parts to be deconstructed Q part If it is not empty, iterate over each element in the queue. (where k represents the level of the part to be deconstructed, and i represents the serial number of the part to be deconstructed in level k).
[0099] In some implementations, step S5 includes the following steps S51-S55:
[0100] S51. Create and initialize a candidate segmentation surface queue, a non-hole surface block queue, and an isolated surface queue according to the surface voxels associated with each part to be deconstructed in the part to be deconstructed queue.
[0101] S52, according to the plane determination criteria, from the surface voxel set of the queue of parts to be deconstructed Plane voxels are screened out to construct a new plane; and according to the hole voxel attributes of the new plane, the new plane voxels are added to the candidate segmentation surface queue or the non-hole surface block queue.
[0102] Planar surface voxels are collected from the surface voxels of the queue of parts to be deconstructed After screening out, these plane surface voxels are removed from the surface voxel set Eliminate from.
[0103] Optionally, step S52 includes the following steps S521-S522:
[0104] S521. Calculate the hole properties of the new plane.
[0105] Specifically, it refers to using the scan line search method on the plane to calculate whether the new plane contains holes and the properties of the holes, including:
[0106] (1) A non-porous planar block consisting entirely of surface voxels ({flag=1}).
[0107] (2) For a plane block with a hole, further processing according to the voxel attributes in the hole includes:
[0108] (a) The hole is composed entirely of internal voxels ({flag=0}), go to step S522.
[0109] (b) If there are holes composed of external voxels (marked with {flag=-1}), the new plane is divided into multiple new planes along these external voxels adjacent to the surface voxels, and go to step S402-1 to continue updating the hole properties of the plane until the hole properties of the surface are either hole-free or completely composed of internal voxels.
[0110] S522: Update the candidate segmentation surface queue according to the hole attributes of the new plane Or a queue of non-porous surface blocks
[0111] Specifically include: (1) No holes, the new plane is added to the queue of no hole surface blocks (2) If there is a hole, the new plane is a candidate segmentation surface and is added to the candidate segmentation surface queue.
[0112] S53, according to the connectivity judgment criterion, from the surface voxel set of the queue of parts to be deconstructed The curved surface voxels are screened out from the remaining surface voxels, and the curved surface voxels are added to the queue of the non-hole surface blocks.
[0113] Surface voxel set The remaining elements of the set are selected from the surface voxels that are adjacent to the internal voxels and connected according to the connectivity criterion. They are usually curved surfaces. These voxels are removed from the , and the new surface formed by them is added to the queue of non-hole surface blocks
[0114] S54, according to the isolation criterion, from the surface voxel set of the part queue to be deconstructed Isolated voxels are screened out from the remaining surface voxels and added to the isolated surface queue.
[0115] Surface voxel set The remaining elements are separated from the surface voxel set according to the isolation criterion, that is, they are either isolated voxels or hanging linear connected voxel sets that are not adjacent to internal voxels. Move to the remaining surface voxel queue
[0116] Repeat the above steps S52 to S54 until the part object to be deconstructed is The associated surface voxel set If it is empty, the part to be deconstructed will be decomposed into several types of sub-parts.
[0117] S55. Sort the candidate segmentation surface queue according to the porosity.
[0118] The specific steps include:
[0119] (1) Calculate candidate segmentation surface queue The porosity of each planar block is H / L, where H is the diagonal length of the bounding box of the internal voxel subset corresponding to the hole; L is the diagonal length of the bounding box of the planar block.
[0120] (2) According to the porosity H / L, the candidate segmentation surface queue is Sort from smallest to largest.
[0121] At this point, each part to be deconstructed in the queue of parts to be deconstructed The associated voxel properties P are:
[0122] (a) Internal voxel set (voxel is marked as {flag=0});
[0123] (b) Candidate segmentation surface queue
[0124] (c) Non-porous surface block queue
[0125] (d) Other surface voxels (including isolated points and linear surfaces)
[0126] S6. Update tree hierarchy: update the tree hierarchy according to the sub-part voxel queue.
[0127] The equipment or parts are divided into sub-parts cyclically, and the resulting tree hierarchy T records the hierarchical structure of the multi-level sub-parts of the equipment from the root to the leaf node. The leaf nodes are parts, and the non-leaf nodes are hierarchical relationships.
[0128] Initialize the number of sub-parts, and set the number of identified sub-parts M = 0. If the queue of parts to be deconstructed Q part If it is empty, the algorithm ends, otherwise, execute the following steps:
[0129] S61, take the i-th part to be deconstructed Candidate split face queue The first element of the team (out of the team), using the split surface Perform a split on the first element of the team to obtain the sub-parts of the first element of the team.
[0130] Parts that will be at level k Deconstructed into 2 k+1 level parts, and
[0131] S62. Update the voxel properties associated with the sub-parts of the first element.
[0132] Update the first element sub-part and The associated voxel attributes. Specifically include: using the segmentation surface The voxels on the plane are constructed with the normal vector N, The voxels in the associated voxel attribute queue are projected onto N. According to the projected sign, the associated voxel attribute queue is split and the voxel attributes of the sub-parts are updated. The queue data of the associated voxel attribute P includes:
[0133] (a) Internal voxel set (voxel is marked as {flag=0});
[0134] (b) Candidate segmentation face queue
[0135] (c) Non-porous surface block queue
[0136] (d) Other surface voxels (including isolated points and linear surfaces)
[0137] S63, if the sub-part Candidate split face queue If it is not empty, it is a new part to be deconstructed and is inserted into the queue of parts to be deconstructed Q part The end of the team; for the new parts to be deconstructed For parts Create a child node that points to the corresponding newly queued child part Updates the tree hierarchy T.
[0138] If the k+1th level sub-part Candidate split face queue If it is empty, the segmentation ends and the number of identified sub-parts is updated, M=M+1.
[0139] If M is less than the number of sub-parts specified by the user, or the number of levels K of the hierarchical structure tree T is less than the number of levels specified by the user, go to step S61 and repeat S61-S63. At this point, according to the distribution characteristics of the data set itself, the hierarchical structure relationship from equipment to multi-level sub-parts that meets the user's needs is automatically obtained.
[0140] In the above embodiment, the spatial distribution characteristics of surface voxels and internal voxel data with reference to the geometric center of the equipment are obtained through point cloud data. The equipment voxel distribution characteristics are used to divide the equipment voxel data from top to bottom into a set of parts with a multi-level hierarchical relationship, and the multi-level part hierarchical relationship of the equipment is adaptively constructed. The digital twin three-dimensional model is provided with flexible changes of parts and their combinations at any level, such as equipment level, part level, sub-part level, etc., and it also facilitates the part-level local update, transmission, storage and sharing of the substation equipment model.
[0141] Based on the same technical concept, the present application also provides a device structure segmentation system based on point cloud data, which can be used for device multi-layer structure segmentation based on point cloud data. Figure 1 The steps of the method for device structure segmentation based on point cloud data executed in the corresponding embodiment. The functions implemented by the system can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware. Figure 2 As shown, the system includes an acquisition module 1 and a processing module 2. The functions of the processing module 2 and the acquisition module 1 can be realized by referring to Figure 1 The operations performed in the corresponding embodiments are not described in detail here. The processing module 2 can be used to control the sending and receiving operations of the acquisition module 1 .
[0142] The acquisition module 1 is used to acquire the point cloud data of the device; the point cloud data includes the surface point cloud data and the internal point cloud data of the device.
[0143] Processing module 2 is used to voxelize the point cloud data through principal component analysis to obtain voxelized point cloud data; mark the surface voxels and internal voxels occupied by the device according to the voxelized point cloud data; decompose the voxels occupied by the device according to the voxel marks of the device, and establish a queue of parts to be deconstructed and a tree hierarchy of the device; divide the voxels of each part to be deconstructed according to the surface voxel distribution characteristics of the queue of parts to be deconstructed, and obtain a number of sub-part voxel queues corresponding to each part to be deconstructed; and update the tree hierarchy according to the sub-part voxel queues.
[0144] In some embodiments, the processing module 2 is specifically used to perform decentralized processing on the point cloud data to obtain decentralized point cloud data; calculate the covariance matrix of the decentralized point cloud data to obtain the eigenvectors and eigenvalues of the centralized point cloud data; construct a linear transformation matrix based on the eigenvectors and eigenvalues to transform the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in a space aligned with the principal component analysis; voxelize the point cloud data in the new three-dimensional coordinate system to obtain voxelized point cloud data.
[0145] In some implementations, the processing module 2 is specifically used to calculate the geometric center of the point cloud data; convert the point cloud data from point coordinates to offset coordinates relative to the geometric center to obtain decentralized point cloud data.
[0146] In some embodiments, the processing module 2 is specifically used to respectively confirm the maximum and minimum values of the voxelized point cloud data on each coordinate axis of the new three-dimensional coordinate system; determine the minimum rectangular space corresponding to the device in the new three-dimensional coordinate system based on the maximum and minimum values on each coordinate axis; eliminate empty voxels one by one in the minimum rectangular space and search for voxels occupied by the device surface to obtain the surface voxels occupied by the device; and mark the remaining voxels in the minimum rectangular space as internal voxels.
[0147] In some embodiments, the processing module 2 is specifically used to create an initialized queue of parts to be deconstructed and a tree hierarchy; calculate the voxel distribution characteristics of the device based on the voxel label of the device; segment the voxels occupied by the device according to the voxel distribution characteristics to obtain the parts to be deconstructed; associate and update the surface voxels and internal voxels of the parts to be deconstructed to obtain the voxel properties of the parts to be deconstructed; update the initialized queue of parts to be deconstructed and the tree hierarchy according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy.
[0148] In some embodiments, the processing module 2 is specifically used to create and initialize a candidate segmentation surface queue, a non-porous surface block queue, and an isolated surface queue based on the surface voxels associated with each part to be deconstructed in the parts to be deconstructed queue; according to the plane judgment criterion, plane voxels are screened out from the surface voxel set in the parts to be deconstructed queue to construct a new plane; and according to the pore voxel attributes of the new plane, the new plane voxels are added to the candidate segmentation surface queue or the non-porous surface block queue; according to the connectivity judgment criterion, surface voxels are screened out from the remaining surface voxels in the parts to be deconstructed queue, and the surface voxels are added to the non-porous surface block queue; according to the isolation judgment criterion, isolated voxels are screened out from the remaining surface voxels in the parts to be deconstructed queue, and the isolated voxels are added to the isolated surface queue; and the candidate segmentation surface queue is sorted according to the porosity.
[0149] In the above embodiment, the spatial distribution characteristics of surface voxels and internal voxel data with reference to the geometric center of the equipment are obtained through point cloud data. The equipment voxel distribution characteristics are used to divide the equipment voxel data from top to bottom into a set of parts with a multi-level hierarchical relationship, and the multi-level part hierarchical relationship of the equipment is adaptively constructed. The digital twin three-dimensional model is provided with flexible changes of parts and their combinations at any level, such as equipment level, part level, sub-part level, etc., and it also facilitates the part-level local update, transmission, storage and sharing of the substation equipment model.
[0150] Based on the same technical concept, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device structure segmentation method based on point cloud data in the above-mentioned embodiments.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM) and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0152] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the inspiration of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims. All equivalent structures or equivalent process changes made using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, are protected by the present application.
Claims
1. A device structure segmentation method based on point cloud data, characterized in that: The process comprises the following steps S1-S6: S1. Obtaining point cloud data of the device; the point cloud data includes surface point cloud data and internal point cloud data of the device; S2, voxelizing the point cloud data through principal component analysis to obtain voxelized point cloud data; S3, marking the surface voxels and internal voxels occupied by the device according to the voxelized point cloud data; S4. Decompose the voxels occupied by the device according to the voxel labels of the device, and establish a queue of parts to be deconstructed and a tree hierarchy structure of the device; S5. According to the surface voxel distribution characteristics of the queue of parts to be deconstructed, the voxels of each part to be deconstructed are respectively divided to obtain a plurality of sub-part voxel queues corresponding to each part to be deconstructed; S6. Update the tree hierarchy according to the sub-part voxel queue.
2. The device structure segmentation method based on point cloud data according to claim 1, characterized in that: Step S2 includes the following steps S21-S24: S21, performing decentralized processing on the point cloud data to obtain decentralized point cloud data; S22, calculating the covariance matrix of the decentralized point cloud data, and obtaining the eigenvectors and eigenvalues of the centralized point cloud data; S23, constructing a linear transformation matrix according to the eigenvectors and eigenvalues, and transforming the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in a space aligned with the principal component analysis; S24. voxelize the point cloud data in the new three-dimensional coordinate system to obtain voxelized point cloud data.
3. The device structure segmentation method based on point cloud data according to claim 2, characterized in that: Step S21 includes the following steps S211-S212: S211, calculating the geometric center of the point cloud data; S212: Convert the point cloud data from point coordinates to offset coordinates relative to the geometric center to obtain decentralized point cloud data.
4. The device structure segmentation method based on point cloud data according to claim 1, characterized in that: Step S3 includes the following steps S31-S34: S31, respectively confirming the maximum value and the minimum value of the voxelized point cloud data on each coordinate axis of the new three-dimensional coordinate system; S32, determining the minimum cuboid space corresponding to the device in the new three-dimensional coordinate system according to the maximum value and the minimum value on each coordinate axis; S33, eliminating empty voxels one by one in the minimum cuboid space and searching for voxels occupied by the device surface to obtain the surface voxels occupied by the device; S34. Mark the remaining voxels in the minimum cuboid space as internal voxels.
5. The device structure segmentation method based on point cloud data according to claim 1, characterized in that: Step S4 The process comprises the following steps S41-S45: S41, creating an initialized queue of parts to be deconstructed and a tree hierarchy; S42, calculating voxel distribution characteristics of the device according to the voxel label of the device; S43, segmenting the voxels occupied by the equipment according to the voxel distribution characteristics to obtain the parts to be deconstructed; S44, associating and updating the surface voxels and internal voxels of the part to be deconstructed to obtain the voxel properties of the part to be deconstructed; S45. Update the initialized queue of parts to be deconstructed and the tree hierarchy structure according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy structure.
6. The device structure segmentation method based on point cloud data according to claim 1, characterized in that: Step S5 The process comprises the following steps S51-S55: S51, creating and initializing a candidate segmentation surface queue, a non-hole surface block queue, and an isolated surface queue according to the surface voxels associated with each to-be-deconstructed part in the to-be-deconstructed parts queue; S52, according to the plane determination criterion, plane voxels are selected from the surface voxel set in the queue of parts to be deconstructed to construct a new plane; and according to the hole voxel attribute of the new plane, the new plane voxel is added to the candidate segmentation surface queue or the non-hole surface block queue; S53, according to the connectivity judgment criterion, selecting curved surface voxels from the remaining surface voxels in the queue of parts to be deconstructed, and adding the curved surface voxels to the queue of non-hole surface blocks; S54, according to the isolation determination criterion, screening out isolated voxels from the remaining surface voxels in the queue of parts to be deconstructed, and adding the isolated voxels to the isolated surface queue; S55. Sort the candidate segmentation surface queue according to the porosity.
7. A device structure segmentation system based on point cloud data, characterized in that: include: Acquisition module, used to acquire point cloud data of the device; The point cloud data includes the surface point cloud data and internal point cloud data of the device; The processing module is used to voxelize the point cloud data through principal component analysis to obtain voxelized point cloud data; mark the surface voxels and internal voxels occupied by the device according to the voxelized point cloud data; decompose the voxels occupied by the device according to the voxel marks of the device, and establish the queue of parts to be deconstructed and the tree hierarchy of the device; divide the voxels of each part to be deconstructed according to the surface voxel distribution characteristics of the queue of parts to be deconstructed, and obtain a number of sub-part voxel queues corresponding to each part to be deconstructed; and update the tree hierarchy according to the sub-part voxel queues.
8. The device structure segmentation system based on point cloud data according to claim 7, characterized in that: The processing module is specifically used to perform decentralized processing on the point cloud data to obtain decentralized point cloud data; calculate the covariance matrix of the decentralized point cloud data to obtain the eigenvector and eigenvalue of the centralized point cloud data; According to the eigenvectors and eigenvalues, a linear transformation matrix is constructed to transform the point cloud data from the original three-dimensional coordinate system to a new three-dimensional coordinate system in the space aligned with the principal component analysis; The point cloud data in the new three-dimensional coordinate system is voxelized to obtain voxelized point cloud data.
9. The device structure segmentation system based on point cloud data according to claim 7, characterized in that: The processing module is specifically used to create an initialized queue of parts to be deconstructed and a tree hierarchy; calculate the voxel distribution characteristics of the device according to the voxel label of the device; divide the voxels occupied by the device according to the voxel distribution characteristics to obtain the parts to be deconstructed; associate and update the surface voxels and internal voxels of the parts to be deconstructed to obtain the voxel properties of the parts to be deconstructed; update the initialized queue of parts to be deconstructed and the tree hierarchy according to the parts to be deconstructed to obtain the queue of parts to be deconstructed and the tree hierarchy.
10. A storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the steps in the device structure segmentation method based on point cloud data as described in any one of claims 1 to 6.
