Abstract
Scene text detection in the wild is complicated by the presence of curved, rotated, and irregularly shaped text instances. This paper introduces the Deep Relational Reasoning Graph Network (DRRG), an approach that models text detection as a relational reasoning task on a graph. DRRG breaks down text instances into small, oriented rectangular components and utilizes a Graph Convolutional Network (GCN) to determine the relationships between these components. By integrating both visual features and geometric embeddings, the model effectively groups components into coherent text instances. DRRG achieves state-of-the-art results on several challenging benchmarks, including Total-Text and MSRA-TD500.
1. Introduction
Traditional scene text detection methods typically rely on rigid geometric primitives like axis-aligned or multi-oriented bounding boxes. While effective for standard horizontal text, these methods struggle with the "wild" text found in real-world environments—text that may be arched, wrapped around objects, or extremely elongated.
To address this, "Connected Component" (CC) methods have been proposed, which detect small parts of text and group them. However, these methods often rely on heuristic rules or simple link maps that fail to capture the complex, long-range dependencies inherent in irregularly shaped text. DRRG overcomes these limitations by treating text components as non-Euclidean data points in a graph, allowing for sophisticated relational reasoning that transcends simple spatial proximity.
2. Methodology
The DRRG framework consists of a multi-stage pipeline that transitions from pixel-level features to graph-based instance detection.
2.1 Text Component Prediction
The process begins with a VGG16 backbone and a Feature Pyramid Network (FPN) to extract robust shared features. The model predicts a set of small, oriented rectangular components. For each component, the network estimates its center coordinates, height, width, and orientation ($\cos \theta, \sin \theta$). This step ensures that the basic building blocks of the text are captured regardless of the overall instance shape.
2.2 Local Graph Generation
To maintain computational efficiency, DRRG constructs "local graphs" rather than a single global graph for the entire image. For each detected component, designated as a "pivot," the model identifies its nearest neighbors to form a local neighborhood. This localized approach allows the model to focus on relevant spatial contexts.
2.3 Deep Relational Reasoning
The core of the framework is a Graph Convolutional Network (GCN). Each node in the local graph is represented by a feature vector that combines:
- RRoI-Align Features: Visual information extracted from the CNN feature maps corresponding to the component's location.
- Geometric Embeddings: The component's geometric attributes (height, orientation, etc.) are projected into a high-dimensional space using sine and cosine functions. This explicitly models the structural relationships between components.
The GCN processes these features to infer the likelihood of a link between the pivot node and its neighbors.
2.4 Post-processing and Merging
After linkage inference, a Breadth-First Search (BFS) algorithm clusters the linked components into holistic text instances. Finally, a "Min-Path" algorithm is applied to generate a smooth, accurate boundary for the detected text.
3. Experiments and Results
DRRG was evaluated on several prominent benchmarks for arbitrary-shape and multi-oriented text.
- Curved Text (Total-Text & CTW-1500): On the Total-Text dataset, DRRG achieved an Hmean (F1-score) of 85.73%, significantly outperforming previous methods like TextSnake (78.4%) and CRAFT (83.6%).
- Long and Multi-lingual Text (MSRA-TD500): The model reached an Hmean of 85.08%, demonstrating a substantial improvement in recall for long text lines.
- Multi-oriented Text (ICDAR2015): DRRG also showed competitive performance on standard incidental text benchmarks.
Ablation studies confirmed the importance of the GCN; incorporating relational reasoning provided a 4.27% Hmean boost over a baseline using simple geometric linking rules on the TD500 dataset.
4. Conclusion
The Deep Relational Reasoning Graph Network (DRRG) represents a significant advancement in arbitrary-shape text detection. By framing the problem as relational reasoning on a graph, the model effectively captures the complex dependencies of irregularly shaped text. While the multi-stage pipeline adds some complexity, the gains in accuracy and robustness across diverse datasets demonstrate the power of graph-based modeling for non-Euclidean scene text data.
Summary updated