Material saliency detection method, system and equipment fusing image and point cloud information

Through the full-flow bidirectional feature fusion mechanism, RGB images are combined with point cloud information to generate a three-dimensional saliency mask, which solves the problem of insufficient robustness of saliency detection in composite mobile robots and is suitable for narrow equipment-intensive production workshops.

CN118608909APending Publication Date: 2024-09-06XI AN JIAOTONG UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410760438.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, in composite mobile robots, the saliency detection of RGB image and point cloud information fusion is not robust enough, and it is difficult to adapt to dynamic background and foreground occlusion, and the 2.5D vision method cannot be effectively used in narrow work spaces and dense equipment. Production workshop.

Method used

A full-flow bidirectional feature fusion mechanism is used to convert the depth image into a point cloud, and the RGB image and point cloud features are extracted through the Swin-Transformer and RandLA-Net networks for bidirectional fusion and saliency segmentation. The focus loss function is used for training and generation 3D saliency mask.

Benefits of technology

The robustness and adaptability of the saliency detection algorithm are improved, and the target material can be accurately detected under dynamic background and foreground occlusion. It is suitable for production workshops with narrow working spaces and dense equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608909A
    Figure CN118608909A
Patent Text Reader

Abstract

The invention discloses a material saliency detection method, system and equipment fusing image and point cloud information. The method comprises the following steps: converting a depth image into point cloud; constructing a feature extraction network of full-flow bidirectional feature fusion, and extracting deeply fused pixel and point cloud features from the input image and the point cloud; a saliency segmentation module is constructed, and saliency segmentation is carried out on pixel and point cloud fusion features after feature extraction is completed; training a material saliency detection model composed of the constructed full-flow bidirectional feature fusion feature extraction network and the constructed saliency segmentation module; according to the system and the equipment, saliency detection is performed on a target material through a material saliency detection method fusing an image and point cloud information; according to the method, pixel features and point cloud features can be fully fused through a full-flow bidirectional feature fusion mechanism, the robustness, adaptability and reliability of a saliency detection algorithm in dynamic background and foreground shielding and other problems are effectively improved, and a point cloud saliency mask of a target material is obtained; the problem that an existing significance detection model adopting a 2.5 D vision method cannot be suitable for a production workshop with narrow working space and dense equipment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision technology, and specifically relates to a material saliency detection method, system and device that fuses image and point cloud information. Background Art

[0002] For manufacturing companies, a composite mobile robot with a robotic arm can solve the material loading and unloading and transfer problems in smart manufacturing factories, and can replace most fixed loading and unloading robotic arms. It has flexible mobility and autonomous decision-making capabilities, and can adapt to different working environments and task requirements. However, unlike fixed loading and unloading robotic arms, the relative position of the composite mobile robot and the target material is no longer fixed. Therefore, the composite mobile robot needs to rely on visual information to perform saliency detection of the target material. Material saliency detection is a prerequisite for obtaining the accurate posture of the material and grasping it. Saliency detection is mainly used to highlight the target areas that need to be paid attention to in the image, and for the composite mobile robot, these target areas are the materials that need to be transported.

[0003] At present, many saliency detection models for RGB images have been proposed, but their robustness is still insufficient in the face of problems such as dynamic background and foreground occlusion in the material grasping process. RGB image information contains a lot of color and texture information. However, due to the three-dimensional to two-dimensional projection in the photography process, the position and structure information of the target will be lost. Therefore, it is difficult for the loading and unloading robot to perform subsequent material positioning on the RGB image that lacks position and structure information. The saliency detection model using the 2.5D vision method simply fuses the RGB image and the single-channel depth information. Compared with traditional two-dimensional images, 2.5D vision can allow observers to feel a certain degree of three-dimensionality, but it is still limited to the two-dimensional plane and cannot be applied to saliency detection in production workshops with narrow working space and dense equipment. In contrast, point cloud information contains richer position and structure information, but lacks detailed texture and color information. It is difficult to accurately perform saliency detection based on point cloud information alone. Therefore, upgrading the depth information of the depth camera to a 3D point cloud and then combining the RGB image information with the three-dimensional point cloud information can effectively improve the saliency detection capability and more conveniently provide a basis for the subsequent material positioning of the loading and unloading robot. However, RGB images are two-dimensional information, and point clouds are three-dimensional information. The two have different modalities. Therefore, how to use RGB image information and point cloud information for saliency detection is an urgent problem to be solved by technicians in this field.

[0004] The inventions "A RGBD saliency detection method based on feature aggregation" and "A RGBD saliency detection method based on multi-scale feature fusion (CN202010028837.2)" with application number CN202010710225.1 use the HHA algorithm on input to convert the depth image into a three-channel HHA image, and use a convolutional neural network to extract features from the RGB image and the HHA image in feature processing, while the present invention converts the depth map into a point cloud, and uses a Swin-Transformer-based neural network and a RandLA-Net network to extract features from the RGB image and the point cloud, respectively, and has higher feature extraction capabilities; in terms of output results, these two inventions output a two-dimensional saliency segmentation image, while the output result of the present invention is a saliency segmentation point cloud with three-dimensional information, which can be used to reconstruct or locate the target material. Summary of the invention

[0005] In order to overcome the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a material saliency detection method, system and device that fuses image and point cloud information. Through the full-stream bidirectional feature fusion mechanism, pixel features and point cloud features can be fully integrated with each other, which effectively improves the robustness, adaptability and reliability of the saliency detection algorithm in problems such as dynamic background and foreground occlusion, and obtains a point cloud saliency mask at the instance level of the target object, thereby solving the problem that the existing saliency detection model using 2.5D vision methods cannot be applied to production workshops with narrow working space and dense equipment.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is:

