Retrained tesseract. Realised opencv reads Mat's from bottom up to adjusted functions that take params from outside Opencv