A 6D pose estimation method that decouples rotation and translation phases

By separately estimating rotation and translation and optimizing iteratively, the problem of low accuracy and low efficiency of 6D pose estimation in the existing technology is solved, and higher-precision and stable pose estimation is achieved, which is suitable for real-time in complex environments. application.

CN114862951BActive Publication Date: 2024-09-27HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210456048.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2024-09-27
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

Existing CNN-based 6D pose estimation methods have problems with low accuracy and low efficiency in robot grasping and assembly tasks. In particular, they cannot accurately match the actual observed pose of the human body and are greatly affected by environmental factors.

Method used

Using the method of decoupling the rotation and translation phases, point clouds and RGB images are obtained through RGBD image segmentation, features are extracted and the rotation of the target is estimated respectively, and then the rotation is used to optimize the rotation and translation of the point cloud, and iterative calculations are performed to obtain the final 6D Pose estimation results. Specific steps include using PSPNet for image segmentation, PointNet and CNN networks to extract features, combining multi-layer perceptron training, and using rotation and translation loss functions for optimization.

Benefits of technology

It achieves more accurate and efficient 6D pose estimation, improves stability and accuracy in complex environments, and can meet real-time needs, such as 0.76cm accuracy and 20fps inference speed on the YCB data set.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114862951B
    Figure CN114862951B
Patent Text Reader

Abstract

The present invention discloses a 6D pose estimation method that decouples rotation and translation, including performing image segmentation on an RGBD image to obtain a point cloud containing a target and an RGB image; extracting features of the point cloud containing the target and the RGB image respectively, and estimating the rotation of the target based on the features; rotating the point cloud containing the target using the obtained rotation of the target to obtain a target point cloud in the same direction as the camera point cloud, and then estimating the translation of the point cloud; translating the point cloud into the target point cloud in the same direction as the camera point cloud and the translation between the camera point cloud; optimizing the rotation of the target and the translation of the point cloud through iteration to obtain a final optimized 6D pose estimation result. The present invention designs a network framework that estimates the rotation and translation of the target separately, and the framework estimates the rotation of the target first, then performs accurate translation estimation through the rotation, and then performs the above two steps back and forth to continuously improve the precision, with good fitting effect and high accuracy.
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 processing, and in particular relates to a 6D pose estimation method for decoupling rotation and translation. Background Art

[0002] In recent years, 6D pose estimation of targets has been widely used in the fields of robotic assembly, autonomous driving, and augmented reality. In robotic grasping and assembly tasks, real-time and accurate 3D positioning and target orientation estimation are important guarantees for reasonable grasping gestures and high assembly success rates.

[0003] Due to the development of deep learning and artificial intelligence, many CNN-based pose estimation methods have emerged. These methods are usually variants of more mature methods in other fields. Such as object detection, instance segmentation, key point detection, etc. However, strictly speaking, since 6D pose estimation is a 3D task, these 2D-based methods will eventually encounter bottlenecks. Due to the maturity of RGBD sensors, current research tends to combine RGB information and depth information for pose estimation. With the help of depth information, the instability caused by environmental factors such as lighting and obstacles can be greatly alleviated.

[0004] Recent methods usually use PointNet and CNN to extract features of RGBD images respectively, and then use a main network to directly estimate the pose of the target, which includes a translation vector and a quaternion to represent the 3D position and 3D direction respectively. However, this method cannot accurately match the actual observed pose of the human body, resulting in inaccurate 6D pose estimation and low efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide a 6D pose estimation method that decouples rotation and translation phases. The method accurately estimates the pose and conforms to the actual observation direction of the human body.

[0006] The 6D pose estimation method for decoupling rotation and translation provided by the present invention comprises the following steps:

[0007] S1. Segment the RGBD image to obtain a point cloud and RGB image containing the target;

[0008] S2. extract features of the point cloud and RGB image containing the target respectively, and estimate the rotation of the target based on the features;

