Unwrap allsky (fisheye) images into rectilinear in Python
Simple to use python script to unwrap an allsky or 360 deg RGB fisheye image into a panoramic rectilinear image. Assumes square image. May need to crop square before running.
Dependencies:
imageio
numpy
opencv
Tested: Raspberry Pi 3/4
from unWrap import unwrap
import imageio
image = imageio.imread('rgb.jpg')
result = unwrap(image, 40, 1500) #Here we are cropping 40px from the bottom of final pano. Set to 0 for disable. 3rd arg offsets the final pano by x pixels.
imageio.imwrite('test.jpg', result)