camera calibration tool lets you calibrate any video camera very accurately and
in few seconds.
The user presents a flat checkerboard pattern in front of the camera, and the program automatically acquires a number of images and uses them to compute the intrinsic camera parameters (focal length, principal point, distortion coefficients) as well as the extrinsic parameters (3D position of the pattern for each image).
Since the corners of the pattern are located automatically on each image, the entire procedure is fully automatic. Once calibration is done, the program lets you undistort the video images in real time (at frame rate). The lens distortion model consists of two terms: a radial distortion term (up to the fourth order) and a tangential distortion term (two scalars for encoding the angular orientation of the focal plane with respect to the sensor plane). Consequently, the lens distortion model is parameterized using four scalar coefficients.
 Enter the number of columns (Squares
per row)in your calibration checkerboard. Click "Apply"  to
 Enter the number of rows (Squares per column)in your calibration checkerboard. Click "Apply"  to enter.
per row must not be greater than squares per column ------------Irene’s
 Actual size of squares in your calibration checkerboard (in whatever units -- say cm). Click "Apply"  to enter.
 Start automatic collection of calibration frames.
 Save current set of calibration parameters to disk.
 Load previously saved calibration parameters.
 If you've just calibrated the camera, or have loaded  previous calibration parameters, checking this box causes the computation of the undistorted image in real time. If this box is not checked, the raw video frames are displayed. You must click "Apply"  to register the check.
 Checking this box causes an OpenGL display to show the tracking of the calibration checkerboard. You must click "Apply"  to register the check.
 Set how many frames of the calibration checkerboard you want to collect before performing calibration (between 10 and 20 is usually enough, use more only if high accuracy is desired). Click "Apply"  to enter.
 Set how number of miliseconds of delay between collecting frames of the calibration checkerboard when you start  calibration. This allows you as much time as desired to move the calibration checkerboard around the video scene before the next frame is taken during calibration. Click "Apply"  to enter.
 The current calibration parameters are displayed in this box.
 You must click "Apply" after setting any or all of , , ,  and/or .
(a) Get or make
a black and white checkerboard calibration object as shown in the images above
or animated gif's below.
(b) Enter the number of columns ("squares per row") in  and number of rows (squares per column) in ; Enter the size of a square in whatever units in  (optional) ; Enter the number of frames that you want to collect in  (10-20 usually suffices); Enter the minimum time between capturing frames to allow you time to move the calibration object.
(c) Click "Apply" .
(d) Click "Start" .
(e) Move the checkerboard around. The number of frames collected will display in . When all frames are collected it will solve for the calibration parameters and display them in .
(f) Checking  followed by clicking "Apply"  causes the rectified video image to be displayed as shown in the second example below.
Notes: When calibrating, the video image flashes when a frame is captured. It won't capture unless the colored lines are drawn on the checkerboard as shown in the examples below. You must move the calibration object around -- if your views are too much alike, you will get an ill-conditioned matrix with resultant divide by zero when the filter solves for the camera calibration parameters.
(a) Click "Save"  and a dialog box will prompt you for saving the calibration parameters under a text file. Click this link for information on the camera model, and the content of the text file.
(a) Click "Load"  and a dialog box will
allow you to select a calibration parameter file.
(b) Calibration parameters will appear in .
(a) On: Check the "Undistortion" box .
Click "Apply" .
(b) Off: Un-check the "Undistortion" box . Click "Apply" .
(a) On: Check the "Show 3D window" box .
Click "Apply" .
(b) Off: Un-check the "Show 3D window" box . Click "Apply" .
The following movie shows the 3D pose of the calibration object being computed in real time after the camera has been calibrated.
The next picture shows image undistortion performed by the filter.