Pose estimation method and system based on point cloud and fused with rotational symmetry constraint, medium and product

By combining the hybrid Gaussian model and the RANSAC plane fitting method, rotational symmetry is used to optimize the point cloud quality and pose, which solves the pose estimation problem in the existing technology that relies on known 3D models, and realizes scenarios with unknown geometric structures. Accurate object pose estimation.

CN118736014APending Publication Date: 2024-10-01HANGZHOU DIANZI UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410712856.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing point cloud-based pose estimation methods rely on known 3D models, cannot effectively utilize rotational symmetry information, and are difficult to achieve accurate object pose estimation in scenes with unknown geometric structures.

Method used

The hybrid Gaussian model and RANSAC plane fitting method are used to extract the target object point cloud from the dense scene point cloud. The optimal transformation matrix is ​​determined through iterative optimization, and the point cloud quality is optimized and pose correction is performed based on rotational symmetry to obtain an accurate image of the target object. Pose estimation.

Benefits of technology

It achieves accurate pose estimation of rotationally symmetric objects without a 3D model of the object, improves the accuracy of pose estimation, eliminates the offset of the initial centroid and normal vector, and solves the problem of poor point cloud quality. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736014A_ABST
    Figure CN118736014A_ABST
Patent Text Reader

Abstract

The invention discloses a point cloud-based target pose estimation method and system fused with rotational symmetry constraint, a medium and a product, and relates to the field of pose estimation, and the method comprises the steps: obtaining RGB images of a target object in a current scene from multiple visual angles, and employing SfM and MVS methods to create a dense scene point cloud with the target object as the center; a Gaussian mixture model and an RANSAC plane fitting method are adopted to extract a point cloud of a target object, an initial pose of the point cloud of the target object and a nearest neighbor point of each point are determined, an initial transformation matrix is defined, and a gradient descent algorithm is utilized to carry out iterative optimization on the initial transformation matrix to obtain an optimal transformation matrix; and performing quality optimization and initial pose correction on the target object point cloud according to each nearest neighbor point and the optimal transformation matrix to obtain a corrected pose of the target object point cloud as a pose estimation result of the target object. According to the invention, the pose of the object can be estimated without a 3D model of the object, and the precision of pose estimation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pose estimation, and in particular to a pose estimation method, system, medium and product based on point cloud fusion rotational symmetry constraints. Background Art

[0002] 1. Pose estimation based on point cloud: Most traditional object pose estimation methods mainly rely on feature-based matching, including local features and global features. Global feature-based methods usually use self-similar surface parts (such as plane patches) to describe the entire point cloud of the object as features. Local feature-based methods mainly explore local structural information near certain key points around the object, so that object detection can be achieved in cluttered scenes. In addition, some methods combine the advantages of the two types of features and propose point pair features (PPF), which describes the relative position and direction of two directed points. Many studies have made improvements in multiple aspects including pipelines, sampling strategies, and clustering steps based on the idea of ​​PPF. In recent years, some methods for realizing object pose estimation have used deep learning techniques. However, these methods usually rely on known high-precision 3D models, which are usually unknown for reasons such as confidentiality.

[0003] 2. Pose estimation without known 3D models: Compared with instance-level pose estimation, which requires known 3D objects to implement, many recent methods are dedicated to category-level object pose estimation to meet the needs of practical applications. Most category-level object pose estimation methods train the network on individual instances of a category. Therefore, the network can learn a category-level representation of the appearance and shape of the object, so that it can generalize to new instances of the same category. In addition to category-level object pose estimation, some methods attempt to first build a model with perceptual information and then perform pose estimation based on the built model, including SfM and comparison networks. However, such methods still require a three-dimensional model or data with a known pose during the training or construction step, and cannot take advantage of the easily available prior geometric information inherent in such symmetric objects.

[0004] 3. Pose estimation of symmetrical objects: By dealing with the ambiguity of symmetrical objects, multiple poses can be inferred from the specific appearance of symmetrical objects. To address this issue, symmetry-invariant pose distance metrics such as ADD-S are used to train the network. Some of these methods utilize additional outputs to classify or predict symmetry. In addition, symmetry-aware key point detection and symmetry-aware matching loss functions are proposed to further improve performance. However, these methods mainly focus on minimizing the impact of rotational symmetry on pose estimation when a known 3D model is available. Therefore, there is still great potential for further exploration to use prior information of rotational symmetry to enhance or achieve pose estimation of objects in scenes with unknown geometric structures.

[0005] 4. Problems with existing methods include:

[0006] 1) Point cloud-based pose estimation methods usually rely on known high-precision 3D models, but it is difficult to pre-acquire high-precision 3D models for some objects, making it difficult to meet actual needs.

[0007] 2) Methods for estimating the pose of unknown 3D models can only be used for category-level objects, and still require 3D models or data with known poses during the training or construction phase, without utilizing the prior geometric information available from the inherent symmetry of a certain type of object.

[0008] 3) Current pose estimation based on symmetric objects mainly focuses on minimizing the impact of rotational symmetry on pose estimation when the 3D model is known. However, it is still valuable to explore how to use the prior information of rotational symmetry to enhance or achieve object pose estimation in scenes with unknown geometric structures.

[0009] Therefore, a pose estimation method is urgently needed to solve the above problems. Summary of the invention

