A six-degree-of-freedom object pose estimation method and system

By adopting a six-DOF pose estimation method that adaptively selects between RGB or RGB-D branches, the final mask is generated using the target CAD model and the region segmentation model. Combined with template matching and 3D correspondence matching, the problem of inaccurate pose estimation in complex scenes of existing methods is solved, and the stability and accuracy of the estimation are improved.

CN123181573APending Publication Date: 2026-11-27JAC FRONTIER TECHNOLOGY COLLABORATIVE INNOVATION CENTER (JAC LABORATORY) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611443497.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing six-DOF object pose estimation methods based on RGB images have poor stability under conditions of weak texture, lighting variations, occlusion, and inaccurate target region cropping. Furthermore, they lack an adaptive mode selection mechanism, leading to inaccurate estimation results.

Method used

By acquiring RGB images and a target CAD model, a coarse bounding box is generated using a region segmentation model, and a final target mask is generated using a mask segmentation model. RGB discriminability is evaluated based on the number of local image features and spatial coverage, and either the RGB or RGB-D branch is adaptively selected for pose estimation. The RGB branch is refined through template matching and rendering alignment, while the RGB-D branch obtains the pose through two-stage 3D correspondence matching.

Benefits of technology

It improves the accuracy and robustness of pose estimation in complex scenes, reduces the interference of background and occlusion on the target area, and the adaptive mode selection improves the stability and accuracy under different target conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181573A_ABST
    Figure CN123181573A_ABST
Patent Text Reader

Abstract

The application discloses a six-degree-of-freedom object pose estimation method and system, relates to the technical field of computer vision and robot vision, and comprises the following steps: acquiring an RGB image, a target CAD model and camera internal parameters; obtaining a rough boundary box by using a region segmentation model, taking the rough boundary box as a frame prompt, inputting a mask segmentation model to generate a candidate mask, screening the candidate mask according to quality and stability to obtain a final target mask and a cropped image; evaluating the RGB distinguishability according to the number of effective local features and spatial coverage in the cropped image, and adaptively selecting different pose estimation molecules; obtaining a pose by means of template matching coarse pose estimation and rendering alignment iterative refinement of an RGB branch; obtaining a pose by means of two-stage three-dimensional corresponding matching of a target observation point cloud and a model point cloud of an RGB-D branch; and outputting a six-degree-of-freedom pose result. According to the application, the estimation mode can be adaptively selected according to the appearance characteristics of a target, and a confidence evaluation is introduced at each stage, so that the accuracy and robustness of pose estimation in a complex scene are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and robot vision technology, and in particular to a method and system for estimating the pose of a six-degree-of-freedom object. Background Technology

[0002] Six-degree-of-freedom (6-DoF) object pose estimation aims to determine the three-dimensional rotation and translation of a target object relative to the camera coordinate system, and is a core technology in fields such as robot grasping, industrial inspection, and augmented reality.

[0003] Existing RGB image-based methods utilize appearance texture and 3D model rendering templates for matching estimation, resulting in low deployment costs. However, they exhibit poor stability under conditions of weak texture, varying lighting, occlusion, and inaccurate target region cropping. Furthermore, existing solutions typically employ fixed processing flows for a single input modality, lacking a mechanism for adaptive modality selection based on the target's own appearance recognizability. They also force the use of the RGB branch even when the target texture is sparse or feature distribution is insufficient, leading to unreliable estimation results.

[0004] Meanwhile, target region acquisition is a key preliminary step in pose estimation. Existing methods mostly use target detection or instance segmentation models to extract target masks, but single segmentation is prone to problems such as inaccurate boundaries and occlusion missegmentation, and the segmentation error will be passed on to the subsequent pose estimation stage. Summary of the Invention

[0005] To overcome the shortcomings of existing technologies in RGB image estimation, such as low image discernibility and inaccurate target region boundary acquisition, which lead to inaccurate object pose estimation results, this invention proposes a six-degree-of-freedom object pose estimation method and system.

[0006] To achieve the above objectives, the present invention employs the following technical solution: a six-degree-of-freedom object pose estimation method, comprising: S1: Obtain the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic parameter matrix; S2: Based on the RGB image, a prompt box guide is used to search and filter the target region and target mask to obtain the final target mask and the corresponding target cropped image; S3: Extract local image features from the target cropped image, and determine the identifiability of the RGB image by the number of effective local image features and spatial coverage; if the preset conditions are met, execute steps S4 and S5; otherwise, obtain the depth map of the target to be estimated and execute step S6. S4: Render template images from multiple perspectives using the CAD model, extract features from the target cropped image and the template image, and filter candidate template images based on similarity scores; generate candidate coarse poses for each candidate template image; S5: Obtain the rendered images of each candidate coarse pose, and perform rendering alignment and iterative adjustment with the target cropped image to obtain the corresponding candidate fine poses. Select the fine pose with the best evaluation as the final pose. S6: Extract the target observation point cloud from the depth map using the final target mask, and obtain the model point cloud by sampling the CAD model. Perform two-stage 3D correspondence matching between the target observation point cloud and the model point cloud to obtain the final pose.

[0007] Preferably, step S2 includes: S21: Use a region segmentation model to initially screen the target region of the RGB image, generate multiple candidate segmentation regions, find the segmentation region of the target to be estimated in the multiple candidate segmentation regions, and use it as the rough bounding box of the target to be estimated. S22: Use the rough bounding box as the input mask segmentation model to generate several candidate target masks; evaluate and filter them according to the mask quality score and stability score to obtain the final target mask; and obtain the target cropped image based on the final target mask.

[0008] Preferably, the mask quality score is obtained by the predicted intersection-union ratio (IU / R) of each candidate target mask output by the mask segmentation model; the stability score is obtained by changing the binarization threshold of the candidate target mask to obtain two binary masks and calculating their IU / R. The target mask with the largest sum of mask quality score and stability score is used as the final target mask; Based on the final target mask, the target region and the corresponding target cropped image are obtained from the RGB image for subsequent pose estimation.

