A Practical Stereo Depth System for Smart Glasses

Jialiang Wang, Daniel Scharstein, Akash Bapat, Kevin Blackburn-Matzen, Matthew Yu, Jonathan Lehman, Suhib Alsisan, Yanghan Wang, Sam S. Tsai, Jan-Michael Frahm, Zijian He, Peter Vajda, Michael F. Cohen, Matt Uyttendaele

Abstract

Smart glasses offer a compelling platform for 3D photography, yet they present significant engineering hurdles, including physical device deformation and severe computational constraints. This paper details a production-ready stereo depth system designed for smart glasses that operates on standard mobile hardware. The proposed pipeline integrates online rectification to handle dynamic calibration errors, a lightweight 8-bit quantized stereo network named Argos, and a seamless monocular fallback mechanism. Experimental results demonstrate that the system achieves state-of-the-art accuracy while maintaining a sub-second execution time on legacy smartphone CPUs.

1. Introduction

The transition of smart glasses into high-quality 3D capture devices is hindered by the "compute wall" of mobile hardware and the physical instability of the glasses themselves. Traditional stereo algorithms rely on precise factory calibration; however, smart glasses are flexible and subject to thermal expansion, which misaligns the cameras during use. Furthermore, state-of-the-art (SotA) depth models typically require high-end GPUs, making them impractical for mobile deployment. This work introduces an end-to-end system that overcomes these barriers through algorithmic efficiency and a robust fallback strategy.

2. Methodology

The system employs a multi-stage pipeline designed for both accuracy and resilience.

2.1 Online Rectification

To address the mechanical flexibility of smart glasses, the system performs online rectification. Instead of relying solely on static factory parameters, it utilizes a 4-to-6 parameter model to align images on-the-fly. By detecting Harris corner feature points, the system solves for rotation and focal length variations caused by the glasses bending or heating, ensuring the geometric assumptions of stereo matching are met.

2.2 The Argos Stereo Network

The core of the depth estimation is the Argos network, a lightweight CNN utilizing a Siamese encoder. Argos extracts features from both left and right views to construct a 3D cost volume. To meet mobile performance targets, the network is optimized using 8-bit quantization-aware training (QAT), allowing it to run efficiently on mobile CPUs without significant loss in precision.

2.3 Co-Design and Monocular Fallback

A critical requirement for consumer devices is a "fail-safe" operation. If one camera is obstructed or the scene lacks sufficient texture for stereo matching, the system must switch to monocular depth estimation. The researchers co-designed the stereo and monocular networks (the latter based on Tiefenrausch) to share the same architecture and output relative disparity. This ensures that the transition between modes is visually consistent for the user.

The end-to-end pipeline showing online rectification and the dual-path stereo/monocular CNN architecture.

2.4 Training and Data Synthesis

Training a robust stereo model requires vast amounts of data. The authors leveraged an internal dataset of 4 million monocular images captured by mobile devices. To create a stereo training set, they used the associated depth maps to synthetically render a second view. This "mono-to-stereo" bridge allows the model to learn high-level scene understanding from monocular data while mastering geometric constraints from the synthetic stereo pairs.

3. Experimental Results

The system was evaluated on both benchmark datasets and real-world captures.

3.1 Performance and Accuracy

The entire pipeline, including rectification and depth estimation, executes in less than one second on a Samsung Galaxy S8 CPU (a 2017-era device). Despite its small footprint and 8-bit quantization, the Argos network performs comparably to heavy-duty models like RAFT-stereo on the Middlebury 2014 and ETH3D benchmarks.

Qualitative comparison of the proposed system (Ours) against state-of-the-art stereo matching algorithms across multiple datasets.

3.2 Robustness and User Preference

The 4-parameter rectification model improved the system's success rate from 77% to 85% over simpler models. In user studies involving 24 participants, 3D effects generated by the stereo system received a mean preference score of 3.44/5, significantly outperforming monocular-only depth (2.96/5).

4. Conclusion

This work demonstrates a practical, production-ready stereo depth system for smart glasses. By combining online rectification with a quantized, co-designed network architecture, the system delivers high-quality 3D photography on mobile hardware. Future work will focus on improving the handling of thin structures and enhancing performance in feature-poor environments where stereo matching remains challenging.

Summary updated

BibTeX
@inproceedings{wang2022practical,
  author = {Jialiang Wang and Daniel Scharstein and Akash Bapat and Kevin Blackburn-Matzen and Matthew Yu and Jonathan Lehman and Suhib Alsisan and Yanghan Wang and Sam S. Tsai and Jan-Michael Frahm and Zijian He and Peter Vajda and Michael F. Cohen and Matt Uyttendaele},
  title = {{A Practical Stereo Depth System for Smart Glasses}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=1GVHQg45XZ},
}
Figure