Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿ–ผ Stitching images into 360 panoramas

๋””์ž์ธ ๋ฐ ๋ฏธ๋””์–ด

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

panoramas-image-stitching

Requirement

  • python3 (or higher)
  • opencv 3 (4+ may encounter issue. ref #11)

You will need to install some package using pip3:

  • numpy
  • matplotlib

Usage

$ python main.py <input img dir>

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

Input format

The input dir should have:

  • Some .png or .jpg images
  • A image_list.txt, file should contain:
    • filename
    • focal_length

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:

  • Every stitched images, with filename 0.jpg, 1.jpg, 2.jpg, ...
  • A aligned image aligned.jpg
  • A cropped image cropped.jpg

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.

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