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

Shuai Zhao, Ruijie Quan, Linchao Zhu, Yi Yang
5/23/2023
77 citations
cs.CV

No official code found. Best implementation: VamosC/CLIP4STR (154 stars, Python, Apache-2.0, last commit 2025-11-14).

Abstract

Pre-trained vision-language models~(VLMs) are the de-facto foundation models for various downstream tasks. However, scene text recognition methods still prefer backbones pre-trained on a single modality, namely, the visual modality, despite the potential of VLMs to serve as powerful scene text readers.

Show full abstract

For example, CLIP can robustly identify regular (horizontal) and irregular (rotated, curved, blurred, or occluded) text in images. With such merits, we transform CLIP into a scene text reader and introduce CLIP4STR, a simple yet effective STR method built upon image and text encoders of CLIP. It has two encoder-decoder branches: a visual branch and a cross-modal branch. The visual branch provides an initial prediction based on the visual feature, and the cross-modal branch refines this prediction by addressing the discrepancy between the visual feature and text semantics. To fully leverage the capabilities of both branches, we design a dual predict-and-refine decoding scheme for inference. We scale CLIP4STR in terms of the model size, pre-training data, and training data, achieving state-of-the-art performance on 13 STR benchmarks. Additionally, a comprehensive empirical study is provided to enhance the understanding of the adaptation of CLIP to STR. Our method establishes a simple yet strong baseline for future STR research with VLMs.

View on arXivView PDF

Code Implementations(1)

VamosC/CLIP4STRCommunity70%
Apache-2.0

An implementation of "CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model".

15420Python, ShellSep 22, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhao2023clipstr,
  title  = {CLIP4STR: A Simple Baseline for Scene Text Recognition with Pre-trained Vision-Language Model},
  author = {Shuai Zhao and Ruijie Quan and Linchao Zhu and Yi Yang},
  year   = {2023},
  eprint = {2305.14014},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14014v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.14014.svg)](https://codeofpaper.com/paper/2305.14014)

Discussion