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

asked 2018-03-06 05:02:36 -0600

opencv-newb gravatar image

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

berak gravatar image

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?

edit retag flag offensive close merge delete