Stitch two fish eye images to get 360° panorama
FishPyPano works with Mi Sphere dual fisheye photos. I intend to make it work for any dual fisheye images.
It takes two >180° HFOV/VFOV fisheye images and stitches them.
Before running, set up requirements, executing pip install -r requirements.txt
The code offers two functions.
- Calibrate -
python calibrate.py
You have to do this one time. You give a list of matched points in the image from JSON file and it calibrates the lens parameters. After calibration it will generate a json file with the calibrated parameters.- I have cooked up a html page which you can use to generate the json file.
- Stitch -
python stitch.py
Pass the image and wait for the magic.
Feel free to fork. Pull requests are most welcome. For any suggestion, open an issue.
Chris Pebble for suggesting distortion functions.