For a reference I am attaching two image A and B

I want to calculate the rotation of Image B assuming you know all the dimensions of Image A in Opencv
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to create a projection plane. So, you will get a perspective projection. And then you can resolve the transformation matrix variables to get the angle. Hope this helps, lemme know if you need more details.