First time here? Check out the FAQ!
answered 2013-04-09 06:48:46 -0600
In the samples of opencv (samples/python2/), there is a calibrate.py which is doing exactly what you want.