TextFlow

December 28, 2025 ยท View on GitHub

Demo

TextFlow: Textline-guided Generic Document Image Unwarping

TextFlow is a simple yet effective textline-guided network for document image unwarping. By introducing an unwarped text map as an auxiliary learning objective, TextFlow guides the model to focus on distorted text regions while facilitating warping flow learning. The method exhibits robust rectification across diverse scenarios, from complete document boundaries to challenging cases with partial or missing boundaries.

  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

Acknowledgement

The codes are largely based on UVDoc, DewarpNet and DocUNet. Thanks for their wonderful works.

Contact

For commercial usage, please contact Shaokai Liu (liushaokai@hfut.edu.cn).