I'm building an OCR. For that I'm using CNN, RNN and CTC Loss Function.
My input layer gets image and output layer predicts what's written on that image. Labels are converted into integer.
['A', 'B', 'C'] -> A = 0, B = 1, C = 2
If the image is ABC, training label will be 0,1,2 (Single row vector)
I'm able to accomplish this on single line. For eg. 'ABCDE' is written on an image and model works great. But if the image is
'ABC'
'CAB'
then what should be the training label ? How can I tell the model about next line ? I want to train a model on multiple line.