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.39k stars 362 forks source link

Parallelizing image loading at inference with pipeline #89

Closed gaceladri closed 4 years ago

gaceladri commented 4 years ago

Hi,

I have been using keras-ocr for a bit, but the inference pipeline is a bit slow since it is reading one image at a time. I am missing the implementation of some keras-ocr module like ImageDataGerator from Keras?

Thanks

faustomorales commented 4 years ago

Could you provide more detail on where you wish to see speed improvements? The bottleneck is usually in inference, not in image decoding. A code snippet demonstrating the problem will help to highlight the problem.

faustomorales commented 4 years ago

Closing due to inactivity.