SRPose: Two-View Relative Pose Estimation with Sparse Keypoints

Rui Yin, Yulun Zhang, Zherong Pan, Jianjun Zhu, Cheng Wang, Biao Jia

Abstract

Relative pose estimation is a fundamental task in computer vision, traditionally reliant on computationally intensive robust estimators like RANSAC. We present SRPose, a novel deep learning framework that performs direct relative pose regression using sparse keypoints. By incorporating a camera-aware architecture that accounts for intrinsics and a promptable attention mechanism, SRPose achieves state-of-the-art accuracy and significant speed improvements across both camera-to-world and object-to-camera tracking scenarios.

Introduction

Determining the relative transformation between two camera views or between an object and a camera is essential for applications ranging from robotics to augmented reality. Traditional pipelines involve matching local features followed by geometric solvers like RANSAC to filter outliers. While robust, these iterative solvers are often the primary bottleneck in real-time systems.

Existing deep learning regressors attempt to bypass RANSAC by predicting poses directly. However, these models frequently fail to generalize across different camera hardware or image resolutions because they do not explicitly model camera intrinsics. SRPose addresses these limitations by introducing a hardware-agnostic, sparse-keypoint-based regression pipeline.

Methodology

The SRPose architecture consists of four primary stages designed to emulate geometric reasoning:

  1. Sparse Keypoint Detection: The system utilizes pre-trained detectors (e.g., SuperPoint) to extract salient points and visual descriptors.
  2. Intrinsic-Calibration (IC) Position Encoder: A critical innovation where keypoint coordinates are normalized using camera intrinsics. This ensures the model learns 3D geometric relationships rather than pixel-space patterns, making it hardware-agnostic.
  3. Promptable Prior Knowledge-Guided Attention: Transformer layers process the keypoints, guided by a similarity matrix derived from visual descriptors. For object-specific tasks, the model accepts a bounding box "prompt" to focus its attention on a target.
  4. Relative Pose Regression: A Multi-Layer Perceptron (MLP) directly outputs the final rotation and translation parameters.
Object-to-camera tracking using a bounding box prompt.

Key Insights

SRPose shifts the paradigm from explicit to implicit matching. Instead of establishing hard point-to-point correspondences, the attention mechanism weighs the entire set of keypoints simultaneously. This approach allows the network to solve complex epipolar geometry problems through regression, significantly reducing latency.

Visualization of epipolar geometry reasoning in a scene.

Furthermore, the "promptability" of the model allows it to switch between scene-level localization and object tracking without requiring dense segmentation masks or retraining, providing a versatile tool for various 3D vision tasks.

Experimental Results

The model was evaluated on diverse benchmarks, including ScanNet and Matterport for indoor navigation, and HO3D for object manipulation.

  • Efficiency: SRPose demonstrates a massive speed advantage, processing frames in approximately 28.5ms. In contrast, traditional matcher-based methods using RANSAC (like SuperGlue) require 270ms to 440ms.
  • Accuracy: On the Matterport dataset, SRPose achieved a rotation error of 2.65°, outperforming previous regressors like NOPE-SAC. In object tracking (HO3D), it reduced median rotation error to 8.9°, a substantial improvement over the 23.3° error seen in competing methods like DKM.
  • Generalization: Training on ScanNet and testing on Matterport confirmed the model's ability to generalize to unseen environments and different camera configurations without performance degradation.

Conclusion

SRPose demonstrates that direct regression, when combined with camera-aware encoding and promptable attention, can match or exceed the performance of traditional geometric pipelines while offering superior speed. While dense matchers may still provide higher accuracy in extremely complex scenes, SRPose offers a highly efficient and generalizable solution for real-time relative pose estimation.

Summary updated

BibTeX
@inproceedings{yin2024srpose,
  author = {Rui Yin and Yulun Zhang and Zherong Pan and Jianjun Zhu and Cheng Wang and Biao Jia},
  title = {{SRPose: Two-View Relative Pose Estimation with Sparse Keypoints}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73010-8\_6},
}
Figure