[0007] A material saliency detection method integrating image and point cloud information, comprising the following specific steps:

[0008] Step 1: Convert the depth image into a point cloud;

[0009] Step 2: Build a feature extraction network for full-flow bidirectional feature fusion to extract deeply fused pixel and point cloud features from the input image and point cloud;

[0010] Step 3: Construct a saliency segmentation module to perform saliency segmentation on the pixel and point cloud fusion features after feature extraction.

[0011] Step 4: Train the material saliency detection model composed of the feature extraction network of the full-flow bidirectional feature fusion constructed in step 2 and the saliency segmentation module constructed in step 3.

[0012] The specific method of step 1 is:

[0013] Get the internal parameters of the camera, including the focal length f, the optical center coordinate position (u0, v0) and the depth value scaling factor depthScale; where the depth value scaling factor depthScale represents the conversion relationship between the depth value z in the depth image and the actual distance Z:

[0014] Z = z × depthScale (1)

[0015] The camera focal length and principal point position data set is the camera internal parameter matrix:

[0016]

[0017] Where: f x and f y represents the pixel focal length, u0 and v0 represent the optical center coordinates;

[0018] Using the camera intrinsic matrix and the depth value scaling factor depthScale through the transformation (3), any pixel point (u, v) with a depth value of z in the depth map is converted to the corresponding three-dimensional point (X) in the camera coordinate system. c ,Y c ,Z c ):

[0019]

[0020] Thus:

[0021]

[0022] Z c =Z (6)

[0023] According to equations (4), (5), and (6), by converting single-channel depth data into three-dimensional point cloud data, we can obtain three-dimensional geometric information of objects or scenes that is more three-dimensional than depth images.

[0024] The specific method of step 2 is:

[0025] 2.1. Construct the RGB network branch, including the image downsampling network based on the Swin-Transformer neural network module as the pixel feature and the PSPNet (Pyramid Scene Parsing Network) image upsampling network; the image downsampling network consists of four stages that together form a pyramid structure;

[0026] 2.2. RGB image block division: The RGB image is divided into several blocks according to the pixel size, and then input into the neural network module of Swin-Transformer; in the neural network module of Swin-Transformer, multiple blocks are divided into a window and attention calculation is performed within the window; when the input image size cannot be divided by the block size and the window size, the image is filled with pixels according to formulas (7) and (8);

[0027]

[0028] Where H is the input image width / pixel; W is the input image height / pixel; pad H The pixel size that needs to be filled in the width direction of the image; pad W is the pixel size that needs to be filled in the height direction of the image; windowSize is the moving window size of the SwinTransformer neural network module; patchSize is the pixel size of the patch;

[0029] 2.3. Perform feature extraction on the image after RGB block division in step 2.2:

[0030] The image after RGB block division in step 2.2 is input into the first stage of the downsampling network. The first stage contains two Swin-Transformer neural network modules. The Swin-Transformer neural network module processes the input image and outputs pixel features. The pixel features are passed to the bidirectional fusion module for fusion with the point cloud features. The fused pixel features are downsampled by 2 times and input into the second stage. The structure of the second stage is consistent with that of the first stage. The two Swin-Transformer neural network modules perform attention calculation on the pixel features in the first stage and output pixel features. The pixel features are passed to the bidirectional fusion module for fusion with the point cloud features. The fused pixel features are downsampled by 2 times and input into the second stage. The features are downsampled by 2 times and input into the third stage; in the third stage, the pixel features calculated in the second stage are calculated by the Swin-Transformer neural network module for attention calculation and output of deeper pixel features. In this stage, the pixel features are directly downsampled by 2 times and then input into the fourth stage; in the fourth stage, the pixel features calculated in the third stage are calculated by two Swin-Transformer neural network modules for attention calculation and output of deeper pixel features, and then a deconvolution calculation is performed, the pixel features are upsampled by 2 times, and then input into the bidirectional fusion module for fusion with the point cloud features, and finally the obtained pixel features are passed into the PSPNet image upsampling network;

[0031] 2.4 Use the PSPNet image upsampling network to upsample the pixel feature map obtained in step 2.3: First, perform a downsampling pooling, a scale-invariant pooling, a 2x upsampling pooling, and a 4x upsampling pooling operation on the pixel features input by the downsampling network, and obtain feature map representations of four different scales of pixels, 1 / 2, 1, 2, and 4 times the size of the pixel features input by the image downsampling network;

[0032] Then, the feature maps of pixels of different scales are convolved, and the feature maps of each scale are input into the full-flow bidirectional feature fusion for fusion; the feature maps of pixels of each scale are upsampled to match their size with the input feature map so as to classify them at the pixel level with the original image; finally, the feature maps of pixels of each scale are concatenated and convolved once to obtain a comprehensive feature representation, which contains semantic information at different scales;

[0033] 2.5 The RandLA-Net lightweight and efficient point cloud semantic segmentation network is used as the point cloud network branch to extract geometric features in the point cloud, which includes 4 upsampling and 4 downsampling; the point cloud features are composed of a large number of discrete points, each of which has position information and other attributes, including color and normal vector;

[0034] 2.6 Input the first, second and fourth stages of the image downsampling network and the four different scale features of the image upsampling network obtained in step 2.4 as well as the point cloud features into the full-flow bidirectional feature fusion module for bidirectional feature fusion of pixels and point clouds. In each stage, the RGB network and the point cloud network input pixel features and point cloud features into the full-flow bidirectional feature fusion module. After the full-flow bidirectional feature fusion module fuses the features, it returns the fused pixel features and point cloud features to the RGB network and the point cloud network respectively; that is, the bidirectional feature fusion includes the fusion of point cloud features to pixel features and the fusion of pixel features to point cloud features; after the last fusion, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module;

