DocPristine: Content-Aware Document Appearance Enhancement under Real-World Mixed Degradations
Organizations: South China University of Technology
Abstract
Camera-captured documents often exhibit mixed degradations, such as highlights, shadows, and blur, that distort backgrounds and obscure text details. Document appearance enhancement (DAE) aims to mitigate these degradations and improve readability. Existing document appearance enhancement methods rely either on input-derived visual cues that can become unreliable under severe degradation or on LLM-based degradation diagnosis that lacks spatial guidance. Notably, we find that pretrained document visual encoders continue to attend to text regions in degraded documents, providing content-aware guidance. Based on this insight, we propose DocPristine, which adaptively fuses multi-layer features from a frozen document visual encoder and injects them into a pixel restoration network. To integrate these features into a pixel restoration network, DocPristine combines Adaptive Multi-Layer Feature Fusion (AMFF), Hierarchical Gated Conditioning (HGC), and Shifted-Window Cross-Attention (SWCA). Specifically, SWCA draws on structural cues from neighboring locations across window boundaries to recover fine text details.We also introduce DocACE, with a synthetic mixed-degradation training set (DocACE-Synthetic) and a real-world test set (DocACE-Real) containing manually restored ground-truth images and document parsing annotations. Comprehensive experiments across three benchmarks demonstrate that DocPristine achieves state-of-the-art appearance enhancement quality and consistently improves downstream document parsing. Code, models, and data will be publicly available.
Figures & tables
| Benchmark | PDF-like Target | Real Captures | Mixed Degradations | OCR Metrics |
|---|---|---|---|---|
| DocUNet [ 25 ] | ||||
| RealDAE [ 36 ] | ||||
| MixedDoc [ 19 ] | ||||
| DocACE-Real (Ours) |
| Method | Venue | DocUNet [ 25 ] | RealDAE [ 36 ] | DocACE-Real | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | PSNR | SSIM | PSNR | SSIM | TxE | FCM | TDS | |||
| Input | – | 13.09 | 0.7195 | 12.26 | 0.8264 | 7.05 | 0.4872 | 0.2329 | 78.21 | 80.92 | 78.61 |
| GT | – | – | – | – | – | – | – | 0.1148 | 85.20 | 86.95 | 86.89 |
| DocProj [ 20 ] | TOG’19 | 14.71 | 0.7098 | 19.35 | 0.8684 | 8.24 | 0.4725 | 0.4415 | 47.61 | 47.26 | 50.24 |
| DocIIW [ 9 ] | BMVC’20 | 16.42 | 0.7276 | 19.87 | 0.8633 | 17.68 | 0.8026 | 0.1509 | 78.35 | 80.73 | 81.33 |
| DocTr [ 11 ] | MM’21 | 15.78 | 0.7067 | 18.62 | 0.7925 | 15.26 | 0.5488 | 0.1741 | 74.85 | 75.64 | 77.69 |
| Visual Encoder | Params (B) | DocUNet [ 25 ] | RealDAE [ 36 ] | DocACE-Real | ||||
|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | PSNR | SSIM | PSNR | SSIM | |||
| None | – | 17.27 | 0.7725 | 23.22 | 0.9181 | 19.31 | 0.8482 | 81.59 |
| DINOv3-L [ 30 ] | 0.3 | 17.57 | 0.7734 | 23.12 | 0.9173 | 20.75 | 0.8851 | 82.13 |
| Qwen3.5-4B ViT [ 29 ] | 0.3 | 17.58 | 0.7690 | 23.94 | 0.9260 | 21.26 | 0.8856 | 82.06 |
| WeVisDoc-4B ViT [ 34 ] | 0.3 | 17.88 | 0.7826 | 24.64 | 0.9418 | 21.22 | 0.9045 | 83.06 |
| MonkeyOCRv2-B [ 24 ] | 0.1 | 18.24 | 0.8032 | 25.01 | 0.9499 | 21.86 | 0.9140 | 83.66 |
| HGC | SWCA | DocUNet [ 25 ] | RealDAE [ 36 ] | DocACE-Real | ||||
|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | PSNR | SSIM | PSNR | SSIM | |||
| 17.27 | 0.7725 | 23.22 | 0.9181 | 19.31 | 0.8482 | 81.59 | ||
| 17.39 | 0.7850 | 24.20 | 0.9215 | 20.63 | 0.8892 | 82.66 | ||
| 17.92 | 0.7994 | 24.89 | 0.9462 | 21.35 | 0.9033 | 83.09 | ||
| 18.24 | 0.8032 | 25.01 | 0.9499 | 21.86 | 0.9140 | 83.66 | ||
| DocUNet [ 25 ] | RealDAE [ 36 ] | DocACE-Real | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | PSNR | SSIM | PSNR | SSIM | |||||
| 17.27 | 0.7725 | 23.22 | 0.9181 | 19.31 | 0.8482 | 81.59 | ||||
| 18.29 | 0.8017 | 25.20 | 0.9529 | 21.30 | 0.9007 | 82.27 | ||||
| 18.16 | 0.8024 | 24.96 | 0.9515 | 21.43 | 0.9084 | 82.59 | ||||
| 18.18 | 0.8033 | 24.97 | 0.9496 | 21.74 | 0.9101 | 83.18 | ||||
| 18.17 | 0.8030 | 24.92 | 0.9476 | 21.85 | 0.9094 | 83.52 | ||||
Image Enhancement
Image enhancement restores visibility, color, detail, and dynamic range in degraded images for human viewing and downstream vision tasks.
See all 171 papers