Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do i find the angle of rotation of an image's text with respect to its dimensions?

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?

click to hide/show revision 2
retagged

updated 2018-03-06 05:06:16 -0600

berak gravatar image

How do i find the angle of rotation of an image's text with respect to its dimensions?

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?