[0009] S3. Use the obtained rotation of the target to rotate the point cloud containing the target, obtain the target point cloud in the same direction as the camera point cloud, and then estimate the translation of the point cloud; the point cloud translation is the translation between the target point cloud in the same direction as the camera point cloud and the camera point cloud; the camera point cloud is specifically the point cloud obtained after the depth image obtained by the camera is converted;

[0010] S4. The rotation of the target and the translation of the point cloud are optimized iteratively to obtain the final optimized 6D pose estimation result.

[0011] The step S1 includes segmenting the image obtained by the camera using the PSPNet network; converting the segmented depth image into an initial point cloud, and making a sphere with the detection center as the center and the maximum length of the target as the diameter, and treating the points outside the sphere as noise points, removing the noise point cloud, and outputting the point cloud and RGB image containing the target after segmentation.

[0012] The step S2 includes: using the initially rotated PointNet network to extract features from the point cloud containing the target to obtain point cloud features; using the CNN network to extract features from the color information of the RGB image to obtain color features; then fusing the point cloud features and the color features point by point to obtain features F; inputting the features F into the initially rotated multi-layer perceptron, training the initially rotated multi-layer perceptron, and outputting a quaternion Q from the initially rotated multi-layer perceptron, wherein the quaternion Q is used to represent the rotation direction of the target.

[0013] The training of the initially rotated multilayer perceptron includes using the initially rotated multilayer perceptron to calculate a vector of length 4 for each pixel to represent the target rotation. The initially rotated multilayer perceptron is a structure based on a fully connected network and is trained using a rotation loss function:

[0014]

[0015]

[0016] v j =x j -Rx j

[0017] Among them, L r represents the loss of the rotation of the feature estimation target; x j represents the jth point of the camera point cloud; R represents the true rotation; represents the estimated rotation of the jth point; N represents the number of points in the camera point cloud; ω represents the rotation loss hyperparameter; v j Represents the vector formed by the cross product of the j-th point and the real rotation; represents the vector formed after the j-th point cross product estimate is rotated; <·,·> represents the cosine value between two vectors; ||·|| represents the length of the vector; Represents the mean of the estimate vector.

[0018] The step S3 comprises the following steps:

[0019] A1. Use the quaternion Q to rotate the point cloud containing the target to obtain the target point cloud in the same direction as the camera point cloud, so that the target point cloud in the same direction as the camera point cloud is consistent in direction and number with the camera point cloud;

[0020] A2. Input the target point cloud in the same direction as the camera point cloud into the target PointNet network of the initial translation to extract the target features, input the camera point cloud into the source PointNet network of the initial translation to extract the camera point cloud features, and splice the target features and the camera point cloud features point by point to obtain the spliced ​​features; at the same time, copy N copies of feature F and splice them into the obtained spliced ​​features, and input them into the multi-layer perceptron of the initial translation, and output a 3D vector representing the translation T of the target relative to the camera, where N is the number of camera point clouds.

[0021] The step A1 includes converting the point cloud containing the target into a 3D point cloud, and then performing a cross multiplication to obtain a rotation matrix, wherein the rotation matrix is ​​obtained by quaternion Q transformation to obtain a target point cloud in the same direction as the camera point cloud; sampling the point cloud containing the target, wherein the sampling step is to sort the point cloud containing the target according to its depth in the camera coordinates, and select N points with the smallest depth, wherein N is the number of camera point clouds;

[0022] The step A2 specifically adopts the target PointNet network with the initial translation removed from the STN (spatial transformer network) structure or the source PointNet network with the initial translation, and the translation loss function is:

[0023]

[0024] Among them, L d represents the loss of translation estimation; N is the number of camera point clouds; x j represents the jth point of the camera point cloud; R represents the true rotation; represents the estimated rotation of the jth point; t represents the actual translation; Represents the estimated translation.

[0025] In step S4, each iteration includes the following steps:

[0026] B1. Apply the rotation and translation obtained in the previous iteration to the point cloud of the target point cloud and sample it to obtain a roughly aligned point cloud with the same number of point clouds as the camera point cloud;

