lkmidas / Font-Detection

Detect texts and their fonts on an image (school project)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font Detection

Basivally just me stitching 3 projects together:

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

About

Detect texts and their fonts on an image (school project)


Languages

Language:Python 80.4%Language:Jupyter Notebook 19.6%