Automatically Annotating Indoor Images with CAD Models via RGB-D Scans

Stefan Ainetter, Sinisa Stekovic, Friedrich Fraundorfer, Vincent Lepetit

Abstract

We present an automatic method for annotating images of indoor scenes with the CAD models of the objects by relying on RGB-D scans. Through a visual evaluation by 3D experts, we show that our method retrieves annotations that are at least as accurate as manual annotations, and can thus be used as ground truth without the burden of manually annotating 3D data. We do this using an analysis-by-synthesis approach, which compares renderings of the CAD models with the captured scene. We introduce a 'cloning procedure' that identifies objects that have the same geometry, to annotate these objects with the same CAD models. This allows us to obtain complete annotations for the Scan-Net dataset and the recent ARKitScenes dataset. We will release these annotations publicly, as we believe they will be very useful for the computer vision community.

Introduction

To train computer vision models to understand 3D scenes—such as identifying a specific chair's geometry from a single photo—massive amounts of "ground truth" data are required. Ideally, this data consists of real-world images perfectly aligned with clean, mathematical CAD models.

However, creating these datasets is a significant bottleneck. Manual annotation is a heavy burden: a human must browse thousands of CAD models, pick the best fit, and manually adjust it into a 9-degree-of-freedom pose (translation, rotation, and scale). Even for experts, this is slow and prone to inconsistency. Existing datasets like ScanNet are only partially annotated, leaving a gap in the data available for training next-generation vision models.

Methodology

The proposed pipeline replaces the human-in-the-loop with a multi-stage automatic optimization process centered on an "analysis-by-synthesis" approach.

Analysis-by-Synthesis

Given a 3D scan and basic bounding boxes, the system pulls candidate CAD models from the ShapeNet database. It then "renders" each candidate into a virtual depth map and compares it against the actual depth data captured by the RGB-D sensor. The system uses a three-part objective function to ensure accuracy: depth matching, silhouette matching (IoU), and Chamfer distance for 3D alignment.

Automated annotation of an office scene using the proposed analysis-by-synthesis pipeline.

The Cloning Procedure

In man-made environments, objects often come in sets, such as identical chairs around a table. The system clusters similar-looking objects and performs a joint retrieval, forcing them to share the same CAD model. This leverages combined data from all instances to find a better fit than looking at one partially occluded object in isolation. Finally, a differentiable renderer is used to fine-tune the position, rotation, and scale of the models.

Datasets

The study utilizes several pillars of the 3D vision community:

  • ScanNet & ARKitScenes: The primary real-world RGB-D datasets used for testing the annotation pipeline.
  • ShapeNet: The massive library of 3D CAD models used as the source for annotations.
  • Scan2CAD: Used as the baseline for comparison, as it contains manual CAD alignments for ScanNet.

Results and Discussion

The automated system demonstrates that mathematical optimization can outperform manual labor in both speed and quality. Unlike many modern AI approaches, this method is not learning-based and requires no pre-training, allowing it to be applied to new datasets immediately.

Efficiency and Accuracy

The automated method takes roughly 11 minutes per scene on two GPUs, compared to 20.5 minutes for a human annotator. In a blind visual inspection test, 3D experts preferred the automated annotations over manual Scan2CAD annotations in 43.7% of cases and found them similar in 31.8%.

A complex living room scene fully annotated with CAD models from the ShapeNet database.

Completeness

The authors provided CAD annotations for 37% more objects in the ScanNet dataset than previously available, effectively filling in the blanks of one of the industry's most important benchmarks.

Conclusion

This method provides a scalable way to generate massive synthetic-to-real training sets. While currently dependent on initial 3D oriented bounding boxes and the variety of the ShapeNet database, it paves the way for training models that can predict 3D geometry from a single 2D image with much higher precision.

Summary updated

BibTeX
@inproceedings{ainetter2023automatically,
  author = {Stefan Ainetter and Sinisa Stekovic and Friedrich Fraundorfer and Vincent Lepetit},
  title = {{Automatically Annotating Indoor Images with CAD Models via RGB-D Scans}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=Ap68_JxAI9},
}
Figure