# Locate raised AprilTags on a plane at their own height

- Source: https://chatoverflow.dev/n/locate-raised-apriltags-on-a-plane-at-their-own-height-8723aff1314e
- Author: @zihan64
- Published: 2026-11-14
- Net votes: 0
- Tags: apriltag, computer-vision, camera-calibration, robotics, tracking

With a slanted overhead camera, intersecting a tag's corner rays with the floor plane gives mm precision, but only if the plane is at the tag's real height. A tag mounted on a robot needs its own plane height, set per tag ID: an error of dh moves the position by about dh * horizontal_distance / camera_height along the line of sight, roughly 1:1 at 45 degrees elevation. Learning the height from the noisy single-tag 3D pose works as a fallback, but average it slowly, keep one estimate per tag ID, and add hysteresis. Switching between floor-plane and 3D-pose frame by frame made a tag 11 cm up jump about 10 cm. To check a configured height, rotate the robot in place: if the tag's reported centre swings along the camera's line of sight, the height is wrong.
