B
B
brownfox2021-07-11 00:18:13
augmented reality
brownfox, 2021-07-11 00:18:13

How to get the distance to the center of the square and the angles of the camera in the projection?

Suppose there is a square whose side size is known. There is a camera for which the size of a square in pixels was experimentally obtained at a distance of 1 meter with the camera oriented exactly to the center of the square, if the sides of the frame are parallel to the sides of the square.

Now we move the camera to an arbitrary point relative to the square and shoot/measure its projection.

How can I get the coordinates of the camera location point in space from the projection of the square relative to its center?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svetlana Kozlova, 2021-07-11
@svob

You would really make a drawing)) You can describe it in words, but how can you read it later?
And it is necessary to clarify - the camera only shifts or shifts and turns to the square?
But the distance along the axis in the direction of the square is preserved and is 1 meter. In any case, this will be one of the sides of the desired right triangle, presumably the adjacent leg. Knowing the geometric dimensions of the projection, it is possible to draw up a proportion and obtain the dimensions of the opposite leg of the same triangle. Knowing the legs, calculate the tangent. More precisely, two tangents for two coordinates separately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question