[0009] Preferably, the preset conditions in step S3 are: the number of effective local image features is not less than the local image feature number threshold, and the spatial coverage meets the set requirements.

[0010] Preferably, in step S4, the similarity score between the features of the target cropped image and the features of the kth template image is... The calculation method is as follows:

[0011] in, Represents the features of the target cropped image; Let T be the feature of the k-th template image; T is the transpose of the matrix.

[0012] Preferably, in step S4, generating the candidate coarse pose corresponding to each candidate template image is specifically as follows: For each candidate template image, based on the two-dimensional correspondence between the target cropped image and the template image, the scale, in-plane rotation angle, and two-dimensional translation amount between each template image and the target cropped image are predicted; the two-dimensional transformation relationship from the coordinates of the template image points to the coordinates of the target cropped image points is expressed as:

[0013] in, The scale between the template image and the target cropped image; and These are the x and y coordinates of a point on the template image, respectively. and These are the x and y coordinates of a point in the target cropped image, respectively. and These refer to the horizontal and vertical translations in a two-dimensional translation. The rotation angle is within the plane; By combining the known viewpoint, scale, in-plane rotation angle, and two-dimensional translation of each candidate template image, a corresponding candidate coarse pose is generated.

[0014] Preferably, step S5 includes: Based on each candidate coarse pose, and according to the target CAD model and camera intrinsic parameters The corresponding rendered image is obtained; Each rendered image is cropped and aligned to its target image to obtain the corresponding refined rendered image and refined pose; the pose iteration update method in the render-aligned pose refinement is as follows:

[0015] in, l This represents the number of iterations. The current pose, i.e., the first l iterative pose, For the first l The correction amount for the next iteration; For the first l+ 1 iteration pose; when l When equal to 1, This corresponds to the candidate coarse pose; Based on the alignment degree between the refined rendered image and the target cropped image corresponding to each candidate coarse pose, each refined pose is scored, and the refined pose with the highest score is selected as the final six-DOF pose.

[0016] Preferably, in step S6, the first stage of the two-stage three-dimensional correspondence matching is the coarse point matching stage: sparse point sets covering different spatial regions are selected from the target observation point cloud and the model point cloud respectively, and point features are extracted; based on the similarity between the point features of the target observation points and the model points, a sparse preliminary three-dimensional correspondence is established and the matching degree of each correspondence is determined; based on the matching degree, multiple sets of corresponding point pairs are selected, and rigid body transformation is performed on each set of corresponding point pairs to obtain multiple candidate coarse poses.

[0017] Preferably, the second stage of the two-stage 3D correspondence matching is a fine point matching stage: using each candidate coarse pose as the initial pose, the model point cloud is transformed to the coordinate system of the target observation point cloud for spatial alignment; based on the spatial alignment, local point feature matching is performed to establish a denser 3D correspondence than in the first stage, and the matching degree of each correspondence is determined; the dense 3D correspondence is screened for reliability based on the matching degree; using the retained 3D correspondence after screening and weighted geometric solution with the matching degree as the weight, the corresponding candidate coarse pose is corrected to obtain the refined pose corresponding to each candidate coarse pose; Then, the fine pose with the best matching effect is selected from the fine poses corresponding to each candidate coarse pose as the final pose.

[0018] A six-degree-of-freedom object pose estimation system, to implement the aforementioned six-degree-of-freedom object pose estimation method, includes: The data acquisition module is used to acquire the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic parameter matrix; The target region processing module is used to perform initial screening of RGB images using a region segmentation model to obtain coarse bounding boxes. The coarse bounding boxes are used as input boxes for the mask segmentation model to generate candidate target masks. The final target mask is obtained by filtering based on the mask quality and stability, and the target cropped image is obtained based on the final target mask. The modality judgment module is used to evaluate the discriminability of RGB images based on the number of effective local features and spatial coverage in the target cropped image, and to determine whether to use the RGB branch or the RGB-D branch based on the evaluation results. The pose estimation module adopts the corresponding pose estimation method based on the RGB branch or RGB-D branch to obtain the final pose estimation result.

[0019] The advantages of this invention are: (1) This invention acquires RGB images, target CAD models, and camera intrinsic parameters; obtains coarse bounding boxes using a region segmentation model, which serve as input for box prompts; generates candidate masks using a mask segmentation model; and obtains the final target mask and cropped image based on quality and stability. It evaluates RGB discriminability based on the number of effective local features and spatial coverage in the cropped image, and adaptively selects different pose estimation molecules. The RGB branch obtains the pose through template matching for coarse pose estimation and rendering alignment for iterative refinement. The RGB-D branch obtains the pose through two-stage three-dimensional correspondence matching between the target observation point cloud and the model point cloud. The six-degree-of-freedom pose result is output. This invention can adaptively select the estimation mode based on the target's appearance features, overcoming the shortcomings of inaccurate object pose estimation results caused by low image discriminability and inaccurate target region boundary acquisition during RGB image estimation, thus improving the accuracy and robustness of pose estimation in complex scenes.

[0020] (2) The present invention can reduce the interference of background areas, adjacent objects and other non-target areas on subsequent pose estimation by the processing method of “coarse bounding box prompting - candidate target mask generation - mask quality evaluation and screening”, and improve the accuracy of target area boundary extraction and cropping.

[0021] (3) This invention evaluates the RGB image discernibility of the current target based on the number of effective local image features in the target cropped image and their spatial coverage within the target region. When the RGB image discernibility meets a preset condition, the system enters the RGB image branch; when the RGB image discernibility does not meet the preset condition, the system further acquires a depth map with pixel correspondence to the RGB image and enters the RGB-D image branch. This avoids continuing to use the RGB image branch when the target texture is weak or the effective local image features are insufficient, thus improving the stability and robustness of pose estimation under different target conditions.

[0022] (4) For scenarios with only RGB images, this invention uses CAD template rendering, template candidate screening, coarse pose estimation and rendering-aligned pose refinement to gradually correct pose deviations in the absence of depth information, thereby improving the accuracy and stability of six-degree-of-freedom pose estimation under RGB images.

