MSR: Multi-Scale Shape Regression for Scene Text Detection

Chuhui Xue, Shijian Lu, Wei Zhang

Abstract

Scene text detection in natural environments remains a significant challenge due to extreme scale variations and the prevalence of non-rectangular, curved text. This paper introduces MSR (Multi-Scale Shape Regression), a framework that shifts from traditional bounding-box regression to dense, pixel-level shape regression. By predicting the distance from pixels in a central text region to their nearest boundary points across multiple scales, MSR effectively localizes text of arbitrary shapes and sizes. Experimental results on benchmarks like CTW1500 and Total-Text demonstrate that MSR achieves state-of-the-art performance, particularly for long and curved text lines.

Introduction

Detecting text in the wild is significantly more complex than standard OCR. Most existing detectors struggle with two primary bottlenecks:

  1. Inaccurate Localization of Complex Shapes: Fitting curved or extremely long text into rigid quadrilaterals often includes excessive non-text background or leads to accumulated regression errors.
  2. Extreme Scale Variation: Text size can vary by over 200x within a single image. Single-scale networks frequently fail to capture "ultra-small" text or produce fragmented detections for "ultra-large" text.

MSR addresses these issues through a dense shape regression mechanism and a multi-scale feature fusion architecture.

Methods

1. Dense Shape Regression

Unlike methods that predict a fixed set of vertices (e.g., four corners), MSR performs dense regression for every pixel within a predicted central text region. For each such pixel, the network predicts the $x$ and $y$ distances ($dx, dy$) to the nearest point on the text boundary.

Visualization of dense shape regression, showing the central text region and the dx, dy offsets to the nearest boundary points.

This approach offers several advantages:

  • Minimized Error: Regressing to the nearest point rather than a distant corner reduces the magnitude of the regression target, leading to higher precision for long or curved text.
  • Flexible Geometry: The predicted boundary points are processed using the Alpha-Shape Algorithm to generate a tight, concave polygon that accurately follows the text's contour.
  • Instance Separation: By focusing on the central region, MSR maintains a natural buffer between adjacent lines, preventing them from merging into a single detection.

2. Multi-Scale Network Architecture

To handle the vast range of text scales, MSR employs a multi-channel architecture with shared weights. The input image and its down-sampled versions are processed in parallel, and their features are fused using a specialized Concat UpConv module.

The MSR pipeline overview, illustrating the multi-scale network and shape regression outputs.

This fusion allows the network to leverage fine-grained details for small text while maintaining the global context necessary for large text lines. Ablation studies indicate that this multi-scale approach improves recall by nearly 12% on challenging datasets like CTW1500.

Evaluation and Results

MSR was evaluated on several key benchmarks, focusing on its ability to handle curved and multi-oriented text:

  • Curved Text (CTW1500): MSR achieved an F-score of 81.5%, significantly outperforming baselines like EAST (60.4%) and specialized models like TextSnake (75.6%).
  • Multi-Oriented Text (MSRA-TD500): The model reached an F-score of 81.7%, proving its versatility for both straight and curved text lines.
  • Efficiency: Despite its multi-scale nature, MSR maintains a competitive speed of approximately 4.3 FPS on ICDAR2015, making it suitable for near-real-time applications.

Conclusion and Future Work

MSR represents a paradigm shift in scene text detection by treating the problem as a flexible shape-fitting task rather than a bounding-box regression task. While highly effective, the model still faces challenges in scenarios with extreme spatial overlap or very large character spacing (kerning). Future research may involve integrating text recognition (semantics) directly into the detection pipeline to improve character grouping and instance separation.

Summary updated

BibTeX
@inproceedings{xue2019msr,
  author = {Chuhui Xue and Shijian Lu and Wei Zhang},
  title = {{MSR: Multi-Scale Shape Regression for Scene Text Detection}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/139},
}
Figure