[0027] B2. Input the target point cloud with the same direction as the camera point cloud into the source PointNet network in the rotation estimation of the i-th iteration to extract features; input the camera point cloud into the target PointNet network in the rotation estimation of the i-th iteration to extract features; then perform point-to-point splicing;

[0028] B3. Copy feature F to the feature in B2, where N is the number of camera point clouds. Then input the feature into the MLP regression network in the rotation estimation of the i-th iteration, and output a quaternion representing the rotation of the target relative to the camera, specifically:

[0029] The rotation R obtained by the kth iteration k It is expressed as,

[0030]

[0031] Among them, R i-1 represents the rotation obtained at the i-1th iteration; represents the source PointNet network in the rotation estimation of the i-th iteration, the target PointNet network in the rotation estimation of the i-th iteration, and the MLP regression network in the rotation estimation of the i-th iteration; ASS(·) represents the sampling step described in step A1; ρ represents the target point cloud; T i-1 represents the translation obtained at the i-1th iteration; represents the camera point cloud; I represents the total number of iterations;

[0032] The translation T obtained by the i-th iteration is obtained by the method of step S3. i :

[0033]

[0034] in, Represents the source PointNet network in the translation estimation of the i-th iteration, the target PointNet network in the translation estimation of the i-th iteration, and the MLP regression network in the translation estimation of the i-th iteration.

[0035] B4. Calculate the total loss function:

[0036]

[0037] Where, L represents the total loss; L r represents the loss of the rotation of the feature estimation target; L d represents the loss of the translation estimation part; β represents the total loss hyperparameter; represents the rotation loss of the kth iteration; represents the translation loss of the kth iteration;

[0038] Set the evaluation index, which is the average distance between the target point cloud points after transformation with the estimated pose and the real pose.

[0039]

[0040] Among them, R represents the real rotation; represents the estimated rotation of the jth point; x j represents the jth point of the camera point cloud; N is the number of camera point clouds; and the obtained evaluation index ADD is used to evaluate the iterative results and select the optimal 6D pose estimation result.

[0041] The 6D pose estimation method that decouples rotation and translation provided by the present invention designs a network framework that estimates the target rotation and translation separately. The framework first estimates the target rotation, then accurately estimates the translation based on the rotation, and then repeats the above two steps to continuously improve the precision, with good fitting effect and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the process of the present invention.

[0043] Figure 2 It is a schematic diagram of the posture result in the process of an embodiment of the present invention. DETAILED DESCRIPTION

[0044] like Figure 1 The flowchart of the method of the present invention is as follows: The 6D pose estimation method for decoupling rotation and translation provided by the present invention comprises the following steps:

[0045] S1. Segment the RGBD image to obtain a point cloud and RGB image containing the target;

[0046] S2. extract features of the point cloud and RGB image containing the target respectively, and estimate the rotation of the target based on the features;

[0047] S3. Use the obtained rotation of the target to rotate the point cloud containing the target, obtain the target point cloud in the same direction as the camera point cloud, and then estimate the translation of the point cloud; the point cloud translation is the translation between the target point cloud in the same direction as the camera point cloud and the camera point cloud; the camera point cloud is specifically the point cloud obtained after the depth image obtained by the camera is converted;

[0048] S4. The rotation of the target and the translation of the point cloud are optimized iteratively to obtain the final optimized 6D pose estimation result.

[0049] The step S1 includes using a lightweight instance segmentation network based on a coding and decoding architecture to segment the image obtained by the camera. In this embodiment, PSPNet is used; the segmented depth image is converted into an initial point cloud, and a sphere is made with the detection center as the center and the maximum length of the target as the diameter. Points outside the sphere are regarded as noise points, and the noise point cloud is removed. After segmentation, the output is a point cloud and an RGB image containing the target.

[0050] The step S2 includes: using the initially rotated PointNet network to extract features from the point cloud containing the target to obtain point cloud features; using the CNN network to extract features from the color information of the RGB image to obtain color features; then fusing the point cloud features and the color features point by point to obtain features F; inputting the features F into the initially rotated multi-layer perceptron, training the initially rotated multi-layer perceptron, and outputting a quaternion Q from the initially rotated multi-layer perceptron, wherein the quaternion Q is used to represent the rotation direction of the target.

