arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17095cs.CV
收藏

基于检测的通用文本行识别

General Detection-based Text Line Recognition

LIGM;Ecole des Ponts(巴黎桥路学院);Univ Gustave Eiffel(古斯塔夫·埃菲尔大学);CNRS(法国国家科学研究中心)

Raphael Baena, Syrine Kalleli, Mathieu Aubry

AI总结:

提出基于检测的通用文本行识别方法DTLR,通过合成预训练、transformer检测器和行级微调克服HTR挑战,在多种文字上表现优异。

摘要:

我们引入了一种基于检测的通用文本行识别方法,适用于印刷体(OCR)或手写体(HTR),支持拉丁文、中文或密文字符。由于单独识别字符通常具有挑战性,且字符级标注困难且昂贵,基于检测的方法在HTR中一直被 largely 弃用(不执行)。我们通过三个主要见解克服了这些挑战:(i)使用足够多样化数据的合成预训练,能够为任何文字学习合理的字符定位;(ii)现代基于transformer的检测器可以联合检测大量实例,并且如果使用适当的掩码策略进行训练,可以利用不同检测之间的一致性;(iii)一旦拥有具备近似字符定位的预训练检测模型,就可以在真实数据上使用行级标注进行微调,即使字母表不同也是如此。我们的方法被称为DTLR,建立在与最先进HTR方法完全不同的范式之上,后者依赖自回归解码,逐个预测字符值,而我们并行处理整行。值得注意的是,我们在大范围的文字上展示了良好的性能,这些文字通常需要专门的方法来处理。特别是,我们在CASIA v2数据集上改进了中文文字识别的最先进性能,并在Borg和Copiale数据集上改进了密码识别的性能。我们的代码和模型可在https://github.com/raphael-baena/DTLR获取。

英文摘要:

We introduce a general detection-based approach to text line recognition, be it printed (OCR) or handwritten (HTR), with Latin, Chinese, or ciphered characters. Detection-based approaches have until now been largely discarded for HTR because reading characters separately is often challenging, and character-level annotation is difficult and expensive. We overcome these challenges thanks to three main insights: (i) synthetic pre-training with sufficiently diverse data enables learning reasonable character localization for any script; (ii) modern transformer-based detectors can jointly detect a large number of instances, and, if trained with an adequate masking strategy, leverage consistency between the different detections; (iii) once a pre-trained detection model with approximate character localization is available, it is possible to fine-tune it with line-level annotation on real data, even with a different alphabet. Our approach, dubbed DTLR, builds on a completely different paradigm than state-of-the-art HTR methods, which rely on autoregressive decoding, predicting character values one by one, while we treat a complete line in parallel. Remarkably, we demonstrate good performance on a large range of scripts, usually tackled with specialized approaches. In particular, we improve state-of-the-art performances for Chinese script recognition on the CASIA v2 dataset, and for cipher recognition on the Borg and Copiale datasets. Our code and models are available at https://github.com/raphael-baena/DTLR.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