FPGA-based ORB Feature Extraction for Real-Time Visual SLAM

Weikang Fang, Yanjun Zhang, Bo Yu, Shaoshan Liu

Abstract

Visual SLAM (Simultaneous Localization and Mapping) is a foundational technology for autonomous systems, yet its computational demands often exceed the capabilities of mobile and IoT-grade hardware. Feature extraction, specifically the ORB (Oriented FAST and Rotated BRIEF) algorithm, is a primary bottleneck, frequently consuming over half of available CPU resources. This paper presents a custom FPGA-based hardware accelerator designed to offload this task. By utilizing a streaming architecture with two-stage synchronized line buffers and optimizing bit-widths for orientation calculations, the proposed design achieves 67 FPS at VGA resolution. Experimental results demonstrate that this approach outperforms both mobile ARM processors and desktop Intel i5 CPUs in throughput and energy efficiency, making it highly suitable for real-time robotics applications.

Introduction

Visual SLAM allows robots, drones, and AR/VR headsets to build maps of unknown environments while tracking their own location. However, achieving real-time performance on mobile devices is challenging. In profiling a production-level Visual Inertial SLAM system on a quad-core ARM v8 SoC, researchers found that feature extraction alone took 50ms per frame, limiting the entire system to 20 FPS. To reach the "gold standard" of real-time performance with low power consumption, this work moves the feature extraction workload from general-purpose CPUs to specialized FPGA hardware.

System Architecture and Methodology

The researchers implemented the ORB algorithm on an Altera Stratix V FPGA, focusing on hardware-specific optimizations to maximize throughput and minimize memory usage. The implementation follows a multi-level approach to handle scale and rotation invariance.

The ORB algorithm implementation flow, showing the parallel processing of image levels and the transition from oFAST detection to Steered BRIEF description.

Streaming Architecture

A major innovation in this design is the use of Two-Stage Synchronized Line Buffers. Traditional software implementations often process images in batches, which requires significant memory. In contrast, this hardware design processes pixels as they arrive from the camera. The first stage handles Gaussian filtering, while the second handles descriptor computation using a "sliding window" approach. This streaming architecture saved 575KB of expensive on-chip memory and reduced latency to just 14.8ms.

Detailed hardware diagram of the two-stage synchronized line buffers, illustrating the streaming data flow from input pixels to the final descriptor computing module.

Precision and Word Length Optimization

The authors identified a significant opportunity for optimization in the calculation of feature orientation. While raw moments ($m_{10}, m_{01}$) typically require 21 bits of range, the researchers found that the most significant bits are often zero and the least significant bits have negligible impact on accuracy. By truncating these values to 8 bits, they reduced Adaptive Logic Unit (ALUT) usage by 65% and register usage by 82% without compromising the robustness of the SLAM system.

Evaluation and Results

The FPGA accelerator was benchmarked against an ARM Krait (mobile SoC) and an Intel Core i5 (desktop) at VGA resolution (640 × 480).

Metric Proposed FPGA ARM Krait Intel Core i5
Throughput (FPS) 67 33 40
Latency (ms) 14.8 30 25
Energy (mJ/frame) 68 75 400

The results show that the FPGA design is approximately 2x faster than the mobile ARM processor and 1.6x faster than the desktop i5. Crucially for battery-powered robotics, the FPGA uses nearly 6x less energy per frame than the Intel i5.

Conclusion and Future Work

This work demonstrates that specialized FPGA hardware can significantly alleviate the computational burden of Visual SLAM. By tailoring the hardware to the specific data flow of the ORB algorithm, the researchers achieved superior performance compared to much higher-clocked general-purpose CPUs.

Future work will focus on expanding the image pyramid from 2 levels to 8 levels to improve scale invariance. Additionally, further research is needed to quantify how bit-width truncation affects the final trajectory error (ATE/RPE) in a complete SLAM pipeline and to optimize the parallel integration between the FPGA accelerator and the host ARM processor for tasks like loop closure and mapping.

Summary updated

BibTeX
@inproceedings{fang2017fpga,
  author = {Weikang Fang and Yanjun Zhang and Bo Yu and Shaoshan Liu},
  title = {{FPGA-based ORB Feature Extraction for Real-Time Visual SLAM}},
  booktitle = {FPT},
  year = {2017},
  doi = {10.1109/fpt.2017.8280159},
}
Figure