faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.37k stars 349 forks source link

synthetic image generator is incredibly small when using small fonts-size 10 #164

Closed mazharsaif closed 2 years ago

mazharsaif commented 3 years ago

Creating images with keras_ocr.data_generation.get_image_generator() by using small fontsize is slow by orders of magnitude, generating a single image with fontsize 10 can take over 5 seconds, while a font 90 image takes only 136ms to be generated.

I wanted to retrain the model with small sized text, but this approach will take days for training