[Paper Review] Improving Rotated Text Detection with Rotation Region Proposal Networks
This paper proposes a Rotation Region Proposal Network (RRPN) to improve rotated text detection in scene images by replacing standard RPNs in Faster R-CNN with rotated bounding box prediction, using RRoI-Align for better feature alignment and a symmetric $(-90^\circ, 90^\circ)$ orientation range. The method achieves significant accuracy gains on rotated text while maintaining inference speed via int8 quantization and optimized CPU operators.
A significant number of images shared on social media platforms such as Facebook and Instagram contain text in various forms. It's increasingly becoming commonplace for bad actors to share misinformation, hate speech or other kinds of harmful content as text overlaid on images on such platforms. A scene-text understanding system should hence be able to handle text in various orientations that the adversary might use. Moreover, such a system can be incorporated into screen readers used to aid the visually impaired. In this work, we extend the scene-text extraction system at Facebook, Rosetta, to efficiently handle text in various orientations. Specifically, we incorporate the Rotation Region Proposal Networks (RRPN) in our text extraction pipeline and offer practical suggestions for building and deploying a model for detecting and recognizing text in arbitrary orientations efficiently. Experimental results show a significant improvement on detecting rotated text.
Motivation & Objective
- To address the poor performance of standard object detectors on rotated scene text, especially at angles as low as 20°.
- To enable end-to-end detection of text in arbitrary orientations for improved safety and accessibility on social media platforms.
- To maintain inference efficiency while supporting rotated text detection through model quantization and optimized operators.
- To reduce error rates in text detection systems like Rosetta by handling non-horizontal text more accurately.
Proposed method
- Replaces the standard Region Proposal Network (RPN) in Faster R-CNN with a Rotation Region Proposal Network (RRPN) to predict rotated bounding boxes using five parameters: $(x_c, y_c, w, h, \theta)$.
- Uses Rotated RoI Align (RRoI-Align) with bilinear interpolation to avoid boundary misalignment from rounding errors in RoI pooling.
- Employs a symmetric orientation range of $(-90^\circ, 90^\circ)$ to naturally cover all practical text rotations, avoiding artificial angle cropping.
- Introduces on-demand padding in RRoI-Align and box transformation to handle rotated boxes that exceed image boundaries.
- Applies int8 quantization and implements efficient CPU-based Caffe2 operators for rotated box operations to preserve inference speed.
- Uses a hybrid training strategy with mixed non-rotated and rotated data, along with on-the-fly data augmentation, to balance performance across orientations.
Experimental results
Research questions
- RQ1Can a modified RPN that predicts rotated bounding boxes significantly improve detection accuracy for text in arbitrary orientations?
- RQ2How does using a symmetric $(-90^\circ, 90^\circ)$ orientation range compare to the asymmetric $[-45^\circ, 135^\circ)$ range in terms of model stability and coverage?
- RQ3What is the impact of RRoI-Align versus RRoI-Pooling on feature alignment and detection accuracy for rotated text?
- RQ4Can the performance gain from RRPN be achieved without increasing inference latency through model quantization and optimized operators?
- RQ5What trade-offs exist between detection accuracy on rotated versus non-rotated text when training with mixed datasets?
Key findings
- RRPN models show a significant improvement in detection accuracy on the Rotated dataset, with the best model achieving a substantial gain over the baseline.
- The RRPN model with ratio=5 trained on a 5:1 rotation-augmented dataset outperforms the baseline on rotated text, though with a slight drop in performance on non-rotated text.
- Int8 quantization of the RRPN model results in no measurable increase in inference latency compared to the baseline non-rotated model.
- The use of RRoI-Align reduces boundary misalignment issues compared to RRoI-Pooling, improving feature extraction for rotated boxes.
- The symmetric $(-90^\circ, 90^\circ)$ orientation range enables more natural and consistent detection of rotated text without artificial angle mapping.
- The system maintains real-time throughput for processing over a billion images daily, confirming scalability and deployment feasibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.