Levenshtein OCR

Cheng Da, Peng Wang, Cong Yao
9/8/2022
46 citations
cs.CV
transformer-attention

Official code: AlibabaResearch/AdvancedLiterateMachinery (1,833 stars, C++, Apache-2.0, last commit 2026-03-17).

Abstract

A novel scene text recognizer based on Vision-Language Transformer (VLT) is presented. Inspired by Levenshtein Transformer in the area of NLP, the proposed method (named Levenshtein OCR, and LevOCR for short) explores an alternative way for automatically transcribing textual content from cropped natural images.

Show full abstract

Specifically, we cast the problem of scene text recognition as an iterative sequence refinement process. The initial prediction sequence produced by a pure vision model is encoded and fed into a cross-modal transformer to interact and fuse with the visual features, to progressively approximate the ground truth. The refinement process is accomplished via two basic character-level operations: deletion and insertion, which are learned with imitation learning and allow for parallel decoding, dynamic length change and good interpretability. The quantitative experiments clearly demonstrate that LevOCR achieves state-of-the-art performances on standard benchmarks and the qualitative analyses verify the effectiveness and advantage of the proposed LevOCR algorithm. Code is available at https://github.com/AlibabaResearch/AdvancedLiterateMachinery/tree/main/OCR/LevOCR.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A collection of original, innovative ideas and algorithms towards Advanced Literate Machinery. This project is maintained by the OCR Team in the Language Technology Lab, Tongyi Lab, Alibaba Group.

1,833195C++, PythonSep 28, 20228 months agoApache-2.0
artificial-intelligencecomputer-visiondocumentdocument-analysisdocument-intelligence+15 more

Similar Papers

Cite this paper

@article{da2022levenshtein,
  title  = {Levenshtein OCR},
  author = {Cheng Da and Peng Wang and Cong Yao},
  year   = {2022},
  eprint = {2209.03594},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.03594}
}

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/2209.03594.svg)](https://codeofpaper.com/paper/2209.03594)

Discussion