A method and system for classifying objects in a scene based on multi-view depth images
By employing multi-view depth image acquisition and feature extraction methods, and combining two-dimensional and three-dimensional features, the shortcomings of point cloud data acquisition and feature extraction are addressed, resulting in more efficient semantic segmentation.
Patent Information
- Application Number
- CN202411194316.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-08-28
AI Technical Summary
Existing technologies have shortcomings in point cloud data acquisition and feature extraction, especially in failing to effectively combine the advantages of multi-view images and depth cameras, resulting in poor point cloud data quality and semantic segmentation performance.
We employ a multi-view depth image approach, acquiring point cloud data from multiple perspectives using three depth cameras. We then combine Gaussian filtering for noise reduction, illumination estimation, and geometric mask autoencoder to extract features, achieving alignment and stitching of 2D and 3D features. Finally, we use the KPConv network for semantic segmentation.
It improves the quality of point cloud data, makes full use of two-dimensional and three-dimensional feature information, enhances the effect of semantic segmentation, and adapts to data processing in different scenarios and devices.
Smart Images

Figure CN119169288B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer vision and semantic segmentation, specifically to a method and system for classifying scene objects based on multi-view depth images. Background Technology
[0002] With the widespread application of computer vision in the technology field, its importance to contemporary economic development and technological progress is becoming increasingly prominent. In the field of computer vision, 3D vision makes it possible for computers to perceive, understand, and analyze 3D space, and point clouds are one of the commonly used forms of 3D visual representation.
[0003] Compared to other forms of 3D vision representation, point clouds only store key points on the object's surface. This results in lower storage requirements and smaller data transfer volumes, saving storage space and computing resources. Consequently, the corresponding processing and analysis algorithms are typically more efficient. These advantages have led to the increasing importance of point cloud data in 3D vision processing. However, two key issues exist in the practical application of point cloud data processing: the acquisition of point cloud data and the feature extraction and downstream tasks.
[0004] For point cloud data acquisition, 3D scanners are often used. For outdoor or autonomous driving scenarios, LiDAR is generally used; while for indoor scenes, the most common methods are multi-view image generation or depth camera generation. Both multi-view image generation and depth camera point cloud generation methods have their own advantages.
[0005] In point cloud feature extraction and downstream tasks, point-based deep learning methods, represented by PointNet, are currently the primary approach, achieving good results in tasks such as point cloud segmentation and classification. In recent years, to further improve feature extraction performance, multimodal methods have been introduced, such as multimodal learning for images and point clouds, and multimodal learning for text and point clouds. Multimodal learning methods for images and point clouds include projection-based methods, attention-based methods, and cross-modal Transformer-based methods.
[0006] One current technique is a classic method for multimodal point cloud target detection applied to radar, as described in the paper "Pointpainting: Sequential fusion for 3D object detection". In this method, the image is sent to a segmentation module to generate 2D segmentation scores, and the intensity measurement of each point is merged with its corresponding semantics. The 2D segmentation scores are then mapped to semantic labels in 3D space. This method is a common approach based on projection-based image-point cloud multimodal learning. However, this method has drawbacks. PointPainting is designed for outdoor autonomous driving scenarios and is used in conjunction with radar. This usage scenario limits its focus to information about objects facing the camera. Furthermore, PointPainting does not combine features from 3D and 2D semantic segmentation methods; instead, it directly maps 2D segmentation labels to 3D segments, failing to leverage the advantages of 3D semantic segmentation models.
[0007] The second existing technology is a cross-modal unsupervised learning method for 3D point clouds presented in the paper "PointDC: Unsupervised Semantic Segmentation of 3D Point Clouds via Cross-modal Distillation and Super-Voxel Clustering". This method uses point cloud data to project and obtain multi-view images, then uses multi-view visual features to back-project onto 3D space and aggregate them into unified point features for training point representations. The point features are then aggregated into supervoxels for iterative clustering to mine semantic classes. The drawback of this method is that it iteratively trains a 3D unsupervised pre-trained model using clustering methods on 2D features, training the two models separately without combining and simultaneously training the extracted 2D and 3D features. This results in insufficient iteration of the 2D model, affecting the feature extraction performance. Summary of the Invention
[0008] The purpose of this invention is to overcome the shortcomings of existing methods and propose a scene object classification method and system based on multi-view depth images. The main problem addressed by this invention is how to combine the advantages of both multi-view image and depth camera point cloud generation methods to improve point cloud data quality, fully utilize information from two-dimensional and three-dimensional features, and enhance the effectiveness of semantic segmentation.
[0009] To address the aforementioned problems, this invention proposes a scene object classification method based on multi-view depth images, the method comprising:
[0010] Prepare three depth cameras in three directions. One depth camera is positioned at the center of the scene, vertically downwards. The other depth cameras are evenly distributed around the center point, with their lenses angled downwards. After deployment, record the camera coordinates [x0, y0, z0]. Use the deployed depth cameras to capture multiple depth images and perform Gaussian filtering to remove noise, obtaining I0. depth ;
[0011] Using the depth image I depth Point cloud data P corresponding to the depth image is generated using the camera coordinates [x0, y0, z0]. view P view Includes the coordinates of the point cloud in a unified coordinate system [x w y w , z w The color information of the point cloud and the mapping relationship between the pixels of the depth image and the point cloud, point cloud data P from multiple views. view Alignment and fusion are performed to generate composite multi-view point cloud data P. s The depth image I depth The RGB information is extracted to obtain multiple two-dimensional images I rgb ;
[0012] The synthesized multi-view point cloud data P s Feature extraction is performed to obtain three-dimensional features F 3d For the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d , to two-dimensional feature F 2d Mapping to 3D features F 3d The above ensures that each point in the point cloud has a unique corresponding mapping two-dimensional feature F. 2d * , to three-dimensional feature F 3d and mapping two-dimensional features F 2d * Alignment and stitching are performed to obtain synthesized multi-view point cloud data P. s Feature F;
[0013] The synthesized multi-view point cloud data P s The feature F is input to the decoder for semantic segmentation to obtain the semantic segmentation result, which is the classification result of objects in the scene.
[0014] Preferably, the depth image I is used depth Point cloud data P corresponding to the depth image is generated using the camera coordinates [x0, y0, z0]. view P view Includes the coordinates of the point cloud in a unified coordinate system [x w y w , zw The color information of the point cloud and the mapping relationship between the pixels of the depth image and the point cloud, point cloud data P from multiple views. view Alignment and fusion are performed to generate composite multi-view point cloud data P. s The depth image I depth The RGB information is extracted to obtain multiple two-dimensional images I rgb Specifically:
[0015] The coordinates of the point cloud in the unified coordinate system [x] w y w , z w The calculation method for ] consists of the following two steps:
[0016] First, for the depth image I depth For each pixel in the image, first calculate its point cloud coordinates [x] relative to the camera. c y c , z c The calculation formula is as follows:
[0017]
[0018] Where d is the pixel depth information of the point, f is the camera focal length, [u, v] is the position of the point on the depth image, and [u0, v0] is the center of the depth image;
[0019] Then, using the point cloud coordinates [x] of the pixel relative to the camera... c y c , z c Calculate the point cloud coordinates [x] of this point in a unified coordinate system. w y w , z w The calculation formula is as follows:
[0020] [x w y w , z w ] T =R·[x c y c , z c ] T +[x0, y0, z0],
[0021] Where R is the rotation matrix;
[0022] For the color information of the point cloud, illumination estimation is used to eliminate the difference in illumination conditions between different cameras and determine the color of the point cloud. That is, the point cloud is projected into the image space using the camera parameters and geometric information from different perspectives. By analyzing the brightness and color information in the projected image, the distribution of ambient light in the point cloud is estimated, that is, the estimated illumination conditions are estimated.
[0023] Point cloud data P of the corresponding depth images from different viewpoints view Alignment and transformation to a common coordinate system are performed. The aligned point cloud data is then fused, i.e., the point cloud data is clustered and the coordinates are averaged. The color of the point cloud is then adjusted according to the estimated illumination conditions to obtain the synthesized multi-view point cloud data P. s ;
[0024] The RGB information is extracted from the depth image to obtain multiple two-dimensional images I. rgb .
[0025] Preferably, the synthesized multi-view point cloud data P s Feature extraction is performed to obtain three-dimensional features F 3d For the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d , to two-dimensional feature F 2d Mapping to 3D features F 3d The above ensures that each point in the point cloud has a unique corresponding mapping two-dimensional feature F. 2d * , to three-dimensional feature F 3d and mapping two-dimensional features F 2d * Alignment and stitching are performed to obtain synthesized multi-view point cloud data P. s The feature F is specifically:
[0026] Introducing the geometric masked autoencoder (GeoMAE) from the paper "GeoMAE: Masked Geometric Target Prediction for Self-supervised Point Cloud Pre-Training," the GeoMAE is used to process the synthesized multi-view point cloud data P. s Feature extraction is performed to obtain three-dimensional features F 3d During feature extraction, it is necessary to preserve the three-dimensional feature F. 3d The correspondence between the coordinates of the point cloud data and the coordinates of the point cloud data is established so that they can be aligned and stitched with the two-dimensional features.
[0027] The two-dimensional image I is processed using a ResNet residual network. rgb Feature extraction is performed to obtain two-dimensional features F 2d ;
[0028] The two-dimensional feature F 2dThe pixels of the depth image are mapped to the point cloud data P according to the mapping relationship between the pixels and the point cloud. s That is, for the two-dimensional feature fs of the k-th point k If there exists n k Two-dimensional features If these two-dimensional features are mapped to the same point in the point cloud, then... Take the average, if n k =0 then fs k Let it be denoted as an eigenmatrix consisting entirely of zeros, i.e.
[0029]
[0030] Let P be the synthesized multi-view point cloud data. s There are n points, and the mapping two-dimensional feature F 2d * It can be represented as F 2d * = [fs0, fs1, ..., fs n ];
[0031] The three-dimensional feature F 3d and the mapped two-dimensional feature F 2d * By performing point-to-point concatenation, we obtain feature F, i.e.
[0032] Preferably, the synthesized multi-view point cloud data P s The feature F is input to the decoder for semantic segmentation to obtain the semantic segmentation result, which is the classification result of objects in the scene, specifically:
[0033] The feature F is used as the feature extracted by the feature extraction module in the KPConv network and input into the prediction head of the KPConv network. Then, the decoder is trained using the actual scene data constructed by the user. The loss function used is the cross-entropy between the predicted label class and the true label class to obtain the trained decoder.
[0034] The synthesized multi-view point cloud data P s Input the trained decoder to obtain the semantic segmentation result, that is, the classification result of objects in the scene.
[0035] Accordingly, the present invention also provides a scene object classification system based on multi-view depth images, comprising:
[0036] The depth image acquisition unit prepares three depth cameras in three directions. One depth camera is positioned vertically downwards at the center of the scene, while the other depth cameras are evenly distributed around the center point with their lenses angled downwards. After deployment, the camera coordinates [x0, y0, z0] are recorded, and multiple depth images are acquired using the deployed depth cameras. depth ;
[0037] Point cloud data and 2D image acquisition unit, used to utilize the depth image I depth Point cloud data P corresponding to the depth image is generated using the camera coordinates [x0, y0, z0]. view P view Includes the coordinates of the point cloud in a unified coordinate system [x w y w , z w The color information of the point cloud and the mapping relationship between the pixels of the depth image and the point cloud, point cloud data P from multiple views. view Alignment and fusion are performed to generate composite multi-view point cloud data P. s The depth image I depth The RGB information is extracted to obtain multiple two-dimensional images I rgb ;
[0038] The feature extraction and processing unit is used to process the synthesized multi-view point cloud data P. s Feature extraction is performed to obtain three-dimensional features F 3d For the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d , to two-dimensional feature F 2d Mapping to 3D features F 3d The above ensures that each point in the point cloud has a unique corresponding mapping two-dimensional feature F. 2d * , to three-dimensional feature F 3d and mapping two-dimensional features F 2d * Alignment and stitching are performed to obtain synthesized multi-view point cloud data P. s Feature F;
[0039] The decoding and result output unit is used to process the synthesized multi-view point cloud data P s The feature F is input to the decoder for semantic segmentation to obtain the semantic segmentation result, which is the classification result of objects in the scene.
[0040] Implementing this invention has the following beneficial effects:
[0041] This invention combines the advantages of both multi-view image and depth camera point cloud generation methods to improve point cloud data quality. The multimodal approach also fully utilizes information from both 2D and 3D features, taking into account lighting and texture information, and better extracting spatial and structural information. Furthermore, simultaneous training of the two models better balances the weights of multimodal information, adapting to data deployed in different scenarios and on different devices, maximizing the extraction of information from multimodal data, improving the effectiveness of scene semantic segmentation, and completing the task of scene object classification. Attached Figure Description
[0042] Figure 1 This is a flowchart of a scene object classification method based on multi-view depth images according to an embodiment of the present invention;
[0043] Figure 2 This is a flowchart of the data encoding and decoding process according to an embodiment of the present invention;
[0044] Figure 3 This is a structural diagram of a scene object classification system based on multi-view depth images according to an embodiment of the present invention. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] Figure 1 This is a flowchart of a scene object classification method based on multi-view depth images according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes:
[0047] S1. Prepare three depth cameras in three directions. One depth camera is positioned at the center of the scene, vertically downwards. The other depth cameras are evenly distributed around the center point, with their lenses angled downwards. After deployment, record the camera coordinates [x0, y0, z0]. Use the deployed depth cameras to capture multiple depth images and perform Gaussian filtering to remove noise, obtaining I. depth ;
[0048] S2, using the depth image I depth Point cloud data P corresponding to the depth image is generated using the camera coordinates [x0, y0, z0]. view P view Includes the coordinates of the point cloud in a unified coordinate system [x w y w , z wThe color information of the point cloud and the mapping relationship between the pixels of the depth image and the point cloud, point cloud data P from multiple views. view Alignment and fusion are performed to generate composite multi-view point cloud data P. s The depth image I depth The RGB information is extracted to obtain multiple two-dimensional images I rgb ;
[0049] S3, for the synthesized multi-view point cloud data P s Feature extraction is performed to obtain three-dimensional features F 3d For the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d , to two-dimensional feature F 2d Mapping to 3D features F 3d The above ensures that each point in the point cloud has a unique corresponding mapping two-dimensional feature F. 2d * , to make three-dimensional features F 3d and mapping two-dimensional features F 2d * Alignment and stitching are performed to obtain synthesized multi-view point cloud data P. s Feature F;
[0050] S4, the synthesized multi-view point cloud data P s The feature F is input to the decoder for semantic segmentation to obtain the semantic segmentation result, which is the classification result of objects in the scene.
[0051] Step S2 is as follows:
[0052] S2-1, the coordinates of the point cloud in the unified coordinate system [x] w y w , z w The calculation method for ] consists of the following two steps:
[0053] First, for the depth image I depth For each pixel in the image, first calculate its point cloud coordinates [x] relative to the camera. c y c , z c The calculation formula is as follows:
[0054]
[0055] Where d is the pixel depth information of the point, f is the camera focal length, [u, v] is the position of the point on the depth image, and [u0, v0] is the center of the depth image;
[0056] Then, using the point cloud coordinates [x] of the pixel relative to the camera... c yc , z c Calculate the point cloud coordinates [x] of this point in a unified coordinate system. w y w , z w The calculation formula is as follows:
[0057] [x w y w , z w ] T =R·[x c y c , z c ] T +[x0, y0, z0],
[0058] Where R is the rotation matrix;
[0059] S2-2, For the color information of the point cloud, illumination estimation is used to eliminate the difference in illumination conditions between different cameras and determine the color of the point cloud. That is, the point cloud is projected into the image space using the camera parameters and geometric information from different perspectives. By analyzing the brightness and color information in the projected image, the distribution of ambient light in the point cloud is estimated, that is, the estimated illumination conditions are estimated.
[0060] S2-3, the point cloud data P of the corresponding depth images from different viewpoints view Alignment and transformation to a common coordinate system are performed. The aligned point cloud data is then fused, i.e., the point cloud data is clustered and the coordinates are averaged. The color of the point cloud is then adjusted according to the estimated illumination conditions to obtain the synthesized multi-view point cloud data P. s ;
[0061] S2-4, Extract the RGB information from the depth image to obtain multiple two-dimensional images I. rgb .
[0062] Step S3, as follows Figure 2 As shown, the details are as follows:
[0063] S3-1 introduces the geometric masked autoencoder (GeoMAE) from the paper "GeoMAE: Masked Geometric Target Prediction for Self-supervised Point Cloud Pre-Training," and uses the GeoMAE to process the synthesized multi-view point cloud data P. s Feature extraction is performed to obtain three-dimensional features F 3d During feature extraction, it is necessary to preserve the three-dimensional feature F. 3dThe correspondence between the coordinates of the point cloud data and the coordinates of the point cloud data is established so that they can be aligned and stitched with the two-dimensional features.
[0064] S3-2, using a ResNet residual network to process the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d ;
[0065] S3-3, the two-dimensional feature F 2d The pixels of the depth image are mapped to the point cloud data P according to the mapping relationship between the pixels and the point cloud. s That is, for the two-dimensional feature fs of the k-th point k If there exists n k Two-dimensional features If these two-dimensional features are mapped to the same point in the point cloud, then... Take the average, if n k =0 then fs k Let it be denoted as an eigenmatrix consisting entirely of zeros, i.e.
[0066]
[0067] Let P be the synthesized multi-view point cloud data. s There are n points, and the mapping two-dimensional feature F 2d * It can be represented as F 2d * = [fs0, fs1, ..., fs n ];
[0068] S3-4, the three-dimensional feature F 3d and the mapped two-dimensional feature F 2d * By performing point-to-point concatenation, we obtain feature F, i.e.
[0069] Step S4 is as follows:
[0070] S4-1, the feature F is used as the feature extracted by the feature extraction module in the KPConv network and input into the prediction head of the KPConv network. Then, the decoder is trained using the actual scene data constructed by the user. The loss function used is the cross-entropy between the predicted label category and the true label category to obtain the trained decoder.
[0071] S4-2, the synthesized multi-view point cloud data P s Input the trained decoder to obtain the semantic segmentation result, that is, the classification result of objects in the scene.
[0072] Accordingly, the present invention also provides a scene object classification system based on multi-view depth images, such as... Figure 3 As shown, it includes:
[0073] Depth image acquisition unit 1 is used to prepare three depth cameras in three directions. One depth camera is set at the center point of the scene, vertically downwards, while the other depth cameras are evenly arranged around the center point with their lenses angled downwards. After deployment, the camera coordinates [x0, y0, z0] are recorded, and multiple depth images are acquired using the deployed depth cameras. depth ;
[0074] Point cloud data and 2D image acquisition unit 2, used to utilize the depth image I depth Point cloud data P corresponding to the depth image is generated using the camera coordinates [x0, y0, z0]. view P view Includes the coordinates of the point cloud in a unified coordinate system [x w y w , z w The color information of the point cloud and the mapping relationship between the pixels of the depth image and the point cloud, point cloud data P from multiple views. view Alignment and fusion are performed to generate composite multi-view point cloud data P. s The depth image I depth The RGB information is extracted to obtain multiple two-dimensional images I rgb ;
[0075] Specifically, the coordinates of the point cloud in the unified coordinate system [x] w y w , z w The calculation method for ] consists of the following two steps:
[0076] First, for the depth image I depth For each pixel in the image, first calculate its point cloud coordinates [x] relative to the camera. c y c , z c The calculation formula is as follows:
[0077]
[0078] Where d is the pixel depth information of the point, f is the camera focal length, [u, v] is the position of the point on the depth image, and [u0, v0] is the center of the depth image;
[0079] Then, using the point cloud coordinates [x] of the pixel relative to the camera... c y c , z c Calculate the point cloud coordinates [x] of this point in a unified coordinate system. w y w , z wThe calculation formula is as follows:
[0080] [x w y w , z w ] T =R·[x c y c , z c ] T +[x0, y0, z0],
[0081] Where R is the rotation matrix;
[0082] For the color information of the point cloud, illumination estimation is used to eliminate the difference in illumination conditions between different cameras and determine the color of the point cloud. That is, the point cloud is projected into the image space using the camera parameters and geometric information from different perspectives. By analyzing the brightness and color information in the projected image, the distribution of ambient light in the point cloud is estimated, that is, the estimated illumination conditions are estimated.
[0083] Point cloud data P of the corresponding depth images from different viewpoints view Alignment and transformation to a common coordinate system are performed. The aligned point cloud data is then fused, i.e., the point cloud data is clustered and the coordinates are averaged. The color of the point cloud is then adjusted according to the estimated illumination conditions to obtain the synthesized multi-view point cloud data P. s ;
[0084] The RGB information is extracted from the depth image to obtain multiple two-dimensional images I. rgb .
[0085] Feature extraction and processing unit 3 is used to process the synthesized multi-view point cloud data P s Feature extraction is performed to obtain three-dimensional features F 3d For the two-dimensional image I rgb Feature extraction is performed to obtain two-dimensional features F 2d , to two-dimensional feature F 2d Mapping to 3D features F 3d The above ensures that each point in the point cloud has a unique corresponding mapping two-dimensional feature F. 2d * , to three-dimensional feature F 3d and mapping two-dimensional features F 2d * Alignment and stitching are performed to obtain synthesized multi-view point cloud data P. s Feature F;
[0086] Specifically, the geometric masked autoencoder (GeoMAE) from the paper "GeoMAE: Masked Geometric Target Prediction for Self-supervised Point Cloud Pre-Training" is introduced, and the GeoMAE is used to process the synthesized multi-view point cloud data P. s Feature extraction is performed to obtain three-dimensional features F 3d During feature extraction, it is necessary to preserve the three-dimensional feature F. 3d The correspondence between the coordinates of the point cloud data and the coordinates of the point cloud data is established so that they can be aligned and stitched with the two-dimensional features.
[0087] The two-dimensional image I is processed using a ResNet residual network. rgb Feature extraction is performed to obtain two-dimensional features F 2d ;
[0088] The two-dimensional feature F 2d The pixels of the depth image are mapped to the point cloud data P according to the mapping relationship between the pixels and the point cloud. s That is, for the two-dimensional feature fs of the k-th point k If there exists n k Two-dimensional features If these two-dimensional features are mapped to the same point in the point cloud, then... Take the average, if n k =0 then fs k Let it be denoted as an eigenmatrix consisting entirely of zeros, i.e.
[0089]
[0090] Let P be the synthesized multi-view point cloud data. s There are n points, and the mapping two-dimensional feature F 2d * It can be represented as F 2d * = [fs0, ffs1, ..., fs n ];
[0091] The three-dimensional feature F 3d and the mapped two-dimensional feature F 2d * By performing point-to-point concatenation, we obtain feature F, i.e.
[0092] Decoding and result output unit 4 is used to process the synthesized multi-view point cloud data P sThe feature F is input to the decoder for semantic segmentation to obtain the semantic segmentation result, which is the classification result of objects in the scene;
[0093] Specifically, the feature F is used as the feature extracted by the feature extraction module in the KPConv network and input into the prediction head of the KPConv network. Then, the decoder is trained using the actual scene data constructed by the user. The loss function used is the cross-entropy between the predicted label category and the true label category, and the trained decoder is obtained.
[0094] The synthesized multi-view point cloud data P s Input the trained decoder to obtain the semantic segmentation result, that is, the classification result of objects in the scene.
[0095] Therefore, this invention combines the advantages of two point cloud generation methods—multi-view images and depth cameras—to improve point cloud data quality, fully utilize information from two-dimensional and three-dimensional features, and enhance the effectiveness of semantic segmentation.
[0096] The above provides a detailed description of a scene object classification method and system based on multi-view depth images provided by the embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A scene object classification method based on multi-view depth images, characterized in that, The method includes: Step 1: Prepare three depth cameras in three directions. One depth camera is positioned at the center of the scene, vertically downwards, while the other depth cameras are evenly distributed around the center point, with their lenses angled downwards. After deployment, record the coordinates of each depth camera. Images were captured using cameras at various depths, and Gaussian filtering was used to remove noise to obtain the images at each depth. ; Step two, utilize the depth images from each depth camera. and camera coordinates Generate point cloud data corresponding to the depth image , Includes the coordinates of the point cloud in a unified coordinate system, the color information of the point cloud, and the mapping relationship between the pixels of the depth image and the point cloud; point cloud data from each depth camera. Alignment and fusion are performed to generate composite multi-view point cloud data. Images at various depths The RGB information is extracted to obtain the corresponding two-dimensional images. ; Step 3: Process the synthesized multi-view point cloud data Feature extraction is performed to obtain three-dimensional features. For each two-dimensional image Feature extraction is performed to obtain two-dimensional features, and these two-dimensional features are then mapped to three-dimensional features. The above yields a two-dimensional feature set. This ensures that each point in the point cloud has a unique corresponding mapped two-dimensional feature, thus transforming the three-dimensional features... and mapping two-dimensional feature set Alignment and stitching are performed to obtain synthesized multi-view point cloud data. Features ; Step four: The synthesized multi-view point cloud data and the features The input is processed by the decoder to perform semantic segmentation, and the semantic segmentation result is obtained, which is the classification result of objects in the scene. Specifically, step two includes: For each depth camera, the calculation of the coordinates of the point cloud in a unified coordinate system involves the following two steps: First, for the depth image For any pixel in the image, first calculate the point cloud coordinates of that pixel relative to the camera. The calculation formula is as follows: , in, This is the pixel depth information for that point. For camera focal length, This indicates the location of the point on the depth image. Center of the depth image; Then, using the point cloud coordinates of the pixel relative to the camera... Calculate the point cloud coordinates of this point in a unified coordinate system. The calculation formula is as follows: , in It is a rotation matrix; For the color information of the point cloud, illumination estimation is used to eliminate the difference in illumination conditions between different cameras and determine the color of the point cloud. That is, the point cloud is projected into the image space using the camera parameters and geometric information from different perspectives. By analyzing the brightness and color information in the projected image, the distribution of ambient light in the point cloud is estimated, that is, the estimated illumination conditions are estimated. Point cloud data from each depth camera The data is aligned and transformed to a common coordinate system. The aligned point cloud data is then fused, i.e., the point cloud data is clustered and the coordinates are averaged. Then, the color of the point cloud is adjusted according to the estimated lighting conditions to obtain synthetic multi-view point cloud data. ; The RGB information is extracted from the images at each depth to obtain the corresponding two-dimensional images. ; Specifically, step three is as follows: The synthesized multi-view point cloud data is processed using a GeoMAE (Geometric Mask Autoencoder). Feature extraction is performed to obtain three-dimensional features. During feature extraction, it is necessary to preserve the three-dimensional features. The correspondence between the coordinates of the point cloud data and the coordinates of the point cloud data is established so that they can be aligned and stitched with the two-dimensional features. ResNet residual network is used for each two-dimensional image Feature extraction is performed to obtain each two-dimensional feature; Each two-dimensional feature is mapped to the synthesized multi-view point cloud data according to the mapping relationship between the corresponding depth image pixels and the point cloud. For the two-dimensional features of the k-th point If it exists Two-dimensional features If these two-dimensional features are mapped to the same point in the point cloud, then... If the average is taken, but Let it be denoted as an eigenma matrix consisting entirely of zeros, i.e.: , Record the synthesized multi-view point cloud data There are n points, and the mapping is a two-dimensional feature set. Represented as ; The three-dimensional features and the mapping two-dimensional feature set Perform point-to-point concatenation to obtain features. ,Right now .
2. The scene object classification method based on multi-view depth images as described in claim 1, characterized in that, The synthesized multi-view point cloud data and the features The input is processed by the decoder to perform semantic segmentation, yielding the semantic segmentation result, which is the classification result of objects in the scene, specifically: The feature The features extracted by the feature extraction module in the KPConv network are input into the prediction head of the KPConv network. Then, the decoder is trained using the actual scene data constructed by the user. The loss function used is the cross-entropy between the predicted label class and the real label class, and the trained decoder is obtained. The synthesized multi-view point cloud data Input the trained decoder to obtain the semantic segmentation result, that is, the classification result of objects in the scene.
3. A scene object classification system based on multi-view depth images, characterized in that, The system includes: The depth image acquisition unit prepares three depth cameras, one of which is positioned vertically downwards at the center of the scene, while the other depth cameras are evenly distributed around the center point with their lenses angled downwards. After deployment, the coordinates of each depth camera are recorded. Images were captured using cameras at various depths, and Gaussian filtering was used to remove noise to obtain the images at each depth. ; Point cloud data and 2D image acquisition unit, used to utilize depth images from each depth camera. and camera coordinates Generate point cloud data corresponding to the depth image , Includes the coordinates of the point cloud in a unified coordinate system, the color information of the point cloud, and the mapping relationship between the pixels of the depth image and the point cloud; point cloud data from each depth camera. Alignment and fusion are performed to generate composite multi-view point cloud data. Images at various depths The RGB information is extracted to obtain the corresponding two-dimensional images. ; The feature extraction and processing unit is used to process the synthesized multi-view point cloud data. Feature extraction is performed to obtain three-dimensional features. For each two-dimensional image Feature extraction is performed to obtain two-dimensional features, and these two-dimensional features are then mapped to three-dimensional features. The above yields a two-dimensional feature set. This ensures that each point in the point cloud has a unique corresponding mapped two-dimensional feature, thus transforming the three-dimensional features... and mapping two-dimensional feature set Alignment and stitching are performed to obtain synthesized multi-view point cloud data. Features ; The decoding and result output unit is used to process the synthesized multi-view point cloud data. and the features The input is processed by the decoder to perform semantic segmentation, and the semantic segmentation result is obtained, which is the classification result of objects in the scene. Specifically, the point cloud data and two-dimensional image acquisition unit comprises: For each depth camera, the calculation of the coordinates of the point cloud in a unified coordinate system involves the following two steps: First, for the depth image For any pixel in the image, first calculate the point cloud coordinates of that pixel relative to the camera. The calculation formula is as follows: , in, This is the pixel depth information for that point. For camera focal length, This indicates the location of the point on the depth image. Center of the depth image; Then, using the point cloud coordinates of the pixel relative to the camera... Calculate the point cloud coordinates of this point in a unified coordinate system. The calculation formula is as follows: , in It is a rotation matrix; For the color information of the point cloud, illumination estimation is used to eliminate the difference in illumination conditions between different cameras and determine the color of the point cloud. That is, the point cloud is projected into the image space using the camera parameters and geometric information from different perspectives. By analyzing the brightness and color information in the projected image, the distribution of ambient light in the point cloud is estimated, that is, the estimated illumination conditions are estimated. Point cloud data from each depth camera The data is aligned and transformed to a common coordinate system. The aligned point cloud data is then fused, i.e., the point cloud data is clustered and the coordinates are averaged. Then, the color of the point cloud is adjusted according to the estimated lighting conditions to obtain synthetic multi-view point cloud data. ; The RGB information is extracted from the images at each depth to obtain the corresponding two-dimensional images. ; Specifically, the feature extraction and processing unit comprises: The synthesized multi-view point cloud data is processed using a GeoMAE (Geometric Mask Autoencoder). Feature extraction is performed to obtain three-dimensional features. During feature extraction, it is necessary to preserve the three-dimensional features. The correspondence between the coordinates of the point cloud data and the coordinates of the point cloud data is established so that they can be aligned and stitched with the two-dimensional features. ResNet residual network is used for each two-dimensional image Feature extraction is performed to obtain each two-dimensional feature; Each two-dimensional feature is mapped to the synthesized multi-view point cloud data according to the mapping relationship between the corresponding depth image pixels and the point cloud. For the two-dimensional features of the k-th point If it exists Two-dimensional features If these two-dimensional features are mapped to the same point in the point cloud, then... If the average is taken, but Let it be denoted as an eigenmatrix consisting entirely of zeros, i.e. , Record the synthesized multi-view point cloud data There are n points, and the mapping is a two-dimensional feature set. Represented as ; The three-dimensional features and the mapping two-dimensional feature set Perform point-to-point concatenation to obtain features. ,Right now .
4. The scene object classification system based on multi-view depth images as described in claim 3, characterized in that, The decoding and result output unit is used to process the synthesized multi-view point cloud data. and the features The input is processed by the decoder to perform semantic segmentation, yielding the semantic segmentation result, which is the classification result of objects in the scene, specifically: The feature The features extracted by the feature extraction module in the KPConv network are input into the prediction head of the KPConv network. Then, the decoder is trained using the actual scene data constructed by the user. The loss function used is the cross-entropy between the predicted label class and the real label class, and the trained decoder is obtained. The synthesized multi-view point cloud data Input the trained decoder to obtain the semantic segmentation result, that is, the classification result of objects in the scene.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 2.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Semantic segmentation device and method based on MEMS laser radar point cloud data
CN117218337A
