First time here? Check out the FAQ!
answered Apr 9 '13
In the samples of opencv (samples/python2/), there is a calibrate.py which is doing exactly what you want.