Combined orientation and script detection using the Tesseract OCR engine