It's the code for the paper HAFE: A Hierarchical Awareness and Feature Enhancement Network for Scene Text Recognition, Knowledge-Based Systems 2024.
pip install -r requirements.txt
Please convert your own dataset to LMDB format by create_dataset.py. (Borrowed from https://github.com/bgshih/crnn/blob/master/tool/create_dataset.py, provided by Baoguang Shi)
There are converted Synth90K and SynthText LMDB dataset by luyang-NWPU: [Here], password: tw3x
sh ./train.sh
sh ./val.sh
python pre_img.py YOUR/MODEL/PATH YOUR/IMAGE/PATH
@article{Ethereal2023HAFE,
title={HAFE: A Hierarchical Awareness and Feature Enhancement Network for Scene Text Recognition},
author={Kai HE, Jinlong TANG, Zikang LIU , Ziqi YANG},
journal={Knowledge-Based Systems},
year={2024},
publisher={Elsevier}
}
This code is based on HGA-STR by luyang-NWPU. Thanks for your contribution.