My confusion was, why Alex Graves do such processing to image, as his codes in arabic_offline.py
:
image = Image.open(filename).transpose(Image.FLIP_TOP_BOTTOM).transpose(Image.ROTATE_270)
That’s because PIL
Image
object store data row-by-row, and Alex wants to read the data from column-wise from left to right.
So, after flip and rotate the reading order is the same as: