Real-Time Highly Accurate Dense Depth on a Power Budget Using an FPGA-CPU Hybrid SoC

Oscar Rahnama, Tommaso Cavallari, Stuart Golodetz, Alessio Tonioni, Thomas Joy, Luigi Di Stefano, Simon Walker, Philip H. S. TorrIEEE Trans. Circuits Syst. II Express Briefs 2019 · DOI

Abstract

Obtaining highly accurate depth from stereo images in real time has many applications across computer vision and robotics, but in some contexts, upper bounds on power consumption constrain the feasible hardware to embedded platforms such as FPGAs. Whilst various stereo algorithms have been deployed on these platforms, usually cut down to better match the embedded architecture, certain key parts of the more advanced algorithms, e.g. those that rely on unpredictable access to memory or are highly iterative in nature, are difficult to deploy efficiently on FPGAs, and thus the depth quality that can be achieved is limited. In this paper, we leverage a FPGA-CPU chip to propose a novel, sophisticated, stereo approach that combines the best features of SGM and ELAS-based methods to compute highly accurate dense depth in real time. Our approach achieves an 8.7% error rate on the challenging KITTI 2015 dataset at over 50 FPS, with a power consumption of only 5W.

Introduction

In the fields of robotics and autonomous navigation, 3D perception is a fundamental requirement for obstacle avoidance and path planning. Stereo vision offers a cost-effective solution for depth estimation; however, the underlying algorithms are computationally intensive. While high-performance GPUs can process these algorithms with high accuracy, their significant power draw (often exceeding 200W) makes them unsuitable for power-constrained platforms like small unmanned aerial vehicles (UAVs) or battery-operated mobile robots.

Field-Programmable Gate Arrays (FPGAs) present a power-efficient alternative, yet they face challenges with complex, iterative algorithms that involve non-sequential memory access. To fit within FPGA constraints, researchers often resort to "stripped-down" versions of algorithms like Semi-Global Matching (SGM), which compromises depth accuracy. This work addresses this trade-off by introducing a hybrid FPGA-CPU pipeline that achieves state-of-the-art accuracy within a strict 5W power budget.

Hybrid System Architecture

The core innovation of this research is the strategic partitioning of the stereo pipeline between the FPGA and the ARM CPU on a single Xilinx ZCU104 System-on-Chip (SoC). The FPGA handles high-speed, predictable data processing tasks, while the ARM CPU manages complex, irregular logic that is difficult to parallelize in hardware.

Hybrid FPGA-CPU system architecture illustrating the distribution of tasks between FPGA fabric and ARM cores.

The Algorithmic Pipeline

The pipeline integrates the strengths of SGM and Efficient Large-Scale Stereo (ELAS) through a multi-stage process:

  1. Fast $R^3SGM$ (FPGA): The process begins with a memory-efficient SGM implementation. By executing both forward (raster) and backward (reverse-raster) passes, the system identifies "support points"—pixels where the disparity estimates are highly consistent and confident.
  2. Prior Generation (CPU): These sparse support points are transferred to the ARM CPU. The CPU performs Delaunay triangulation and interpolation to build a "disparity prior" map. This map provides a rough geometric scaffold of the scene, a task that is mathematically complex and inefficient for FPGA logic.
  3. Combined Optimization (FPGA): The disparity priors are sent back to the FPGA. A final SGM-based optimization stage uses these priors to bias the matching process toward the estimated geometry. This effectively combines the global consistency of ELAS with the dense, local matching capabilities of SGM.
  4. Refinement: A final median filter is applied on the FPGA to suppress noise and produce the final dense depth map.
Visualization of the reverse-raster pass used to mitigate scanline bias and improve depth consistency.

Key Results and Insights

The proposed system demonstrates a superior balance of speed, power, and accuracy compared to previous state-of-the-art methods:

  • Accuracy: The hybrid approach achieved an 8.7% error rate on the KITTI 2015 benchmark. This significantly outperforms previous FPGA-only implementations, which often hover around 10-13% error.
  • Speed: The pipeline operates at a latency of 0.019 seconds per frame, achieving approximately 52 FPS. This performance comfortably exceeds the 30 FPS requirement for real-time robotic applications.
  • Power Efficiency: The entire SoC consumes only ~5W (roughly 2W for the FPGA and 3W for the CPU). For comparison, a high-end GPU performing similar work might consume 250W.
  • Bidirectional SGM: Running SGM in both raster and reverse-raster order allows the system to catch errors caused by the "scanline bias" inherent in real-time SGM implementations.

Conclusion

This paper demonstrates that a hybrid FPGA-CPU architecture can bridge the gap between low-power embedded processing and high-accuracy depth estimation. By intelligently distributing tasks—using the FPGA for streaming data and the CPU for geometric triangulation—the system achieves real-time performance on a 5W budget. While deep learning models currently offer higher absolute accuracy on GPUs, they cannot yet match this power efficiency. Future work will explore integrating lightweight neural network components into the hybrid pipeline to further close the accuracy gap.

Summary updated

BibTeX
@article{rahnama2019real,
  author = {Oscar Rahnama and Tommaso Cavallari and Stuart Golodetz and Alessio Tonioni and Thomas Joy and Luigi Di Stefano and Simon Walker and Philip H. S. Torr},
  title = {{Real-Time Highly Accurate Dense Depth on a Power Budget Using an FPGA-CPU Hybrid SoC}},
  journal = {IEEE Trans. Circuits Syst. II Express Briefs},
  year = {2019},
  doi = {10.1109/tcsii.2019.2909169},
}
Figure