Home

Awesome

🔥 Good news! Our demo has already exceeded 20,000 calls!

🔥 Good news! Our work has been accepted by IEEE Transactions on Multimedia.

🚀 Exciting update! We have created a demo for our paper, showcasing the generic rectification capabilities of our method. Check it out here!

🔥 Good news! Our new work exhibits state-of-the-art performances on the DocUNet Benchmark dataset: DocScanner: Robust Document Image Rectification with Progressive Learning with Repo.

🔥 Good news! A comprehensive list of Awesome Document Image Rectification methods is available.

DocTr++

<p> <a href='https://project.doctrp.top/' target="_blank"><img src='https://img.shields.io/badge/Project-Page-Green'></a> <a href='https://arxiv.org/abs/2304.08796' target="_blank"><img src='https://img.shields.io/badge/Paper-Arxiv-red'></a> <a href='https://demo.doctrp.top/' target="_blank"><img src='https://img.shields.io/badge/Online-Demo-green'></a> </p>

Demo Demo

DocTr++: Deep Unrestricted Document Image Rectification

DocTr++ is an enhanced version of the original DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correction, aiming to rectify various distorted document images in the wild, whether or not the document is fully present in the image.

Any questions or discussions are welcomed!

🚀 Demo (Link)

  1. Upload the distorted document image to be rectified in the left box.
  2. Click the "Submit" button.
  3. The rectified image will be displayed in the right box.
  4. Our demo environment is based on a CPU infrastructure, and due to image transmission over the network, some display latency may be experienced.

Alt text

Inference

  1. Put the pretrained model to $ROOT/model_pretrained/.
  2. Put the distorted images in $ROOT/distorted/.
  3. Run the script and the rectified images are saved in $ROOT/rectified/ by default.
    python inference.py
    

Evaluation

Citation

If you find this code useful for your research, please use the following BibTeX entry.

@inproceedings{feng2021doctr,
  title={DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correction},
  author={Feng, Hao and Wang, Yuechen and Zhou, Wengang and Deng, Jiajun and Li, Houqiang},
  booktitle={Proceedings of the 29th ACM International Conference on Multimedia},
  pages={273--281},
  year={2021}
}
@article{feng2023doctrp,
  title={Deep Unrestricted Document Image Rectification},
  author={Feng, Hao and Liu, Shaokai and Deng, Jiajun and Zhou, Wengang and Li, Houqiang},
  journal={IEEE Transactions on Multimedia},
  year={2023}
}

Contact

For commercial usage, please contact Hao Feng (haof@mail.ustc.edu.cn).