Abstract
Recently, segmentation-based methods are quite popular in scene text detection, which mainly contain two steps: text kernel segmentation and expansion. However, the segmentation process only considers each pixel independently, and the expansion process is difficult to achieve a favorable accuracy-speed trade-off. In this paper, we propose a Context-aware and Boundary-guided Network (CBN) to tackle these problems. In CBN, a basic text detector is firstly used to predict initial segmentation results. Then, we propose a context-aware module to enhance text kernel feature representations, which considers both global and local contexts. Finally, we introduce a boundary-guided module to expand enhanced text kernels adaptively with only the pixels on the contours, which not only obtains accurate text boundaries but also keeps high speed, especially on high-resolution output maps. In particular, with a lightweight backbone, the basic detector equipped with our proposed CBN achieves state-of-the-art results on several popular benchmarks, and our proposed CBN can be plugged into several segmentation-based methods.
Introduction
Detecting text in natural scenes—such as on billboards, packaging, or street signs—remains a significant challenge in computer vision due to variations in shape, orientation, and scale. Modern segmentation-based detectors typically follow a two-step pipeline: segmenting a central "kernel" and then expanding it to encompass the full text instance.
However, existing methods suffer from two primary limitations:
- Pixel Isolation: Standard models often predict pixel labels independently, failing to capture the inherent relationship between pixels belonging to the same word. This leads to fragmented detections.
- The Expansion Dilemma: Reconstructing the full text region from a shrunk kernel involves a trade-off. Fixed-value expansion is often inaccurate for complex shapes, while pixel aggregation methods are computationally intensive, particularly on high-resolution images.
Proposed Method: CBNet
CBNet is a lightweight "plug-and-play" module designed to address these hurdles. It consists of two core components that can be integrated into existing detectors like PAN, PSENet, or DBNet with minimal overhead (e.g., adding only ~0.01M parameters to a PAN baseline).
Context-aware Module
To overcome pixel isolation, this module explicitly models the relationship between pixels and text instances. By encoding both Global Context (relationships across all text in an image) and Local Context (relationships within a specific instance), it enhances feature representations. This allows the model to "understand" that a group of pixels belongs to a single entity, reducing false positives in cluttered backgrounds.
Boundary-guided Module
This module introduces an efficient expansion strategy using a learnable distance map. Unlike traditional methods that iterate over every pixel, the boundary-guided module focuses exclusively on the contours of the text kernels. It adaptively calculates expansion distances based on predicted boundaries, ensuring high accuracy and real-time performance.
Experimental Results
The authors evaluated CBNet across diverse benchmarks, including curved text (CTW1500, Total-Text) and multi-oriented text (MSRA-TD500, ICDAR 2015).
- Performance Gains: Integrating CBNet into the PAN detector yielded a 2.2% F-measure improvement on CTW1500.
- Efficiency: On CTW1500, the "Ours-1s" model achieved an 86.0% F-measure at 28.2 FPS, significantly faster than heavier models like TextBPN (6.8 FPS).
- State-of-the-Art: The module achieved top-tier results on MSRA-TD500 (89.7% F-measure) and Total-Text (87.2% F-measure), demonstrating its robustness for both long straight lines and tight curves.
Conclusion
CBNet provides a highly efficient and compatible solution for enhancing segmentation-based text detectors. By focusing on contour-based expansion and contextual relationship modeling, it achieves a superior balance between speed and accuracy. While challenges remain in separating extremely close text instances or ignoring decorative patterns, the "plug-and-play" nature of CBNet makes it a valuable tool for modern scene text detection pipelines. Future work aims to incorporate higher-level semantic information to further resolve ambiguous cases.
Summary updated