[0010] The purpose of the present invention is to provide a point cloud-based pose estimation method, system, medium and product that integrates rotational symmetry constraints, which can realize pose estimation of an object without a 3D model of the object and improve the accuracy of pose estimation of the object.

[0011] To achieve the above object, the present invention provides the following solutions:

[0012] A method for estimating target pose based on point cloud and fused rotational symmetry constraints, the method comprising:

[0013] Acquire RGB images of multiple viewing angles of a target object in the current scene, and create a dense scene point cloud centered on the target object using the SfM method and the MVS method based on the RGB images of the target object in multiple viewing angles; the target object is a rotationally symmetric object;

[0014] A target object point cloud is extracted from the dense scene point cloud using a mixed Gaussian model and a RANSAC plane fitting method;

[0015] Based on the target object point cloud, determining an initial pose of the target object point cloud; the initial pose of the target object point cloud includes an initial centroid and an initial normal vector;

[0016] Determine the nearest neighbor of each point in the target object point cloud;

[0017] An initial transformation matrix is ​​defined, and the initial transformation matrix is ​​iteratively optimized using a gradient descent algorithm to obtain an optimal transformation matrix;

[0018] According to each of the nearest neighbor points and the optimal transformation matrix, the target object point cloud is quality optimized and the initial posture is corrected to obtain a corrected posture of the target object point cloud, and the corrected posture of the target object point cloud is used as the posture estimation result of the target object.

[0019] Optionally, a mixed Gaussian model and a RANSAC plane fitting method are used to extract a target object point cloud from the dense scene point cloud, specifically including:

[0020] Convert all points in the dense scene point cloud from a world coordinate system to a camera coordinate system, and calculate reprojections of all points under multiple viewing angles in the camera coordinate system; the reprojections include depth information and coordinate information;

[0021] Based on the depth information in the reprojection of all points, a depth information histogram of multiple perspectives is constructed;

[0022] Based on the depth information histograms of multiple perspectives, a mixed Gaussian model is used to cluster and segment the point cloud at each perspective to obtain the foreground and background at each perspective, and remove the background; wherein the foreground includes the target object point cloud and the bottom surface point cloud; the background is an irrelevant scene point cloud;

[0023] The RANSAC plane fitting method is used to fit the bottom surface point cloud in the foreground to obtain the fitted bottom surface point cloud, and each point in the fitted bottom surface point cloud is deleted from the foreground to obtain the target object point cloud.

[0024] Optionally, the expression of the Gaussian mixture model is:

[0025]

[0026] Where GM represents the Gaussian mixture model function; K represents the number of Gaussian distributions with different weights; Indicates the mth μ m is the mean, ∑ m is the Gaussian distribution of the covariance matrix; φ m represents the weight of the m-th Gaussian distribution.

[0027] Optionally, the calculation formula for fitting the bottom surface point cloud in the foreground using the RANSAC plane fitting method is:

[0028]

[0029] Wherein, a, b, c and d all represent plane parameters; v = [abcd], v represents the vector formed by the plane parameters; Represents the i-th point in the point cloud.

[0030] Optionally, before determining the initial pose of the target object point cloud based on the target object point cloud, the method further includes:

[0031] The target object point cloud is preprocessed to obtain a preprocessed target object point cloud; the preprocessing includes grid downsampling and point cloud filtering.

[0032] Optionally, based on the target object point cloud, determining the initial position and pose of the target object point cloud specifically includes:

[0033] The least square method is used to perform plane fitting to obtain an initial fitting plane, wherein the sum of the distances from all points in the target object point cloud to the initial fitting plane is the smallest;

[0034] Calculating the centroid of the target object point cloud and using the centroid as the initial centroid of the target object point cloud;

[0035] Based on the initial centroid of the target object point cloud, the initial normal vector of the target object point cloud is determined to obtain the initial pose of the target object point cloud.

[0036] Optionally, according to each of the nearest neighbor points and the optimal transformation matrix, the expression of the objective function for quality optimization and initial pose correction of the target object point cloud is:

[0037]

[0038] Where T represents the optimal transformation matrix; Represents the i-th point in the point cloud; Indicates the transformation of the i-th point into the coordinates of the standard object coordinate system; represents the coordinates of the ith point after being transformed into the standard object coordinate system and then rotated by angle T'; T r represents a rotation transformation set; T' represents the rotation angle in the rotation transformation set; p' i Indicates the standard object coordinate system The nearest neighbor of ; γ represents the hyperparameter of the Huber function.

[0039] To achieve the above objectives, the present invention also provides a computer system, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned point cloud-based fusion rotational symmetry constraint target pose estimation method.

[0040] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned point cloud-based fusion rotational symmetry constraint target pose estimation method.

[0041] To achieve the above objectives, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned point cloud-based fusion rotational symmetry constraint target pose estimation method.

