Abstract
Determining the 6-DoF pose of a camera within a known environment is fundamental to robotics and augmented reality. While recent deep learning approaches like PoseNet regress pose from single images, they ignore the temporal continuity inherent in video. We introduce VidLoc, a system that utilizes a CNN-RNN architecture to relocalize video clips. By employing Bidirectional LSTMs to model temporal dependencies, VidLoc significantly reduces localization error and provides smoother trajectory estimates, achieving a 23–55% reduction in error compared to single-frame methods.
Introduction: The Challenge of Temporal Continuity
Traditional camera relocalization often fails in environments with perceptual aliasing—where different locations, such as the two ends of a long staircase, appear visually identical. Single-frame deep learning models, while efficient, treat video frames as independent events. This leads to noisy and "jittery" pose estimates where the predicted error between frames often exceeds the actual physical movement of the camera. VidLoc addresses this by incorporating the constraint of temporal continuity: the knowledge that a camera's current position is logically constrained by its previous and subsequent locations in a sequence.
Methodology
The VidLoc architecture is a hybrid model designed to extract spatial features and model temporal sequences simultaneously.
- Feature Extraction: The model utilizes the convolutional and pooling layers of GoogLeNet (Inception) to generate high-level visual descriptors for each frame in a video clip.
- Temporal Modeling: These features are passed into a Bidirectional LSTM (Long Short-Term Memory) network. By looking at both preceding and succeeding frames within a window (typically 20–100 frames), the Bi-LSTM resolves spatial ambiguities and smooths the predicted trajectory.
- Uncertainty Estimation: To quantify prediction confidence, the authors integrate Mixture Density Networks (MDNs). Instead of a single point, the model predicts a probability distribution (a mixture of Gaussians), allowing it to represent multiple possible locations in ambiguous scenes.
Experimental Results and Insights
VidLoc was evaluated on the Microsoft 7-Scenes (indoor) and Oxford RobotCar (outdoor) datasets.
Impact of Temporal Window Size
A key finding is the relationship between the length of the video clip (window size) and the resulting accuracy. As the window size increases, the model better leverages temporal context to resolve ambiguities and reduce error.
Performance Gains
VidLoc achieved error reductions of 23.4% to 55% over single-frame baselines in indoor environments. For example, in the "Office" scene, error dropped from 0.48m to 0.26m. In outdoor settings like the RobotCar dataset, it produced smooth, road-aligned trajectories, avoiding the scattered "point clouds" typical of frame-by-frame regression. Furthermore, the model maintains real-time performance, processing frames in approximately 18ms on a modern GPU.
Conclusion
VidLoc demonstrates that temporal context is a powerful prior for camera relocalization. By moving from single-image regression to sequence-based modeling, the system achieves significant performance gains for RGB-only relocalization. Future work will explore integrating explicit geometric constraints to further improve accuracy toward centimeter-level precision.
Summary updated