[0051] The training of the initially rotated multilayer perceptron includes using the initially rotated multilayer perceptron to calculate a vector of length 4 for each pixel to represent the target rotation. The initially rotated multilayer perceptron is a structure based on a fully connected network and is trained using a rotation loss function:

[0052]

[0053]

[0054] v j =x j -Rx j

[0055] Among them, L r represents the loss of the rotation of the feature estimation target; x j represents the jth point of the camera point cloud, which is randomly selected from the 3D model of the object; R represents the true rotation; represents the estimated rotation of the jth point; N represents the number of points in the camera point cloud; ω represents the rotation loss hyperparameter; v j Represents the vector formed by the cross product of the j-th point and the real rotation; represents the vector formed after the j-th point cross product estimate is rotated; <·,·> represents the cosine value between two vectors; ||·|| represents the length of the vector; Represents the mean of the estimate vector.

[0056] The loss function has two constraints. The former means that the direction of each point is as similar as possible to the true direction, and the latter means that the length of each vector is as consistent as possible.

[0057] The step S3 comprises the following steps:

[0058] A1. Use the quaternion Q to rotate the point cloud containing the target to obtain the target point cloud in the same direction as the camera point cloud, so that the target point cloud in the same direction as the camera point cloud is consistent in direction and number with the camera point cloud;

[0059] A2. Input the target point cloud in the same direction as the camera point cloud into the target PointNet network of the initial translation to extract the target features, input the camera point cloud into the source PointNet network of the initial translation to extract the camera point cloud features, and splice the target features and the camera point cloud features point by point to obtain the spliced ​​features; at the same time, copy N copies of the feature F and splice it into the obtained spliced ​​features, and input it into the second multi-layer perceptron, and output a 3D vector representing the translation T of the target relative to the camera, where N is the number of camera point clouds.

[0060] The step A1 includes converting the point cloud containing the target into a 3D point cloud, and then cross-multiplying the obtained rotation matrix, which is obtained by quaternion Q transformation, to obtain the target point cloud in the same direction as the camera point cloud. Because the point cloud obtained by the depth camera is only 2.5D (that is, only one side of the target can be obtained), it is necessary to sample the point cloud containing the target. The sampling step is to sort the point cloud containing the target according to its depth in the camera coordinates, and then select the N points with the smallest depth, where N is the number of camera point clouds.

[0061] In step A2, since the STN structure will eliminate the rotation characteristics of the point cloud, PointNet without the STN structure is used; the translation loss function is:

[0062]

[0063] Among them, L d represents the loss of the translation estimation part, which represents the average distance of the target point cloud after applying the true pose and the estimated pose respectively; N is the number of camera point clouds; x j represents the jth point of the camera point cloud; R represents the true rotation; represents the estimated rotation of the jth point; t represents the actual translation; Represents the estimated translation.

[0064] Step S4, each iteration includes the following steps:

[0065] B1. Apply the rotation and translation obtained in the previous iteration to the point cloud of the target point cloud and sample it to obtain a roughly aligned point cloud with the same number of point clouds as the camera point cloud;

[0066] B2. Input the target point cloud in the same direction as the camera point cloud into the source PointNet network in the rotation estimation of the i-th iteration to extract features, input the camera point cloud into the target PointNet network in the rotation estimation of the i-th iteration to extract features, and then perform point-to-point splicing;

[0067] B3. Copy feature F to the feature in B2, where N is the number of camera point clouds. Then input the feature into the MLP regression network in the rotation estimation of the i-th iteration, and output a quaternion representing the rotation of the target relative to the camera, specifically:

[0068] The rotation Q obtained in the kth iteration k It is expressed as,

[0069]

[0070] Among them, Q i-1 represents the rotation obtained at the i-1th iteration; represents the source PointNet network in the rotation estimation of the i-th iteration, the target PointNet network in the rotation estimation of the i-th iteration, and the MLP regression network in the rotation estimation of the i-th iteration; ASS(·) represents the sampling step described in step A1; ρ represents the target point cloud; T i-1 represents the translation obtained at the i-1th iteration; represents the camera point cloud; I represents the total number of iterations;

