Tesseract Initialization code