MYNT EYE SDK  v1.8
https://www.slightech.com/camera
Getting Started on macOS

Prerequisites

Install Homebrew to manage packages,

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then,

# Install build tools
$ brew install cmake git
# Install ssl for https
$ brew install openssl

Install OpenCV 3.4

$ git clone https://github.com/opencv/opencv.git
$ cd opencv/
$ git checkout tags/3.4.0
$ mkdir build
$ cd build/
$ cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr/local \
\
-DWITH_CUDA=OFF \
\
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
..
$ make -j4
$ sudo make install

Install CUDA (Optional)

If you have Nvidia's graphic card, you could enable GPU compute capability as follows:

  • Ensure your graphic card drivers are up to date.
  • Download and install correct version of CUDA Toolkit according to here.
$ brew tap caskroom/cask
$ brew cask install cuda
$ brew cask info cuda

Install SDK

$ cd <sdk directory>
$ ./install.sh
$ source ~/.bash_profile

If your CUDA is not installed in /usr/local/cuda/lib, before running ./install.sh, you should change the following variables in ./install.sh:

RPATH_CUDA=/usr/local/cuda/lib

Then, the apps in SDK could detect the CUDA runtime correctly.

Note: It is not recommended that install OpenCV or CUDA in a different location. Because the install.sh not change the SDK libraries' rpath of them now. If you run the binary executables on Terminal, you could easily specify OpenCV and CUDA library search paths in ~/.bash_profile like this:

CUDA_LIBDIR=/usr/local/cuda/lib
OPENCV_LIBDIR=/usr/local/lib
export DYLD_LIBRARY_PATH=$CUDA_LIBDIR:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$OPENCV_LIBDIR:$DYLD_LIBRARY_PATH

Check Installation

After ./install.sh, you could check the environment variables:

$ echo $MYNTEYE_SDK_ROOT
<Should be the sdk path>

Build SDK Samples

$ cd samples/
$ mkdir build
$ cd build/
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make

Then you could run the sample like this:

$ ./samples/bin/camera [name]

Please see "samples/README.md" to learn more about the samples.

About SDK Tools

Please see "tools/README.md".

Open SDK Documentation

$ open doc/api/html/index.html

FAQ

If have issues when installing, you could make an attempt to find it in FAQ.