Camera Calibration Using OpenCV

Calibrate your camera using OpenCV.

Using the C++ code

Compilation

To compile the cameraCalibration.cpp and cameraCalibrationWithUndistortion.cpp code files, use the following:

mkdir build
cd build
cmake ..
cmake --build . --config Release

Usage

Using the C++ code

Refer to the following to use the compiled files:

./build/cameraCalibration
./build/cameraCalibrationWithUndistortion

Using the python code

Refer to the following to use the cameraCalibration.py and cameraCalibrationWithUndistortion.py files respectively:

python3 cameraCalibration.py
python3 cameraCalibrationWithUndistortion.py

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.