Introduction
Camera localization—the task of determining a camera's exact 6-DoF pose from a single image—is a fundamental component of autonomous driving and AR/VR systems. Historically, this has been handled by structure-based methods (e.g., Structure-from-Motion), which are highly accurate but vulnerable to environmental changes like lighting or repetitive patterns.
Recently, end-to-end deep learning has emerged as an alternative, either regressing poses directly or predicting scene coordinates (mapping 2D pixels to 3D world points). However, a gap remains: current models often fail to balance high-level global context with low-level texture details, and they frequently ignore the geometric constraints that make traditional methods robust.
Methodology: The SGL Framework
The proposed Structure Guidance Learning (SGL) framework bridges this gap through a bilateral network architecture and a geometry-inspired training process.
Bilateral Network Architecture
Instead of a single backbone, SGL utilizes two parallel branches to process input images:
- Receptive Branch: Uses deep layers to capture global context and spatial information, answering the high-level question of "where am I in the room?"
- Structure Branch: Uses shallower layers to preserve fine-grained, low-level textures, pinpointing "what does this specific corner look like?"
These branches are fused to create a comprehensive feature map for 3D coordinate prediction.
Confidence-Based Filtering
To ensure only reliable 3D points are used for pose estimation, SGL includes a Confidence Block. This component generates a probability map and applies a dynamic threshold to filter out low-quality 3D observations before they are passed to the Perspective-n-Point (PnP) solver.
The Bundle Adjustment (BA) Trainer
Perhaps the most novel innovation is the BA Trainer. Inspired by traditional geometry, this training pipeline feeds reprojection errors from retrieved database images back into the learning loop. This "geometry as a teacher" approach guides the neural network toward physically plausible solutions by enforcing multi-view constraints during the training phase.
Experimental Evaluation
SGL was evaluated on two gold-standard benchmarks:
- Microsoft 7-Scenes: An indoor dataset known for motion blur and repetitive structures (e.g., kitchens, offices).
- Cambridge Landmarks: A large-scale outdoor dataset featuring complex architectural sites.
Key Results and Insights
SGL consistently outperformed state-of-the-art (SOTA) methods, including HLoc and DSAC*:
- Indoor Accuracy: In the "Chess" scene, SGL achieved a median error of 1.5cm / 0.52°, compared to DSAC*'s 1.9cm / 1.11°.
- Outdoor Stability: On the "Great Court" subset, the BA trainer helped reduce translation error from 32.1cm down to 27.5cm.
The paper reinforces that localization is a dual-natured task. Success requires both the "big picture" context to identify the general area and "tiny details" to pinpoint exact coordinates. The bilateral structure and dynamic thresholding allow SGL to adapt effectively to different environmental difficulties.
Conclusion and Future Work
SGL demonstrates that deep learning and geometric principles are complementary rather than mutually exclusive. While the current model relies on an external image retrieval component during training, future work aims to simplify the pipeline and adapt the system for sequential video inputs to further enhance real-world utility.
Summary updated