Shape band: A deformable object detection approach

Xiang Bai, Quannan Li, Longin Jan Latecki, Wenyu Liu, Zhuowen Tu

Abstract

Detecting deformable objects in cluttered environments remains a significant challenge in computer vision. This paper introduces the "Shape Band" approach, which models objects within a flexible bandwidth of a single contour template. By utilizing a coarse-to-fine matching strategy—combining a fast Shape Band Distance (SBD) for candidate selection with a precise Shape Context (SC) distance for fine matching—the algorithm achieves state-of-the-art accuracy on benchmarks like the ETHZ dataset. The method is robust to non-rigid deformations and background clutter without requiring extensive training data.

Introduction

Object detection typically targets either broad classes requiring massive training sets or specific rigid objects. The "middle ground"—detecting class-level objects with varying shapes (e.g., giraffes, mugs) in clutter—is difficult. Existing edge-based detectors often struggle with non-rigid deformations, background noise, and the requirement for perfectly closed contours, which are rarely available in real-world edge maps.

Methods: The Shape Band Framework

The core innovation is the Shape Band representation. Instead of a thin, rigid line, a template is defined by sample points along a contour, each associated with a "band" (a disk of radius $r$).

The Shape Band template representation, showing the flexible bandwidth around the object's sketch.

The detection pipeline follows a coarse-to-fine strategy:

  1. Coarse Matching (SBD): The algorithm scans the image using quantized gradient directions within these bands. If an image edge point falls within a band and shares a similar gradient direction, it contributes to a low Shape Band Distance (SBD). This allows for local deformation or "wobble."
  2. Fine Shape Matching: Local minima in the SBD map identify candidate positions. For these candidates, the algorithm identifies adjunct edge segments and iteratively prunes them to minimize the Shape Context (SC) distance, resulting in a precise final boundary.

Experimental Evaluation

The method was evaluated on the ETHZ Dataset (Apple logos, Bottles, Giraffes, Swans, Mugs) and the Weizman Horse Dataset. These benchmarks are characterized by significant intra-class variation and heavy clutter.

Detection process on a swan image: (a) original image, (b) edge segments with red boundaries, and (c) final detected contour.

Key Results

The Shape Band approach outperformed previous state-of-the-art methods on the ETHZ dataset:

  • Mugs: Achieved 83.3% precision at 83.4% recall by effectively ignoring internal textures.
  • Bottles: Reached 95.0% precision at 92.7% recall.
  • Robustness: The system successfully detected objects despite slight rotations and scale differences using only a single hand-drawn template per category.

Discussion and Conclusion

The Shape Band acts as a deformable search window, focusing only on edges near the expected contour and ignoring clutter. Its tolerance to fragmented edges makes it highly effective for real-world edge maps. However, processing speed remains a limitation, with fine-matching taking 1–2 minutes per image. Future work involves developing graphical models to handle extreme articulation and multi-template approaches for broader category detection.

Summary updated

BibTeX
@inproceedings{bai2009shape,
  author = {Xiang Bai and Quannan Li and Longin Jan Latecki and Wenyu Liu and Zhuowen Tu},
  title = {{Shape band: A deformable object detection approach}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2009},
  doi = {10.1109/cvpr.2009.5206543},
}
Figure