[0042] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0043] The present invention provides a method, system, medium and product for pose estimation based on point cloud fusion rotational symmetry constraint, adopts mixed Gaussian model and RANSAC plane fitting method, extracts target object point cloud from dense scene point cloud, removes irrelevant scene and bottom surface; then determines the nearest neighbor point of each point in target object point cloud, and determines the optimal transformation matrix through iterative optimization, uses each nearest neighbor point and optimal transformation matrix to optimize the quality and correct the initial pose of target object point cloud, and obtains accurate target object pose estimation result; wherein, the pose of target object is corrected by optimal transformation matrix, and the offset of initial centroid and initial normal vector is eliminated, and at the same time, the nearest neighbor point is used to optimize the quality of each point in point cloud, and the problem of missing point cloud and poor quality caused by the problem that point cloud is easily affected by the light environment, object occlusion and material of target object in the acquisition process is solved, thereby improving the accuracy of point cloud in initial pose correction. The present invention can realize pose estimation of object and improve the accuracy of pose estimation of object without 3D model of object. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A flow chart of a method for pose estimation based on point cloud and fused rotational symmetry constraints provided in Example 1 of the present invention;

[0046] Figure 2 This is a schematic diagram of the RANSAC plane fitting principle;

[0047] Figure 3 It is a schematic diagram of the rotation transformation set;

[0048] Figure 4 Schematic diagram of the local point cloud quality optimization process; (a) is a schematic diagram of the process of optimizing the black observation points; (b) is a schematic diagram of the process of optimizing the green observation points; (c) is a schematic diagram of the quality optimization result of the local point cloud;

[0049] Figure 5 Schematic diagram of the reconstructed dense scene point cloud;

[0050] Figure 6 This is a schematic diagram of point cloud clustering results;

[0051] Figure 7 This is a schematic diagram of the clustering and segmentation effect of the hub point cloud;

[0052] Figure 8 This is a schematic diagram of the hub point cloud;

[0053] Fig. 9 This is a schematic diagram of the wheel point cloud after filtering;

[0054] Fig.10 This is a schematic diagram of the final optimization effect of the wheel point cloud. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0056] First, the definition of rotationally symmetric objects is given as follows: for three-dimensional space, the new object obtained by rotating an object M with rotational symmetry around a certain line L by a certain angle θ can completely overlap with the original object. In other words, after rotating an object with rotational symmetry around its axis of symmetry by a certain angle, it still has the same appearance and shape. Rotational symmetry refers to the property of an object that remains unchanged under rotational transformation. In three-dimensional space, the centroid C(x c ,y c ,z c ) represents the center position of the object, and the unit normal vector N is defined. Through the centroid C, the straight line L, that is, the rotation axis of the rotating object, can be obtained. Therefore, the rotational symmetry of an object in three-dimensional space can be described as follows: In three-dimensional space, the object M is rotated around the straight line L with the unit normal vector N as the straight line direction and passing through its own centroid C by an integer multiple of the minimum rotation angle θ to obtain a new object M new The property of completely coinciding with object M.

[0057] Secondly, the present invention provides a definition of the position and orientation of a rotationally symmetric object, which is defined as: a unit normal vector N, an object centroid C, and a rotation angle θ. The position and orientation of a rotationally symmetric object in the world coordinate system can be accurately described by the composition of the above three. The present invention sets the concept of a standard object coordinate system, that is, the unit normal vector N of a rotationally symmetric object in the standard object coordinate system is the z-axis, and the object centroid C coincides with the coordinate origin O.

[0058] The purpose of the present invention is to provide a point cloud-based pose estimation method, system, medium and product that integrates rotational symmetry constraints, which can realize pose estimation of an object without a 3D model of the object and improve the accuracy of pose estimation of the object.

[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0060] Example 1

[0061] like Figure 1 As shown, the pose estimation method based on point cloud fusion rotational symmetry constraint in this embodiment includes the following steps:

[0062] Step S1: Acquire RGB images of multiple perspectives of the target object in the current scene, and based on the RGB images of multiple perspectives of the target object, use the SfM method and the MVS method to create a dense scene point cloud centered on the target object; the target object is a rotationally symmetric object. In order to completely acquire the point cloud of the target object, it is necessary to surround the target object 360°, shoot the entire model of the target object as completely as possible, obtain multi-perspective RGB images, and then use the SfM method and the MVS method to create a dense point cloud, and obtain a dense scene point cloud with the target object at the center of the point cloud scene. The SfM method is used to construct a sparse point cloud and generate a camera pose. MVS realizes dense point cloud reconstruction based on the camera pose created by SfM and the sparse point cloud.

[0063] Step S2: extracting the target object point cloud from the dense scene point cloud using a mixed Gaussian model and a RANSAC plane fitting method.

[0064] Since the dense scene point clouds created by the SfM method and the MVS method do not have clear semantic information, it is difficult to directly use the semantic segmentation model to extract the target object. Therefore, we first consider utilizing the significant difference in depth information between the foreground and the background. With the help of the camera poses given by the SfM method, the formula from the world coordinate system to the camera coordinate system and the camera intrinsic parameters are used to calculate the depth information of all point clouds within the field of view of each camera under multiple perspectives. After the depth information is histogrammed, a mixed Gaussian model is used for fitting, thereby distinguishing the foreground and background under each camera. After that, all backgrounds are removed to obtain a point cloud that only retains the area where the target object is located.

[0065] Then, in real scenes, the target object is placed on a plane such as the ground or a tabletop, and there will be a situation where the plane point cloud and the target object point cloud are stuck together. In the absence of semantic information constraints, it is difficult to segment directly by vision. Considering that the surface where the target object is placed is generally a large and flat surface, and although there is a similar flat surface on the target object, it is not as significant as the placement plane, and the weight relative to the bottom surface is small, the plane where the target object is located can be found by fitting the plane. After trying, due to the large amount of noise in the target object point cloud and the point cloud is too dense, it is difficult for the Hough space to fit the plane well. Finally, the more robust Random Sample Consensus (RANSAC) fitting method is used to fit the plane from the foreground to identify the point cloud representing the bottom surface from the dense scene point cloud, and then all points on this plane are removed in reverse to obtain the required target object point cloud.

