I take photos of a camera with white paper with a black square with the specified size (for example, 10 cm). The image is taken with different distances to the paper plane and with different camera angles.
Now I need to derive from these images the rotation of the camera, the translation of the camera and the distance to the paper plane, as well as the distance to the corners of the squares.
I am new to image processing, so maybe someone can direct me to some keywords, algorithms, or basic math to search, or even OpenCV functions for research. There will always be some primitive objects on paper, such as squares, so I donโt need any algorithms that will work with any arbitrary image, but I definitely need a fast algorithm.
source share