Semantic segmentation method for objects of the same shape but different sizes based on RGB-D

Through the semantic segmentation method based on RGB-D images, combined with point clouds to generate scale feature maps and input the size classification model, the problem of RGB images being difficult to distinguish targets of the same shape and different sizes is solved, and accurate prediction of target size and semantic segmentation results are achieved. improvement.

CN114387278BActive Publication Date: 2024-10-15SHENYANG AEROSPACE UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011132304.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-21
Publication Date
2024-10-15
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

It is difficult to effectively classify parts of the same shape based on different sizes in existing RGB images, making it difficult for semantic segmentation to distinguish targets of the same shape and different sizes.

Method used

Using a semantic segmentation method based on RGB-D images, the category, bounding box and pixel position of the target are obtained through the semantic segmentation model, a point cloud is generated based on the depth image, the scale feature map is calculated, and the size classification model is input to predict the size of the target. The corresponding network architecture and training methods were designed.

Benefits of technology

It achieves accurate semantic segmentation of targets of the same shape and different sizes, can distinguish the size of targets, and improves the accuracy of semantic segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0002735553010000011
    Figure HDA0002735553010000011
  • Figure HDA0002735553010000012
    Figure HDA0002735553010000012
  • Figure HDA0002735553010000021
    Figure HDA0002735553010000021
Patent Text Reader

Abstract

The semantic segmentation method of objects of the same shape but different sizes based on RGB-D includes: 1. preparing an RGB-D data set, which includes an RGB image and a depth image, annotating each object in the image, and distinguishing the size category of the object; 2. constructing a semantic segmentation model network, and training the model to obtain the predicted object category, bounding box and pixel position; 3. obtaining a point cloud of the object by combining the depth image with the object category, the bounding box with the pixel position; 4. obtaining a scale feature map of the object through the point cloud; 5. inputting the obtained scale feature map into a size classification network, training the size classification model, and obtaining the predicted size of the object; 6. combining the results of steps 2 and 5 to obtain an accurate semantic segmentation result of the object. The present invention can not only predict the category, bounding box and pixel position of objects of the same shape but different sizes, but also predict the size of the object through the scale feature map.
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 and image processing, and in particular relates to a semantic segmentation method for objects of the same shape but different sizes based on RGB-D. Background Art

[0002] Image semantic segmentation is an important research topic in the image processing process. Its purpose is to assign a predefined label representing its semantic category to each pixel in the image. The emergence and rapid development of Convolutional Neural Networks (CNN) has made great breakthroughs in the field of image segmentation. It no longer relies on manually written extractors and has higher efficiency and adaptability.

[0003] MASK-RCNN can simultaneously complete target classification, target detection and pixel-level segmentation tasks with high accuracy, becoming the mainstream method of semantic segmentation. However, due to the limitations of RGB images, it is difficult to classify parts of the same shape according to their sizes. Summary of the invention

[0004] In view of the problem that the semantic segmentation of ordinary RGB images is difficult to distinguish objects of the same shape but different sizes, the present invention proposes a semantic segmentation method for objects of the same shape but different sizes based on RGB-D images, which is used to train a semantic segmentation model for objects of the same shape but different sizes. Specifically, the category, bounding box and pixel position of the object are obtained through the semantic segmentation model, and a point cloud is generated by combining the depth image. The scale feature map is then calculated from the point cloud, and the size of the object is distinguished according to the scale feature map, and finally the semantic segmentation result of the object is obtained.

[0005] The present invention aims to provide a semantic segmentation method for objects of the same shape but different sizes based on RGB-D, which predicts the size of the object by inputting the scale feature map converted from the point cloud generated by the depth image after semantic segmentation into the size classification model. To this end, the present invention proposes the concept of scale feature map and designs the corresponding network architecture and training method.

[0006] A semantic segmentation method for objects of the same shape but different sizes based on RGB-D, comprising the following steps:

[0007] Step 1: Create an RGB-D dataset, which includes RGB images (A1) and depth images (A2). Label each object in the image, including the object category and pixel position, and distinguish the size category of the object through the labeled pixel value.

[0008] Step 2: Build a semantic segmentation model network, input the RGB image (A1) in the dataset and its pre-labeled semantic segmentation information into the semantic segmentation network, train the semantic segmentation model, and obtain the predicted target category (B1), bounding box (B2) and pixel position (B3);

[0009] Step 3: The point cloud of the target is obtained by combining the depth image (A2) with the obtained target category (B1), bounding box (B2) and pixel position (B3);

[0010] Step 4: Obtain the scale feature map of the target through the obtained point cloud;

[0011] Step 5: Build a size classification network, input the obtained scale feature map into the size classification network, train the size classification model, and obtain the predicted size of the target;

[0012] Step 6: Display the results of step 2 and step 5 in the original image at the same time to obtain the accurate semantic segmentation result of the target.

[0013] The semantic segmentation method of objects of the same shape but different sizes based on RGB-D, wherein:

[0014] The network structure of the semantic segmentation model in step 2 is MASK-RCNN; the pre-labeled semantic segmentation information includes object category information, pixel position information and size information of each pixel of the training image (A1); the semantic segmentation model includes a MASK-RCNN semantic segmentation model and a size classification model.

[0015] The method for generating a scale feature map from a point cloud in step 4 is performed according to the following steps:

[0016] First, add the point coordinate values ​​in the target point cloud and take the average value to calculate the center of gravity coordinates of the target;

[0017] Then calculate the Euclidean distance from each point in the target point cloud to the centroid;

[0018] Finally, the obtained Euclidean distance is mapped into a grayscale image, which is called a scale feature map.

