0

Is there any predefined code for this or I have to write my own code? Also, I do not have the camera properties for this, I have only the image taken in fisheye lens and now I have to flatten the images

sanyassh
  • 8,100
  • 13
  • 36
  • 70

1 Answers1

1

OpenCV provides a module for working with fisheye images: https://docs.opencv.org/3.4/db/d58/group__calib3d__fisheye.html

This is a tutorial with an example application.

Keep in mind that your task might be a bit hard to achieve since the problem is under-determined. If you have some cues in the image (such as straight lines), that might help. Otherwise, you should seek a way of getting more information about the lens. If it's a known lens type, you might find calibration info online. Also, some images might have the lens used to capture them in the EXIF data.

Paul92
  • 8,827
  • 1
  • 23
  • 37