[0066] Specifically, step S2 includes the following steps:

[0067] Step S21: convert all points in the dense scene point cloud from the world coordinate system to the camera coordinate system, and calculate the reprojection of all points under multiple viewing angles in the camera coordinate system; the reprojection includes depth information and coordinate information.

[0068] Specifically, the dense scene point cloud is obtained by the SfM+MVS method and represented by the point set P. In order to remove the background point cloud P bg ∈P, a multi-view foreground-background segmentation method is proposed. First, all points in the dense scene point cloud are projected to a specific view, and the reprojection of all points under multiple views in the camera coordinate system is calculated as follows:

[0069]

[0070] Among them, T cw It means to move the i-th point from the world coordinate system p w Transformation matrix to camera coordinate system; π: Represents a camera model with intrinsic parameters; Represents the image coordinates u of the i-th point at depth d i ∈R 2 Projection onto the image frame.

[0071] Step S22: constructing depth information histograms of multiple viewing angles based on the depth information in the reprojection of all points.

[0072] Step S23: Based on the depth information histograms of multiple perspectives, a mixed Gaussian model is used to cluster and segment the point cloud at each perspective to obtain the foreground and background at each perspective, and remove the background; wherein the foreground includes the target object point cloud and the bottom surface point cloud; the background is an irrelevant scene point cloud.

[0073] Among them, the expression of the mixed Gaussian model is:

[0074]

[0075] Where GM represents the Gaussian mixture model function; K represents the number of Gaussian distributions with different weights; Indicates the mth μ m is the mean, ∑ m is the Gaussian distribution of the covariance matrix; φ m represents the weight of the mth Gaussian distribution, satisfying 0<φ m <1 and ∑φ m = 1. According to Gaussian statistics, the point cloud cluster with a smaller mean is regarded as the foreground, so a mask is created for each view, and each point p outside the mask i It will be eliminated from the point set P. Subsequently, multiple views undergo clustering and segmentation for multiple times, and finally a point cloud containing the target object is obtained.

[0076] Step S24: Use the RANSAC plane fitting method to fit the bottom surface point cloud in the foreground to obtain a fitted bottom surface point cloud, and delete each point in the fitted bottom surface point cloud from the foreground to obtain a target object point cloud. Figure 2 shown.

[0077] Among them, the specific steps of fitting the bottom surface point cloud in the foreground using the RANSAC plane fitting method are:

[0078] Step S241: Randomly sample initial samples to determine a plane, that is, determine the plane parameters (a, b, c, d), and calculate the distances from all points to the plane by the least squares method.

[0079] Step S242: Set the hyperparameter threshold, and divide each point into inner points and outer points according to the distance from the fitting plane. If the distance from a point to the plane is less than the hyperparameter threshold, the point is determined to be an inner point, otherwise it is an outer point. The effect of the division is evaluated by the number of inner points and outer points. The more inner points and the fewer outer points, the better the fitting effect.

[0080] Step S243: repeatedly modify the plane parameters, repeat the above steps S241 to S242, iterate to find the optimal solution, and determine the fitted bottom surface point cloud. The calculation formula for fitting the bottom surface point cloud in the foreground using the RANSAC plane fitting method is:

[0081]

[0082] Wherein, a, b, c and d all represent the plane parameters of the plane ax+by+cz+d=0; ν=[abcd], v represents the vector formed by the plane parameters. The above formula (3) represents finding a set of optimal plane parameters according to iteration so that it contains as many points as possible. Since the points on the bottom surface are much larger than the points sampled from any cut surface of the target object, the plane can be considered to be the bottom surface.

[0083] Step S3: Based on the target object point cloud, determine the initial pose of the target object point cloud; the initial pose of the target object point cloud includes an initial centroid and an initial normal vector.

[0084] Specifically, step S3 includes the following steps:

[0085] Step S31: Use the least squares method to perform plane fitting to obtain an initial fitting plane; wherein, the sum of the distances from all points in the target object point cloud to the initial fitting plane is the smallest; the distance is the L2 distance, and in three-dimensional space, the L2 distance is the actual distance between two points. The specific calculation process is prior art and will not be repeated here.

[0086] Step S32: Calculate the centroid of the point cloud of the target object, and use the centroid as the initial centroid of the point cloud of the target object, i.e., the centroid C to be optimized. predict .

[0087] Step S33: Based on the initial centroid of the target object point cloud, determine the initial normal vector of the target object point cloud to obtain the initial pose of the target object point cloud, that is, calculate a normal vector N passing through the centroid and perpendicular to the initial fitting plane. predict .

[0088] Furthermore, before step S3, the method further includes: preprocessing the target object point cloud to obtain a preprocessed target object point cloud; the preprocessing includes grid downsampling and point cloud filtering.

