0
votes

I am trying to calibrate a fish eye lens using opencv.

After capturing some images and using sample code that comes with opencv. I am getting these images:

enter image description here

This image is undistorted as follow:

enter image description here

Why is this happening and how can I fix it?

2
opencv uses a pinhole-camera model for calibration. it probably just don't work with a real fish-eye lens - berak
@berak: Thanks. So how can I undistorted a fisheye lens with opencv? - mans

2 Answers

1
votes

I got the same problem before. The default (pin-hole) model didn't work well with very wide-angle lens. You should try fisheye model.

0
votes

You need to move your camera closer to the pattern, so that the pattern can cover more than half of the image.

Or, you need to print a larger size pattern (such as A0-size if possible), which will give you a very accurate result.