[0035] According to the intrinsic parameters of the depth camera, the pixel features are matched with the point cloud geometric features:

[0036]

[0037] The pixel coordinates of the RGB image are promoted to 3D world coordinates to obtain a coordinate map (XYZMap) representing the 3D coordinates in the camera coordinate system corresponding to the 2D pixels. Each pixel point in the XYZ Map stores the three-dimensional coordinate value of the 3D point represented by the pixel point in the camera coordinate system; where u and v represent pixel coordinates, and f x and f yrepresents the pixel focal length, u0 and v0 represent the optical center coordinates, X c , Y c and Z c Represents the point coordinates in the camera coordinate system; after calculating the XYZ Map corresponding to the original input RGB image, according to the feature map sizes in the four downsampling stages of the RGB network and point cloud network in step 2.2 and the three upsampling stages in step 2.5, the nearest neighbor interpolation method is used on the original XYZ Map to obtain an XYZ Map of the same size as the feature map composed of pixel features input to the full-flow bidirectional feature fusion module at each stage of the RGB network branch.

[0038] The nearest neighbor interpolation method for XYZMap in step 2.6 is as follows:

[0039] 1) Calculate the original position: For each pixel position in the XYZMap image, calculate its corresponding position in the original XYZ Map according to the size ratio of the target image and the original image;

[0040] 2) Find the nearest pixel: Find the nearest XYZ Map pixel based on the calculated corresponding position;

[0041] 3) Filling the target image pixel value: The value of the nearest neighbor XYZ Map pixel is used as the pixel value of the corresponding position in the target XYZ Map.

[0042] The fusion process of point cloud features to pixel features in the bidirectional feature fusion of each stage in step 2.6 is as follows: for each pixel feature input in this stage, find the XYZ Map pixel value corresponding to the coordinate according to the XYZ Map of its pixel in the corresponding stage, that is, the three-dimensional coordinate corresponding to the pixel feature; find the corresponding sample point in the point cloud feature according to the three-dimensional coordinate; and use the K-Nearest Neighbor (KNN) algorithm to find K points around the sample point in the point cloud feature as neighboring points, input the K+1 point cloud features of the neighboring points and the sample point into a multilayer perceptron (MLP), and perform maximum pooling to obtain a fusion feature of the same dimension as the pixel feature input in this stage; concatenate the fusion feature with the pixel feature input in this stage, and then pass it through a multilayer perceptron to obtain the fused pixel feature, and return the fused pixel feature to the RGB network branch; The fusion process of pixel features to point cloud features in the bidirectional feature fusion of each stage is as follows: use the K-nearest neighbor algorithm for each sample point found in the fusion process of point cloud features to pixel features, find the K neighboring points around it, and pass the XYZ Map finds the K+1 pixel features corresponding to the neighboring points and the sample points in the pixel feature map input in this stage, inputs these K+1 pixel features into the multi-layer perceptron and performs maximum pooling to obtain a fused feature with the same dimension as the sample point cloud feature, concatenates the fused feature with the sample point cloud feature and passes it through a multi-layer perceptron again to obtain the fused point cloud feature, and returns the feature to the point cloud network branch.

[0043] The specific method of step 3 is:

[0044] After completing the last fusion in step 2.6, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module; a multi-layer perceptron composed of 4 1×1 convolution kernels is used to perform saliency segmentation on the pixel point cloud features: the last layer channel size of the saliency segmentation module is the number of target material categories plus the background, which respectively represents the confidence of each point in the point cloud as the target material category and the background category, so that different labels can be predicted for the target material and the image background;

[0045] The focal loss function is used as the loss function:

[0046] L=-a(1-q i ) γ log(q i ) (10)

[0047] q i =c i l i (11)

[0048] Among them, α represents the balance parameter, which is used to adjust the ratio between the positive and negative sample losses; γ represents the focus parameter; c i Represents the confidence that the i-th point belongs to each category; l i The binary representation of the categorical variable representing the true value label; thus, the category of each point in the point cloud is obtained, and the point clouds classified as the target material together constitute the saliency mask of the target material.

[0049] The specific method of step 4 is as follows:

[0050] The material saliency detection model is trained using a training set consisting of RGB image sequences, depth image sequences, and the corresponding target material saliency mask sequences.

[0051] A material saliency detection system integrating image and point cloud information, comprising:

[0052] The point cloud conversion module is used in step 1 to obtain the internal parameters of the camera and perform inverse projection according to the pixel coordinates of each pixel in the depth image and its depth value to obtain the point cloud corresponding to the depth image as the input of the point cloud network branch;

[0053] The image downsampling network module is used in step 2. The image that cannot be filled by the block size and the window size is filled by pixel filling to perform non-deformed block division, and the input RGB image is subjected to 4-stage feature extraction using a neural network module based on Swin-Transformer. After the first three stages, each downsampling is performed once, and the last stage uses a deconvolution to perform an upsampling. After the 1st, 2nd, and 4th stages, the pixel features are input into the bidirectional feature fusion module for feature fusion. After the fusion is completed, it is returned to the RGB network branch to finally complete the extraction of pixel features;

[0054] The image upsampling network module is used in step 2, using PSPNet as the image upsampling network. It first performs pooling of different scales to make the input pixel features become feature representations of four different scales of 1 / 2, 1, 2, and 4 times the original size; then, the features of each scale are convolved and input into the bidirectional feature fusion module for feature fusion; finally, upsampling is performed to match its size with the input feature map, and the obtained pixel features of different scales are convolved, spliced, and convolved to obtain a comprehensive feature representation;

[0055] Point cloud network branch module, used in step 2, extracts point cloud features through the RandLA-Net lightweight and efficient point cloud semantic segmentation network;

