revised TextRecognizer initialization and finally moved export of tessdata to here