CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model

Shuai Zhao,Ruijie Quan,Linchao Zhu,Yi Yang
DOI: https://doi.org/10.48550/arxiv.2305.14014
2023-01-01
Abstract:Pre-trained vision-language models (VLMs) are the de-facto foundation modelsfor various downstream tasks. However, scene text recognition methods stillprefer backbones pre-trained on a single modality, namely, the visual modality,despite the potential of VLMs to serve as powerful scene text readers. Forexample, CLIP can robustly identify regular (horizontal) and irregular(rotated, curved, blurred, or occluded) text in images. With such merits, wetransform CLIP into a scene text reader and introduce CLIP4STR, a simple yeteffective STR method built upon image and text encoders of CLIP. It has twoencoder-decoder branches: a visual branch and a cross-modal branch. The visualbranch provides an initial prediction based on the visual feature, and thecross-modal branch refines this prediction by addressing the discrepancybetween the visual feature and text semantics. To fully leverage thecapabilities of both branches, we design a dual predict-and-refine decodingscheme for inference. We scale CLIP4STR in terms of the model size,pre-training data, and training data, achieving state-of-the-art performance on11 STR benchmarks. Additionally, a comprehensive empirical study is provided toenhance the understanding of the adaptation of CLIP to STR. We believe ourmethod establishes a simple yet strong baseline for future STR research withVLMs.
What problem does this paper attempt to address?