How to calculate Angle of a square object with respect to image in 2D plane using camera?
问题 I have captured an image using a webcam, attached upside-down above a table horizontally. On the table, I have a square object or piece of card. I have successfully detected the object and found its center coordinates (centroid). Now I want to find the rotation angle of the object with respect to the image. Considering everything in the 2D image plane. How can I calculate the angle? This image represents what I trying to achieve: 回答1: I got the Solution . I write the code to perform the