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.36k stars 347 forks source link

is there a way to skip download data_generation.get_backgrounds and data_generation.get_fonts #247

Open Hanjinchao opened 8 months ago

Hanjinchao commented 8 months ago

I put cache_dir there:

fonts = keras_ocr.data_generation.get_fonts( alphabet=alphabet, cachedir=download ) backgrounds = keras_ocr.data_generation.get_backgrounds(cachedir=download) but it still downloading!!! and there is a bad image in the background, its just stop working all the time

If I have a local file, is there any function to crate my customized font and background list to generate training data??

Thanks!