[0023] (5) For scenes with depth information, this invention uses target mask to extract target observation point cloud from depth map and performs two-stage three-dimensional correspondence matching with CAD model point cloud. This can make full use of depth geometric information and improve pose estimation stability in weak texture, complex lighting and background interference scenes.

[0024] (6) In the mask generation stage, the present invention uses mask quality confidence to screen, template matching score and rendering alignment score to evaluate candidates in the RGB branch, and three-dimensional correspondence matching score to screen correspondence and solve pose in the RGB-D branch, thereby reducing the impact of low-quality masks, unreliable template candidates, low-quality pose candidates and erroneous three-dimensional correspondence on the final pose estimation result.

[0025] (7) This invention organizes the RGB image branch and the RGB-D image branch in the same process through a unified target region processing, input modality judgment and pose result output method. The system can adaptively determine whether it is necessary to further acquire a depth map and adopt the corresponding pose estimation route according to the identifiability of the current target's RGB image, which is convenient for deployment under different target features and application scenarios. Attached Figure Description

[0026] Figure 1 A schematic diagram of the steps involved in a method for estimating the pose of a six-DOF object. Figure 2 A schematic diagram illustrating the process of generating candidate target masks guided by the prompt box; Figure 3 This is a schematic diagram of the adaptive matching process for pose estimation of a six-DOF object. Detailed Implementation

[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] This invention aims to solve the following problems in the process of object pose estimation: (1) How to use prompting segmentation to obtain a more accurate target object mask and reduce the interference of background, occlusion area and non-target object on pose estimation; (2) How to evaluate the identifiability of the current target's RGB image based on the number of effective local image features and their spatial coverage in the target cropped image, and adaptively determine whether to use the RGB image branch or further obtain a depth map and use the RGB-D image branch based on the evaluation results, thereby improving the robustness of pose estimation under different target conditions; (3) How to use template feature extraction, pose parameter prediction and rendering alignment refinement to complete six-degree-of-freedom pose estimation when the identifiability of the target's RGB image meets the preset conditions, taking into account the lack of depth information in the RGB image; (4) How to further obtain a depth map with pixel correspondence with the RGB image when the identifiability of the target's RGB image does not meet the preset conditions, and use two-stage three-dimensional correspondence matching between the target point cloud and the three-dimensional model point cloud to complete six-degree-of-freedom pose estimation; (5) How to adopt corresponding evaluation and screening mechanisms in the target segmentation, coarse pose estimation, pose refinement and three-dimensional correspondence matching stages to improve the reliability and stability of pose estimation results.

[0029] To address the aforementioned issues, this invention proposes a six-DOF pose estimation method that integrates cue-based segmentation, RGB / RGB-D modal adaptive matching, and multi-level confidence evaluation. The method determines the identifiability of the RGB image based on the number of effective local features and their spatial coverage in the target cropped image, adaptively selects either the RGB branch or the RGB-D branch for pose solving, and introduces confidence evaluation and filtering mechanisms at each key stage to improve the accuracy, robustness, and stability of pose estimation in complex scenes.

[0030] Example 1

[0031] like Figures 1-3 As shown, a six-DOF object pose estimation method is provided, including: Step 1: Input data acquisition.

[0032] The system first acquires the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic matrix. The target CAD model is used for subsequent template rendering and model point cloud generation, while the camera intrinsic matrix is ​​used for target model rendering.

[0033] After completing subsequent target region processing and input mode determination, the system determines whether to further acquire a depth map that has a pixel correspondence with the RGB image based on the determination result. When no depth map is acquired, the RGB image serves as the RGB input; when a depth map is acquired, the RGB image and the depth map together constitute the RGB-D input. In this case, the camera intrinsic parameter matrix is ​​also used to backproject the effective depth pixels within the target region into the target observation point cloud.

[0034] Step 2: Initial screening of target areas and generation of prompt boxes.

[0035] The system uses the region segmentation model SAM to initially screen the target region of the input RGB image and generate multiple candidate segmentation regions; Then, a rough bounding box of the target object is obtained based on multiple candidate segmentation regions.

[0036] The rough bounding box is not directly used as the final segmentation result, but rather as a box prompt input to the subsequent general segmentation model SAM3, which is used to constrain the generation range of candidate target masks.

[0037] Step 3: Target mask generation guided by the prompt box.

[0038] The system uses the rough bounding box of the target object obtained in step 2 as the box cue input mask segmentation model SAM3. SAM3 generates several (one or more) candidate target masks under the constraints of the cue box. The candidate target masks are pixel-level masks.

[0039] The system evaluates candidate target masks based on mask quality score and stability score. The mask quality score, obtained from the predicted intersection-over-union (IoU) score of each candidate target mask output by the mask segmentation model, characterizes the expected overlap between the candidate target mask and the real target region. The stability score is obtained by changing the binarization threshold of the candidate target mask to obtain two binary masks, and then calculating the IoU between the two binary masks; this score characterizes the stability of the candidate target mask under varying threshold conditions. Higher mask quality and stability scores indicate better segmentation quality and stability of the candidate target mask.

[0040] The system filters candidate target masks based on two scores, selecting the candidate target mask with the better evaluation result as the final target mask. In this embodiment, the target mask corresponding to the largest sum of the two scores is used as the final target mask.

[0041] Subsequently, the system obtains the target region and the corresponding target cropping image from the RGB image based on the final target mask.

[0042] The region segmentation model SAM is a general segmentation model, while the mask segmentation model SAM 3 is an optimized and upgraded version of SAM.

[0043] Step 4: Input modality judgment and branch selection.

[0044] Based on the target cropped image obtained in step 3, the system evaluates the RGB image recognizability of the current target. Specifically, the system extracts local image features from the target cropped image and counts the number of effective local image features and the spatial coverage of these local image features within the target area. The number of effective local image features characterizes the richness of the target texture information, while the spatial coverage characterizes whether the local image features can cover different local areas of the target object.

