This repository contains a Python script to calibrate a camera using a printed checkerboard pattern. It calculates the camera matrix and distortion coefficients, and saves the parameters to a YAML file for future use.
- Python 3.x
- OpenCV
- NumPy
- Place your calibration image in the project directory.
- Update the
image_pathandcheckerboard_dimsvariables in the script to match your image. - Install the required packages
pip install -r requirements.txt
- Run the script:
python calibrate.py