Block-level Text Spotting with LLMs
Ganesh Bannur, Bharadwaj Amrutur
TL;DR
This work addresses block-level text spotting in natural images, a relatively underexplored level that benefits downstream tasks like translation. It introduces BTS-LLM, a pipelined system that first detects and recognizes lines, then groups them into blocks, and finally uses a large language model to determine the semantically meaningful reading order within each block and reconstruct the block text when recognition errors occur. The approach leverages a Unified Detector for line detection, PARSeq for line recognition, and GPT-3.5 Turbo for ordering with a carefully designed prompt and safeguards, including coordinate handling and length checks. Evaluated on a Hiertext-derived block-level dataset, BTS-LLM achieves competitive semantic and string similarity measures, demonstrating the potential of LLMs to enhance block-level text spotting and its downstream applications such as translation and scene-text reasoning.
Abstract
Text spotting has seen tremendous progress in recent years yielding performant techniques which can extract text at the character, word or line level. However, extracting blocks of text from images (block-level text spotting) is relatively unexplored. Blocks contain more context than individual lines, words or characters and so block-level text spotting would enhance downstream applications, such as translation, which benefit from added context. We propose a novel method, BTS-LLM (Block-level Text Spotting with LLMs), to identify text at the block level. BTS-LLM has three parts: 1) detecting and recognizing text at the line level, 2) grouping lines into blocks and 3) finding the best order of lines within a block using a large language model (LLM). We aim to exploit the strong semantic knowledge in LLMs for accurate block-level text spotting. Consequently if the text spotted is semantically meaningful but has been corrupted during text recognition, the LLM is also able to rectify mistakes in the text and produce a reconstruction of it.