[0056] The bidirectional feature fusion module is used in step 2 to construct a corresponding table XYZ Map of pixel features and point cloud features according to the imaging principle of the pinhole camera; in the process of fusion of point cloud features to pixel features, the sample point cloud feature points corresponding to the pixel features are found according to the XYZ Map, and the neighboring point cloud features are obtained by using the K-nearest neighbor algorithm. The sample point cloud features and the neighboring point cloud features are input into the multi-layer perceptron and then spliced ​​with the pixel features, and then input into the multi-layer perceptron again to obtain the fusion features, and finally the fusion features are returned to the RGB network branch; in the process of fusion of pixel features to point cloud features, any point in the point cloud features is used as a sample point, and the neighboring point cloud features are obtained by using the K-nearest neighbor algorithm. The pixel features corresponding to the sample and the neighboring points are found according to the XYZ Map, and the pixel features are input into the multi-layer perceptron and then spliced ​​with the sample point cloud features, and then input into the multi-layer perceptron again to obtain the fusion features, and finally the fusion features are returned to the point cloud network branch;

[0057] The saliency segmentation module is used in step 3. It uses a multi-layer perceptron composed of four 1×1 convolution kernels to perform saliency segmentation on the pixel point cloud fusion features. The channel size of the last layer of the saliency segmentation module is the number of target material categories plus the background, which respectively represents the confidence that the point is each target material category and the background category. Finally, the focal loss function is used as the loss function.

[0058] A material saliency detection device integrating image and point cloud information, comprising:

[0059] Memory: used for storing a computer program expressing a material saliency detection method integrating image and point cloud information;

[0060] Processor: used to implement the material saliency detection method of the fused image and point cloud information described in steps 1 to 4 according to the stored computer program.

[0061] A computer storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can perform material saliency detection of fused images and point cloud information for a composite mobile robot based on the material saliency detection method of fused images and point cloud information described in steps 1 to 4.

[0062] The beneficial effects of the present invention are:

[0063] 1. The present invention solves the limitation of the existing saliency detection model using 2.5D visual method that simply fuses RGB image and single-channel depth information through a full-flow bidirectional feature fusion mechanism of image features and point cloud features.

[0064] 2. The present invention adopts 3D visual input and integrates RGB image information with point cloud information to bring more accurate and comprehensive scene understanding. Using Swin Transformer as the feature downsampling network of single-view RGB images can have higher robustness when processing cluttered scenes, i.e. partial foreground occlusion.

[0065] 3. In the fusion of pixel features and point cloud features, the pixel coordinates of the RGB image are upgraded to 3D world coordinates according to the pinhole camera imaging principle and the depth camera internal parameters, and the coordinate map (XYZ Map) representing the 3D coordinates in the camera coordinate system corresponding to the 2D pixels is obtained. It serves as a bridge during feature fusion to correspond the pixel features of each stage to the point cloud features.

[0066] 4. After completing the correspondence between 2D pixel points and 3D points in the point cloud, a feature fusion network is designed, and the K-nearest neighbor algorithm is used during fusion to increase the receptive field of the bimodal features during fusion and achieve bimodal information complementarity.

[0067] 5. A multi-layer perceptron composed of four 1×1 convolution kernels is used to perform significant segmentation on the pixel point cloud fusion features, and the focal loss function is used as the loss function.

[0068] In summary, the present invention uses a full-flow bidirectional feature fusion mechanism to fully fuse pixel features and point cloud features with each other, effectively improving the robustness, adaptability and reliability of the saliency detection algorithm in problems such as dynamic background and foreground occlusion, and obtaining a point cloud saliency mask at the instance level of the target object, solving the problem that the existing saliency detection model using 2.5D vision methods cannot be applied to production workshops with narrow working spaces and dense equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is a schematic diagram of the full-flow bidirectional fusion feature extraction network structure of the method of the present invention.

[0070] Figure 2 This is a schematic diagram of the image downsampling network structure based on the Swin TransformerRGB improvement.

[0071] Figure 3 It is a schematic diagram of the saliency segmentation module.

[0072] Figure 4 It is the visualization result of the significance detection method of the present invention. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0075] A material saliency detection method integrating image and point cloud information, comprising the following specific steps:

[0076] Step 1: Convert the depth image into a point cloud; the specific method is:

[0077] Get the internal parameters of the camera, including the focal length f, the optical center coordinate position (u0, v0) and the depth value scaling factor depthScale; where the depth value scaling factor depthScale represents the conversion relationship between the depth value z in the depth image and the actual distance Z:

[0078] Z = z × depthScale (1)

[0079] The camera focal length and principal point position data set is the camera internal parameter matrix:

[0080]

[0081] Where: f x and f y represents the pixel focal length, u0 and v0 represent the optical center coordinates;

[0082] Using the camera intrinsic matrix and the depth value scaling factor depthScale through the transformation (3), any pixel point (u, v) with a depth value of z in the depth map is converted to the corresponding three-dimensional point (X) in the camera coordinate system. c ,Y c ,Z c ):

[0083]

[0084] Thus:

[0085]

[0086] Z c =Z (6)

[0087] By transforming single-channel depth data into three-dimensional point cloud data using equations (4), (5), and (6), we can obtain three-dimensional geometric information of objects or scenes that is more three-dimensional than depth images.

[0088] Step 2: Construct a feature extraction network for full-flow bidirectional feature fusion to extract deeply fused pixel and point cloud features from the input image and point cloud. The specific method is as follows:

[0089] 2.1 Construct the RGB network branch, including the image downsampling network based on the Swin-Transformer neural network module as the pixel feature and the PSPNet (Pyramid Scene Parsing Network) image upsampling network; among them, the image downsampling network is as follows Figure 2 As shown, there are four stages that together form a pyramid structure;

