Geometry-Aware Scene Text Detection With Instance Transformation Network

Fangfang Wang, Liming Zhao, Xi Li, Xinchao Wang, Dacheng Tao

Introduction

Detecting text in natural scenes is significantly harder than detecting generic objects. Scene text often appears at extreme angles, with very large aspect ratios and across varying scales. Standard object detectors rely on fixed-shape receptive fields—usually square or rectangular grids. When a network tries to "read" a tilted, skinny line of text using a square grid, it inevitably captures irrelevant background noise or misses parts of the word. The Instance Transformation Network (ITN) addresses this by learning to adapt its internal representations to the unique shapes of scene text.

Methodology

The ITN is an end-to-end framework that learns to "tilt its head" to better see the text through several key components:

Geometry-Aware Representation

Instead of a standard convolution that samples from a fixed grid, the ITN uses an affine transformation to warp the sampling grid. This allows the receptive field to adaptively cover the text area, regardless of its orientation or elongation.

Comparison of standard square receptive fields (top row) versus ITN's geometry-aware sampling grids (bottom row) across various scene text instances.

In-Network Transformation Embedding

The network predicts the parameters of an affine transformation (rotation, translation, scale, and shear) for every potential text instance. These parameters generate the "warped" features used for final classification. Unlike "Deformable Convolutions," ITN constrains the deformation to a rigid affine transformation, which is more stable for the generally rectangular regions occupied by text.

Multi-Task Learning

The ITN is trained with a joint loss function consisting of three branches: classification (text vs. background), transformation regression (learning the 6-parameter affine matrix), and coordinate regression (refining the final four-corner quadrilateral bounding box).

Experiments and Results

The model was evaluated on primary benchmarks for scene text: MSRA-TD500 (multi-oriented, multi-lingual text lines) and ICDAR2015 (incidental scene text).

  • MSRA-TD500: The ITN (with ResNet-50) achieved an F-measure of 80.3%, outperforming previous methods like SegLink (77.0%) and East (76.0%).
  • ICDAR2015: The ITN (with VGG-16) reached an F-measure of 79.5%, showing strong performance on word-level detection in cluttered environments.

Ablation studies demonstrated that adding the transformation regression branch improved the F-measure by several percentage points compared to unsupervised transformation methods, proving that geometric constraint and supervision are key to the model's success.

Conclusion and Future Work

ITN moves beyond the "one-size-fits-all" square receptive fields of standard CNNs by embedding geometry-aware affine transformations directly into the convolutional layers. While effective for rigid text lines, future work may explore projective transformations for perspective distortion or methods to handle curved text, which a single affine transformation cannot currently warp into.

Summary updated

BibTeX
@inproceedings{wang2018geometry,
  author = {Fangfang Wang and Liming Zhao and Xi Li and Xinchao Wang and Dacheng Tao},
  title = {{Geometry-Aware Scene Text Detection With Instance Transformation Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00150},
}
Figure