TextSnake is a novel flexible representation for scene text detection that moves beyond simple bounding boxes. By representing text as a sequence of ordered, overlapping disks, it can accurately detect text of arbitrary shapes—including curved, oriented, and perspective-distorted instances—setting new state-of-the-art benchmarks for curved text detection.
What Problem Does This Paper Address?
Most traditional scene text detectors rely on rigid geometric representations like axis-aligned rectangles, rotated rectangles, or quadrangles. While these work well for standard horizontal or slightly tilted text, they fail when encountering "wild" text shapes common in the real world, such as text on a round coffee cup, a wavy banner, or a winding road sign.
When a rectangular box is forced onto curved text, it often includes too much background noise or cuts off parts of the letters. This makes the subsequent step—Optical Character Recognition (OCR)—significantly harder. The authors aim to bridge this gap by creating a representation that "hugs" the actual shape of the text.
Methods
The core innovation is the TextSnake representation. Instead of a box, a text instance is treated as a series of overlapping disks aligned along a central axis.
1. The Representation
Each disk in the "snake" is defined by three local geometric attributes:
- Center ($c$): The location of the disk on the text's center line.
- Radius ($r$): Half the local width of the text at that point.
- Orientation ($\theta$): The tangential direction of the center line.
2. The Network Architecture
The authors use a Fully Convolutional Network (FCN) with a VGG-16 backbone and a feature-merging structure. The network predicts several "score maps" simultaneously:
- Text Region (TR): A binary mask indicating if a pixel belongs to text.
- Text Center Line (TCL): A narrower mask identifying the "skeleton" of the text.
- Geometry Maps: Pixel-wise predictions for radius ($r$), $\cos(\theta)$, and $\sin(\theta)$.
3. Inference: The Striding Algorithm
To turn these maps back into a detected instance, the authors use a custom post-processing algorithm:
- Centralization: Pick a point on the predicted TCL and move it to the precise center using the geometry maps.
- Striding: Move in both directions along the orientation ($\theta$) to find the next center points.
- Reconstruction: Draw circles (disks) at each found center point with the predicted radius. The union of these disks forms the final detection.
Key Results
The model was evaluated on several key benchmarks, including Total-Text and SCUT-CTW1500, which are specifically designed to test curved text detection.
- Curved Text Dominance: On the Total-Text dataset, TextSnake achieved an F-measure of 78.4%, outperforming the previous baseline by a staggering 40%.
- State-of-the-Art: It achieved top-tier results on CTW1500 (75.6% F-measure).
- Generalization: Even on datasets dominated by straight lines like MSRA-TD500, it outperformed existing methods with an F-measure of 78.3%, proving that the "snake" representation is a robust superset of the "box" representation.
Limitations and Future Work
While powerful, the "striding algorithm" is an iterative process performed on the CPU, which can be slower than the neural network's forward pass. Additionally, the model assumes text is "snake-shaped" (a single non-branching line) and might struggle with complex artistic layouts where text forks. The next logical step is integrating this with a recognition engine to create a complete, end-to-end "Spotter" for curved text.
Summary updated