Glossary · Robotics and control
Triangulation
Also called triangulate, triangulated, stereo
Finding a point's position in 3D from where it appears in two or more calibrated cameras.
One camera can’t measure depth: every point along a ray from the lens lands on the same pixel. A second camera, looking from somewhere else, gives a second ray. Where the two rays meet is the point.
Real rays never meet exactly (the pixels are a little off), so the point is chosen to fit both as well as possible. With each camera’s projection matrix from calibration and the point seen at pixel , each camera gives two linear equations in the unknown point :
where is row of . Stacking them for every camera and solving by least squares gives .
Depth is measured best when the cameras are far apart in angle: two cameras side by side see nearly the same ray, and a pixel of error becomes a large error in depth. 60–90° apart is a good spread for a person.
In this project
The coach’s motion capture triangulates the 2D keypoints from two phones about 89° apart, one where the opponent stands and one on the side of the striking limb. An earlier attempt with one phone had to guess every limb’s depth from its length, and once put the legs the wrong way round in the stance while every picture check passed. With two views, which foot is in front is measured, not guessed.