[论文解读] Deep Unrestricted Document Image Rectification
本文提出 DocTr++,一种新型深度学习框架,用于无限制文档图像校正,可处理任意扭曲的文档图像——无论图像中是否包含完整、部分或无文档边界。通过引入分层编码器-解码器架构,重新定义无限制输入的像素级映射,并提出一个真实世界测试集及新指标,DocTr++ 在基准数据集和真实场景数据集上均达到最先进性能,显著提升了在复杂扭曲情况下的 OCR 准确率与泛化能力。
In recent years, tremendous efforts have been made on document image rectification, but existing advanced algorithms are limited to processing restricted document images, i.e., the input images must incorporate a complete document. Once the captured image merely involves a local text region, its rectification quality is degraded and unsatisfactory. Our previously proposed DocTr, a transformer-assisted network for document image rectification, also suffers from this limitation. In this work, we present DocTr++, a novel unified framework for document image rectification, without any restrictions on the input distorted images. Our major technical improvements can be concluded in three aspects. Firstly, we upgrade the original architecture by adopting a hierarchical encoder-decoder structure for multi-scale representation extraction and parsing. Secondly, we reformulate the pixel-wise mapping relationship between the unrestricted distorted document images and the distortion-free counterparts. The obtained data is used to train our DocTr++ for unrestricted document image rectification. Thirdly, we contribute a real-world test set and metrics applicable for evaluating the rectification quality. To our best knowledge, this is the first learning-based method for the rectification of unrestricted document images. Extensive experiments are conducted, and the results demonstrate the effectiveness and superiority of our method. We hope our DocTr++ will serve as a strong baseline for generic document image rectification, prompting the further advancement and application of learning-based algorithms. The source code and the proposed dataset are publicly available at https://github.com/fh2019ustc/DocTr-Plus.
研究动机与目标
- 解决现有文档图像校正方法在输入图像中需要完整文档边界这一局限性。
- 开发一种统一的深度学习框架,能够校正任意扭曲的文档图像,包括边界不完整或不可见的图像。
- 提升在存在阴影、噪声和复杂形变的真实场景中的校正质量。
- 贡献一个新真实世界测试集,并提出针对无限制文档图像校正的稳健评估指标。
- 展示 DocTr++ 作为未来文档图像几何校正研究的强有力基线的有效性。
提出的方法
- 采用分层编码器-解码器结构,从扭曲的文档图像中提取多尺度表征。
- 重新定义无限制扭曲图像与其无扭曲对应图像之间的像素级映射,以实现无需边界约束的端到端训练。
- 使用受 DETR 启发的可学习查询解码器机制,预测用于几何去扭曲的位移场。
- 利用来自重新定义映射的自监督信号进行模型训练,实现无需真实校正图像监督的训练。
- 提出一种新型损失函数,结合感知一致性和结构一致性,以增强视觉质量和几何准确性。
- 贡献一个真实世界测试集,包含多样化的扭曲类型,并提出新指标(MSSIM-M 和 LD-M),对黑色区域和背景噪声具有鲁棒性。
实验结果
研究问题
- RQ1深度学习模型是否能在不依赖输入图像中完整文档边界的情况下实现高质量的文档图像校正?
- RQ2如何通过统一框架有效处理从部分边界到无边界、阴影和噪声等全部范围的文档扭曲?
- RQ3哪些关键的架构和训练组件使模型在无限制文档图像上实现鲁棒性能?
- RQ4所提出的评估指标如何在存在黑色区域的情况下,优于标准指标(如 MSSIM 和 LD)以更准确评估校正质量?
- RQ5使用 DocTr++ 进行几何校正,在多大程度上提升了下游 OCR 和多模态模型的性能?
主要发现
- 在 DocUNet 基准测试中,DocTr++ 的字符错误率(CER)为 50.89%,经校正后降低至 16.95%,显著提升了 OCR 的鲁棒性。
- 在所提出的 UDIR 基准测试中,CER 从 39.86% 降低至 22.88%,证实了该方法在真实世界扭曲情况下的有效性。
- 所提出的指标 MSSIM-M 和 LD-M 比标准的 MSSIM 和 LD 更具鲁棒性,能有效区分高质与劣质校正输出,尤其在存在黑色区域时表现更优。
- DocTr++ 即使在手写体和复杂背景图像上,也能持续生成整齐的校正图像,文本行保持笔直,展现出强大的泛化能力和鲁棒性。
- 该模型提升了文本检测率,并使 Qwen-VL 能够实现准确的多模态理解,证实其作为下游视觉与语言任务预处理步骤的价值。
- 大量消融实验验证了分层架构、重新定义的映射以及新损失组件在提升校正质量方面的有效性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。