[0090] 2.2 RGB image block division: Before inputting the image into the Swin-Transformer module, the RGB image needs to be divided into several blocks of 4×4 pixels. The Swin-Transformer network block divides the 7×7 blocks into a window and performs attention calculation within the window. When the input image size cannot be divided by the block size and the window size, the image is padded with pixels according to formulas (7) and (8).

[0091]

[0092] Where H is the input image width / pixel; W is the input image height / pixel; pad H The pixel size that needs to be filled in the width direction of the image; pad W is the pixel size that needs to be filled in the height direction of the image; windowSize is the moving window size of the SwinTransformer network; patchSize is the pixel size of the patch;

[0093] 2.3 Perform feature fusion on the image after RGB block division in step 2.2:

[0094] The image after RGB block division in step 2.2 is input into the first stage of the downsampling network. The first stage contains two Swin-Transformer network blocks. The Swin-Transformer network block processes the input image and outputs pixel features. The pixel features are passed into the bidirectional fusion module to be fused with the point cloud features. The fused pixel features are downsampled by 2 times and input into the second stage. The structure of the second stage is consistent with that of the first stage. The two Swin-Transformer network blocks process the pixel features in the first stage and output pixel features. The pixel features are passed into the bidirectional fusion module to be fused with the point cloud features. The fused pixel features are downsampled by 2 times. Perform a 2x downsampling and input it into the third stage; in the third stage, the pixel features calculated in the second stage are processed by 6 Swin-Transformer network blocks and output deeper pixel features. In this stage, the pixel features are directly downsampled by 2x and then input into the fourth stage; in the fourth stage, the pixel features calculated in the third stage are processed by two Swin-Transformer network blocks and output deeper pixel features, and then a deconvolution calculation is performed, and the pixel features are upsampled by 2x, and then input into the bidirectional fusion module for fusion with the point cloud features, and finally the obtained pixel features are passed into the PSPNet image upsampling network;

[0095] 2.4 Use the PSPNet image upsampling network to upsample the pixel feature map obtained in step 2.3. First, perform a downsampling pooling, a scale-invariant pooling, a 2x upsampling pooling, and a 4x upsampling pooling operation on the pixel features input by the downsampling network, respectively, to obtain feature representations of four different scales of 1 / 2, 1, 2, and 4 times the size of the pixel features input by the image downsampling network;

[0096] Then, the obtained pixel features of different scales are convolved, and the feature maps of each scale are input into the full-flow bidirectional feature fusion for fusion; the feature maps of each scale are upsampled to match their size with the input feature map so as to classify them at the pixel level with the original image; finally, the features of each scale are concatenated and convolved once to obtain a comprehensive feature representation, which contains semantic information at different scales;

[0097] 2.5 RandLA-Net lightweight and efficient point cloud semantic segmentation network is used as the point cloud network branch to extract geometric features in the point cloud, which includes 4 upsampling and 4 downsampling; point cloud features are composed of a large number of discrete points, each of which has location information and other attributes, including color and normal vector; RandLA-Net is a deep learning model for learning feature representation from point cloud data. It learns local and global feature representations from point cloud data through local aggregation and random sampling. Random sampling can downsample large-scale point clouds, and feature aggregation ensures that useful point features are not lost, so that the entire network can achieve an excellent balance between efficiency and effectiveness.

[0098] 2.6 Full-flow bidirectional feature fusion mechanism Figure 1 As shown, the features of the first, second and fourth stages of the image downsampling network and the four different scales of the image upsampling network obtained in step 2.4 are input into the full-flow bidirectional feature fusion module for bidirectional feature fusion of pixels and point clouds. In each stage, the RGB network and the point cloud network input pixel features and point cloud features into the full-flow bidirectional feature fusion module. After the full-flow bidirectional feature fusion module fuses the features, it returns the fused pixel features and point cloud features to the RGB network and the point cloud network respectively; that is, the bidirectional feature fusion includes the fusion of point cloud features to pixel features and the fusion of pixel features to point cloud features; after the last fusion, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module;

[0099] According to the pinhole camera imaging principle, combined with the depth camera internal parameters, the pixel features are matched with the point cloud geometric features:

[0100]

[0101] The pixel coordinates of the RGB image are promoted to 3D world coordinates to obtain a coordinate map (XYZ Map) representing the 3D coordinates in the camera coordinate system corresponding to the 2D pixels. Each pixel point in the XYZ Map stores the three-dimensional coordinate value of the 3D point represented by the pixel point in the camera coordinate system; where u and v represent pixel coordinates, and f x and f y represents the pixel focal length, u0 and v0 represent the optical center coordinates, X c , Y c and Z cRepresents the point coordinates in the camera coordinate system; after calculating the XYZ Map corresponding to the original input RGB image, according to the feature map sizes in the four downsampling stages of the RGB network and point cloud network in step 2.2 and the three upsampling stages in step 2.5, the nearest neighbor interpolation method is used on the original XYZ Map to obtain an XYZ Map of the same size as the feature map composed of pixel features input to the full-flow bidirectional feature fusion module at each stage of the RGB network branch.

[0102] The nearest neighbor interpolation steps for the XYZ Map in step 2.6 are as follows: 1) Calculate the original position: for each pixel position in the XYZ Map image, calculate its corresponding position in the original XYZ Map according to the size ratio of the target image and the original image; 2) Find the nearest pixel: find the nearest XYZ Map pixel according to the calculated corresponding position; 3) Fill in the target image pixel value: use the value of the nearest neighbor XYZ Map pixel found as the pixel value of the corresponding position in the target XYZ Map.