[0019] The size classification model network in step 5 is ResNet; the loss function of the size classification model is FocalLoss.

[0020] Compared with the prior art, the present invention has the following advantages:

[0021] (1) The scale feature map proposed by the present invention contains the distance information from the point in the target point cloud to the centroid. The larger the distance value, the larger the pixel value in the scale feature map, and vice versa. The smaller the distance value, the smaller the pixel value. Therefore, the scale feature map can be used to distinguish the sizes of objects of the same shape but different sizes.

[0022] (2) The semantic segmentation network constructed by the present invention can not only predict the category, bounding box and pixel position of objects of the same shape but different sizes, but also predict the size of the object through the scale feature map. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The network structure diagram of the semantic segmentation method for objects of the same shape but different sizes based on RGB-D in the present invention;

[0024] Figure 2 Flowchart of the semantic segmentation method for objects of the same shape but different sizes based on RGB-D of the present invention;

[0025] Figure 3 The dataset images of the present invention include (a) RGB images, (b) depth images, and (c) annotated images;

[0026] Figure 4 The semantic segmentation image obtained by MASK-RCNN in the embodiment of the present invention;

[0027] Figure 5 The scale feature map generated in the embodiment of the present invention;

[0028] Figure 6 The semantic segmentation result finally obtained in the embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.

[0030] like Figure 1 As shown, the network structure diagram of the RGB-D based semantic segmentation method for objects of the same shape but different sizes of the present invention first obtains the semantic segmentation result by training the MASK-RCNN model, then converts the point cloud generated by combining the depth image into a scale feature map, and then inputs the scale feature map into the size classification model to obtain the size of the target.

[0031] like Figure 2 As shown, the semantic segmentation method based on RGB-D for objects of the same shape but different sizes of the present invention has the following specific operation steps:

[0032] Step 1: Make an RGB-D dataset, such as Figure 3As shown in the figure, taking the more representative bearings among the parts of the same shape but different sizes as an example, two data sets of bearings with diameters of 110 mm and 150 mm are collected. The data set includes RGB images (A1) and depth images (A2), and each target in the image is labeled. Among them, the RGB image and the depth image can be obtained using a depth camera such as Kinect, and calibration and alignment operations can be performed. The real semantic segmentation map of the image annotation can be produced using image annotation software such as Labelme, and the size information of the bearing is marked with the pixel value of each target in the real semantic segmentation map.

[0033] Step 2: Construct the semantic segmentation model network MASK-RCNN, input the RGB image (A1) in the dataset and its pre-annotated semantic segmentation information into the semantic segmentation network, train the semantic segmentation model, and obtain the predicted bearing category (B1), bounding box (B2) and pixel position (B3). The semantic segmentation results are as follows: Figure 4 As shown;

[0034] Step 3: By combining the depth image (A2) with the bearing category (B1), bounding box (B2) and pixel position (B3) obtained in step 2, the point cloud of the bearing is obtained according to the intrinsic parameter matrix of the camera;

[0035] Step 4: Figure 5 As shown, the scale feature map of the bearing is obtained through the obtained point cloud; the specific steps are:

[0036] First, sum the coordinate values ​​of all points in the point cloud and divide it by the number of points in the point cloud to obtain the centroid coordinates of the point cloud;

[0037] Then calculate the Euclidean distance from each point in the point cloud to the centroid;

[0038] Finally, the obtained Euclidean distance value is mapped to a grayscale image;

[0039] Step 5: Construct a size classification network, input the obtained scale feature map into the size classification network, extract the features of the scale feature map through ResNet, train the size classification model, and obtain the predicted bearing size; the loss function of the size classification model is Focal Loss;

[0040] Step 6: Display the results of step 2 and step 5 in the original image at the same time. The results include the type, size, bounding box and pixel position of the bearing. The results are as follows: Figure 6 shown.

[0041] The present invention is not limited to this embodiment, and any equivalent concepts or changes within the technical scope disclosed by the present invention are included in the protection scope of the present invention.

Claims

1. A semantic segmentation method for objects of the same shape but different sizes based on RGB-D, characterized in that: The following steps are involved: Step 1: Create an RGB-D dataset, which includes RGB images and depth images, and annotate each target in the image. The annotation includes the target category and pixel position, and the size category of the target is distinguished by the annotated pixel value; Step 2: Build a semantic segmentation model network MASK-RCNN, input the RGB image in the dataset and its pre-annotated semantic segmentation information into the semantic segmentation model network, train the semantic segmentation model network, and obtain the predicted target category, bounding box, and pixel position; Step 3: Get the point cloud of the target by combining the depth image with the target category, bounding box and pixel position; Step 4: Obtain the scale feature map of the target through the obtained point cloud; Follow these steps: First, add the point coordinate values ​​in the target point cloud and take the average value to calculate the center of gravity coordinates of the target; Then calculate the Euclidean distance from each point in the target point cloud to the centroid; Finally, the obtained Euclidean distance is mapped to a grayscale image, which is called a scale feature map; Step 5: Construct a size classification network, input the obtained scale feature map into the size classification network, train the size classification network, and obtain the predicted size of the target; Step 6: Display the results of step 2 and step 5 in the original image at the same time to obtain the accurate semantic segmentation result of the target.

2. The semantic segmentation method according to claim 1, characterized in that: The semantic segmentation information pre-labeled in step 2 includes object category information, pixel position information and size information of each pixel in the training RGB image.

3. The semantic segmentation method according to claim 1, characterized in that: The size classification network in step 5 is ResNet; the loss function of the size classification network is Focal Loss.