Calculating 3D points corrds from 2D image

958 Views Asked by At

The current scenario I have is that I have an image of a rectangular board from an angle and I need to calculate the 4 coordinates of the 4 corners of the rectangle. Currently I have gone through the process and got this information:

Diagram showing the 2D image - MS-Paint for the win!

Point A: (0,0,0) - acting as origin
Point B: (0-x, 0, 0)
Point C: (0-x, l, d)
Point D: (0, l, d)

It is already known that the two x sides are parallel and are of equal length, which is the same for the tow y sides.

Also I apologise for my lack of terminology, this type of math is all new to me :)