[0071] The translation T obtained by the i-th iteration is obtained by the method of step S3. i :

[0072]

[0073] in, Represents the source PointNet network in the translation estimation of the i-th iteration, the target PointNet network in the translation estimation of the i-th iteration, and the MLP regression network in the translation estimation of the i-th iteration.

[0074] B4. Calculate the total loss function:

[0075]

[0076] Where, L represents the total loss; L r represents the loss of the rotation of the feature estimation target; L d represents the loss of the translation estimation part; β represents the total loss hyperparameter; represents the rotation loss of the kth iteration; represents the translation loss of the kth iteration;

[0077] Set the evaluation index, which is the average distance between the target point cloud points after transformation with the estimated pose and the real pose.

[0078]

[0079] Among them, R represents the real rotation; represents the estimated rotation of the jth point; x j represents the jth point of the camera point cloud; N is the number of camera point clouds; and the obtained evaluation index ADD is used to evaluate the iterative results and select the optimal 6D pose estimation result.

[0080] like Figure 2 The figure is a schematic diagram of the posture result in the process of the embodiment of the present invention. The left side is the initial posture, and the right side is the actual posture result; Figure 2 a represents the initial pose, Figure 2 b represents the pose after rotation estimation, Figure 2 c represents the pose after translation estimation, Figure 2 d represents the pose after the first iteration rotation, Figure 2 e represents the pose after the first iterative translation, Figure 2 f represents the final result. In this embodiment, an experiment was conducted on the YCB dataset, and a final result of 0.76 cm was obtained. In addition, the inference speed of the present invention can also meet the real-time requirements, and in the pictures of the YCB dataset, the speed can reach 20fps.

Claims

