I have a rectangle picture like this image :
But after that I took a photo from the camera like this :
I detected 4 corners of my rectangle by approxPolyDP
.
The points that I detected are these values:
308,25
38,99
147,477
412,466
Now how can I calculate Pitch, Roll and Yaw by these 4 points?