dorkhub

Equirec2Perspec

A tool to project equirectangular panorama into perspective images

fuenwang
Python33160 forksMITupdated 4 years ago
git clone https://github.com/fuenwang/Equirec2Perspec.gitfuenwang/Equirec2Perspec

Equirec2Perspec

Introduction

Equirec2Perspec is a python tool to split equirectangular panorama into normal perspective view.

Panorama

Given an input of 360 degree panorama

Perpective

Split panorama into perspective view with given parameters

Usage

import os
import cv2 
import Equirec2Perspec as E2P 

if __name__ == '__main__':
    equ = E2P.Equirectangular('src/image.jpg')    # Load equirectangular image
    
    #
    # FOV unit is degree 
    # theta is z-axis angle(right direction is positive, left direction is negative)
    # phi is y-axis angle(up direction positive, down direction negative)
    # height and width is output image dimension 
    #
    img = equ.GetPerspective(60, 0, 0, 720, 1080) # Specify parameters(FOV, theta, phi, height, width)

more like this

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

taskbutler

Create and add progress bars, Office365 Files and Dropbox Paper papers by labels and link them to your Todoist tasks.

Python50

search

search projects, people, and tags