Code to calibrate a camera using opencv. Inputs from Video stream, image Set, or web cam