Oriented R-CNN for Object Detection

Junwei Han

Abstract

Current state-of-the-art two-stage detectors generate oriented proposals through time-consuming schemes. This diminishes the detectors’ speed, thereby becoming the computational bottleneck in advanced oriented object detection systems. This work proposes an effective and simple oriented object detection framework, termed Oriented R-CNN, which is a general two-stage oriented detector with promising accuracy and efficiency. To be specific, in the first stage, we propose an oriented Region Proposal Network (oriented RPN) that directly generates high-quality oriented proposals in a nearly cost-free manner. The second stage is oriented R-CNN head for refining oriented Regions of Interest (oriented RoIs) and recognizing them. Without tricks, oriented R-CNN with ResNet50 achieves state-of-the-art detection accuracy on two commonly-used datasets for oriented object detection including DOTA (75.87% mAP) and HRSC2016 (96.50% mAP), while having a speed of 15.1 FPS with the image size of 1024×1024 on a single RTX 2080Ti.

Introduction

Standard object detectors typically utilize horizontal bounding boxes. While effective for general object detection, this approach is suboptimal for specialized domains such as aerial surveillance or scene text recognition, where objects often appear at arbitrary orientations. Oriented object detectors address this by predicting rotated bounding boxes. However, existing methods often struggle with a trade-off between computational efficiency and detection accuracy.

The Computational Bottleneck in Oriented Detection

Existing oriented detectors primarily follow two paths:

  1. Rotated RPNs: These place numerous anchors at various angles at every pixel location. This approach is both computationally expensive and memory-intensive due to the high number of anchors.
  2. RoI Transformers: These generate oriented proposals through a complex, multi-step process involving horizontal RPNs, RoI alignment, and regression. This complexity creates a significant computational bottleneck in the first stage of the detection pipeline.

Oriented R-CNN is designed to overcome these limitations by providing a general and "nearly cost-free" method for generating high-quality oriented proposals.

Proposed Method: Oriented R-CNN

The Oriented R-CNN framework consists of two main stages: the Oriented RPN and the Oriented R-CNN Head.

1. Oriented RPN

The core innovation is the Oriented RPN, which avoids the need for thousands of rotated anchors. Instead, it utilizes standard horizontal anchors (only 3 per location) and introduces a Midpoint Offset Representation.

Comparison of oriented proposal generation methods: (a) Rotated RPN, (b) RoI Transformer+, and (c) the proposed Oriented RPN.

Instead of directly predicting an angle ($\theta$), the network predicts six parameters:

  • The center $(x, y)$ and dimensions $(w, h)$ of an external horizontal box.
  • Two offsets $(\Delta\alpha, \Delta\beta)$ that define the distance from the vertices of the oriented box to the midpoints of the top and right sides of the horizontal box.

This representation is highly efficient, requiring only two additional parameters compared to a standard horizontal RPN, and avoids the "boundary problem" associated with abrupt angle jumps.

2. Oriented R-CNN Head

The second stage takes the proposals generated by the Oriented RPN and applies Rotated RoIAlign to extract features. These features are then processed by a final classification and regression head to refine the oriented Regions of Interest (oriented RoIs) and produce the final detection results.

Experimental Results

The model was evaluated on two major benchmarks: DOTA (aerial objects) and HRSC2016 (ships).

Performance on DOTA

On the DOTA dataset, Oriented R-CNN with a ResNet-50 backbone achieved a state-of-the-art 75.87% mAP, outperforming more complex architectures like Mask OBB and Gliding Vertex.

Performance on HRSC2016

The detector demonstrated exceptional performance on the HRSC2016 dataset, achieving 96.50% mAP. This is particularly noteworthy given the challenges of detecting highly rotated, thin objects like ships.

Efficiency and Speed

Despite its two-stage architecture, Oriented R-CNN maintains a practical speed of 15.1 FPS on a single RTX 2080Ti for $1024 \times 1024$ images. The Oriented RPN itself is remarkably lightweight, with significantly fewer parameters than competing methods (e.g., 1/3000th the parameters of RoI Transformer+).

Conclusion

Oriented R-CNN provides a simple yet powerful baseline for oriented object detection. By rethinking the representation of oriented proposals, it achieves a superior balance of accuracy and efficiency, proving that high-quality oriented detection does not require complex or computationally heavy first-stage sub-networks.

Code is available at: https://github.com/jbwang1997/OBBDetection

Summary updated

BibTeX
@misc{han2021oriented,
  author = {Junwei Han},
  title = {{Oriented R-CNN for Object Detection}},
  year = {2021},
  eprint = {2108.05699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.05699},
}
Figure