[0045] Among them, effective local image features are local image features within the target cropped image region obtained through local feature extraction methods that can reflect the local structural information of the target region and have feature discrimination capabilities. The system performs local feature extraction on the target cropped image to obtain candidate local image features within the target region; and filters the candidate local image features based on the image structure information and feature description information of the region corresponding to the candidate local image features.

[0046] Specifically, for the local region corresponding to the candidate local image feature, its local structural information is determined by calculating the degree of pixel gradient change within that region. When the pixel gradient change within a local region is large, it indicates the presence of significant texture changes, edge variations, or corner structures, suggesting that the candidate local image feature possesses good local structural information. Conversely, when the pixel gradient change within a local region is small, it indicates a simple texture and insignificant edge variations, suggesting insufficient local structural information. Simultaneously, based on the feature description information corresponding to the candidate local image feature, the feature distance between different candidate local image features is calculated to determine their discriminative ability. When the feature distance between different candidate local image features is large, it indicates significant differences in features corresponding to different local regions, suggesting that the candidate local image feature has good discriminative ability. Conversely, when the feature distance between different candidate local image features is small, it indicates that the features corresponding to different local regions are quite similar, making it difficult to distinguish between them, suggesting insufficient discriminative ability of the candidate local image feature.

[0047] Candidate local image features with sufficient local structural information and feature discrimination ability that meet the set requirements are identified as effective local image features, and the number of such effective local image features is counted as the number of effective local image features.

[0048] Spatial coverage describes the distribution range of effective local image features within the target cropped image region. Specifically, the target cropped image is divided into multiple spatial regions, the number of spatial regions containing effective local image features is counted, and the spatial coverage is determined based on the ratio between the number of spatial regions containing effective local image features and the total number of spatial regions in the target cropped image. A higher spatial coverage is indicated by a larger area of ​​the target cropped image covered by effective local image features and a more uniform distribution across different spatial regions.

[0049] The system determines whether the number of effective local image features is not less than a threshold for the number of local image features, and whether the spatial coverage is not less than a set threshold for spatial coverage. If these conditions are met, it indicates that the current target has relatively rich and uniformly distributed appearance features, making it suitable for pose estimation using RGB images. The system then proceeds to steps 5 and 6, which involve RGB image-based pose estimation. Six-DOF pose estimation is completed through template matching for coarse pose estimation and rendering-aligned pose refinement. If these conditions are not met, it indicates that the current target has weak texture, few identifiable local regions, or insufficient image feature distribution, making pose estimation based solely on RGB images less reliable. The system further acquires a depth map with pixel-to-pixel correspondences to the RGB image, forming an RGB-D input, and proceeds to step 7, which involves RGB-D image-based pose estimation. Six-DOF pose estimation is completed through two-stage 3D correspondence matching between the target observation point cloud and the model point cloud.

[0050] Step 5: Coarse pose estimation of RGB image branches.

[0051] The system uses the target CAD model to render and obtain template images from multiple perspectives. It then extracts features from the target cropped image and the template image respectively to obtain the features of the target cropped image and the template image.

[0052] The system filters candidate templates based on the similarity between the features of the target cropped image and the features of the template image, and generates candidate coarse poses of the target object corresponding to each candidate template by combining the known viewpoint corresponding to the template with the predicted scale, in-plane rotation and two-dimensional translation parameters.

[0053] The system filters candidate coarse poses based on the consistency of template matching results and local correspondences, and obtains coarse poses for subsequent pose refinement.

[0054] Step 6: Rendering alignment and pose refinement of RGB image branches.

[0055] For each candidate coarse pose, the system uses it as the initial value input to the rendering-aligned pose refinement module. This module renders a rendered image based on the target CAD model, camera intrinsic matrix, and current pose, and compares the rendered image with the target cropped image. Based on the differences in contour, appearance features, and image position between the two, the system obtains correction amounts for the rotation and translation parameters of the target object. Then, based on these correction amounts, the current pose is iteratively adjusted to obtain the final rendered image and refined pose. The current pose in the first iteration is the coarse pose obtained in the previous step.

[0056] This yields the final rendered image and refined pose corresponding to each candidate coarse pose.

[0057] After refinement is completed, the system evaluates the candidate refinement poses based on the rendering alignment results (final rendered image) and selects the refinement pose candidate with the best evaluation result as the final six-DOF pose of the RGB branch.

[0058] Step 7: Two-stage three-dimensional correspondence matching of RGB-D image branches.

[0059] The system uses the final target mask generated by 3 to determine the target area in the depth map, and combines it with the camera intrinsic parameter matrix to back-project the effective depth pixels in the target area into the target observation point cloud.

[0060] At the same time, the system samples the target CAD model to obtain the model point cloud.

[0061] The first stage is coarse point matching. The system establishes a preliminary 3D correspondence between the target observation point cloud and the model point cloud, and generates candidate coarse poses. Specifically: The first stage is the coarse point matching stage. The system selects sparse point sets from both the target observation point cloud and the model point cloud, and extracts the point features corresponding to each point. Based on the similarity of point features between the target observation point cloud and the model point cloud, the system establishes a sparse preliminary 3D correspondence. For this preliminary 3D correspondence, the system selects multiple different combinations of 3D corresponding point pairs and solves for rotation and translation parameters respectively, obtaining multiple corresponding coarse poses, forming candidate coarse poses. The candidate coarse poses are used to represent the possible initial spatial transformation relationship between the target observation point cloud and the model point cloud, and serve as the initial poses for the subsequent fine point matching stage.

[0062] The second stage is the fine-point matching stage. Based on the candidate coarse poses, the system further performs local point cloud matching and correspondence filtering to establish denser and more reliable 3D correspondences. Finally, it obtains the refined six-DOF pose through weighted geometric solving. Specifically: The second stage is the fine-point matching stage. The system uses each candidate coarse pose as the initial pose and transforms the model point cloud to the coordinate system of the target observation point cloud based on these coarse poses, achieving preliminary spatial alignment between the model and target point clouds. Building upon this preliminary alignment, the system further performs point feature matching on local regions of the two point clouds, establishing a denser 3D correspondence than in the coarse-point matching stage. Correspondences with lower reliability are then eliminated based on their matching degree. Subsequently, the system uses the retained 3D correspondences and their matching degree to perform weighted geometric solving, correcting the rotation and translation parameters of the corresponding candidate coarse poses to obtain the refined six-DOF poses for each candidate coarse pose.

