- 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.txtandDockerfileare added so we can set it up easily- Github action is added so we can make sure Dockerfile do work
- Data generation script
create_data.pyis provided train.pyandeval.pyare provided so we can run training and evaluation without jupyter notebook
- setup
python3 -m "virtualenv" venv
source venv/bin/activate
pip3 install -r requirements.txt
- create dataset
-c: the number of generated images for each font infontsfolder-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
- access
http://127.0.0.1:8888by browser
- access
docker run -it --rm -p8888:8888 mydeepfont
