Object Detection in Equirectangular Panorama

Wenyan Yang, Yanlin Qian, Francesco Cricri, Lixin Fan, Joni-Kristian Kamarainen

Introduction

As virtual reality (VR) and 360-degree cameras become increasingly prevalent, the need for robust computer vision models capable of processing Equirectangular Panorama (ERA) images has grown. However, standard object detectors, such as Faster R-CNN or YOLO, face significant hurdles when applied to ERA data.

The primary challenges include:

  1. Geometric Distortion: Objects near the "poles" of a panorama undergo severe stretching and warping, deviating significantly from the rectangular training samples found in standard datasets like COCO.
  2. High Resolution: 360-degree images are typically 4K or higher to maintain clarity. Processing these at native resolution often exceeds the memory capacity of standard GPUs.
  3. Data Scarcity: Compared to conventional "flat" image datasets, annotated 360-degree data is extremely limited.
Example of geometric distortion in an equirectangular panorama, where the sky and ground are severely warped.

Proposed Method: m-p YOLO

To address these issues, this research introduces m-p YOLO, a multi-projection variant of the YOLO detector. The core idea is to bridge the gap between distorted spherical views and standard "flat" detectors through a specialized pipeline:

  • Stereographic Sub-projections: Instead of processing the distorted panorama directly, the system generates four overlapping "sub-windows" using stereographic projection. This method is chosen because it preserves object shapes better than standard perspective projection over a wide 180° field of view.
  • Base Detector: A YOLOv2 model, pre-trained on COCO and ImageNet, processes each sub-window.
  • Bounding Box Re-alignment: A post-processing step "back-projects" detections into the original panorama, adjusting bounding boxes to fit the distorted shapes of the equirectangular format.
  • Soft Selection (Soft-NMS): To manage the 90° overlap between sub-windows, a modified Non-Maximum Suppression (NMS) re-scores redundant boxes. It favors detections closer to the center of a projection, where distortion is minimal.

The 360-Degree Dataset

A significant contribution of this work is the curation of a new high-resolution 360-degree dataset. The authors collected 22 4K-resolution videos from YouTube, resulting in 903 frames and 7,199 annotated objects. The dataset focuses on three primary classes: person, car, and boat.

Sample frames from the new 360-degree dataset, showcasing diverse environments including urban streets, harbors, and aerial views.

To ensure high-quality ground truth, the authors developed a "Canonical Pose" annotation tool. This allows annotators to move an object to the center of a perspective view before drawing a bounding box, ensuring accuracy despite the inherent warping of the panorama.

Experimental Results

The study compared YOLOv2 and Faster R-CNN in the 360-degree environment. YOLOv2 generally proved more adaptable to varying input resolutions. Key findings include:

  • Accuracy Boost: The m-p YOLO variant achieved a Mean Average Precision (mAP) of 34.29 at a resolution of 864x864. This significantly outperformed a standard YOLOv2 model (30.90 mAP) using the same training weights.
  • Resolution Efficiency: The multi-projection approach allows a model trained on lower-resolution images to outperform standard models on high-resolution images by effectively "un-distorting" the input pixels.
  • Center-Weighting: Implementing a penalty function that favors detections near the center of sub-windows successfully reduced false positives and misalignments.

Conclusion and Future Work

While m-p YOLO effectively mitigates distortion and memory constraints, some limitations remain. Bounding boxes near the extreme edges of sub-projections can still experience artificial enlargement during back-projection. Additionally, processing multiple sub-windows increases computational overhead, though it remains feasible for consumer-grade hardware. Future research will focus on optimizing the pipeline for real-time performance and expanding the dataset to include a wider variety of object classes.

Summary updated

BibTeX
@inproceedings{yang2018object,
  author = {Wenyan Yang and Yanlin Qian and Francesco Cricri and Lixin Fan and Joni-Kristian Kamarainen},
  title = {{Object Detection in Equirectangular Panorama}},
  booktitle = {ICPR},
  year = {2018},
  url = {https://openreview.net/forum?id=feAeuJKlYi},
}
Figure