Purpose of this tool is to create dataset useful for training AI for classification of set of fonts. The source here is the collection of google fonts (but simply other can be added, please check their LICENSE first) in vector format. Vector format is converted into raster format and finally these rasters are loaded into a numpy array suitable for Pythonic training.
- ImageMagic (the convert feature for font rendering) installation instructions
- poetry ^1.1.2 installation instructions
poetry install
python scripts/font2h5matrix.py --fonts-root fonts --mode letters --symbols a --image-output-format jpeg -o letter-a-as-jpeg.h5
- dockerization for comaptibility