GithubHelp home page GithubHelp logo

openni2_linux's Introduction

README

This README is for the user who

  • Want to develop application with LIPS 3D depth camera.
  • Already has a LIPS camera module on hand.
  • The target platform is Linux
  • Develop application with OpenNI 2

If you don't have one and are interesting with it, please contact with us by e-mail [email protected]

System Requirements

  • Ubuntu 14.04 or later

Prepare Software Development Environment

Install OpenCV 2

  • Install required packages for building OpenCV 2.
sudo apt-get install cmake pkg-config libgtk2.0-dev

cd ~/opencv-2.4.11
  • Create a folder for cmake and change directory to it, for example,
mkdir build && cd build
  • Enter following command to generate cmake files
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
  • Once generation is done, enter make command to start the build
make
  • Then, install OpenCV to your system, administrator permission may required.
sudo make install

Install USB-1.0 library

sudo apt-get install libusb-1.0-0

Install LIPS 3D depth camera SDK

  • Download SDK from [LIPS SDK] (http://www.lips-hci.com/products/sdk/)

  • Extract the tarball of LIPS 3D depth camera SDK

  • Enter the SDK folder and install the SDK with administrator permission

sudo ./install.sh

Download LIPS Sample Code

Install GIT

sudo apt-get install git-core

Clone sample code

Clone the project into the SDK folder.

git clone https://github.com/lips-hci/openni2_linux.git LIPS_Sample

Build Samples

Ni2Recorder
cd LIPS_Sample/Ni2Recorder
cp -r ../../Redist/* .
cp ../../Tools/OpenNI2/Drivers/libmodule-lips2.so OpenNI2/Drivers/
CXX=g++ make
Ni2SimpleViewer
cd LIPS_Sample/Ni2SimpleViewer
cp -r ../../Redist/* .
cp ../../Tools/OpenNI2/Drivers/libmodule-lips2.so OpenNI2/Drivers/
CXX=g++ make
Ni2PointCloud
cd LIPS_Sample/Ni2PointCloud
cp -r ../../Redist/* .
cp ../../Tools/OpenNI2/Drivers/libmodule-lips2.so OpenNI2/Drivers/
CXX=g++ make

Build your own application

You can base the samples we provided to develop your own application. What you need to know are:

Makefile
  • Append the source files' name to SRC
  • According the path related to SDK, modify the CPPFLAGS and LDFLAGS appropriately. i.e., you man need to add -I and -L to the correct location.
  • You can also use Clang to compile your application by change CXX from g++ to clang.
Redist folder
  • You have to copy contents under Redist folder to your execution folder.
  • And copy LIPS module driver library (libmodule-lips2.so) from Tools for Samples folder to OpenNI2/Drivers you just copied from Redist folder.

openni2_linux's People

Contributors

timcheng-lips-hci avatar peggieke avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.