[0089] Specifically, the point cloud obtained by step S2 has the problem of too many points being too dense and too many free points, and needs to be preprocessed to facilitate subsequent optimization. Among them, the point cloud established by the SfM method and the MVS method is sensitive to the richness of texture information, so it will be affected by factors such as the distance between the camera and the object, the scene light, and the details of the object surface. The density of the target object point cloud at different positions is inconsistent, which affects the global features of the point cloud including the center of gravity and spatial symmetry. Therefore, it is necessary to pre-process the point cloud density. Therefore, the target object point cloud is first grid-downsampled to unify the density of the target object point cloud and retain the shape characteristics of the point cloud; then, the target object point cloud after grid-downsampling has removed a lot of noise points, but there are still many free points. These free points come from the fact that some mirror reflection light is added as part of the target object in the calculation process of the SfM+ and MVS methods, and on the other hand, the concave and convex of the plane placed in the process of removing the bottom surface leads to not being completely on a plane and retaining some free parts. At this time, the target object point cloud is successively subjected to region correlation (ROR) filtering and statistical outlier removal (SOR) filtering, which can well retain the target object point cloud and remove free points.

[0090] Step S4: Determine the nearest neighbor point of each point in the target object point cloud. Determine the nearest neighbor point of each point in the target object point cloud by using an iterative closest point (ICP) algorithm.

[0091] Step S5: define an initial transformation matrix, and use a gradient descent algorithm to iteratively optimize the initial transformation matrix to obtain an optimal transformation matrix.

[0092] Step S6: According to each of the nearest neighbor points and the optimal transformation matrix, the target object point cloud is quality optimized and the initial pose is corrected to obtain the corrected pose of the target object point cloud, and the corrected pose of the target object point cloud is used as the pose estimation result of the target object.

[0093] Steps S4-S6 specifically include:

[0094] After the above steps S1 to S3, the initial pose of the target object point cloud is obtained. If it is an ideal target object point cloud, a reliable pose has been obtained through the above steps, but the target object point cloud will be affected by density distribution, distortion, incompleteness and other quality effects. The centroid and normal line will often have a certain offset, resulting in the initial pose obtained is not accurate enough, that is, the normal vector N predict Inconsistent with the true normal vector N and the centroid C to be optimized predictThere is an offset from the true centroid C. Therefore, it is necessary to further optimize its initial pose, that is, to solve an optimal transformation matrix T so that the normal vector N predict Consistent with the true normal vector N and the centroid C to be optimized predict It coincides with the true centroid C. The optimization of point cloud pose requires the constraint of overall information. The most significant one for the target object is its rotational symmetry. A completely ideal symmetrical target object point cloud takes the centroid of the point cloud as the center point and rotates a certain angle (if it is a five-spoke wheel hub, the angle should be an integer multiple of 72°) around the normal line passing through the center point. The point cloud at each position should have the same property in front and back.

[0095] For the above-mentioned optimal transformation matrix T, the present invention solves it by means of left-multiplying the perturbation matrix.

[0096] T=ET oringgin (3)

[0097] Among them, T oringin Represents the original spatial transformation, including the rotation matrix and translation variable, E represents the perturbation matrix, which is a small increment matrix and error matrix, including the perturbation part of the rotation matrix and the perturbation part of the translation vector.

[0098] The calculation process of the left multiplication perturbation matrix is ​​as follows: First, randomly initialize the initial spatial transformation matrix T0 as the starting point of the iteration, and then define the perturbation matrix E i Represents the perturbation matrix of the i-th iteration, and the perturbation matrix E of each iteration i Left multiply to the transformation matrix E of the previous iteration i-1 Up, that is, T = E i ·T i-1 The perturbation matrix E of each iteration is i The iteration uses the gradient descent method to update the parameters, and the objective function to determine the optimal transformation matrix T is as follows:

[0099]

[0100] Where T represents the optimal transformation matrix; Represents the i-th point in the point cloud; Indicates the transformation of the i-th point into the coordinates of the standard object coordinate system; represents the coordinates of the ith point after being transformed into the standard object coordinate system and then rotated by angle T'; T r represents a rotation transformation set; T' represents the rotation angle in the rotation transformation set; p' i Indicates the standard object coordinate system The nearest neighbor of ; γ represents the hyperparameter of the Huber function.

[0101] Due to the rotational symmetry of the target object, any point on the target object still lies on the target object after being rotated by a certain angle. For objects with discrete rotational symmetry, the rotation transformation can form a set T r :

[0102] T r =T r ,T r T r ,T r T r T r ,… (5)

[0103] Among them, T r Represents rotation around the axis of symmetry The value of n is determined by the shape of the rotationally symmetric object. For example, if the rotationally symmetric object is an isosceles triangular pyramid, the value of n is 3. The corresponding rotation transformation set diagram is as follows: Figure 3 shown.

[0104] For a point cloud A of an object that perfectly conforms to rotational symmetry, the new point cloud B obtained by precise T transformation and left multiplication by the rotation angle T' should have a strict one-to-one correspondence between the points in the same spatial position. In other words, the points in point cloud A From the point cloud B The nearest point p' i , the distance between the two should be 0. Based on this, after multiple iterations of updating the parameters, when the objective function reaches the minimum value, it can be considered that a required optimal transformation matrix T is obtained, that is, the normal vector N predict And the centroid C to be optimized predict Adjustments are made to obtain the precise target object pose.

