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.38k stars 355 forks source link

Special characters not detected ! #118

Closed GhadaJouini closed 4 years ago

GhadaJouini commented 4 years ago

Hey ! Thanks @faustomorales for this amazing work. I'm trying to extract any kind of text scene in any images (test this code on driving license data and identity cards). for the alphabits it works fine but the special characters like "/" in the date it's detected as number "1" I guess cause we didn't train the model on such data. My question is how can I re-train this model for another data (like identity cards in my case ..) can you guide me how to do this on google colab. hope you could help me and thanks again 👍

faustomorales commented 4 years ago

Hi! The pre-trained recognizer does not include punctuation. Please see the recognizer portions of the end-to-end example for a demonstration on how to use your own alphabet and generate synthetic data for it.

I'm closing this issue for now because this is neither a bug nor a proposed enhancement.