why fx focal length is changing when I calibrating the camera.

asked 2019-09-08 00:18:08 -0500

for example 1st calibration 786 and 2nd calibration is 811.is it normal ? and what difference between focal length given by the manufacture and our calibrated focal length

edit retag flag offensive close merge delete


Why fx should be equal to manufacture fx ?

LBerger gravatar imageLBerger ( 2019-09-08 02:07:33 -0500 )edit

If you take a ruler and measure something you will also get slightly different results each time. The more calibration images you take, the closer the fx value to some asymptotic value will be (provided the calibration images are not corrupted). The focal length given by the manufacturer is the physical focal length (could be 35 mm equivalent focal length). When calibrating your camera you get focal length in pixels as explained for example here: https://answers.opencv.org/question/1...

Witek gravatar imageWitek ( 2019-09-09 04:01:19 -0500 )edit

In my experience the focal length shouldn't change by that much from one calibration to the next (unless you are changing the lens focus between runs). When I do multiple calibrations on the same camera/lens, I think the focal length changes by (maybe) as much as 5 pixels across multiple runs. How many images are you using for your calibrations, and what is the reprojection error you are getting? Depending on the lens and camera, I would shoot for 1 pixel RMS error or less, and really I would like to see 0.5 or less. If you are getting high reproj error, that's a sign that the calibration isn't very accurate, and it isn't too surprising that parameters could shift around from one calib to the next when minimizing the error. How stable is your image center?

swebb_denver gravatar imageswebb_denver ( 2019-09-11 15:45:54 -0500 )edit