Skip to content

Instantly share code, notes, and snippets.

@aroman
Last active November 29, 2016 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aroman/3c5f7045a9c200a9bba6273e5bdaab4e to your computer and use it in GitHub Desktop.
Save aroman/3c5f7045a9c200a9bba6273e5bdaab4e to your computer and use it in GitHub Desktop.

How to build & run Sensei on Ubuntu/NUC

Install Ubuntu 16.10 (64 bit)

Just go to ubuntu.com and download the ISO. I recommend using etcher to burn the ISO to a USB drive.

Install depdendencies

openFrameworks

  1. wget http://openframeworks.cc/versions/v0.9.8/of_v0.9.8_linux64_release.tar.gz
  2. tar xxf of*
  3. cd of*
  4. ./scripts/linux/ubuntu/install_dependencies.sh
  5. ./scripts/linux/compileOF.sj -j9
  6. ./compileOF.sh -j3

OpenCV 3

  1. wget https://github.com/Itseez/opencv/archive/3.1.0.zip && unzip opencv*
  2. cd opencv* && mkdir build
  3. cmake -D WITH_TBB=ON -D WITH_IPP=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D ENABLE_PRECOMPILED_HEADERS=OFF -D BUILD_SHARED_LIBS=ON ..
  4. make && sudo make install

OpenFace

  1. git clone https://github.com/TadasBaltrusaitis/OpenFace.git
  2. modify openface to build as a shared library
  3. apt install cmake libtbb-dev libopenblas-dev liblapack-dev
  4. mkdir build && cmake -D CMAKE_BUILD_TYPE=RELEASE ..
  5. make && sudo make install
  6. sudo mv /usr/local/bin/libLandmarkDetector.so /usr/local/bin/libFaceAnalyser.so /usr/local/lib

libfreenect2

  1. git clone https://github.com/OpenKinect/libfreenect2.git && cd libfreenect2
  2. ./depdends/install_ubuntu.sh
  3. Install OpenCL: sudo apt install beignet-dev
  4. mkdir build && cmake ..
  5. make -j9 && sudo make install
  6. set up udev rules: sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/

Install openFrameworks addons

ofxCv

  1. cd openFrameworks/addons
  2. git clone https://github.com/kylemcdonald/ofxCv.git

ofxKinectV2 (forked)

  1. cd openFrameworks/addons
  2. git clone https://github.com/aroman/ofxKinectV2

Build & run sensei

  1. cd ~/openFrameworks/apps/myApps
  2. git clone https://github.com/aroman/sensei && cd sensei
  3. make -j9
  4. ./install_models.sh
  5. ./bin/sensei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment