Tutorial: Camera Calibration
Last updated
Was this helpful?
Last updated
Was this helpful?
DLIP Tutorial for Camera Calibration using GML Program or MATLAB
Download GML Camera Calibraion Program in link.
GML Program Guide
Create a new C++ project in Visual Studio Community
Project Name: DLIP_Tutorial_Camera_Calibration
Project Folder: C:\Users\yourID\source\repos\DLIP\Tutorial\
Load the file in the path: calibration.resources\sourceCode\
into the project folder
Source Code: ShowUndistorted.cpp
, ShowUndistorted_tiny.cpp
header file: tinyxml2.cpp
, tinyxml2.h
xml file: calibTest.xml
Using _"Computer Vision Toolbox"_** Application in MATLAB**
Download Computer Vision Toolbox in MATLAB.
Open the Camera Calibrator application.
Load calibration images to the camera calibrator app.
Configure Image and Pattern Properties as
Pattern Selection: Checkerboard
Size of checkerboard square: 25 mm
Image distortion: Low
Click Calibrate button.
Export Parameters to workspace
Save the Workspace cameraParams as "cameraParams.mat"
(Option) Create a simple function that returns undistort output image from the input raw image
Calibration with OpenCV C++
Calibration with OpenCV-Python
Download images for camera calibration.
Download test code() and Run the code
Apply the camera parameter values from cameraParams to the cpp test code ()