generate the train data for tesseract