[0063] The system selects the pose with the best matching effect based on the two-stage 3D correspondence matching results, which is used as the final six-DOF pose of the RGB-D branch. Since this branch has already completed the pose solution through 3D correspondence matching, it is no longer connected to the rendering-aligned pose refinement module of the RGB branch.

[0064] Step 8: Output the pose result.

[0065] The system outputs the final six-DOF pose of the target object relative to the camera coordinate system, which includes a rotation matrix and a translation vector. For RGB input, the system outputs the pose result obtained after coarse pose estimation and rendering-aligned pose refinement; for RGB-D input, the system outputs the pose result obtained after two-stage three-dimensional correspondence matching.

[0066] The system can also output the final target mask and the evaluation information generated by the corresponding branch.

[0067] Example 2

[0068] This invention proposes a six-degree-of-freedom object pose estimation system, comprising: The data acquisition module is used to acquire the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic parameter matrix; The target region processing module is used to perform initial screening of RGB images using a region segmentation model to obtain coarse bounding boxes. The coarse bounding boxes are used as input boxes for the mask segmentation model to generate candidate target masks. The final target mask is obtained by filtering based on the mask quality and stability, and the target cropped image is obtained based on the final target mask. The modality judgment module is used to evaluate the discriminability of RGB images based on the number of effective local features and spatial coverage in the target cropped image, and to determine whether to use the RGB branch or the RGB-D branch based on the evaluation results. The pose estimation module adopts the corresponding pose estimation method based on the RGB branch or RGB-D branch to obtain the final pose estimation result.

[0069] RGB pose estimation is used to obtain the final six-DOF pose through coarse pose estimation by template matching and fine-tuning by rendering alignment. RGB-D pose estimation is used to obtain a depth map when using the RGB-D branch, and the final six-degree-of-freedom pose is obtained through two-stage three-dimensional correspondence matching between the target observation point cloud and the model point cloud.

[0070] Example 3

[0071] Object six-DOF pose estimation based on RGB input

[0072] This embodiment uses an example of a six-DOF pose estimation scenario for an object using the RGB image branch after input modality judgment. The system first receives an RGB image containing the target object to be estimated and its corresponding CAD model, and reads the camera intrinsic matrix. After processing the target region, the system performs input modality judgment based on the RGB image discernibility of the cropped target image. Since the target in this embodiment meets the condition for pose estimation using RGB images, the system no longer acquires a depth map and enters the RGB image branch. This branch completes the six-DOF pose estimation of the target object through target mask generation, template matching coarse pose estimation, and rendering-aligned pose refinement.

[0073] Step 1: Input Data Acquisition

[0074] The system acquires a single-frame RGB image and its corresponding target CAD model, and reads the camera intrinsic parameter matrix K. Depth map acquisition is not performed in this step; the system will determine whether further depth map acquisition with pixel-to-pixel correspondence to the RGB image is needed after target region processing, based on the input modality judgment results. The six-DOF pose of the target object is represented as:

[0075] in, This represents the rotation matrix from the target object's coordinate system to the camera's coordinate system. This represents the translation vector.

[0076] For 3D points on a CAD model Its position in the camera coordinate system can be represented as:

[0077] This representation is used for subsequent template rendering, coarse pose generation, render alignment refinement, and final pose output.

[0078] Step 2: Initial screening of target areas and generation of prompt boxes

[0079] The system first performs initial screening of the target region on the input RGB image, generates candidate segmentation regions in the image using SAM, and obtains a coarse bounding box B for the target object based on the bounding rectangle of the candidate region. This bounding box is not directly used as the final segmentation result, but is input as a cue box into SAM3 to constrain the range of the target region. For target scenes with occlusion, cluttered backgrounds, or interference from adjacent objects, using bounding box cueing can reduce the impact of background regions, adjacent object regions, and occluded interference regions on the subsequent generation of candidate target masks.

[0080] Step 3: Generating the target mask guided by the prompt box

[0081] The system uses the coarse bounding box B obtained in step 2 as the input to the box cue SAM 3. SAM 3 generates one or more candidate target masks under the constraints of the cue box; these candidate target masks are pixel-level masks. The system evaluates the candidate masks based on their quality and stability scores, selecting the highest-quality candidate target mask as the final target mask M. Subsequently, the system obtains the target region from the original RGB image based on the final target mask M, resulting in a target cropped image suitable for subsequent pose estimation.

[0082] Step 4: Input Modality Judgment and Branch Selection

[0083] The system extracts local image features from the target cropped image obtained in step 3, and counts the number of effective local image features and the spatial coverage of the local image features in the target area to evaluate the RGB image recognizability of the current target.

[0084] In this embodiment, the number of effective local image features is not less than a preset threshold for the number of local image features, and the spatial coverage is not less than a preset threshold for spatial coverage. This indicates that the current target has relatively rich and evenly distributed appearance features, making it suitable for pose estimation using RGB images. Therefore, the system no longer acquires a depth map, determines the current input as RGB input, and enters the RGB image branch. Six-degree-of-freedom pose estimation is completed through template matching coarse pose estimation and rendering-aligned pose refinement.

[0085] Step 5: Coarse pose estimation of RGB image branches

[0086] The system pre-renders multi-view template images using the target CAD model to form a template image set. Each template image corresponds to a known template viewpoint. Subsequently, the system crops the target images accordingly. and template images Feature extraction is performed to obtain the features of the target cropped image. and template image features .

[0087] The system calculates the similarity scores between the features of the target cropped image and the features of each template image. If the features have been normalized, the similarity score... It can be represented as:

[0088] in, Representing the features of the target cropped image Features of the k-th template image The similarity score between them, where T is the transpose of the matrix.

[0089] Then the system uses all similarity scores Select several templates with higher scores .

[0090] Based on the known template perspective corresponding to each candidate template, the system obtains an initial estimate of the outer plane rotation of the target object.

[0091] Subsequently, based on the local patch correspondence between the target cropped image and each candidate template image, the system predicts the scale s, in-plane rotation angle α, and two-dimensional translation amount between each template and the target cropped image. , Template point coordinates , Coordinates of the target cropped image point , The two-dimensional transformation relationship is expressed as: The scale between the template and the target cropped image; and These are the x and y coordinates of a point on the template image, respectively. and These are the x and y coordinates of a point in the target cropped image, respectively. and These represent the horizontal and vertical translation amounts in a two-dimensional translation.

[0092] The system combines the known viewpoint, scale s, in-plane rotation angle α, and two-dimensional translation of each candidate template. , Generate several candidate coarse poses .

[0093] To improve the robustness of coarse pose estimation, the system filters candidate coarse poses based on template matching similarity and local correspondence consistency, retains the candidate coarse poses with better evaluation results, and uses them as the initial poses for subsequent rendering alignment pose refinement.

[0094] Step 6: Rendering Alignment and Pose Refinement of RGB Image Branches

[0095] The system uses the candidate coarse poses obtained in step 5 as initial pose inputs to render the alignment-based refinement module. The refinement module then uses the target CAD model and camera intrinsic parameters... and current pose The process renders the appearance of the target object in the image, obtaining a rendered image, and then aligns and compares it with the cropped target image. The rendered image in the current iteration can be represented as... .

[0096] Subsequently, the system based on the rendered image Cropped image with real target Differences in contour, appearance features, and spatial location between the two elements are used to predict the correction amount for the current pose. And iteratively update the pose:

[0097] After several iterations, each candidate coarse pose yields the corresponding final rendered image and refined pose, forming multiple refined pose candidates.

[0098] The system scores candidate poses based on the alignment between the rendered result and the real target region, and selects the candidate with the highest score as the final six-DOF pose for the RGB image branch. Through the above rendering alignment refinement process, the system can further reduce rotation and translation errors based on the coarse pose estimation results, and improve the stability of RGB pose estimation in scenes with occlusion, cluttered backgrounds, and interference from adjacent objects.

[0099] Step 7: Two-stage 3D correspondence matching of RGB-D image branches

[0100] In this embodiment, the system input does not include a depth map, therefore it does not enter the RGB-D image branch, and does not perform target observation point cloud extraction, CAD model point cloud sampling, or two-stage 3D correspondence matching between the observation point cloud and the model point cloud. This step is skipped in this embodiment.

[0101] Step 8: Output the pose result

[0102] The system outputs the final six-DOF pose of the target object relative to the camera coordinate system. This result can be used as target pose input in robot grasping, target localization, industrial inspection, or pose evaluation tasks.

[0103] Example 4

[0104] Object six-DOF pose estimation based on RGB-D input

[0105] This embodiment uses a robot grasping scenario where the RGB-D image branch is used after input modality judgment as an example. The system first receives an RGB image containing the target object to be estimated and the corresponding CAD model of the target object, and reads the camera intrinsic parameter matrix. After processing the target region, the system performs input modality judgment based on the RGB image discernibility of the target cropped image. Since the target in this embodiment does not meet the conditions for pose estimation using RGB images, the system further acquires a depth map D with pixel correspondence to the RGB image, forming an RGB-D input, and enters the RGB-D image branch. This branch mainly utilizes the final target mask, depth map D, and target CAD model to complete six-degree-of-freedom pose estimation through two-stage three-dimensional correspondence matching between the target observation point cloud and the model point cloud.

[0106] Step 1: Input Data Acquisition

[0107] The system acquires the RGB image of the target to be estimated, the corresponding depth map D, the target CAD model, and the camera intrinsic parameter matrix K. The depth map is not acquired in this step; the system will determine whether to acquire a depth map with pixel-to-pixel correspondences to the RGB image after completing target region processing, based on the input modality judgment results. The six-DOF pose of the target object is still represented as:

[0108] in, This represents the rotation matrix from the target object's coordinate system to the camera's coordinate system. This represents the translation vector. The target CAD model is used for subsequent model point cloud sampling and 3D correspondence matching.

[0109] Step 2: Initial screening of target areas and generation of prompt boxes

[0110] The system first performs initial screening of target regions in the RGB image, uses SAM to generate candidate segmentation regions for the target object, and obtains a coarse bounding box B for the target object based on the bounding rectangle of the candidate regions. This bounding box is not directly used as the final segmentation result, but is instead input as a cue box into SAM3 to constrain the range of the target region and provide cue information for subsequent candidate target mask generation. Through this step, the system can first determine the approximate two-dimensional region of the target object in the RGB-D scene, reducing the interference of background regions and adjacent objects on subsequent point cloud extraction.

[0111] Step 3: Generating the target mask guided by the prompt box

[0112] The system uses the coarse bounding box B obtained in step 2 as the input to the box cue SAM 3. SAM 3 generates one or more candidate target masks under the constraints of the cue box; these candidate target masks are pixel-level masks. The system evaluates the candidate masks based on their quality and stability scores, selecting the highest-quality candidate target mask as the final target mask M for the target object. Subsequently, the system obtains the target region from the original RGB image based on the final target mask M, resulting in a target cropped image suitable for subsequent pose estimation.

[0113] Step 4: Input Modality Judgment and Branch Selection

[0114] The system extracts local image features from the target cropped image obtained in step 3, and counts the number of effective local image features and the spatial coverage of the local image features in the target area to evaluate the RGB image recognizability of the current target.

[0115] In this embodiment, if the number of effective local image features is lower than a preset threshold for the number of local image features, or if the spatial coverage is lower than a preset threshold for spatial coverage, it indicates that the current target has weak texture, few identifiable local areas, or insufficient image feature distribution. Therefore, the reliability of pose estimation based solely on the RGB image is low. Consequently, the system further acquires a depth map D that has a pixel-to-pixel correspondence with the RGB image, forming an RGB-D input and entering the RGB-D image branch.