[0103] The fusion process of point cloud features to pixel features in each stage in step 2.6 is specifically as follows: for each pixel feature input in this stage, the XYZ Map pixel value corresponding to the coordinate is found according to the XYZ Map of its pixel in the corresponding stage, that is, the three-dimensional coordinate corresponding to the pixel feature; the corresponding sample point is found in the point cloud feature according to the three-dimensional coordinate, and the K-Nearest Neighbor (KNN) algorithm is used to find K points around the sample point in the point cloud feature as neighboring points, and the K+1 point cloud features of the neighboring points and the sample points are input into a multi-layer perceptron (MLP) and maximum pooling is performed to obtain a fused feature of the same dimension as the pixel feature input in this stage, and the fused feature is spliced ​​with the pixel feature input in this stage and then passed through a multi-layer perceptron again to obtain the fused pixel feature, and the feature is returned to the RGB network branch.

[0104] The fusion process of pixel features to point cloud features in the bidirectional feature fusion of each stage in the step 2.6 is specifically as follows: for each sample point found in the fusion process of point cloud features to pixel features, the K neighboring points around it are found using the K-nearest neighbor algorithm, and the K+1 pixel features corresponding to the neighboring points and the sample points in the pixel feature map input in this stage are found through the XYZ Map of this stage, and these K+1 pixel features are input into the multi-layer perceptron and maximum pooling is performed to obtain a fusion feature with the same dimension as the sample point cloud feature, and the fusion feature is spliced ​​with the sample point cloud feature and passed through a multi-layer perceptron again to obtain the fused point cloud feature, and the feature is returned to the point cloud network branch.

[0105] Step 3: Construct a saliency segmentation module to perform saliency segmentation on the pixel and point cloud fusion features after feature extraction. The specific method is as follows:

[0106] After completing the last fusion in step 2.6, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module; Figure 3 As shown in the figure, four 1×1 convolutions are used to form a shared multi-layer perceptron to perform saliency segmentation on the pixel point cloud features: the channel size of the last layer of the saliency segmentation module is the number of target material categories plus the background, which respectively represents the confidence that each point in the point cloud is the target material category and the background category, so that different labels can be predicted for the target material and the image background.

[0107] For semantic segmentation tasks, the focal loss function is used:

[0108] L semantic = -α(1-q i ) γ log(q i ) (10)

[0109] q i =c i l i (11)

[0110] Where α represents the balance parameter, which is used to adjust the ratio between the positive and negative sample losses; γ represents the focus parameter; c i represents the confidence that the i-th point belongs to each category; l i The binary representation of the categorical variable representing the true value label; thus, the category of each point in the point cloud is obtained, and the point clouds classified as the target material together constitute the saliency mask of the target material.

[0111] Step 4: Train the material saliency detection model composed of the feature extraction network of full-flow bidirectional feature fusion constructed in step 2 and the saliency segmentation module constructed in step 3; the specific method is:

[0112] The material saliency detection model is trained using a training set consisting of RGB image sequences, depth image sequences, and corresponding target material saliency mask sequences; the material saliency detection model is trained on a high-performance server with 8 NVIDIA GeForce RTX3090 GPUs, and the input RGB images and depth images are both 640×480 pixels in size. The training process is optimized by the CyclicLR optimizer, and the base learning rate is set to 1e-5, the maximum learning rate is set to 1e-3, and the learning rate scheduling mode is set to triangular cyclical learning rate. The batch size is set to 3.

[0113] After training is completed, the RGB image and its corresponding depth image are input into the saliency detection method to output the point cloud saliency mask of the target material. Figure 4 The visualization of salient object detection results is provided in .

Claims

1. A material saliency detection method integrating image and point cloud information, characterized in that: The specific steps include: Step 1: Convert the depth image into a point cloud; Step 2: Build a feature extraction network for full-flow bidirectional feature fusion to extract deeply fused pixel and point cloud features from the input image and point cloud; Step 3: Construct a saliency segmentation module to perform saliency segmentation on the pixel and point cloud fusion features after feature extraction. Step 4: Train the material saliency detection model composed of the feature extraction network of the full-flow bidirectional feature fusion constructed in step 2 and the saliency segmentation module constructed in step 3.

2. The material saliency detection method of fusing image and point cloud information according to claim 1 is characterized in that: The specific method of step 1 is: Get the internal parameters of the camera, including the focal length f, the optical center coordinate position (u0, v0) and the depth value scaling factor depthScale; where the depth value scaling factor depthScale represents the conversion relationship between the depth value z in the depth image and the actual distance Z: Z = z × depthScale (1) The camera focal length and principal point position data set is the camera internal parameter matrix: Where: f x and f y represents the pixel focal length, u0 and v0 represent the optical center coordinates; Using the camera intrinsic matrix and the depth value scaling factor depthScale through the transformation (3), any pixel point (u, v) with a depth value of z in the depth map is converted to the corresponding three-dimensional point (X) in the camera coordinate system. c ,Y c ,Z c ): Thus: WITH c =From (6) According to equations (4), (5), and (6), by converting single-channel depth data into three-dimensional point cloud data, we can obtain three-dimensional geometric information of objects or scenes that is more three-dimensional than depth images.

3. The material saliency detection method of fusing image and point cloud information according to claim 1, characterized in that: The specific method of step 2 is: 2.

1. Construct the RGB network branch, including the image downsampling network based on the Swin-Transformer neural network module as the pixel feature and the PSPNet (Pyramid Scene Parsing Network) image upsampling network; the image downsampling network consists of four stages that together form a pyramid structure; 2.

2. RGB image block division: The RGB image is divided into several blocks according to the pixel size, and then input into the neural network module of Swin-Transformer; in the neural network module of Swin-Transformer, multiple blocks are divided into a window and attention calculation is performed within the window; when the input image size cannot be divided by the block size and the window size, the image is filled with pixels according to formulas (7) and (8); Where H is the input image width / pixel; W is the input image height / pixel; pad H The pixel size that needs to be filled in the width direction of the image; pad W is the pixel size that needs to be filled in the height direction of the image; windowSize is the moving window size of the Swin Transformer neural network module; patchSize is the pixel size of the patch; 2.

