> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/tools/apriltag-tracking-with-python.md).

# AprilTag Tracking with Python

## Camera Calibration

First, we use OpenCV to do camera calibration.

Reference

<https://docs.opencv.org/4.x/dc/dbb/tutorial_py_calibration.html>

The calibration pattern can be downloaded from

{% embed url="<https://github.com/opencv/opencv/blob/05b15943d6a42c99e5f921b7dbaa8323f3c042c6/samples/data/chessboard.png>" %}
