Learning Object Depth from Camera Motion and Video Object Segmentation

Brent A. Griffin, Jason J. CorsoECCV 2020

Abstract

Estimating 3D information from 2D images is a fundamental challenge in computer vision and robotics. This paper introduces a deep learning approach to estimate the 3D depth of objects using only 2D binary segmentation masks and camera motion data. By training on a novel synthetic dataset (ODMS) featuring random geometric shapes, the proposed Object Depth Network (ODN) learns the fundamental geometry of optical expansion. Experimental results demonstrate a 59% reduction in depth estimation error compared to analytic baselines, enabling robots to locate and grasp objects using a single standard RGB camera in real-time.

Introduction

While 3D sensors like LiDAR and RGB-D cameras are standard in robotics, they are often limited by cost, power consumption, or noise when interacting with specific materials. Standard RGB cameras are ubiquitous, but extracting precise 3D information from 2D images remains a classic "ill-posed" problem. Recent advances in Video Object Segmentation (VOS) allow for accurate 2D tracking and masking. However, converting these 2D masks into 3D depth typically relies on rigid geometric formulas that are highly sensitive to segmentation imperfections, such as missing corners or background noise. This paper addresses these challenges by introducing a robust, learning-based method that leverages the principle of optical expansion to estimate depth from noisy 2D segmentations.

Methodology

The core of the proposed approach is based on the "Square-cube law": as a camera approaches an object, the object's projected area on the image plane increases at a rate inversely proportional to the square of the distance.

Optical Expansion Model

The authors developed an analytic solution relating changes in an object's mask area to changes in camera position. To handle real-world noise, they designed the Object Depth Network (ODN), a deep CNN that processes a stack of $n$ binary segmentation masks alongside a vector of normalized camera positions.

Scale Invariance and Loss Functions

To ensure the model generalizes across different scales—from laboratory environments to urban highways—the inputs are normalized relative to the total travel range. The authors experimented with various loss functions, finding that predicting relative scale (the ratio of growth) provided the most robust results against segmentation noise.

Datasets and Experimental Setup

The authors introduced the Object Depth via Motion and Segmentation (ODMS) dataset framework to facilitate training and validation:

  • Synthetic Training Data: A generator produces random 2D "blobs" using Bézier curves, which are then scaled mathematically to simulate camera motion. This approach provides an infinite supply of training data without manual labeling.
  • Robot Validation Set: Real-world data collected using a Toyota Human Support Robot (HSR) approaching household objects in both isolated and cluttered scenes.
  • Driving Validation Set: Derived from the SYNTHIA dataset, featuring pedestrians, bicycles, and cars in urban environments to test the model at higher speeds and larger distances.
Overview of the ODMS framework showing segmentation masks for driving (left) and robotic grasping (right) scenarios.

Key Results and Insights

One of the most significant findings is the successful sim-to-real generalization. A network trained entirely on random synthetic blobs generalizes to real-world objects like mustard bottles or pedestrians because it learns the fundamental geometry of expansion rather than object-specific features.

Performance Metrics

  • Error Reduction: The ODN reduced the mean percent error (MPE) in depth estimation by up to 59% compared to state-of-the-art analytic methods.
  • Accuracy: The best configuration achieved a 19.0% MPE across all test sets.
  • Real-Time Execution: The network runs in real-time on standard GPUs, making it suitable for closed-loop robotic control.
A Toyota Human Support Robot (HSR) successfully grasping an object after estimating its depth using the proposed method.

Limitations and Future Work

Currently, the system depends on external camera motion data (e.g., wheel encoders). Errors in odometry directly impact depth estimation accuracy. Additionally, the model assumes objects are stationary. Future research aims to integrate Structure from Motion (SfM) to estimate camera motion directly from the video feed, potentially removing the need for hardware-based odometry and allowing the system to function with any standard handheld camera.

Summary updated

BibTeX
@inproceedings{griffin2020learning,
  author = {Brent A. Griffin and Jason J. Corso},
  title = {{Learning Object Depth from Camera Motion and Video Object Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58571-6\_18},
}
Figure