Skip to main content
QUICK REVIEW

[Paper Review] HoloLens 2 Sensor Streaming

Juan C. Dibene, Enrique Dunn|arXiv (Cornell University)|Nov 4, 2022
Augmented Reality ApplicationsComputer Science8 citations
TL;DR

This paper presents a real-time TCP-based streaming system for HoloLens 2 sensor data, enabling low-latency, full-frame-rate transfer of RGB, grayscale, depth, IMU, audio, eye, head, and hand tracking data to external systems. By leveraging HoloLens 2's native video encoding and a C++ UWP server with a cross-platform Python client, the system achieves ~270 ms latency for 1080p video and supports integration with third-party libraries like Open3D and MMDetection for real-time 3D reconstruction and segmentation.

ABSTRACT

We present a HoloLens 2 server application for streaming device data via TCP in real time. The server can stream data from the four grayscale cameras, depth sensor, IMU, front RGB camera, microphone, head tracking, eye tracking, and hand tracking. Each sent data frame has a timestamp and, optionally, the instantaneous pose of the device in 3D space. The server allows downloading device calibration data, such as camera intrinsics, and can be integrated into Unity projects as a plugin, with support for basic upstream capabilities. To achieve real time video streaming at full frame rate, we leverage the video encoding capabilities of the HoloLens 2. Finally, we present a Python library for receiving and decoding the data, which includes utilities that facilitate passing the data to other libraries. The source code, Python demos, and precompiled binaries are available at https://github.com/jdibenes/hl2ss.

Motivation & Objective

  • Enable real-time, online experimentation with HoloLens 2 sensor data on external systems with greater computational power and library support.
  • Overcome limitations of existing tools like the Windows Device Portal and Research Mode API, which lack real-time streaming or full sensor access.
  • Provide low-latency, full-frame-rate streaming of all HoloLens 2 sensors, including grayscale cameras, depth, IMU, and advanced tracking data (eye, head, hand).
  • Support cross-platform data reception and processing via a Python library with utilities for decoding, undistorting, aligning, and storing sensor data.
  • Facilitate integration with third-party libraries such as Open3D and MMDetection for real-time 3D reconstruction and panoptic segmentation.

Proposed method

  • Implement a C++ Universal Windows Platform (UWP) server application on HoloLens 2 to expose sensor streams over TCP on dedicated ports for each data type.
  • Utilize the HoloLens 2's native video encoding (H.264/HEVC) and Microsoft Media Foundation SDK to compress video and audio streams, reducing bandwidth while maintaining real-time performance.
  • Stream depth data as interleaved 16-bit depth and active brightness images encoded in lossless PNG, excluding the sigma channel to improve compression efficiency.
  • Use Windows Sockets for reliable, low-latency TCP transmission with consistent timestamps in hundreds of nanoseconds across all streams for synchronization.
  • Develop a Python client library supporting Windows, Linux, and macOS that decodes streams, manages data synchronization via semaphores, and provides utilities for undistortion, alignment, and file I/O.
  • Integrate with OpenCV for image undistortion and PyAV for MP4 encoding, enabling real-time processing pipelines with tools like Open3D and MMDetection.

Experimental results

Research questions

  • RQ1Can a real-time, low-latency TCP streaming system be built to expose all HoloLens 2 sensor data, including previously inaccessible streams like grayscale cameras and depth, to external systems?
  • RQ2What is the achievable end-to-end latency for full-frame-rate video streaming (e.g., 1080p 30 FPS) using HoloLens 2's native encoding and TCP transport?
  • RQ3How can sensor data from multiple heterogeneous sources (video, depth, IMU, tracking) be synchronized and processed in real time using a cross-platform client?
  • RQ4To what extent can the system enable real-time integration with third-party libraries such as Open3D and MMDetection for 3D reconstruction and semantic segmentation?
  • RQ5What is the network bandwidth requirement for streaming all HoloLens 2 sensor data simultaneously at full frame rate?

Key findings

  • The system achieves real-time streaming of all HoloLens 2 sensor data—including four grayscale cameras, depth, IMU, RGB video, microphone, and tracking data—at full frame rate with low latency.
  • End-to-end latency for 1080p 30 FPS video streaming was measured at approximately 270 ms in the test setup, demonstrating practical low-latency performance.
  • Total network bandwidth across all streams averages 19 Mbit/s, with individual streams ranging from 12 Kbit/s (magnetometer) to 6.5 Mbit/s (depth).
  • The Python client library successfully decodes and synchronizes data from multiple streams, enabling real-time 3D reconstruction using Open3D from aligned RGBD data.
  • The system supports real-time panoptic segmentation of RM VLC images using MMDetection, which is then used to segment depth data, demonstrating end-to-end pipeline viability.
  • The framework enables seamless integration with external tools via NumPy arrays and utility functions for undistortion, alignment, and file I/O, facilitating reproducible and extensible research workflows.

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.