[0105] Furthermore, considering that the point cloud created by the SfM and MVS methods is easily affected by problems such as the lighting environment, object occlusion, and target object material during the acquisition process, which may cause point cloud missing and poor quality, a method of joint optimization of point cloud quality and pose is adopted, and rotational symmetry is used to simultaneously estimate object pose and optimize point cloud quality.

[0106] Specifically, the above steps can estimate the pose of the target object through rotational symmetry. The most important point is to use the points in the point cloud itself as observation values, and to match the new point cloud obtained after multiple rotations with its own point cloud, so as to construct a progressive optimization process. The joint optimization of pose and point cloud quality also relies on the idea of ​​observation values ​​and observed values, that is, the position of the point cloud itself will also be gradually optimized in the iteration. The expression of the objective function for quality optimization and initial pose correction of the target object point cloud according to each of the nearest neighbor points and the optimal transformation matrix is ​​given as follows:

[0107]

[0108] Where T represents the optimal transformation matrix; Represents the i-th point in the point cloud; Indicates the transformation of the i-th point into the coordinates of the standard object coordinate system; represents the coordinates of the ith point after being transformed into the standard object coordinate system and then rotated by angle T'; T r represents a rotation transformation set; T' represents the rotation angle in the rotation transformation set; p' i Indicates the standard object coordinate system The nearest neighbor of ; γ represents the hyperparameter of the Huber function.

[0109] Compared with the above formula (4), the biggest difference of formula (6) is The point itself is also a variable to be optimized. Due to the shortcomings of the point cloud constructed by the SfM and MVS methods, a large number of missing points and free points will greatly affect the convergence of the objective function corresponding to the above formula (4), because these points themselves provide wrong information. Therefore, the objective function corresponding to formula (6) also adds the optimization of these points to adjust them to the correct position. For example, the points that are free outside the edge of the target object point cloud contour are pulled back to the contour range of the target object. In essence, it uses the accurate rotation object posture, uses the rotationally symmetric object itself to perform multiple rotations and sampling, and uses its own existing information to complete itself and repair the missing points.

[0110] Now give Figure 4 The local point cloud quality optimization process shown in Figure 1 is shown in Figure 2. The solid points represent observation points, which are points that need to be optimized, and the hollow dashed points are observed points, which are fixed points. Figure 4 As shown in (a), the black point as an observation point is affected by multiple observed points such as green, blue, purple, and brown as well as its own observed point, and its position moves to the lower left corner; Figure 4 (b) in the figure describes that the green observation point is affected by multiple observation points such as green, blue, purple, and brown, as well as its own observation point, and its position moves to the lower right corner. After multiple rounds of iterations, the final result is as follows Figure 4 As shown in (c), the yellow dot is the result of the overlap of the five points of green, blue, purple, brown and black, that is, the five corresponding observation points are finally optimized to the position of the yellow dot. The above process optimizes the point cloud quality, which further affects the pose estimation accuracy in the point cloud pose optimization process.

[0111] In addition, in order to find the nearest neighbor of each point, each point needs to be rotated multiple times, which will lead to a huge computational burden. Therefore, the loss function is adjusted and the KD tree is used to speed up the process of searching for the nearest neighbor in the point cloud. The expression of the loss function is as follows:

[0112]

[0113] Among them, the KD(·) function can provide the corresponding point Since the KD tree can be constructed based on the original point cloud, there is no need to recreate the KD tree when updating T at each iterative optimization. Therefore, the computational burden is reduced.

[0114] In addition, in order to improve the robustness of pose estimation, the objective function corresponding to formula (6) also applies a layer of Huber function. After calculating the L2 distance, another layer of Huber function is nested to further enhance the robustness of the objective function to outliers.

[0115] In general, the entire iterative process will traverse each point on the target object point cloud and calculate the distance between it and its nearest neighbor after rotation. If the target object posture and point estimation are accurate, the loss will be minimized. After multiple iterative optimizations, the quality of the original target object point cloud will be enhanced by completing the object's own information after multiple rotations, supplementing the missing points, eliminating free points (optimizing to the correct position), and obtaining the final pose estimation result.

[0116] Technical effects of the present invention:

[0117] 1) The present invention can utilize rotational symmetry to achieve pose estimation of the target object without a 3D model.

[0118] 2) The present invention uses the nearest neighbor point and the optimal transformation matrix to optimize the quality and correct the posture of the target object point cloud, and obtains an accurate target object posture estimation result; wherein, the posture of the target object is corrected by the optimal transformation matrix, which eliminates the offset of the initial centroid and the initial normal vector. At the same time, the nearest neighbor point is used to optimize the quality of each point in the point cloud, which solves the problem of missing point clouds and poor quality caused by the fact that the point cloud is easily affected by the lighting environment, object occlusion, and target object material during the acquisition process, thereby improving the accuracy of the point cloud during initial posture correction.

[0119] 3) The present invention shows better generalization ability for objects satisfying rotational symmetry due to the addition of clear geometric constraints.

[0120] Example 2

[0121] The above-mentioned embodiment 1 is further described below in conjunction with specific embodiment 2.

[0122] For most wheels, rotational symmetry is satisfied. However, since the wheel is mostly made of metal and has smooth and reflective surface, the three-dimensional model of the wheel generated by RGB image often has a lot of noise and missing points, which poses a great challenge to the pose estimation based on the prior model. The target pose estimation method based on point cloud fusion rotational symmetry constraint proposed in this invention is used to estimate the pose of the wheel that satisfies rotational symmetry.

