How to train a #keras model to recognize text with variable length
▻https://hackernoon.com/how-to-train-a-keras-model-to-recognize-text-with-variable-length-10f306
I have played with the Keras official image_ocr.py example for a while and want to share my takeaways in this post.The official example only does the training for the model while missing the prediction part, and my final source code is available both on my GitHub as well as a runnable Google Colab notebook. More technical detail of #ocr(optical character recognization) including the model structure and CTC loss will also be explained briefly in the following sections.OCR task declarationThe input will be an image contains a single line of text, the text could be at any location in the image. And the task for the model is to output the actual text given this image.For example,OCR example input & outputThe official image_ocr.py example source code is quite long and may look daunting. It (...)