A data-driven large-scale garden scene point cloud object progressive discovery method
By using a data-driven approach and leveraging object detection, foreground/background segmentation, and recognition networks, the point cloud of the garden is gradually cropped and segmented, solving the difficulty of object discovery in garden scenes and achieving efficient and accurate object recognition.
Patent Information
- Application Number
- CN202310886083.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-19
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-19
AI Technical Summary
Discovering objects in garden scenes is difficult, and existing methods face challenges in terms of storage space and information loss, making it difficult to accurately identify the location and category of objects.
A data-driven approach is adopted, which uses an object detection network to generate bounding boxes, a foreground/background segmentation network, and an object recognition network to progressively crop and segment garden point clouds, thereby achieving progressive object discovery.
It reduces computational overhead, preserves 3D information, captures more detailed structural features, and improves the accuracy and efficiency of object recognition.
Smart Images

Figure CN117115338B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of 3D computer vision, specifically relating to a data-driven method for progressive discovery of point cloud objects in large-scale garden scenes. Background Technology
[0002] Scene object discovery aims to locate objects in a scene from the scene point cloud and assign category labels to the objects. garden Forest scenes are a rather special type of scene, with a large number of objects and blurred boundaries between them. Furthermore, some object categories are irregular and exhibit significant differences between categories. Identifying valuable objects from such point clouds remains a challenging problem.
[0003] Existing scene object discovery methods can be divided into point-based, voxel-based, and view-based methods. Point-based methods operate directly on the point set, such as in reference 1: Shi S, Wang X, Li H. Pointrcnn: 3d object proposal generation and detection from point cloud[C] / / Proceedings of the IEEE / CVF conference on computer vision and pattern recognition. 2019: 770-779.; and reference 2: Ali W, Abdelkarim S, Zidan M, et al. Yolo3d: End-to-end real-time3d oriented object bounding box detection from lidar point cloud[C] / / Proceedings of the European conference on computer vision (ECCV) workshops.2018: 0-0. By extracting point-by-point features and feeding them into the subsequent task head, object discovery is achieved. However, due to the extremely large number of scene point clouds, the extraction of point-by-point features would generate a huge amount of storage space, which is often impractical in practical applications.View-based methods, such as Literature 3: Zhou Y, Sun P, Zhang Y, et al. End-to-end multi-view fusion for 3d object detection in lidar point clouds[C] / / Conference on RobotLearning. PMLR, 2020: 923-932.; Literature 4: Meyer GP, Laddha A, Kee E, et al.Lasernet: An efficient probabilistic 3d object detector for IEEE, 2018: 3517-3523.; Reference 6: Chinese Patent CN114202546A, “A Garden Image Quantization Method Based on Semantic Segmentation”; Reference 7: Chinese Patent CN114926637A, “A Garden Map Construction Method Based on Multi-Scale Distance Map and Point Cloud Semantic Segmentation”. Both projects point clouds onto multiple views and uses a two-dimensional processing network to extract features and objects. However, due to the unclear boundaries between objects in the garden scene, occlusion and self-occlusion will cause huge information loss in the projection. The loss of information means that the algorithm cannot accurately find the location of the objects.Voxel-based methods, such as those in reference 8: Zhou Y, Tuzel O. Voxelnet: End-to-end learning for point cloud-based 3D object detection[C] / / Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 4490-4499, first convert the point cloud into voxels, then process the voxelized scene using sparse convolution, and finally use a 3D recognition head to detect objects. However, these methods require providing accurate bounding box information of objects during the detection stage. Considering the relatively complex composition of garden scenes, directly providing accurate bounding boxes of objects may not be feasible. Summary of the Invention
[0004] Purpose of the invention: The technical problem to be solved by this invention is the difficulty in discovering objects in garden scenes. It proposes a data-driven, large-scale garden scene point cloud object progressive discovery method, including the following steps:
[0005] Step 1: Build an object detection network. Input the garden point cloud into the object detection network to generate bounding boxes of the objects. Then, crop out the object point cloud based on the bounding boxes to obtain the object point cloud of each bounding box.
[0006] Step 2: Build a foreground / background segmentation network. Input the point cloud of each bounding box into the foreground / background segmentation network to obtain the foreground point cloud.
[0007] Step 3: Build an object recognition network and input the foreground point cloud into the object recognition network to obtain the garden scene point cloud objects;
[0008] Step 4: Repeat steps 2 and 3 until all bounding box object point clouds have been processed, completing the discovery of point cloud objects in the garden scene.
[0009] Furthermore, step 1 includes the following steps:
[0010] Step 1-1, for an input garden point cloud Where N is the number of points, and each point contains XYZ coordinate information and RGB color information, totaling 6 dimensions. First, based on the voxel size... Convert it into garden voxels , These are the width, height, and length of the garden voxel, and each voxel contains RGB color information in a total of 3 dimensions, v > 0;
[0011] Steps 1-2: Construct an object detection network, which includes a voxel feature extraction network. and bounding box generation network ;
[0012] Steps 1-3: Train the object detection network using the object detection dataset;
[0013] Steps 1-4, for a garden element First, it is input into the voxel feature extraction network. To obtain the characteristics of garden elements ,in The first is the number of channels for the garden voxel features, C1 ≥ 32; secondly, the garden voxel features... Input bounding box generation network Get the bounding box of the garden objects ,in This represents the number of bounding boxes. 9 indicates the number of bounding box attributes. The first three dimensions are the coordinates of the center point of the bounding box, the middle three dimensions are the width, height, and length of the bounding box, and the last three dimensions are the rotation angle of the bounding box. For each bounding box... , 1 ≤ i ≤ n bb Based on the nine attributes of the bounding box, from the garden point cloud Cutting point cloud of garden objects cut out from the middle ,in Indicates the first The object within the bounding box.
[0014] Furthermore, step 2 includes the following steps:
[0015] Step 2-1: Construct a foreground / background segmentation network, which sequentially includes a first point cloud feature extraction network. and foreground / background prediction networks ;
[0016] Step 2-2: Train the foreground / background segmentation network using the foreground / background segmentation dataset. The foreground / background segmentation network only needs to be trained once.
[0017] Steps 2-3: Crop the point cloud Input the first point cloud feature extraction network Obtain point-by-point features ,in, It refers to the number of points in the cropped point cloud; It is the number of feature channels for cropping point clouds, c p ≥ 32; Point-by-point features Input foreground / background prediction network Obtain the foreground confidence of each point ; All prospects with a confidence level greater than Extracting the points yields the foreground cloud. ,in It refers to the number of attractions. .
[0018] Furthermore, step 3 includes the following steps:
[0019] Step 3-1: Construct an object recognition network, which includes a second point cloud feature extraction network. and object classification networks ;
[0020] Step 3-2: Train the object recognition network using the object recognition dataset. The object recognition network only needs to be trained once.
[0021] Step 3-3, add the foreground cloud Input the second point cloud feature extraction network Obtain foreground cloud features Use average pooling to extract foreground cloud features Compressed into foreground cloud vector , will the foreground point cloud vector Input object classification network Get the object category.
[0022] Furthermore, the voxelization in step 1-1 includes the following steps:
[0023] Step 1-1-1, calculate the width, height, and length of the garden voxels:
[0024]
[0025]
[0026]
[0027] In this context, int(⋅) represents rounding down, max(⋅) represents taking the maximum value, min(⋅) represents taking the minimum value, and [:] represents indexing.
[0028] Step 1-1-2, for the first Individual blocks , 0 ≤ i v ≤ W-1, 0≤ j v ≤ H-1, 0 ≤ k v ≤ D-1, determine the three-dimensional spatial extent it encloses. The calculation method is as follows:
[0029]
[0030]
[0031] Step 1-1-3, calculate within this three-dimensional space range Index of points within Calculate the index The process is as follows: First, index Initialize to an empty list, for each line ,if Then join in In the middle; after traversal For each row in the array, obtain the index. ;
[0032] Based on the index value By taking a point from the middle, we obtain the voxel sub-point. , where m represents the number of voxel points;
[0033] Step 1-1-4, aggregate pixel points, obtain the RGB values of the voxel block, including if If the result is positive, skip the voxel block; otherwise, perform the following operations on the voxel sub-points to obtain the RGB values of the voxel block:
[0034]
[0035] in Indicates retrieving the matrix Columns 4 to 6;
[0036] Step 1-1-5: Repeat steps 1-1-2 to 1-1-4 for all voxel blocks to obtain garden voxel V. p .
[0037] Furthermore, in steps 1-4, for a garden element... First, it is input into the voxel feature extraction network. Use a sliding window to display garden elements Input to voxel feature extraction network :
[0038] First, based on the size of the sliding window Calculate the number of steps required for the sliding window in each direction. ,in The calculation method is as follows:
[0039] ,
[0040] ,
[0041] ,
[0042] right Perform a traversal and calculate the sliding window value of the garden voxels. The last colon indicates that the complete RGB color information is retrieved. These represent pointers for traversing the width, height, and length, respectively. Finally, for the overlapping portions calculated by the sliding window, the average can be taken.
[0043] Furthermore, the point cloud cropping in steps 1-4 includes the following steps:
[0044] Step 1-4-1: Calculate the coordinates of the 8 vertices of the bounding box. ;
[0045] Step 1-4-2: Based on the 8 vertices of the bounding box, determine whether each point in the garden point cloud is within the bounding box, and obtain all points within the bounding box. Points within, i.e., cropped point cloud .
[0046] Further, step 1-4-1 includes: given a bounding box result The nine dimensions contain the following information: the first three dimensions are the coordinates of the center point of the bounding box. The three dimensions in the middle are the width, height, and length of the bounding box. Finally, the three dimensions are the rotation angle of the bounding box. First, calculate the coordinates of the 8 vertices of the bounding box. The calculation method is as follows: Initialize v t The frame formed by the eight vertices is a cube centered at 0, with dimensions of 1 for all three elements.
[0047]
[0048]
[0049]
[0050]
[0051]
[0052] ;
[0053] Where @ denotes matrix multiplication. This indicates element-wise addition. Represents the cross product of vectors; Indicates taking out Rows 0, 1, 2, 3, and so on.
[0054] Furthermore, step 1-4-2 includes:
[0055] For garden cloud Each point in First, calculate the normal vectors xMinNormal, xMaxNormal, yMinNormal, yMaxNormal, zMinNormal, and zMaxNormal of the six faces of the bounding box, and... The four decision vectors The calculation method is as follows:
[0056]
[0057]
[0058] if and and and and and Then the point is within the bounding box. Inside; Clouds over the garden Performing the above operation on each row will yield all rows within the bounding box. Points within, i.e., cropped point cloud .
[0059] Furthermore, in step 3.3, average pooling is used to extract the foreground cloud features. Compressed into foreground cloud vector include:
[0060]
[0061] in, i O Indicates the index of previous points. , Indicates the cloud features of the foreground site. The Middle i O All feature channel values of each foreground point.
[0062] Beneficial effects: This application converts the point cloud of the garden scene into a voxel representation for coarse object localization. Compared with point cloud representation, voxel representation greatly reduces the number of points in a large-scale garden scene and reduces computational overhead. Compared with view representation, voxel representation preserves the three-dimensional information of the garden scene and can capture more detailed structural features. At the same time, this application first performs coarse object localization and then performs foreground and background segmentation on the cropped point cloud to obtain a complete object. This progressive process can obtain a more refined point cloud object and reduce the impact of the complexity of the garden scene. Attached Figure Description
[0063] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments, and the advantages of the present invention in the above and / or other aspects will become clearer.
[0064] Figure 1 This is a schematic diagram of the processing flow of the present invention.
[0065] Figure 2 It is the visualization result of the input garden point cloud.
[0066] Figure 3 It is the result of the visualization of garden elements.
[0067] Figure 4 This is the visualization result of the bounding box of the garden object.
[0068] Figure 5 It is a visualization of the cropped point cloud.
[0069] Figure 6 This is the visualization result of the corresponding foreground point cloud.
[0070] Figure 7 This is the result of discovering the ultimate goal. Detailed Implementation
[0071] The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0072] like Figure 1 As shown, the present invention discloses a data-driven progressive discovery method for point cloud objects in large-scale garden scenes, which is implemented according to the following steps:
[0073] Step 1, Object Localization: Build an object detection network, input the garden point cloud into the object detection network, generate bounding boxes of objects, and crop the object point cloud according to the bounding boxes to obtain the object point cloud of each bounding box.
[0074] Step 1 includes the following steps:
[0075] Step 1.1, for an input garden point cloud ,like Figure 2 As shown, firstly based on voxel size Convert it into garden voxels ,like Figure 3 As shown. Among them. It refers to the number of points, the matrix. The first three columns are point cloud coordinates, and the last three columns are point cloud RGB values, representing garden voxels. The three feature channels are RGB values, These are the width, height, and length of the garden elements.
[0076] The voxelization process in step 1-1 includes the following steps:
[0077] Step 1-1-1, calculate the width, height, and length of the garden voxels:
[0078]
[0079]
[0080]
[0081] Here, `int(⋅)` represents rounding down, `max(⋅)` represents taking the maximum value, `min(⋅)` represents taking the minimum value, and `[:]` represents indexing operations, for example... Indicates taking out All values in column 0, in actual operation, .
[0082] Step 1-1-2, for the first Individual blocks , 0 ≤ i v ≤ W-1, 0 ≤ j v ≤ H-1, 0 ≤ k v ≤ D-1, determine the three-dimensional spatial extent it encloses. The calculation method is as follows:
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089] Step 1-1-3: Calculate the index of the point within this three-dimensional space. Based on the index value from By taking a point from the middle, we obtain the voxel sub-point. Calculate the index. The process is as follows: First, index Initialize to an empty list, for each line ,if Then join in In the middle; after traversal For each row in the array, obtain the index. .
[0090] Step 1-1-4, Voxel sub-dot aggregation. Based on index values from... By taking a point from the middle, we obtain the voxel sub-point. ,in It is the number of voxel points. If If the result is positive, skip the voxel block; otherwise, perform the following operations on the voxel sub-points to obtain the RGB values of the voxel block:
[0091]
[0092] in Indicates retrieving the matrix Columns 4 to 6.
[0093] Step 1-1-5: Repeat steps 1-1-2 to 1-1-4 for all voxel blocks to obtain the garden voxel. .
[0094] Step 1.2: Construct an object detection network, which includes a voxel feature extraction network. and bounding box generation network Among them, the voxel feature extraction network The network structure described in reference 10, Sun H, Meng Z, Du X, et al. A 3D Convolutional Neural Network towards Real-time Amodal 3D Object Detection[C] / / 2018 IEEE / RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2018: 8331-8338, is a voxel feature encoding network consisting of the splicing layer and all layers preceding it. The difference between this embodiment and reference 10 is that this invention uses a sliding window method to encode garden voxels. Input into the network. First, based on the size of the sliding window... Calculate the number of steps required for the sliding window in each direction. ,in The calculation method is as follows:
[0095]
[0096]
[0097]
[0098] right Perform a traversal and calculate the sliding window value of the garden voxels. The last colon indicates that the complete RGB color information is retrieved. These represent pointers for traversing the width, height, and length, respectively. Finally, for the overlapping portions calculated by the sliding window, simply average them.
[0099] Since the original method uses convolution to process the input voxel data, it requires that all input voxels have the same length, width and height during training and testing. However, in large-scale garden scene data, the size difference between different scenes is large. After voxelizing according to a fixed voxel size, it is impossible to unify the length, width and height of the voxel data. Therefore, this embodiment uses a sliding window mode for input. The size of the sliding window is set to the input size of the voxel feature extraction network. The sliding window method is used to traverse the complete large-scale garden scene.
[0100] Bounding box generation network The bounding box generation network is constructed using all layers following the splicing layer in the network structure described in reference 10, Sun H, Meng Z, Du X, et al. A 3D Convolutional Neural Network towards Real-time Amodal 3D Object Detection[C] / / 2018 IEEE / RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2018: 8331-8338.
[0101] Step 1.3: Train the object detection network using the object detection dataset described in reference 11, N. Silberman, D. Hoiem, P. Kohli, et al., “Indoor segmentation and support inference from rgbd images,” Computer Vision–ECCV 2012, pp. 746–760, 2012. The training method used is the method described in reference 10, Sun H, Meng Z, Du X, et al. A 3D Convolutional Neural Network towards Real-time Amodal 3D Object Detection[C] / / 2018 IEEE / RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2018: 8331-8338.
[0102] Step 1.4, for a garden element First, it is input into the voxel feature extraction network. To obtain the characteristics of garden elements .in This refers to the number of channels for garden voxel features. Secondly, the garden voxel features... Input bounding box generation network Get the bounding box of the garden objects .in It refers to the number of bounding boxes. The 9-dimensional dimension includes the number of bounding box attributes, such as... Figure 4 As shown. For each bounding box , 1 ≤ i ≤ n bb Based on the nine attributes of the bounding box, from the garden point cloud Cutting point cloud of garden objects cut out from the middle ,like Figure 5 As shown. Among them. Indicates the first A bounding box, Indicates the first The object within the bounding box. In practice, .
[0103] Point cloud cropping is done as follows: given a bounding box result The nine dimensions contain the following information: the first three dimensions are the coordinates of the center point of the bounding box. The three dimensions in the middle are the width, height, and length of the bounding box. Finally, the three dimensions are the rotation angle of the bounding box. First, calculate the coordinates of the 8 vertices of the bounding box. The calculation method is as follows: Initialize v t The frame formed by the eight vertices is a cube centered at 0, with dimensions of 1 for all three elements.
[0104]
[0105]
[0106]
[0107]
[0108]
[0109] .
[0110] Where @ denotes matrix multiplication. This indicates element-wise addition. This represents the cross product of vectors. Indicates taking out Lines 0, 1, 2, and 3, and so on. Next, based on the 8 vertices of the bounding box, determine whether each point in the garden point cloud is within the bounding box. The specific method is as follows: For the garden point cloud... Each point in First, calculate the normal vectors xMinNormal, xMaxNormal, yMinNormal, yMaxNormal, zMinNormal, and zMaxNormal of the six faces of the bounding box, and... The four decision vectors The calculation method is as follows:
[0111]
[0112]
[0113] if and and and and and Then the point is within the bounding box. Inside. Clouds over the garden. Performing the above operation on each row will yield all rows within the bounding box. Points within, i.e., cropped point cloud .
[0114] This embodiment first uses a voxel-based method to extract the bounding boxes of objects and roughly cut out the objects. The voxel-based method is used for coarse localization of scene objects for two reasons: First, compared to point-based methods, voxel-based methods reduce the number of points, thus reducing overhead. Considering the huge number of points in a garden point cloud, voxel-based methods can effectively improve processing efficiency. Second, voxelization is an operation performed in the entire three-dimensional space, not just on a plane. Considering that the boundaries between garden point cloud objects are not very clear and the differences between object classes are large, voxel-based methods can capture more information useful for object discovery than view-based methods, thus mitigating the information loss problem caused by view-based methods. Since the number of object points after cutting is reduced to a small number, in subsequent operations, this patent uses a point-based approach to extract object features. First, a foreground / background prediction network is used to identify the fine boundaries of the objects, and then an object classification network is used to identify the object categories.
[0115] Step 2, Object Extraction: Construct a foreground / background segmentation network. Input the point cloud of each bounding box into the foreground / background segmentation network to obtain the foreground point cloud. Step 2 includes the following steps:
[0116] Step 2.1: Construct a foreground / background segmentation network, which sequentially includes a first point cloud feature extraction network. and foreground / background prediction networks The first point cloud feature extraction network The network described in reference 9, Guo M H, Cai JX, Liu ZN, et al. Pct: Point cloud transformer[J]. ComputationalVisual Media, 2021, 7: 187-199, is adopted because this network can capture global contextual information of the point cloud. For irregular shapes, using global contextual information as a feature representation of the shape can improve the performance of foreground and background segmentation and object recognition. The foreground and background prediction network described in step 2-2... It contains a fully connected layer with the following number of input channels: The number of output channels is 1.
[0117] Step 2.2: Train the foreground / background segmentation network using the foreground / background segmentation dataset. The foreground / background segmentation dataset is constructed as follows: For each ground truth bounding box in the object detection dataset mentioned in Step 1.3, crop the object point cloud using the point cloud cropping method in Step 1.4, manually extract the foreground point cloud, label this portion of the point cloud as foreground, and label the remaining point cloud as background, thus creating the foreground / background segmentation dataset. The foreground / background segmentation network is trained using the training method described in reference 9: Guo MH, Cai JX, Liu ZN, et al. Pct: Point cloudtransformer[J]. Computational Visual Media, 2021, 7: 187-199.
[0118] Step 2.3, crop the point cloud Input the first point cloud feature extraction network Obtain point-by-point features ,in It refers to the number of points in the cropped point cloud; This refers to the number of feature channels for cropping point clouds. It involves cropping the feature channels point by point. Input foreground / background prediction network Obtain the foreground confidence of each point All prospects with a confidence level greater than 1 The points and point-by-point features are extracted to obtain the foreground cloud. ,in It refers to the number of attractions. ,like Figure 6 As shown. In actual operation, .
[0119] Step 3, Object Recognition: Build an object recognition network, input the foreground point cloud into the object recognition network, and obtain the garden scene point cloud objects.
[0120] Step 3 includes the following steps:
[0121] Step 3.1: Construct an object recognition network, which includes a second point cloud feature extraction network. and object classification networks The second point cloud feature extraction network And the first point cloud feature extraction network in step 2.1 The network structures are the same, but the focus of feature extraction is different. The first point cloud feature extraction network in step 2.1 With Foreground and Background Prediction Network The combined training extracts features that focus on whether each point belongs to a foreground object, which are then used in the foreground / background prediction network. Predict the foreground confidence of each point; the second point cloud feature extraction network in this step With object classification network The combined training extracts features that emphasize the global features of each point, which are then aggregated to obtain the complete object category features and used in an object classification network. Predict the category of the complete object. The object classification network. It contains a fully connected layer whose input channels are The output channel is ,in It refers to the number of categories. In practice... These include buildings, plants, ponds, and rocks.
[0122] Step 3.2: Train the object recognition network using the object recognition dataset. The object recognition dataset is constructed as follows: For each foreground point cloud in the foreground / background segmentation dataset described in Step 2.2, its category label is manually labeled to create the object recognition dataset. The object recognition network is trained using the training method described in reference 9: Guo MH, Cai JX, Liu Z N, et al. Pct: Point cloud transformer[J]. Computational Visual Media, 2021, 7: 187-199.
[0123] Step 3.3, foreground cloud Input point cloud feature extraction network Obtain foreground cloud features Average pooling is used to extract foreground cloud features. Compressed into foreground cloud vector , will the foreground point cloud vector Input object classification network The object category is obtained. The average pooling calculation method is as follows:
[0124]
[0125] in, i O Indicates the index of previous points. , Indicates the cloud features of the foreground site. The Middle i O All feature channel values of each foreground point.
[0126] Step 4: Repeat steps 2 and 3 until all bounding boxes have been processed, thus completing the discovery of point cloud objects in the garden scene. Figure 7 As shown in the diagram, the foreground / background segmentation network and the object recognition network are trained only once and then used directly in subsequent processing.
[0127] In its specific implementation, this application provides a computer storage medium and a corresponding data processing unit. The computer storage medium is capable of storing a computer program, which, when executed by the data processing unit, can run the invention's content regarding a data-driven, large-scale garden scene point cloud object progressive discovery method, as well as some or all of the steps in various embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0128] Those skilled in the art will clearly understand that the technical solutions in the embodiments of the present invention can be implemented using computer programs and their corresponding general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of computer programs, i.e., software products. These computer program software products can be stored in a storage medium and include several instructions to cause a device containing a data processing unit (which may be a personal computer, server, microcontroller, MUU, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.
[0129] This invention provides a data-driven progressive discovery method for point cloud objects in large-scale garden scenes. Many methods and approaches exist for implementing this technical solution; the above description is merely a specific embodiment of this invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention. All components not explicitly stated in this embodiment can be implemented using existing technologies.
Claims
1. A data-driven method for progressive discovery of point cloud objects in large-scale garden scenes, characterized in that, Includes the following steps: Step 1: Build an object detection network. Input the garden point cloud into the object detection network to generate bounding boxes of the objects. Then, crop out the object point cloud based on the bounding boxes to obtain the object point cloud of each bounding box. Step 2: Build a foreground / background segmentation network. Input the point cloud of each bounding box into the foreground / background segmentation network to obtain the foreground point cloud. Step 3: Build an object recognition network and input the foreground point cloud into the object recognition network to obtain the garden scene point cloud objects; Step 4: Repeat steps 2 and 3 until all bounding box object point clouds have been processed, completing the discovery of point cloud objects in the garden scene; Step 1 includes the following steps: Step 1-1, for an input garden point cloud Where N is the number of points, and each point contains XYZ coordinate information and RGB color information, totaling 6 dimensions. First, based on the voxel size... Convert it into garden voxels , These are the width, height, and length of the garden voxel, and each voxel contains RGB color information in a total of 3 dimensions, v > 0; Steps 1-2: Construct an object detection network, which includes a voxel feature extraction network. and bounding box generation network ; Steps 1-3: Train the object detection network using the object detection dataset; Steps 1-4, for a garden element First, it is input into the voxel feature extraction network. To obtain the characteristics of garden elements ,in The first is the number of channels for the garden voxel features, C1 ≥ 32; secondly, the garden voxel features... Input bounding box generation network Get the bounding box of the garden objects ,in This represents the number of bounding boxes. 9 indicates the number of bounding box attributes. The first three dimensions are the coordinates of the center point of the bounding box, the middle three dimensions are the width, height, and length of the bounding box, and the last three dimensions are the rotation angle of the bounding box. For each bounding box... , 1 ≤ i ≤ n bb Based on the nine attributes of the bounding box, from the garden point cloud Cutting point cloud of garden objects cut out from the middle ,in Indicates the first The object within the bounding box; For a garden element in steps 1-4 First, it is input into the voxel feature extraction network. Use a sliding window to display garden elements Input to voxel feature extraction network : First, based on the size of the sliding window Calculate the number of steps required for the sliding window in each direction. ,in The calculation method is as follows: , , , right Perform a traversal and calculate the sliding window value of the garden voxels. The last colon indicates that the complete RGB color information is retrieved. These represent pointers for traversing the width, height, and length, respectively. Finally, for the overlapping portions calculated by the sliding window, simply take the average. Step 3 includes the following steps: Step 3-1: Construct an object recognition network, which includes a second point cloud feature extraction network. and object classification networks ; Step 3-2: Train the object recognition network using the object recognition dataset. The object recognition network only needs to be trained once. Step 3-3, add the foreground cloud Input the second point cloud feature extraction network Obtain foreground cloud features ,in It refers to the number of attractions. c p It is about cropping the number of point feature channels in the point cloud. c p ≥ 32; Use average pooling to extract foreground cloud features Compressed into foreground cloud vector , will the foreground point cloud vector Input object classification network Get the object category.
2. The data-driven progressive discovery method for point cloud objects in large-scale garden scenes according to claim 1, characterized in that, Step 2 includes the following steps: Step 2-1: Construct a foreground / background segmentation network, which sequentially includes a first point cloud feature extraction network. and foreground / background prediction networks ; Step 2-2: Train the foreground / background segmentation network using the foreground / background segmentation dataset. The foreground / background segmentation network only needs to be trained once. Steps 2-3: Crop the point cloud Input the first point cloud feature extraction network Obtain point-by-point features ,in, It involves cropping the number of points in the point cloud; and then cropping the feature point by point. Input foreground / background prediction network Obtain the foreground confidence of each point ; All prospects with a confidence level greater than Extracting the points yields the foreground cloud. ,in .
3. The data-driven progressive discovery method for point cloud objects in large-scale garden scenes according to claim 1, characterized in that, Voxelization in step 1-1 includes the following steps: Step 1-1-1, calculate the width, height, and length of the garden voxels: , , , In this context, int(⋅) represents rounding down, max(⋅) represents taking the maximum value, min(⋅) represents taking the minimum value, and [:] represents indexing. Step 1-1-2, for the first Individual blocks , 0≤ i v ≤ W-1, 0 ≤ j v ≤ H-1, 0≤ k v ≤ D-1, determine the range of the three-dimensional space it encloses. The calculation method is as follows: , , Step 1-1-3, calculate within this three-dimensional space range Index of points within Calculate the index The process is as follows: First, index Initialize to an empty list, for each line ,if Then join in In the middle; after traversal For each row in the array, obtain the index. ; Based on the index value By taking a point from the middle, we obtain the voxel sub-point. , where m represents the number of voxel points; Step 1-1-4, aggregate pixel points, obtain the RGB values of the voxel block, including if If the result is positive, skip the voxel block; otherwise, perform the following operations on the voxel sub-points to obtain the RGB values of the voxel block: , in Indicates retrieving the matrix Columns 4 to 6; Step 1-1-5: Repeat steps 1-1-2 to 1-1-4 for all voxel blocks to obtain garden voxel V. p .
4. The data-driven progressive discovery method for point cloud objects in large-scale garden scenes according to claim 1, characterized in that, Steps 1-4, which involve cropping the point cloud, include the following steps: Step 1-4-1: Calculate the coordinates of the 8 vertices of the bounding box. ; Step 1-4-2: Based on the 8 vertices of the bounding box, determine whether each point in the garden point cloud is within the bounding box, and obtain all points within the bounding box. Points within, i.e., cropped point cloud .
5. A data-driven method for progressive discovery of point cloud objects in large-scale garden scenes according to claim 4, characterized in that, Step 1-4-1 includes: given a bounding box result The nine dimensions contain the following information: the first three dimensions are the coordinates of the center point of the bounding box. The three dimensions in the middle are the width, height, and length of the bounding box. Finally, the three dimensions are the rotation angle of the bounding box. First, calculate the coordinates of the 8 vertices of the bounding box. The calculation method is as follows: Initialize v t The frame formed by the eight vertices is a cube centered at 0, with dimensions of 1 for all three elements. , , , , , ; Where @ denotes matrix multiplication. This indicates element-wise addition. Represents the cross product of vectors; Indicates taking out Rows 0, 1, 2, 3, and so on.
6. The data-driven progressive discovery method for point cloud objects in large-scale garden scenes according to claim 5, characterized in that, Step 1-4-2 includes: For garden cloud Each point in First, calculate the normal vectors xMinNormal, xMaxNormal, yMinNormal, yMaxNormal, zMinNormal, and zMaxNormal of the six faces of the bounding box, and... The four decision vectors The calculation method is as follows: , , if and and and and and Then the point is within the bounding box. Inside; Clouds over the garden Performing the above operation on each row will yield all rows within the bounding box. Points within, i.e., cropped point cloud .
7. A data-driven progressive discovery method for point cloud objects in large-scale garden scenes according to claim 6, characterized in that, Step 3-3 uses average pooling to extract foreground spot cloud features. Compressed into foreground cloud vector include: , in, i O Indicates the index of previous points. ; Indicates the cloud features of the foreground site. The Middle i O All feature channel values of each foreground point.
Citation Information
Patent Citations
Semantic segmentation-based garden image quantification method
CN114202546A
Garden map construction method based on multi-scale distance map and point cloud semantic segmentation
CN114926637A
