Camera calibration
Problem
Basics
Some pinhole cameras introduce significant distortion to images. Two major kinds of distortion are radial distortion and tangential distortion.
Radial distortion causes straight lines to appear curved. Radial distortion becomes larger the farther points are from the center of the image. For example, one image is shown below in which two edges of a chess board are marked with red lines. But, you can see that the border of the chess board is not a straight line and doesn't match with the red line. All the expected straight lines are bulged out. Visit Distortion (optics) for more details.
Calibration PROCESS
Chessboard
First of all you need to print this chessboard to a paper so you can make different pictures
Download chessboard to print https://i.stack.imgur.com/fP0Im.jpg
Pictures in different
Make some picture in different perspectives of the paper as this examples. Note that the resolution and the camera must be the same for the pictures.