3. Perform feature extraction on the image after RGB block division in step 2.2: The image after RGB block division in step 2.2 is input into the first stage of the downsampling network. The first stage contains two Swin-Transformer neural network modules. The Swin-Transformer neural network module processes the input image and outputs pixel features. The pixel features are passed to the bidirectional fusion module for fusion with the point cloud features. The fused pixel features are downsampled by 2 times and input into the second stage. The structure of the second stage is consistent with that of the first stage. The two Swin-Transformer neural network modules perform attention calculation on the pixel features in the first stage and output pixel features. The pixel features are passed to the bidirectional fusion module for fusion with the point cloud features. The fused pixel features are downsampled by 2 times and input into the second stage. The features are downsampled by 2 times and input into the third stage; in the third stage, the pixel features calculated in the second stage are calculated by the Swin-Transformer neural network module for attention calculation and output of deeper pixel features. In this stage, the pixel features are directly downsampled by 2 times and then input into the fourth stage; in the fourth stage, the pixel features calculated in the third stage are calculated by two Swin-Transformer neural network modules for attention calculation and output of deeper pixel features, and then a deconvolution calculation is performed, the pixel features are upsampled by 2 times, and then input into the bidirectional fusion module for fusion with the point cloud features, and finally the obtained pixel features are passed into the PSPNet image upsampling network; 2.4 Use the PSPNet image upsampling network to upsample the pixel feature map obtained in step 2.3: First, perform a downsampling pooling, a scale-invariant pooling, a 2x upsampling pooling, and a 4x upsampling pooling operation on the pixel features input by the downsampling network, and obtain feature map representations of four different scales of pixels, 1 / 2, 1, 2, and 4 times the size of the pixel features input by the image downsampling network; Then, the feature maps of pixels of different scales are convolved, and the feature maps of each scale are input into the full-flow bidirectional feature fusion for fusion; the feature maps of pixels of each scale are upsampled to match their size with the input feature map so as to classify them at the pixel level with the original image; finally, the feature maps of pixels of each scale are concatenated and convolved once to obtain a comprehensive feature representation, which contains semantic information at different scales; 2.5 The RandLA-Net lightweight and efficient point cloud semantic segmentation network is used as the point cloud network branch to extract geometric features in the point cloud, which includes 4 upsampling and 4 downsampling; the point cloud features are composed of a large number of discrete points, each of which has position information and other attributes, including color and normal vector; 2.6 Input the first, second and fourth stages of the image downsampling network and the four different scale features of the image upsampling network obtained in step 2.4 as well as the point cloud features into the full-flow bidirectional feature fusion module for bidirectional feature fusion of pixels and point clouds. In each stage, the RGB network and the point cloud network input pixel features and point cloud features into the full-flow bidirectional feature fusion module. After the full-flow bidirectional feature fusion module fuses the features, it returns the fused pixel features and point cloud features to the RGB network and the point cloud network respectively; that is, the bidirectional feature fusion includes the fusion of point cloud features to pixel features and the fusion of pixel features to point cloud features; after the last fusion, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module; According to the intrinsic parameters of the depth camera, the pixel features are matched with the point cloud geometric features: The pixel coordinates of the RGB image are promoted to 3D world coordinates to obtain a coordinate map (XYZMap) representing the 3D coordinates in the camera coordinate system corresponding to the 2D pixels. Each pixel point in the XYZ Map stores the three-dimensional coordinate value of the 3D point represented by the pixel point in the camera coordinate system; where u and v represent pixel coordinates, and f x and f y represents the pixel focal length, u0 and v0 represent the optical center coordinates, X c , Y c and Z c Represents the point coordinates in the camera coordinate system; after calculating the XYZ Map corresponding to the original input RGB image, according to the feature map sizes in the four downsampling stages of the RGB network and point cloud network in step 2.2 and the three upsampling stages in step 2.5, the nearest neighbor interpolation method is used on the original XYZ Map to obtain an XYZ Map of the same size as the feature map composed of pixel features input to the full-flow bidirectional feature fusion module at each stage of the RGB network branch.

4. The material saliency detection method of fusing image and point cloud information according to claim 3 is characterized in that: The nearest neighbor interpolation method for the XYZ Map in step 2.6 is as follows: 1) Calculate the original position: For each pixel position in the XYZMap image, calculate its corresponding position in the original XYZ Map according to the size ratio of the target image and the original image; 2) Find the nearest pixel: Find the nearest XYZMap pixel based on the calculated corresponding position; 3) Filling the target image pixel value: The value of the nearest neighbor XYZ Map pixel is used as the pixel value of the corresponding position in the target XYZ Map.

5. The material saliency detection method of fusing image and point cloud information according to claim 3 is characterized in that: The fusion process of point cloud features to pixel features in the bidirectional feature fusion of each stage in step 2.6 is as follows: for each pixel feature input in this stage, find the XYZMap pixel value corresponding to the coordinate according to the XYZ Map of its pixel in the corresponding stage, that is, the three-dimensional coordinate corresponding to the pixel feature; find the corresponding sample point in the point cloud feature according to the three-dimensional coordinate; and use the K-Nearest Neighbor (KNN) algorithm to find K points around the sample point in the point cloud feature as neighboring points, input the K+1 point cloud features of the neighboring points and the sample point into a multilayer perceptron (MLP), and perform maximum pooling to obtain a fusion feature of the same dimension as the pixel feature input in this stage; concatenate the fusion feature with the pixel feature input in this stage, and then pass it through a multilayer perceptron to obtain the fused pixel feature again, and return the fused pixel feature to the RGB network branch; The fusion process of pixel features to point cloud features in the bidirectional feature fusion of each stage is as follows: use the K-nearest neighbor algorithm for each sample point found in the fusion process of point cloud features to pixel features, find the K neighboring points around it, and pass the XYZ Map finds the K+1 pixel features corresponding to the neighboring points and the sample points in the pixel feature map input in this stage, inputs these K+1 pixel features into the multi-layer perceptron and performs maximum pooling to obtain a fused feature with the same dimension as the sample point cloud feature, concatenates the fused feature with the sample point cloud feature and passes it through a multi-layer perceptron again to obtain the fused point cloud feature, and returns the feature to the point cloud network branch.

