How to identify fonts in pictures using deep learning? we can do visual font recognition (VFR) using DeepFont algorithm (from Adobe). The paper is here
This implementation is from Font_Recognition-DeepFont, in this repo
requirements.txt
and Dockerfile
are added so we can set it up easilycreate_data.py
is providedtrain.py
and eval.py
are provided so we can run training and evaluation without jupyter notebooksetup
python3 -m "virtualenv" venv
source venv/bin/activate
pip3 install -r requirements.txt
create dataset
-c
: the number of generated images for each font in fonts
folder-f
: the target folder
python3 create_data.py -c 1 -f data
train
-e
: epoch
python3 train.py -e 1
evaluate
-d
: the path of testing file-m
: model filename
python3 eval.py -d test_data/Times.jpg -m top_model.h5
Build Dockerfile
docker build -t mydeepfont .
Run dockerfile
http://127.0.0.1:8888
by browser
docker run -it --rm -p8888:8888 mydeepfont