PuzzleNet: Scene Text Detection by Segment Context Graph Learning

Hao Liu, Antai Guo, Deqiang Jiang, Yiqing Hu, Bo RenarXiv 2020

Abstract

Recently, a series of decomposition-based scene text detection methods has achieved impressive progress by decomposing challenging text regions into pieces and linking them in a bottom-up manner. However, most of them merely focus on linking independent text pieces while the context information is underestimated. In the puzzle game, the solver often put pieces together in a logical way according to the contextual information of each piece, in order to arrive at the correct solution. Inspired by it, we propose a novel decomposition-based method, termed Puzzle Networks (PuzzleNet), to address the challenging scene text detection task in this work. PuzzleNet consists of the Segment Proposal Network (SPN) that predicts the candidate text segments fitting arbitrary shape of text region, and the two-branch Multiple-Similarity Graph Convolutional Network (MSGCN) that models both appearance and geometry correlations between each segment to its contextual ones. By building segments as context graphs, MSGCN effectively employs segment context to predict combinations of segments. Final detections of polygon shape are produced by merging segments according to the predicted combinations. Evaluations on three benchmark datasets, ICDAR15, MSRA-TD500 and SCUT-CTW1500, have demonstrated that our method can achieve better or comparable performance than current state-of-the-arts, which is beneficial from the exploitation of segment context graph.

Introduction

Detecting text in natural scenes is notoriously difficult because text can appear in arbitrary shapes—such as curved logos or trapezoidal signs—vary wildly in length, and be packed closely together. To handle this, many modern detectors use a "bottom-up" or decomposition-based approach: they detect small pieces of text (like individual characters or small boxes) and then link them together.

However, most of these methods try to link pieces by only looking at the isolated pieces themselves, ignoring the broader context—such as whether two adjacent pieces share the same font, color, or logical geometric layout. Without this context, these algorithms easily get confused when text lines are close together or highly distorted, linking pieces from different words or missing connections entirely. PuzzleNet addresses this by treating text detection like a jigsaw puzzle, where pieces are linked based on both local appearance and global context.

Illustration of text segments and their contextual relationships in the PuzzleNet framework.

Methodology

The authors propose PuzzleNet, which mimics how a human solves a puzzle by looking at both the shape of a piece and the picture printed on it. The architecture consists of three main stages:

  1. Segment Proposal Network (SPN): Instead of predicting rigid square boxes, SPN predicts local, orientation-aware rectangular segments. These rectangles cover local text regions and naturally capture the orientation of the text at that specific point.
  2. Multiple-Similarity Graph Convolutional Network (MSGCN): This is the core novelty. The network treats all detected segments as nodes in a graph. It builds edges between these nodes based on two distinct features: appearance (extracted via RoIAlign) and geometry (relative positions and angles). To make the connections robust, the network evaluates similarity using three different mathematical metrics simultaneously: Cosine, Gaussian, and Jensen-Shannon.
  3. Post-Processing: The MSGCN outputs a probability score indicating whether adjacent segments belong to the same text instance. A clustering algorithm (k-Nearest Neighbors with Radius) groups the matching segments, and a Thin Plate Spline (TPS) algorithm smooths the outer edges of the grouped segments to output a final, clean polygon.
The overall architecture of PuzzleNet, featuring Segment Detection, Segment Context Graph Learning, and Post-Processing stages.

Experiments and Results

PuzzleNet was evaluated on several standard scene text benchmarks, including ICDAR2015, MSRA-TD500, and SCUT-CTW1500. The results demonstrate that context is critical: ablation studies showed that removing graph reasoning caused the F-measure to drop by over 17% on the SCUT-CTW1500 dataset.

Key results include:

  • MSRA-TD500: Achieved an F-measure of 86.1%, outperforming the previous state-of-the-art by 2.2%.
  • ICDAR2015: Reached an 88.5% F-measure, handling multi-oriented text effectively.
  • SCUT-CTW1500: Achieved an 84.9% F-measure, demonstrating robustness on highly curved and irregular text shapes.

Conclusion and Future Work

PuzzleNet demonstrates that treating text detection as a graph problem is highly effective for capturing complex relationships in the wild. While the method achieves state-of-the-art performance, it currently relies on aggressive filtering (Skew-NMS) to manage computational costs and heuristic post-processing for final polygon generation. Future work may involve extending the graph network to directly output final polygon coordinates in an end-to-end manner, reducing reliance on hard-coded rules.

Summary updated

BibTeX
@misc{liu2020puzzlenet,
  author = {Hao Liu and Antai Guo and Deqiang Jiang and Yiqing Hu and Bo Ren},
  title = {{PuzzleNet: Scene Text Detection by Segment Context Graph Learning}},
  year = {2020},
  eprint = {2002.11371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.11371},
}
Figure