Skip to content

Python cli (backed with C++) to generate a preview from a 360 image 🌍

License

Notifications You must be signed in to change notification settings

SixiemeEtage/previewer

Repository files navigation

previewer

build-status-image

Imagination is everything. It is the preview of life's coming attractions.
Albert Einstein

Installation

Install Requirements

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

Install the C++ native lib

$ git clone https://github.com/SixiemeEtage/previewer
$ cd previewer
$ 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

$ previewer --preview-height=750 --preview-width=1000 ~/equirectangular.jpg

Credits

Tools used in rendering this package:

Contact

Pierre Dulac
@dulaccc

License

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

About

Python cli (backed with C++) to generate a preview from a 360 image 🌍

Resources

License

Stars

Watchers

Forks

Packages

No packages published