SSARCandy / panoramas-image-stitching

🖼 Stitching images into 360 panoramas
https://ssarcandy.tw/2017/05/26/panorama-image-stitching/
215 stars 53 forks source link
image-processing ipython-notebook opencv3 python3

panoramas-image-stitching

Requirement

You will need to install some package using pip3:

Usage

$ python main.py <input img dir>

# for example
$ python ./main.py ../input_image/Xue-Mountain-Enterance/

Input format

The input dir should have:

This is an example for image_list.txt:

# Filename   focal_length
DSC_0184.jpg 830
DSC_0185.jpg 830
DSC_0186.jpg 830
DSC_0187.jpg 830
DSC_0171.jpg 830
DSC_0172.jpg 830
DSC_0173.jpg 830
DSC_0174.jpg 830
DSC_0175.jpg 830
DSC_0176.jpg 830
DSC_0177.jpg 830
DSC_0178.jpg 830
DSC_0179.jpg 830
DSC_0180.jpg 830
DSC_0182.jpg 830
DSC_0183.jpg 830

Output

The program will output:

Parameters

The program have some constant parameters that can easily changed in constant.py.

Environment

I test my code in Window10/Linux/MacOS.
It should work fine in these system.