So I have a digital photo. In this photo is a rectangle, could be a picture on a wall, a window, a door, anything that is rectangular in the "real world", however in the photograph(2D) it may be at an angle, so as far as the 2D image is concerned, it's likely NOT a rectangle.
Knowing the 2D coordinates of the 4 points of the rectangle, how can I determine the angle(X and Y rotation) of the rectangle from the camera? Assuming looking directly at the rect (all right angles in 2D) is zero degrees X rotation and zero degrees Y rotation.
Would appreciate any and all ideas on how to solve this. It doesnt matter to me if its easier for you to speak in angles or radians, I can use either.
Knowing the 2D coordinates of the 4 points of the rectangle, how can I determine the angle(X and Y rotation) of the rectangle from the camera? Assuming looking directly at the rect (all right angles in 2D) is zero degrees X rotation and zero degrees Y rotation.
Would appreciate any and all ideas on how to solve this. It doesnt matter to me if its easier for you to speak in angles or radians, I can use either.