[0116] The system uses the final target mask M to determine the target region in the depth map D, and combines the camera intrinsic parameter matrix K to convert the target region into a target observation point cloud. Then, it completes the six-degree-of-freedom pose estimation through a two-stage three-dimensional correspondence matching between the target observation point cloud and the model point cloud.

[0117] Step 5: Coarse pose estimation of RGB image branches

[0118] In this embodiment, since the input data already contains depth information, the system does not enter the RGB image branch, does not use the multi-view template retrieval, planar offset prediction, and pose parameter prediction process based solely on the RGB image to generate a coarse pose, and does not use the branch result as the initial value for subsequent refinement. This step is skipped in this embodiment.

[0119] Step 6: Rendering Alignment and Pose Refinement of RGB Image Branches

[0120] In this embodiment, since the system selects the RGB-D image branch, and the RGB-D route completes the coarse-to-fine pose calculation through the three-dimensional geometric registration relationship between the target point cloud and the CAD model point cloud, the rendering-aligned pose refinement module in the RGB image branch is not additionally connected. This step is skipped in this embodiment.

[0121] Step 7: Two-stage three-dimensional correspondence matching of RGB-D image branches.

[0122] The system employs a two-stage 3D correspondence matching method for the RGB-D image branch. Using the final target mask M generated in step 3, the system determines the target region in the depth map D, and backprojects the effective depth pixels within the target region into the target observation point cloud P based on the camera intrinsic parameters K. Simultaneously, the system samples the target CAD model into a model point cloud Q.

[0123] After obtaining the target observation point cloud P and the model point cloud Q, the system uses a two-stage three-dimensional correspondence matching method for pose estimation.

[0124] The first stage is the coarse point matching stage. Sparse point sets are selected from both the target observation point cloud and the model point cloud using the farthest point sampling method, ensuring that the sampled points cover different spatial regions of the original point cloud. A point feature extraction network is used to extract the point features corresponding to each point in the two sparse point sets. The extracted point features are normalized, and the inner product between the point features of the target observation point and the model point is calculated to obtain the point feature similarity of each 3D point pair. The point feature similarity is then normalized to obtain the matching degree of each 3D point pair. Based on the point feature similarity, a sparse preliminary 3D correspondence is established between the two sparse point sets. This preliminary 3D correspondence is the 3D point pair correspondence between the target observation point and the model point established in the coarse point matching stage.

[0125] From the preliminary 3D correspondence, multiple sets of 3D corresponding point pairs are selected using a probability sampling method based on the degree of matching, so that 3D corresponding point pairs with a higher degree of matching have a higher probability of being selected. For each set of 3D corresponding point pairs, the rotation and translation parameters are solved separately using a rigid body transformation solution method based on singular value decomposition, according to the 3D coordinate relationship between the corresponding points. Different 3D corresponding point pairs yield corresponding rotation and translation solution results, thus obtaining multiple candidate coarse poses.

[0126] The second stage is the fine-point matching stage. Each candidate coarse pose obtained in the first stage is used as the initial pose. Rigid body coordinate transformation is performed on the model point cloud according to the rotation and translation parameters corresponding to each candidate coarse pose. The model point cloud is transformed to the coordinate system of the target observation point cloud, so that the model point cloud and the target observation point cloud are initially spatially aligned.

[0127] For each candidate coarse pose, based on the corresponding preliminary spatial alignment results, point feature matching is performed on local regions of the target observation point cloud and the model point cloud. The point feature similarity between the target observation points and model points within the local region is calculated, and this similarity is normalized to obtain the matching degree between corresponding points. Based on this, a further 3D correspondence is established. This further 3D correspondence is a 3D point pair correspondence further established through local point feature matching based on the preliminary spatial alignment provided by the corresponding candidate coarse pose.

[0128] Reliability screening is performed based on the matching degree of the three-dimensional correspondences. The matching degree reflects the feature consistency between corresponding points, and a lower matching degree indicates a lower reliability of the corresponding three-dimensional correspondence. Therefore, three-dimensional correspondences with a lower matching degree are eliminated, while those with a higher matching degree are retained. Subsequently, using the retained three-dimensional correspondences and with the matching degree of each three-dimensional correspondence as a weight, a weighted geometric solution is performed using a rigid body transformation method based on weighted singular value decomposition. The rotation and translation parameters of the corresponding candidate coarse poses are then corrected to obtain the refined six-degree-of-freedom poses corresponding to each candidate coarse pose.

[0129] Select the refined six-DOF pose with the best matching effect from among the candidate refined six-DOF poses as the final pose.

[0130] Based on the two-stage 3D correspondence matching results, the system selects the best matching result from the candidate poses as the final pose of the RGB-D image branch. In this way, the system can utilize the geometric information provided by the depth map to perform coarse-to-fine 3D correspondence matching between the target observation point cloud P and the model point cloud Q, thereby obtaining the rotation and translation results of the target object relative to the camera coordinate system.

[0131] Step 8: Output the pose result

[0132] The system outputs the final six-degree-of-freedom pose of the target object relative to the camera coordinate system. This result can be directly used by robot grasping, target localization, or industrial inspection modules. Through the above implementation method, the system can fully utilize the depth geometry information in the RGB-D input to obtain relatively stable six-degree-of-freedom pose estimation results in scenes with weak texture, complex lighting, or background interference.

[0133] Of course, those skilled in the art will recognize that the present invention is not limited to the details of the exemplary embodiments described above, but also includes the same or similar structures that can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0134] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

[0135] The technologies, shapes, and structures not described in detail in this invention are all known technologies.

Claims

