Código Generativo works and portfolio of Thomas Sanchez Lengeling
Kinect for Windows v2, Processing Library


Kinect for Windows v2 (K4W2) library for Processing, a simple to use Kinect v2 library for processing, more about the Microsoft Kinect here.

Check out the tutorial here.

Current Version 0.7

Library is currently on develop, with SDK Version 1409 (11/2014)

Kinect 2 Library for processing preview from thomas sanchez lengeling on Vimeo.



– A Kinect for Windows v2 Device (K4W2)
– Install Kinect SDK v2
– Computer with a dedicated USB 3.0 and 64bits
– Windows 8, 8.1
– Processing 2.2.1
– Update your latest video card driver



– Install Kinect SDK v2
– Copy KinectPV2 folder to your processing libraries sketch folder.



  • Color1920, color image 1920 x 1080.
  • DepthTest, how to obtain depth information.
  • MaskTest, get only the contour image of the users.
  • PointCloudOGL, point cloud render using opengl.
  • PointCloudDepth, obtain the point cloud as a deph Image, and as a int [] array.
  • SimpleFaceTracking, simple face tracking up 6 users.
  • Skeleton3d, 3d skeleton.
  • SkeletonColor, map color frame to skeleton.
  • SkeletonMaskDepth, map depth frame and mask frame to skeleton.
  • SkeletonTest, simple 6 users skeleton.
  • imageTest, images frame test.
  • CoordinateMapperRGBDepth, RGB+Depth
  • HDFaceVertex. HDFace Points

To build the library from source, use this repository  [KinectPV2_BuildLibs]

Version 0.7

RGB+Depth functions
HDFace Detection.

Version 0.6

PointCloud to PImage and getRawData()

Version 0.5

Simple FaceTracking with mode detection, up to 6 users.

Version 0.4

Skelton tracking for 6 user
Hand gesture recognition, hand open, close.
Body track, only supports 3 users, next version up to 6 users.

Version 0.3 Beta

RGB Image
Grayscale Infrared
Grayscale Depth data
Point Cloud



Your email address will not be published. Required fields are marked *

nine + eight =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Mico Rex Visuals Processing, Video • June 29, 2014

Mico Rex is an experimental electro-pop Mexican duo founded in 2010 by Ernesto Romero and Jorge Ramírez, pioneers in live…

Rorschach_3.2 – Piezas audioreactivas enredadas Library, Processing • November 27, 2013

Rorschach_3.2 Piezas audioreactivas enredadas /*vivo*/ 2013 [redes] International Symposium of code and Music Nacional Mexican center of arts by Emmanuel…

Screen Shot 2014-10-26 at 7.23.44 PM
Ferrero – Dynamic Twitter app Installation, Processing • November 26, 2013

The project involved in sending twitters with a hastag #MomentosdeOro to light-up the Christmas tree. We develop a custom-made software…