Learning to Infer the Depth Map of a Hand from its Color Image

Vassilis C. Nicodemou, Iason Oikonomidis, Georgios Tzimiropoulos, Antonis A. ArgyrosOpenReview 2018 · DOI

Abstract

We present the first direct approach targeted explicitly on human hands that infers depth from monocular RGB images. We achieve this with a Convolutional Neural Network (CNN) that employs a stacked hourglass model as its main building block. Intermediate supervision is used in several outputs of the proposed architecture in a staged approach. To aid the process of training and inference, hand segmentation masks are also estimated in such intermediate supervision steps, and used to guide the subsequent depth estimation process. In order to train and evaluate the proposed method we compile and make publicly available HandRGBD, a new dataset of 20,601 views of hands, each consisting of an RGB image and an aligned depth map. Based on HandRGBD, we explore variants of the proposed approach in an ablative study and determine the most accurate one. The results of an extensive experimental evaluation demonstrate that hand depth estimation from a single RGB frame can be achieved with an accuracy of 22mm, which is comparable to the accuracy achieved by contemporary low-cost depth cameras. Such a 3D reconstruction of hands based on RGB information is valuable as a final result on its own right, but also as an input to several other hand analysis and perception algorithms that require depth input.

Introduction

In computer vision, understanding hand gestures and 3D poses is vital for applications in Augmented Reality (AR), Virtual Reality (VR), and human-robot interaction. Historically, the most robust methods for hand tracking have relied on depth sensors rather than standard color cameras. However, depth sensors are not always available on mobile devices, consume significant power, and struggle in direct sunlight.

Input RGB image and the corresponding target depth map from the HandRGBD dataset.

Inferring depth from a single 2D color image is an "ill-posed" problem because the mathematical projection from 3D to 2D discards distance information. Hands are particularly challenging to reconstruct because they are highly articulated, frequently self-occlude, and vary significantly in shape and skin tone. This research aims to bridge the hardware gap by using software to "simulate" a depth sensor from standard RGB input.

Methods

The authors employ a Stacked Hourglass Network, a state-of-the-art architecture for human pose estimation. The "hourglass" structure pools features down to a low resolution to capture global context and then upsamples them back to the original resolution to capture fine details.

The proposed Stacked Hourglass architecture with intermediate supervision for segmentation masks (M) and depth maps (D).

Staged Intermediate Supervision and Segmentation

The network is trained to produce results at six different stages. The first three stages are tasked with predicting a binary segmentation mask. This "Mask First" strategy acts as a guide for the final three stages, which focus exclusively on estimating the relative depth of the hand pixels. By focusing on relative depth (the shape and "relief" of the hand) rather than absolute distance, the network avoids the ambiguity caused by different camera focal lengths.

The HandRGBD Dataset

To train the model, the researchers introduced HandRGBD, a dataset of 20,601 frames. It features 17 different subjects performing free-form gestures at various distances. The data was captured using a Kinect V2, with specialized software to ensure the color and depth images were perfectly aligned pixel-by-pixel.

Key Results

  • Accuracy: The system achieved an average depth error of 22.88mm, which is comparable to the performance of dedicated hardware like the Microsoft Kinect.
  • Segmentation Quality: The hand/background segmentation achieved an Intersection over Union (IoU) of 0.84, indicating very clean hand extraction.
  • Downstream Utility: When inferred depth maps were fed into a standard 3D hand tracker, the resulting 3D pose was nearly as accurate as one generated using real sensor data, with a discrepancy of only ~24.7mm.

Limitations and Future Work

The current model focuses on the shape of the hand but does not calculate absolute distance from the camera lens (the "global scale" problem). Additionally, the model treats the background as flat and does not reconstruct the depth of objects the hand might be holding. Future work will explore more varied lighting conditions and complex hand-object interactions to make the model more robust for "in-the-wild" use.

Summary updated

BibTeX
@misc{nicodemou2018learning,
  author = {Vassilis C. Nicodemou and Iason Oikonomidis and Georgios Tzimiropoulos and Antonis A. Argyros},
  title = {{Learning to Infer the Depth Map of a Hand from its Color Image}},
  year = {2018},
  eprint = {1812.02486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.02486},
  howpublished = {OpenReview},
}
Figure