Oriented Objects as pairs of Middle Lines

Haoran Wei, Lin Zhou, Yue Zhang, Hao Li, Rongxin Guo, Hongqi WangarXiv 2019

Abstract

The detection of oriented objects is frequently appeared in the field of natural scene text detection as well as object detection in aerial images. Traditional detectors for oriented objects are common to rotate anchors on the basis of the RCNN frameworks, which will multiple the number of anchors with a variety of angles, coupled with rotating NMS algorithm, the computational complexities of these models are greatly increased. In this paper, we propose a novel model named Oriented Objects Detection Network O^2-DNet to detect oriented objects by predicting a pair of middle lines inside each target. O^2-DNet is an one-stage, anchor-free and NMS-free model. The target line segments of our model are defined as two corresponding middle lines of original rotating bounding box annotations which can be transformed directly instead of additional manual tagging. Experiments show that our O^2-DNet achieves excellent performance on ICDAR 2015 and DOTA datasets. It is noteworthy that the objects in COCO can be regard as a special form of oriented objects with an angle of 90 degrees. O^2-DNet can still achieve competitive results in these general natural object detection datasets.

Introduction

Standard object detection typically relies on horizontal bounding boxes. While effective for everyday photos, this approach fails for "oriented objects"—such as tilted text in natural scenes or airplanes and ships in aerial photography. When objects are rotated, horizontal boxes include excessive background noise. More critically, when tilted objects are packed densely (like trucks in a parking lot), their horizontal boxes overlap significantly. This causes standard Non-Maximum Suppression (NMS) algorithms to accidentally delete valid detections, misidentifying them as duplicates.

Comparison between horizontal bounding boxes (a, b) and oriented bounding boxes (c, d) for dense objects.

Existing solutions often use "rotating anchors," which multiply the number of required anchors by various angles, drastically increasing the model's complexity and computational cost.

Methods: The O2-DNet Architecture

The authors propose O2-DNet (Oriented Objects Detection Network), which simplifies the problem by representing a rotating bounding box as two intersecting "middle lines." The model uses a 104-Hourglass network as its backbone and follows a one-stage, anchor-free, and NMS-free design.

The Two-Branch Strategy

To handle the "boundary problem" (where an object's angle is near 90 degrees), the model uses two branches: one specialized for horizontal-ish objects and another for oriented objects at various angles.

Illustration of the O2-DNet middle line representation and the two-branch strategy for handling different orientations.

Intersection and Regression

Instead of predicting box coordinates directly, the model predicts a heatmap of "intersection points" (the center where the two middle lines meet). From these points, it regresses the relative offsets to the four endpoints of the two middle lines. To make the model more robust, a "drift region" is implemented around the center, allowing multiple pixels near the center to contribute to the regression, reducing sensitivity to exact center-point extraction.

Geometric Loss Functions

To ensure the predicted lines form a valid box, specific losses were introduced:

  • Collinearity Loss ($L_2$): Ensures the two endpoints and the intersection point stay on a straight line.
  • Orthogonality Loss ($L_3$): Encourages the two middle lines to remain perpendicular, reflecting the rectangular nature of most target objects.

Experiments and Results

The model was evaluated on three distinct benchmarks:

  1. DOTA: A large-scale dataset for aerial object detection. O2-DNet achieved 71.04% mAP, outperforming several complex two-stage models, particularly in categories with large aspect ratios like bridges.
  2. ICDAR 2015: A standard dataset for oriented text. The model reached an 82.97% F1-score, proving competitive with specialized scene text detectors like EAST.
  3. MS COCO: A general object detection dataset. It achieved 41.3% AP, leading most other one-stage detectors and showing that oriented object detection is a superset of horizontal detection.

Conclusion

O2-DNet demonstrates that moving from 5-parameter boxes to pairs of lines simplifies geometry and allows the model to leverage keypoint detection techniques. By bypassing NMS through heatmap-based keypoint extraction, the model avoids traditional computational bottlenecks. While the two-branch strategy adds some architectural overhead, the performance gains on DOTA and ICDAR 2015 establish O2-DNet as a robust framework for oriented object detection.

Summary updated

BibTeX
@misc{wei2019oriented,
  author = {Haoran Wei and Lin Zhou and Yue Zhang and Hao Li and Rongxin Guo and Hongqi Wang},
  title = {{Oriented Objects as pairs of Middle Lines}},
  year = {2019},
  eprint = {1912.10694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.10694},
}
Figure