[0123] The wheel hub is manufactured under industrial conditions and also follows three-dimensional rotational symmetry, that is, the wheel hub overlaps with the original wheel hub in space after rotating a certain angle in a specific direction. This embodiment selects a five-spoke wheel hub made of metal as the target object. Obviously, the rotation angle of the wheel hub is Wherein, n = 5. The specific steps are as follows:

[0124] Step 1: Generate scene point cloud.

[0125] In order to obtain a complete wheel point cloud, we first need to take a 360° shot of the entire model around the wheel to obtain a multi-view RGB image, and then reconstruct it using the SfM and MVS methods to obtain a dense scene point cloud centered on the wheel, such as Figure 5 As shown in the figure, the wheel hub is placed on a colored blanket in the center of the scene. The colored blanket provides sufficient feature points for SfM, ensuring the successful reconstruction of the scene point cloud in this step.

[0126] Step 2: Extract target point cloud.

[0127] Step 2.1: Separate the multi-view foreground and background using a mixed Gaussian model.

[0128] The dense scene point cloud is obtained by SfM and MVS, represented by the point set P, and the background point cloud P bg ∈P, first, we project all points in the dense scene point cloud to a specific view, and use formula (1) to calculate the reprojection of all points under multiple views in the camera coordinate system to obtain the depth information of all points.

[0129] Then, all depth results are calculated as the histogram of the depth value statistics of the point cloud in the view. Assuming that there is a clear depth difference between the foreground and the background, based on the mixed Gaussian model, the point cloud in each view is clustered based on the histogram of depth value statistics using formula (2) to obtain the foreground and background under each viewing angle, and the background is removed. The foreground includes the wheel point cloud and the bottom point cloud. The point cloud clustering result is as follows: Figure 6 As shown in the figure, the clustering and segmentation effect of the hub point cloud is as follows: Figure 7 shown.

[0130] Step 2.2: RANSAC removes the bottom surface.

[0131] The RANSAC plane fitting method is used to fit the bottom surface point cloud in the foreground to obtain the fitted bottom surface point cloud, and each point in the fitted bottom surface point cloud is deleted from the foreground to obtain the hub point cloud, such as Figure 8 shown.

[0132] Step 3: Point cloud preprocessing.

[0133] A variety of outlier removal methods are used to improve the quality of the wheel point cloud and pre-process the point cloud.

[0134] Step 3.1: Grid downsampling.

[0135] Due to the difference in measurement distance, changes in on-site lighting conditions, and the surface material of the object, the density of the constructed wheel point cloud is usually uneven. In order to further improve the accuracy of the point cloud, we use grid normalization to downsample the point cloud and divide the space into grids. If a grid contains multiple points, the center of gravity of these points is calculated and regarded as the normalized result of the grid. After experiments, it is found that the downsampled grid size of 1-2cm has a better effect on the target point cloud of the wheel workpiece. Setting the threshold of a single grid saved point to 2-3 can effectively remove noise in the space, and the shape preservation using the grid center of gravity preservation method is more accurate than the center method.

[0136] Step 3.2: Point cloud filtering.

[0137] The point cloud that has been gridded and downsampled has removed a lot of noise, but there are still many stray points. On the one hand, these stray points come from the fact that the SfM+MVS method adds some mirror reflection light as part of the wheel hub during the calculation process. On the other hand, they come from the unevenness of the ground during the removal of the bottom surface, which causes it to be not completely on the same plane and retains some stray parts.

[0138] The point cloud is filtered by ROR and SOR successively. This combination retains the hub point cloud and effectively eliminates the free points. The hub point cloud after filtering is as follows Fig. 9 shown.

[0139] Step 4: Optimize the pose using rotational symmetry.

[0140] 4.1: Determine the initial pose of the point cloud.

[0141] The shape of a wheel hub in reality can be roughly considered as a complex hollow cylinder, and the height of the cylinder is significantly smaller than the diameter of the bottom circle. Based on the wheel hub point cloud provided by the above steps, the least squares method is first used to calculate a plane so that the sum of the L2 distances from all points in the point cloud to the plane is minimized. Then the centroid of the point cloud is calculated and used as a centroid C to be optimized. predict ; Then calculate a normal vector N that passes through the center of gravity and is perpendicular to the plane predict , so far the initial position of the wheel point cloud is obtained

[0142] 4.2: Joint optimization of point cloud quality and pose.

[0143] Considering that the pose obtained in step 4.1 is still relatively rough and inaccurate, further precise optimization is required. In addition, due to the metal material of the target object, the wheel hub itself, the point cloud constructed by the SfM and MVS methods itself has many deviation points and void losses. This embodiment simultaneously optimizes the point cloud quality and pose to obtain accurate wheel hub pose and better quality wheel hub point cloud.

[0144] The idea of ​​aligning two point clouds through the iterative closest point (ICP) algorithm is to rotate the hub point cloud to find corresponding points. For the five-spoke hub in this embodiment, it is rotated 72°, 144°, 216°, 288° and 0° respectively, with a total of five point clouds. Subsequently, through multiple iterations, the hub point cloud is self-aligned under multiple symmetric rotations to estimate the object pose T, and at the same time optimize the point cloud quality to obtain the pose estimation result of the hub point cloud. The specific implementation steps of the pose estimation method integrating rotational symmetry constraints with the hub as the object are completed. The schematic diagram of the final optimization effect of the hub point cloud is shown in FIG. Fig.10 shown.

