Calibration¶
How to run¶
Print the pattern on letter sized paper
Check that dimentions of the squares or/and markers match the script (in cm)
Start the script with
python tools/TYPE_calibration.py PATH/TO/processing.cfg
Hold the pattern on a flat surface in front of the camera
Make sure the camera recognizes the pattern and displays a colorful overlay
All changes will be saved to the specified config file
What it does¶
This script utilizes the basic camera calibration logic provided by the documentation. It uses the pattern to determine focal size of the camera in pixels for specified resolution in the config. The focal x and y values should be close to each other. The script also calibrates the optical center and distortion coefficients. The first four values are necessary for accurate Apriltag pose estimation, while all distortion coefficients may be left at 0.