Texts are detected using contours and then a svm is trained on HOG features for classifying each text into multiple(10) fonts.
- python 3.7.5
- numpy 1.19.5
- PIL 6.1.0
- skimage 0.18.1
- sklearn 0.24.1
- python font_detector.py <path/to/image.jpg> -test
- python font_detector.py <path/to/image.jpg> -show
- python font_detector.py <path/to/image/folder> -test
- python font_detector.py <path/to/image/folder> -show
- python gen_data.py
- python gen_data.py <num_samples_to_generate>
- python font_detector.py -eval
- python font_detector.py -train