Hikvision fisheye ip camera - DS-2CD3955FWD-IWS
First, run cali_img_capture.py
script and press SPACE button to capture 9x6 chessboard image for calibration (seen here). 30-40 images work fine for calibration.
Next, run hik_cam_calibrate.py
to get camera intrinsic parameters and distortion coefficients (K and D).
Last, in hik_cam.py
show how to use K and D to undistort images.
opencv 3.2.0