Skip to content
Kinect V2 addon using the libfreenect2 library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
copy_to_bin_dir/vs/x64
example
libs/libfreenect2
src
.gitignore
README.md
addon_config.mk
ofxaddons_thumbnail.png

README.md

ofxLibFreenect2

Description

This is an OpenFrameworks addon for Kinect V2 using the libfreenect2 library:

https://github.com/OpenKinect/libfreenect2

Install libfreenect2 from above URL and link to the static (or dynamic) lib.

Tested under Linux but should work on all platforms

This currently only uses the OpenCL backend, so make sure that is enabled.

I've tried to model it as close to the original ofxKinect as possible, to make it an easy drop in replacement. Point clouds are not currently included. For an addon using Libfreenect2 and OpenNI, check out https://github.com/pierrep/ofxNI2

Build Instructions

Linux

  • Build libfreenect2 by following the instructions here except that instead of building the library as suggested:
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2

You need to build the static library and install it system-wide:

cmake -DBUILD_SHARED_LIBS=OFF
  • Then copy the static library to the ofxLibFreenect addon directory:
cd ofxLibFreenect2
cp /usr/local/lib/libfreenect2.a libs/libfreenect2/lib/linux64
You can’t perform that action at this time.