6. The material saliency detection method of fusing image and point cloud information according to claim 1, characterized in that: The specific method of step 3 is: After completing the last fusion in step 2.6, the fused pixel feature map and point cloud feature map are spliced ​​into pixel point cloud features and input into the saliency segmentation module; a multi-layer perceptron composed of 4 1×1 convolution kernels is used to perform saliency segmentation on the pixel point cloud features: the last layer channel size of the saliency segmentation module is the number of target material categories plus the background, which respectively represents the confidence of each point in the point cloud as the target material category and the background category, so that different labels can be predicted for the target material and the image background; The focal loss function (FocalLoss) is used as the loss function: L=-a(1-q i ) γ log(q i ) (10) q i =c i l i (11) Among them, α represents the balance parameter, which is used to adjust the ratio between the positive and negative sample losses; γ represents the focus parameter; c i represents the confidence that the i-th point belongs to each category; l i The binary representation of the categorical variable representing the true value label; thus, the category of each point in the point cloud is obtained, and the point clouds classified as the target material together constitute the saliency mask of the target material.

7. The material saliency detection method of fusing image and point cloud information according to claim 1, characterized in that: The specific method of step 4 is as follows: The material saliency detection model is trained using a training set consisting of RGB image sequences, depth image sequences, and the corresponding target material saliency mask sequences.

8. A detection system based on the material saliency detection method of fusion image and point cloud information according to any one of claims 1 to 7, characterized in that: include: The point cloud conversion module is used in step 1 to obtain the internal parameters of the camera and perform inverse projection according to the pixel coordinates of each pixel in the depth image and its depth value to obtain the point cloud corresponding to the depth image as the input of the point cloud network branch; The image downsampling network module is used in step 2. The image that cannot be filled by the block size and the window size is filled by pixel filling to perform non-deformed block division, and the input RGB image is subjected to 4-stage feature extraction using a neural network module based on Swin-Transformer. After the first three stages, each downsampling is performed once, and the last stage uses a deconvolution to perform an upsampling. After the 1st, 2nd, and 4th stages, the pixel features are input into the bidirectional feature fusion module for feature fusion. After the fusion is completed, it is returned to the RGB network branch to finally complete the extraction of pixel features; The image upsampling network module is used in step 2, using PSPNet as the image upsampling network. It first performs pooling of different scales to make the input pixel features become feature representations of four different scales of 1 / 2, 1, 2, and 4 times the original size; then, the features of each scale are convolved and input into the bidirectional feature fusion module for feature fusion; finally, upsampling is performed to match its size with the input feature map, and the obtained pixel features of different scales are convolved, spliced, and convolved to obtain a comprehensive feature representation; Point cloud network branch module, used in step 2, extracts point cloud features through the RandLA-Net lightweight and efficient point cloud semantic segmentation network; The bidirectional feature fusion module is used in step 2. The corresponding table XYZ Map of pixel features and point cloud features is constructed according to the pinhole camera imaging principle. In the process of fusing point cloud features to pixel features, the sample point cloud feature points corresponding to the pixel features are found according to the XYZ Map, and the neighboring point cloud features are obtained by using the K-nearest neighbor algorithm. The sample point cloud features and the neighboring point cloud features are input into the multi-layer perceptron and then spliced ​​with the pixel features, and then input into the multi-layer perceptron again to obtain the fused features, and finally the fused features are returned to the RGB network branch. In the process of fusing pixel features to point cloud features, any point in the point cloud feature is taken as a sample point, and the K-nearest neighbor algorithm is used to obtain the neighboring point cloud features. The pixel features corresponding to the sample and the neighboring points are found according to the XYZ Map. The pixel features are input into the multi-layer perceptron and then spliced ​​with the sample point cloud features. The pixel features are input into the multi-layer perceptron again to obtain the fused features, and finally the fused features are returned to the point cloud network branch. The saliency segmentation module is used in step 3. It performs saliency segmentation on the pixel point cloud fusion features by using a multi-layer perceptron composed of 4 1×1 convolution kernels. The channel size of the last layer of the saliency segmentation module is the number of target material categories plus the background, which respectively represents the confidence that the point belongs to each target material category and the background category. Finally, the focal loss function is used as the loss function.

9. A detection system based on the material saliency detection method of fusion image and point cloud information according to any one of claims 1 to 7, characterized in that: include: Memory: used for storing a computer program expressing a material saliency detection method integrating image and point cloud information; Processor: used to implement the material saliency detection method of the fused image and point cloud information described in steps 1 to 4 according to the stored computer program.

10. A computer storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it can perform material saliency detection of the fused image and point cloud information for a composite mobile robot based on the material saliency detection method of the fused image and point cloud information described in steps 1 to 4.

Citation Information

Cited By

  • RGBD mobile device stair detection method based on deep learning, storage medium and electronic device

    CN119399277A

  • Method for intelligently extracting point cloud of stacked muck particles

    CN120107276A

  • A method for intelligently extracting the point cloud of stacked construction waste particles

    CN120107276B