Correcting Text Orientation with Tesseract and Python