Home

Awesome

DE-GAN: A Conditional Generative Adversarial Network for Document Enhancement

Description

This is an implementation for the paper DE-GAN: A Conditional Generative Adversarial Network for Document Enhancement<br> DE-GAN is a conditional generative adversarial network designed to enhance the document quality before the recognition process. It could be used for document cleaning, binarization, deblurring and watermark removal. The weights are available to test the enhancement.

License

This work is only allowed for academic research use. For commercial use, please contact the author.

Download

git clone https://github.com/dali92002/DE-GAN
cd DE-GAN

Requirements

Using DE-GAN

Document binarization

python enhance.py binarize ./image_to_binarize ./directory_to_binarized_image

image:<br /><br /> alt text<br /><br /> binarized image:<br /><br /> alt text<br /><br />

Document deblurring

python enhance.py deblur ./image_to_deblur ./directory_to_deblurred_image

blurred image:<br /><br /> alt text<br /><br /> enhanced image:<br /><br /> alt text<br /><br />

Watermark removal

python enhance.py unwatermark ./image_to_unwatermark ./directory_to_unwatermarked_image

watermarked image:<br /><br /> alt text<br /><br /> clean image:<br /><br /> alt text<br /><br />

Document cleaning

Training with your own data

python train.py 

Citation

@ARTICLE{Souibgui2020,
  author={Mohamed Ali Souibgui  and Yousri Kessentini},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, 
  title={DE-GAN: A Conditional Generative Adversarial Network for Document Enhancement}, 
  year={2020},
  doi={10.1109/TPAMI.2020.3022406}}