Quick Start Guide for Linux

1. Install SDK dependencies

1.1 Install OpenCV

If you have installed opencv already or you want use it in ROS, you can skip this part.

1.1.1 Install OpenCV with apt or compile (Choose one) Install OpenCV with apt (Recommend)
sudo apt-get install libopencv-dev Install OpenCV by Compile
To build and install Opencv, please refer to Installation in Linux

Alternatively, refer to the command below:

[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
git clone https://github.com/opencv/opencv.git
cd opencv/
git checkout tags/3.4.5

cd opencv/
mkdir build
cd build/

cmake ..

make -j4
sudo make install

1.2 Install PCL for Point Cloud sample (Optional)

sudo apt-get install libpcl-dev libproj-dev libopenni2-dev libopenni-dev

2. Build SDK

git clone https://github.com/slightech/MYNT-EYE-D-SDK.git

2.1 Init SDK


Because of the problem of device permissions, you must reinsert the camera device after the command is executed and on the same computer, this operation only needs to be done once.

make init

2.2 Compile SDK

make all

3. Run Samples


Open the rectified image by default (Run vio need to raw image, run depth or points cloud need to rectified image.)

  1. get_image shows the left camera image and colorful depthmap (compatible with USB2.0)
  1. get_stereo_image shows the left camera image and colorful depthmap
  1. get_depth shows the left camera image, 16UC1 depthmap and depth value(mm) on mouse pointed pixal
  1. get_points shows the left camera image, 16UC1 depthmap and point cloud view
  1. get_imu shows motion datas
  1. get_img_params show camera intrinsics and save in file
  1. get_imu_params show imu intrinsics and save in file
  1. get_from_callbacks show image and imu data by callback
  1. get_all_with_options open device with different options

4 Install With OpenCV ROS

If you won’t use ROS(The Robot Operating System), you can skip this part.

ROS installation and operation steps, refer to ROS Installation 以及 ROS Usage .

5. Package

If you wanna package with specified OpenCV version:

cd <sdk>
make cleanall
export OpenCV_DIR=<install prefix>

export OpenCV_DIR=/usr/local
export OpenCV_DIR=$HOME/opencv-


cd <sdk>  #local path of MYNT-EYE-D-SDK
make pkg

6. Clean

cd <sdk>   #local path of MYNT-EYE-D-SDK
make cleanall
make uninstall