1. A method for estimating the pose of a six-degree-of-freedom object, characterized in that, include: S1: Obtain the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic parameter matrix; S2: Based on the RGB image, a prompt box guide is used to search and filter the target region and target mask to obtain the final target mask and the corresponding target cropped image; S3: Extract local image features from the target cropped image, and determine the identifiability of the RGB image by the number of effective local image features and spatial coverage; if the preset conditions are met, execute steps S4 and S5; otherwise, obtain the depth map of the target to be estimated and execute step S6. S4: Render template images from multiple perspectives using the CAD model, extract features from the target cropped image and the template image, and filter candidate template images based on similarity scores; generate candidate coarse poses for each candidate template image; S5: Obtain the rendered images of each candidate coarse pose, and perform rendering alignment and iterative adjustment with the target cropped image to obtain the corresponding candidate fine poses. Select the fine pose with the best evaluation as the final pose. S6: Extract the target observation point cloud from the depth map using the final target mask, and obtain the model point cloud by sampling the CAD model. Perform two-stage 3D correspondence matching between the target observation point cloud and the model point cloud to obtain the final pose.

2. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, Step S2 includes: S21: Use a region segmentation model to initially screen the target region of the RGB image, generate multiple candidate segmentation regions, find the segmentation region of the target to be estimated in the multiple candidate segmentation regions, and use it as the rough bounding box of the target to be estimated. S22: Use the rough bounding box as the input mask segmentation model to generate several candidate target masks; evaluate and filter them according to the mask quality score and stability score to obtain the final target mask; and obtain the target cropped image based on the final target mask.

3. The six-degree-of-freedom object pose estimation method as described in claim 2, characterized in that, The mask quality score is obtained by the predicted intersection-union ratio (IU / R) of each candidate target mask output by the mask segmentation model; the stability score is obtained by changing the binarization threshold of the candidate target mask to obtain two binary masks and calculating their IU / R. The target mask with the largest sum of mask quality score and stability score is used as the final target mask; Based on the final target mask, the target region and the corresponding target cropped image are obtained from the RGB image for subsequent pose estimation.

4. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, The preset conditions in step S3 are: the number of effective local image features is not less than the threshold of the number of local image features, and the spatial coverage meets the set requirements.

5. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, In step S4, the similarity score between the features of the target cropped image and the features of the kth template image is calculated. The calculation method is as follows: in, Represents the features of the target cropped image; Let T be the feature of the k-th template image; T is the transpose of the matrix.

6. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, In step S4, candidate coarse poses are generated for each candidate template image, specifically as follows: For each candidate template image, based on the two-dimensional correspondence between the target cropped image and the template image, the scale, in-plane rotation angle, and two-dimensional translation amount between each template image and the target cropped image are predicted; the two-dimensional transformation relationship from the coordinates of the template image points to the coordinates of the target cropped image points is expressed as: in, The scale between the template image and the target cropped image; and These are the x and y coordinates of a point on the template image, respectively. and These are the x and y coordinates of a point in the target cropped image, respectively. and These refer to the horizontal and vertical translations in a two-dimensional translation. The rotation angle is within the plane; By combining the known viewpoint, scale, in-plane rotation angle, and two-dimensional translation of each candidate template image, a corresponding candidate coarse pose is generated.

7. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, Step S5 includes: Based on each candidate coarse pose, and according to the target CAD model and camera intrinsic parameters The corresponding rendered image is obtained; Each rendered image is cropped and aligned to its target image to obtain the corresponding refined rendered image and refined pose; the pose iteration update method in the render-aligned pose refinement is as follows: in, l This represents the number of iterations. The current pose, i.e., the first l iterative pose, For the first l The correction amount for the next iteration; For the first l+ 1 iteration pose; when l When equal to 1, This corresponds to the coarse pose candidate. Based on the alignment degree between the refined rendered image and the target cropped image corresponding to each candidate coarse pose, each refined pose is scored, and the refined pose with the highest score is selected as the final six-DOF pose.

8. The six-degree-of-freedom object pose estimation method as described in claim 1, characterized in that, In step S6, the first stage of the two-stage 3D correspondence matching is the coarse point matching stage: sparse point sets covering different spatial regions are selected from the target observation point cloud and the model point cloud respectively, and point features are extracted; based on the similarity between the point features of the target observation points and the model points, a sparse preliminary 3D correspondence is established and the matching degree of each correspondence is determined; based on the matching degree, multiple sets of corresponding point pairs are selected, and rigid body transformation is performed on each set of corresponding point pairs to obtain multiple candidate coarse poses.

9. The six-degree-of-freedom object pose estimation method as described in claim 8, characterized in that, The second stage of the two-stage 3D correspondence matching is the fine point matching stage: each candidate coarse pose is used as the initial pose, and the model point cloud is transformed to the coordinate system of the target observation point cloud for spatial alignment. Based on spatial alignment, local point feature matching is performed to establish a denser 3D correspondence than in the first stage, and the matching degree of each correspondence is determined; the reliability of the dense 3D correspondence is screened based on the matching degree. By using the three-dimensional correspondences retained after screening and weighted geometric solution with matching degree as weight, the corresponding candidate coarse poses are corrected to obtain the refined poses corresponding to each candidate coarse pose. Then, the fine pose with the best matching effect is selected from the fine poses corresponding to each candidate coarse pose as the final pose.

10. A six-degree-of-freedom object pose estimation system, characterized in that, To implement a six-DOF object pose estimation method as described in any one of claims 1-9, the method includes: The data acquisition module is used to acquire the RGB image of the target to be estimated, the target CAD model, and the camera intrinsic parameter matrix; The target region processing module is used to perform initial screening of RGB images using a region segmentation model to obtain coarse bounding boxes. The coarse bounding boxes are used as input boxes for the mask segmentation model to generate candidate target masks. The final target mask is obtained by filtering based on the mask quality and stability, and the target cropped image is obtained based on the final target mask. The modality judgment module is used to evaluate the discriminability of RGB images based on the number of effective local features and spatial coverage in the target cropped image, and to determine whether to use the RGB branch or the RGB-D branch based on the evaluation results. The pose estimation module adopts the corresponding pose estimation method based on the RGB branch or RGB-D branch to obtain the final pose estimation result.