QRICKDD / UDUP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDUP

Code for Universal Defensive Underpainting Patch: Making Your Text Invisible to Optical Character Recognition

About Prefiles

All models and data can be accessed in out code (../AllData/ and ../AllConfig/all_model). In particular, the history of my running records can be viewed in Mylog.

After downloading, please put them in the prefile folder.

Dependencies

The code for our paper runs with Python 3.8. Please pip install the following packages:

  • requirements.yml

Running in Windows, MacOS or Ubuntu

We provide as an example the source code to run. Run the following commands in shell:

###############################################
# Omit if already git cloned.
git clone repository
# Carry out UDUP.
python run train_udup.py
############################################### 
# Results are stored in Mylog and result_save.
# Ground-truth boxes about CRAFT/DBnet/easyocr are stored in test_save

Performance on EAST, Google Tessarct, Oneplus9 and PaddlePaddle

avatar

Performance on CRAFT after BM3D denoise

avatar

About


Languages

Language:Python 99.1%Language:Cython 0.3%Language:Shell 0.3%Language:Dockerfile 0.2%Language:Batchfile 0.1%Language:Makefile 0.1%Language:CSS 0.0%