Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.72 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.72 KB

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.