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 360 forks source link

How to predict numbers only? #223

Open IbenBru opened 1 year ago

IbenBru commented 1 year ago

Is it possible for only numbers to be predicted, ignoring special characters and letters? I can't find anything about this.

Alexqwesa commented 1 year ago

You need to set:
alphabet = string.digits

in this tutorial: https://keras-ocr.readthedocs.io/en/latest/examples/end_to_end_training.html