I have an image which is horizontal. I can rotate the image by 90 degrees get the image in the proper orientation and can do further processing from there. How do I automate this as I am not always going to be sure how much rotation is required. I want the image to be in a vertical format where text go from left to right, like this web page.
How do I achieve this in python?