Skip to main content
QUICK REVIEW

[Paper Review] Real-Time Onboard Object Detection for Augmented Reality: Enhancing Head-Mounted Display with YOLOv8

Mikołaj Łysakowski, Kamil Żywanowski|arXiv (Cornell University)|Jun 6, 2023
Augmented Reality ApplicationsComputer Science3 citations
TL;DR

This paper presents a real-time, onboard object detection pipeline using YOLOv8 on the Microsoft HoloLens 2, achieving sub-150ms inference times at 160×160 input resolution through optimized backend selection and batch processing of non-square images. The solution enables low-latency, cloud-independent AR applications with high accuracy and practical performance up to 2.5 meters.

ABSTRACT

This paper introduces a software architecture for real-time object detection using machine learning (ML) in an augmented reality (AR) environment. Our approach uses the recent state-of-the-art YOLOv8 network that runs onboard on the Microsoft HoloLens 2 head-mounted display (HMD). The primary motivation behind this research is to enable the application of advanced ML models for enhanced perception and situational awareness with a wearable, hands-free AR platform. We show the image processing pipeline for the YOLOv8 model and the techniques used to make it real-time on the resource-limited edge computing platform of the headset. The experimental results demonstrate that our solution achieves real-time processing without needing offloading tasks to the cloud or any other external servers while retaining satisfactory accuracy regarding the usual mAP metric and measured qualitative performance

Motivation & Objective

  • Enable real-time, onboard machine learning inference on resource-constrained AR headsets like HoloLens 2.
  • Overcome the limitations of cloud-dependent or server-offloaded object detection in AR applications.
  • Develop a practical, replicable pipeline for deploying state-of-the-art YOLOv8 on edge devices for AR use cases.
  • Identify and document key hardware and software constraints of HoloLens 2 for ML workloads to guide future development.
  • Achieve real-time performance without compromising detection accuracy for typical AR operational ranges.

Proposed method

  • Deploy YOLOv8n as the object detection backbone, optimized for inference on HoloLens 2’s edge hardware.
  • Utilize the Barracuda ML inference engine with ComputePrecompiled backend for fastest inference performance.
  • Reduce input resolution to 160×160 pixels to meet real-time constraints while maintaining detection reliability.
  • Implement a batch processing strategy by splitting wider FoV images into two 160×160 sub-images for parallel inference.
  • Apply a sliding window approach for non-square input handling, preserving object aspect ratios without retraining.
  • Optimize data flow by minimizing preprocessing, postprocessing, and memory copying overhead.

Experimental results

Research questions

  • RQ1Can YOLOv8 be efficiently deployed on the HoloLens 2 for real-time object detection without cloud offloading?
  • RQ2What is the optimal balance between input resolution, model size, and inference speed on HoloLens 2’s edge platform?
  • RQ3How does batch processing of split images improve performance for non-square field-of-view inputs?
  • RQ4What are the primary computational bottlenecks in running modern ML models on HoloLens 2?
  • RQ5To what extent does the system maintain detection accuracy across varying object distances in real-world AR scenarios?

Key findings

  • The ComputePrecompiled backend achieved the fastest inference time of 89.84ms on HoloLens 2 with 160×160 input.
  • Processing two 160×160 images in a single batch reduced total inference time to 133.64ms, compared to 236.31ms for a single 320×320 image.
  • YOLOv8n maintained reliable detection performance up to 2.5 meters, with declining accuracy at 3.0 meters.
  • The system achieved real-time performance (sub-150ms) across all tested configurations, enabling responsive AR interaction.
  • The proposed batch-based image slicing method preserved object aspect ratios and enabled efficient handling of wider FoV without retraining.
  • The study identified missing FP16 support in Barracuda as a key limitation hindering further speedup, suggesting a path for future optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.