...
/Find Distances Between the Camera and Markers
Find Distances Between the Camera and Markers
Learn how to find the distance between the camera and multiple markers.
We'll cover the following...
The first piece of the code below loads an image with ArUco markers, detects the ArUco markers in the image, and then calculates the distances from each marker to the camera’s center.
The second Python code will calculate the pairwise distances between detected ArUco markers in the image.
We’ll use an image that contains two Aruco markers. The centers of these markers are at a distance of approximately 19 cm from each other, and the camera was held approximately 60 cm away.
Press + to interact
...