Giter Site home page Giter Site logo

360-panorama-python's Introduction

360-panorama-python

Stitching 360 panorama with Python

This project generates 360 x 180 panorama from image pieces taken by cell phone cameras. The input data should contain image meta data in JSON format. This meta data is consisted of camera metrics data and image meta data.

  • Camera metrics: focal length and sensor size which can be retrieved by Android API.
  • Image metadata: RPY(Roll, Pitch, and Yaw) data for every image

This project contains .py files which generates panorama from image pieces. Some files are in Jupyter (IPython) notebooks (exp-*.ipynb), which describes experiments to develop this projects. You can read here how the stitching pipeline works and what ideas this project is based on.

Requirements

  • Python >= 3.x
  • opencv-python >= 3.4
  • numpy >= 1.0.0
  • scipy >= 1.0.0
  • matplotlib >= 2.0
  • imutils >= 0.5.2
  • pandas >= 0.24.2

Python and opencv-python are highly dependent on versions but others doesn't need strict version requirements.

Installation

Download the project and run following commands:

Linux

sudo bash ./install_requirements.sh

Usage

python3 ./start.py {image folder} [--width WIDTH] [--height HEIGHT] [--output OUTPUT]
  • {image folder}: the path of the folder containing images and the meta JSON file.
  • WIDTH: desired panorama width in pixels (default 4096)
  • HEIGHT: desired panorama height in pixels (default 2048)
  • OUTPUT: file name to store the panorama file (default panorama.jpg)

360-panorama-python's People

Contributors

jie-geng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.