1. A 6D pose estimation method that decouples rotation and translation, characterized in that The steps include: S1. Segment the RGBD image to obtain a point cloud and RGB image containing the target; S2. extract features of the point cloud and RGB image containing the target respectively, and estimate the rotation of the target based on the features; S3. Use the obtained rotation of the target to rotate the point cloud containing the target, obtain the target point cloud in the same direction as the camera point cloud, and then estimate the translation of the point cloud; the point cloud translation is the translation between the target point cloud in the same direction as the camera point cloud and the camera point cloud; the camera point cloud is specifically the point cloud obtained after the depth image obtained by the camera is converted; comprising the following steps: A1. Use the quaternion Q to rotate the point cloud containing the target to obtain the target point cloud in the same direction as the camera point cloud, so that the target point cloud in the same direction as the camera point cloud is consistent in direction and number with the camera point cloud; The method includes converting the target point cloud into a 3D point cloud, performing a cross product, and obtaining a rotation matrix, wherein the rotation matrix is ​​obtained by converting the quaternion Q, and obtaining a target point cloud in the same direction as the camera point cloud; sampling the point cloud containing the target, wherein the sampling step is to sort the point cloud containing the target according to its depth in the camera coordinates, and select N points with the smallest depth, where N is the number of camera point clouds; A2. Input the target point cloud in the same direction as the camera point cloud into the target PointNet network of the initial translation to extract the target features, input the camera point cloud into the source PointNet network of the initial translation to extract the camera point cloud features, and splice the target features and the camera point cloud features point by point to obtain the spliced ​​features; at the same time, copy the feature F N times and splice it into the obtained spliced ​​features, and input it into the multi-layer perceptron of the initial translation, and output a 3D vector representing the translation T of the target relative to the camera, where N is the number of camera point clouds; specifically, the target PointNet network of the initial translation or the source PointNet network of the initial translation without the STN spatial conversion network structure is used, and the translation loss function is: Among them, L d represents the loss of translation estimation; N is the number of camera point clouds; x j represents the jth point of the camera point cloud; R represents the true rotation; represents the estimated rotation of the jth point; t represents the actual translation; represents the estimated translation; S4. The rotation of the target and the translation of the point cloud are optimized through iteration to obtain the final optimized 6D pose estimation result; each iteration includes the following steps: B1. Apply the rotation and translation obtained in the previous iteration to the point cloud of the target point cloud and sample it to obtain a roughly aligned point cloud with the same number of point clouds as the camera point cloud; B2. Input the target point cloud in the same direction as the camera point cloud into the source PointNet network in the rotation estimation of the i-th iteration to extract features, input the camera point cloud into the target PointNet network in the rotation estimation of the i-th iteration to extract features, and then perform point-to-point splicing; B3. Copy feature F to the feature in B2, where N is the number of camera point clouds. Then input the feature into the MLP regression network in the rotation estimation of the i-th iteration, and output a quaternion representing the rotation of the target relative to the camera, specifically: The rotation Q obtained in the kth iteration k It is expressed as, Among them, Q i-1 represents the rotation obtained at the i-1th iteration; represents the source PointNet network in the rotation estimation of the i-th iteration, the target PointNet network in the rotation estimation of the i-th iteration, and the MLP regression network in the rotation estimation of the i-th iteration; ASS(·) represents the sampling step described in step A1; ρ represents the target point cloud; T i-1 represents the translation obtained at the i-1th iteration; represents the camera point cloud; I represents the total number of iterations; The translation T obtained by the i-th iteration is obtained by the method of step S3. i : in, Represents the source PointNet network in the translation estimation of the i-th iteration, the target PointNet network in the translation estimation of the i-th iteration, and the MLP regression network in the translation estimation of the i-th iteration; B4. Calculate the total loss function: Where, L represents the total loss; L r represents the loss of the rotation of the feature estimation target; L d represents the loss of the translation estimation part; β represents the total loss hyperparameter; represents the rotation loss of the kth iteration; represents the translation loss of the kth iteration; Set the evaluation index, which is the average distance between the target point cloud points after transformation with the estimated pose and the real pose. Among them, R represents the real rotation; represents the estimated rotation of the jth point; x j represents the jth point of the camera point cloud; N is the number of camera point clouds; and the obtained evaluation index ADD is used to evaluate the iterative results and select the optimal 6D pose estimation result.

2. The 6D pose estimation method for decoupling rotation and translation according to claim 1, characterized in that The step S1 includes segmenting the image obtained by the camera using the PSPNet network; converting the segmented depth image into an initial point cloud, and making a sphere with the detection center as the center and the maximum length of the target as the diameter, and treating the points outside the sphere as noise points, removing the noise point cloud, and outputting the point cloud and RGB image containing the target after segmentation.

3. The 6D pose estimation method for decoupling rotation and translation according to claim 2, characterized in that The step S2 includes: using the initially rotated PointNet network to extract features from the point cloud containing the target to obtain point cloud features; using the CNN network to extract features from the color information of the RGB image to obtain color features; then fusing the point cloud features and the color features point by point to obtain features F; inputting the features F into the initially rotated multi-layer perceptron, training the initially rotated multi-layer perceptron, and outputting a quaternion Q from the initially rotated multi-layer perceptron, wherein the quaternion Q is used to represent the rotation direction of the target.

4. The 6D pose estimation method for decoupling rotation and translation according to claim 3, characterized in that The training of the initially rotated multilayer perceptron includes using the initially rotated multilayer perceptron to calculate a vector of length 4 for each pixel to represent the target rotation. The initially rotated multilayer perceptron is a structure based on a fully connected network and is trained using a rotation loss function: v j =x j -Rx j Among them, L r represents the loss of the rotation of the feature estimation target; x j represents the jth point of the camera point cloud; R represents the true rotation; represents the estimated rotation of the jth point; N represents the number of points in the camera point cloud; ω represents the rotation loss hyperparameter; v j Represents the vector formed by the cross product of the j-th point and the real rotation; represents the vector formed after the j-th point cross product estimate is rotated; <·,·> represents the cosine value between two vectors; ||·|| represents the length of the vector; Represents the mean of the estimate vector.