Camera calibration using OpenCV
To automatically acquire images with default parameters you can use:
python record_images.py -d0 -n10 -p images/
To automatically calculate instrinsic camera parameters you can use:
python extract_camera_intrinsics.py -p images/
OpenCV Doc: Camera Calibration