Font Detection
Basivally just me stitching 3 projects together:
- TextRecognitionDataGenerator by
Belval
- DeepFont by
robinreni96
- Text Detection by
dodanh041001
Pre-requisites
Install trdg
to generate data.
Install packages in requirements.txt
to run font detection
Usage
Data generator
python3 data_generator.py <font_dir> <out_dir> <image_count>
<fond_dir>
: a directory contains one sub-directory for each font with a.ttf
file in it.<image_count>
: number of image to generate for each font
DeepFont training
Run DeepFont_train.ipynb
in Google Colab (For HCMUT: link)
Font detection
- Put samples in
samples
- Run
font_detection.py
- Output will be in
result