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

DocRevive:文档文本恢复的统一流水线

DocRevive: A Unified Pipeline for Document Text Restoration

Computer Vision Center(计算机视觉中心);Indian Statistical Institute(印度统计研究所)

Kunal Purkayastha, Ayan Banerjee, Josep Llados, Umapada Pal

AI总结:

提出DocRevive统一流水线,结合OCR、图像分析、掩码语言建模和扩散模型,用于恢复受损文档文本并保持视觉完整性,同时提出UCSM评估指标。

摘要:

在文档理解中,重建受损、遮挡或不完整文本的挑战仍然是一个关键但未充分探索的问题。后续的文档理解任务可以受益于文档重建过程。为此,本文提出了一种新颖的统一流水线,结合了最先进的光学字符识别(OCR)、高级图像分析、掩码语言建模和基于扩散的模型,以在保持视觉完整性的同时恢复和重建文本。我们创建了一个包含30,078张退化文档图像的合成数据集,模拟了多种文档退化场景,为恢复任务设定了基准。我们的流水线检测并识别文本,通过遮挡检测器识别退化,并使用修复模型进行语义连贯的重建。基于扩散的模块无缝地重新整合文本,匹配字体、大小和对齐方式。为了评估恢复质量,我们提出了统一上下文相似度度量(UCSM),结合了编辑相似度、语义相似度和长度相似度,并引入上下文可预测性度量,当正确文本在上下文中显而易见时,对偏差进行惩罚。我们的工作推进了文档恢复,有利于档案研究和数字保存,同时为文本重建设立了新标准。OPRB数据集和代码分别可在Hugging Face(https://huggingface.co/datasets/kpurkayastha/OPRB)和Github(https://github.com/kunalpurkayastha/DocRevive)上获取。

英文摘要:

In Document Understanding, the challenge of reconstructing damaged, occluded, or incomplete text remains a critical yet unexplored problem. Subsequent document understanding tasks can benefit from a document reconstruction process. In response, this paper presents a novel unified pipeline combining state-of-the-art Optical Character Recognition (OCR), advanced image analysis, masked language modeling, and diffusion-based models to restore and reconstruct text while preserving visual integrity. We create a synthetic dataset of 30{,}078 degraded document images that simulates diverse document degradation scenarios, setting a benchmark for restoration tasks. Our pipeline detects and recognizes text, identifies degradation with an occlusion detector, and uses an inpainting model for semantically coherent reconstruction. A diffusion-based module seamlessly reintegrates text, matching font, size, and alignment. To evaluate restoration quality, we propose a Unified Context Similarity Metric (UCSM), incorporating edit, semantic, and length similarities with a contextual predictability measure that penalizes deviations when the correct text is contextually obvious. Our work advances document restoration, benefiting archival research and digital preservation while setting a new standard for text reconstruction. The OPRB dataset and code are available at \href{https://huggingface.co/datasets/kpurkayastha/OPRB}{Hugging Face} and \href{https://github.com/kunalpurkayastha/DocRevive}{Github} respectively.

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

↑