I need to rotate the image at any angle and calculate the angle using a straight line or an ellipse. Print the result on a console. This is the code where I\'m stuck