[0145] Example 3

[0146] A computer system includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the target pose estimation method based on point cloud fusion rotational symmetry constraints in Example 1.

[0147] Example 4

[0148] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the target pose estimation method based on point cloud fusion rotational symmetry constraints in Example 1.

[0149] Example 5

[0150] A computer program product includes a computer program, which, when executed by a processor, implements the target pose estimation method based on point cloud fusion rotational symmetry constraints in embodiment 1.

[0151] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0152] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for object pose estimation based on point cloud and fusion rotational symmetry constraints, characterized in that: The method comprises: Acquire RGB images of multiple viewing angles of a target object in the current scene, and create a dense scene point cloud centered on the target object using the SfM method and the MVS method based on the RGB images of the target object in multiple viewing angles; the target object is a rotationally symmetric object; A target object point cloud is extracted from the dense scene point cloud using a mixed Gaussian model and a RANSAC plane fitting method; Based on the target object point cloud, determining an initial pose of the target object point cloud; the initial pose of the target object point cloud includes an initial centroid and an initial normal vector; Determine the nearest neighbor of each point in the target object point cloud; An initial transformation matrix is ​​defined, and the initial transformation matrix is ​​iteratively optimized using a gradient descent algorithm to obtain an optimal transformation matrix; According to each of the nearest neighbor points and the optimal transformation matrix, the target object point cloud is quality optimized and the initial posture is corrected to obtain a corrected posture of the target object point cloud, and the corrected posture of the target object point cloud is used as the posture estimation result of the target object.

2. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 1 is characterized in that: The target object point cloud is extracted from the dense scene point cloud by using a mixed Gaussian model and a RANSAC plane fitting method, specifically including: Convert all points in the dense scene point cloud from a world coordinate system to a camera coordinate system, and calculate reprojections of all points under multiple viewing angles in the camera coordinate system; the reprojections include depth information and coordinate information; Based on the depth information in the reprojection of all points, a depth information histogram of multiple perspectives is constructed; Based on the depth information histograms of multiple perspectives, a mixed Gaussian model is used to cluster and segment the point cloud at each perspective to obtain the foreground and background at each perspective, and remove the background; wherein the foreground includes the target object point cloud and the bottom surface point cloud; the background is an irrelevant scene point cloud; The RANSAC plane fitting method is used to fit the bottom surface point cloud in the foreground to obtain the fitted bottom surface point cloud, and each point in the fitted bottom surface point cloud is deleted from the foreground to obtain the target object point cloud.

3. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 2 is characterized in that: The expression of the mixed Gaussian model is: Where GM represents the Gaussian mixture model function; K represents the number of Gaussian distributions with different weights; Indicates the mth μ m is the mean, ∑ m is the Gaussian distribution of the covariance matrix; φ m represents the weight of the m-th Gaussian distribution.

4. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 2 is characterized in that: The calculation formula for fitting the bottom surface point cloud in the foreground using the RANSAC plane fitting method is: Wherein, a, b, c and d all represent plane parameters; v = [abcd], v represents the vector formed by the plane parameters; Represents the i-th point in the point cloud.

5. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 1, characterized in that: Before determining the initial pose of the target object point cloud based on the target object point cloud, it also includes: The target object point cloud is preprocessed to obtain a preprocessed target object point cloud; the preprocessing includes grid downsampling and point cloud filtering.

6. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 1 is characterized in that: Based on the point cloud of the target object, determine the initial position and pose of the point cloud of the target object, including: The least square method is used to perform plane fitting to obtain an initial fitting plane, wherein the sum of the distances from all points in the target object point cloud to the initial fitting plane is the smallest; Calculating the centroid of the target object point cloud and using the centroid as the initial centroid of the target object point cloud; Based on the initial centroid of the target object point cloud, the initial normal vector of the target object point cloud is determined to obtain the initial pose of the target object point cloud.

7. The target pose estimation method based on point cloud and fusion rotational symmetry constraints according to claim 1 is characterized in that: According to each of the nearest neighbor points and the optimal transformation matrix, the expression of the objective function for quality optimization and initial pose correction of the target object point cloud is: Where T represents the optimal transformation matrix; Represents the i-th point in the point cloud; Indicates the transformation of the i-th point into the coordinates of the standard object coordinate system; represents the coordinates of the ith point after being transformed into the standard object coordinate system and then rotated by angle T'; T r represents a rotation transformation set; T' represents the rotation angle in the rotation transformation set; p' i Indicates the standard object coordinate system The nearest neighbor of ; γ represents the hyperparameter of the Huber function.

8. A computer system comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the target pose estimation method based on point cloud fusion rotational symmetry constraints as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the target pose estimation method based on point cloud fusion rotational symmetry constraints described in any one of claims 1-7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the target pose estimation method based on point cloud fusion rotational symmetry constraints described in any one of claims 1-7 is implemented.

Citation Information

Cited By

  • Pose estimation method and device and electronic equipment

    CN119152040A

  • Structural point cloud principal axis identification method based on adaptive weighted principal component analysis

    CN121074535A

  • Method for identifying principal axes of structural point cloud based on adaptive weighted principal component analysis

    CN121074535B