Skip to content

Python cli (backed with C++) to convert 360 images between different projection types 📐

License

Notifications You must be signed in to change notification settings

SixiemeEtage/projector

Repository files navigation

projector

build-status-image

Compliments and criticism are all ultimately based on some form of projection. Billy Corgan

Installation

Install Requirements

$ brew install cmake
$ brew install opencv4
$ brew install boost-python

Install the C++ native lib

$ git clone https://github.com/SixiemeEtage/projector
$ cd projector
$ mkdir -p native/build && cd native/build
$ cmake .. \
    -DPYTHON_DESIRED_VERSION=3.X \
    -DPYTHON3_EXECUTABLE=$(which python) \
    -DPYTHON3_LIBRARY=$(python3-config --prefix)/lib/libpython3.7.dylib \
    -DPYTHON3_INCLUDE_DIR=$(python3-config --prefix)/include/python3.7m/ \
    -DPYTHON3_NUMPY_INCLUDE_DIRS=$(python3-config --prefix)/lib/python3.7/site-packages/numpy/core/include/ \
    -DBOOST_ROOT=$(brew --prefix)/Cellar/boost/1.68.0_1 \
    -DBoost_INCLUDE_DIR=/usr/local/Cellar/boost/1.68.0_1/include
$ make
$ make install

Install the python binding

$ pip install .

Usage

$ projector --in-projection=cubemap --out-projection=equirectangular ./examples/cubemap_high_res/cubemap_+x.jpg ./examples/cubemap_high_res/cubemap_-x.jpg ./examples/cubemap_high_res/cubemap_+y.jpg ./examples/cubemap_high_res/cubemap_-y.jpg ./examples/cubemap_high_res/cubemap_+z.jpg ./examples/cubemap_high_res/cubemap_-z.jpg

Credits

Tools used in rendering this package:

Contact

Pierre Dulac
@dulaccc

License

projector is available under the MIT license. See the LICENSE file for more info.

About

Python cli (backed with C++) to convert 360 images between different projection types 📐

Resources

License

Stars

Watchers

Forks

Packages

No packages published