On Recognizing Texts of Arbitrary Shapes with 2D Self-Attention
Abstract
Scene text recognition (STR) is the task of recognizing character sequences in natural scenes. While there have been great advances in STR methods, current methods which convert two-dimensional (2D) image to one-dimensional (1D) feature map still fail to recognize texts in arbitrary shapes, such as heavily curved, rotated or vertically aligned texts, which are abundant in daily life (e.g. restaurant signs, product labels, company logos, etc). This paper introduces an architecture to recognize texts of arbitrary shapes, named Self-Attention Text Recognition Network (SATRN). SATRN utilizes the self-attention mechanism, which is originally proposed to capture the dependency between word tokens in a sentence, to describe 2D spatial dependencies of characters in a scene text image. Exploiting the full-graph propagation of self-attention, SATRN can recognize texts with arbitrary arrangements and large inter-character spacing. As a result, our model outperforms all existing STR models by a large margin of 4.5pp on average in "irregular text" benchmarks and also achieved state-of-the-art performance in two "regular text" benchmarks. We provide empirical analyses that illustrate the inner mechanisms and the extent to which the model is applicable (e.g. rotated and multi-line text). We will open- source the code.1
Cite
Text
Lee et al. "On Recognizing Texts of Arbitrary Shapes with 2D Self-Attention." IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2020. doi:10.1109/CVPRW50498.2020.00281Markdown
[Lee et al. "On Recognizing Texts of Arbitrary Shapes with 2D Self-Attention." IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2020.](https://mlanthology.org/cvprw/2020/lee2020cvprw-recognizing/) doi:10.1109/CVPRW50498.2020.00281BibTeX
@inproceedings{lee2020cvprw-recognizing,
title = {{On Recognizing Texts of Arbitrary Shapes with 2D Self-Attention}},
author = {Lee, Junyeop and Park, Sungrae and Baek, Jeonghun and Oh, Seong Joon and Kim, Seonghyeon and Lee, Hwalsuk},
booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
year = {2020},
pages = {2326-2335},
doi = {10.1109/CVPRW50498.2020.00281},
url = {https://mlanthology.org/cvprw/2020/lee2020cvprw-recognizing/}
}