Kinect=001=basic

14
KINECT BASIC 01

description

Kinect Skeleton Tracking

Transcript of Kinect=001=basic

Page 1: Kinect=001=basic

KINECTBASIC

01

Page 2: Kinect=001=basic

Draw Depth

Page 3: Kinect=001=basic

import SimpleOpenNI.*;

SimpleOpenNI context;

///////////////////////////////////////////////

void setup(){

}

///////////////////////////////////////////////

void draw(){

}

Of course you need to import library

Create a simpleOpenNI object

Page 4: Kinect=001=basic

import SimpleOpenNI.*;

SimpleOpenNI context;

///////////////////////////////////////////////

void setup(){

context = new SimpleOpenNI (this);

context.enableDepth();

size(context.depthWidth(), context.depthHeight());

}

///////////////////////////////////////////////

void draw(){

}

Initiate the object

Enable the function will be used. (“DepthMap” here)

Window size from

the depthImage

Page 5: Kinect=001=basic

import SimpleOpenNI.*;

SimpleOpenNI context;

///////////////////////////////////////////////

void setup(){

context = new SimpleOpenNI (this);

context.enableDepth();

size(context.depthWidth(), context.depthHeight());

}

///////////////////////////////////////////////

void draw(){

context.update();

image(context.depthImage(),0,0);

}

Update the camera

Display the Depth Map

Page 6: Kinect=001=basic

MY

BEST

Pic

EVER

Page 7: Kinect=001=basic

IDENTIFY

Page 8: Kinect=001=basic

import SimpleOpenNI.*;

SimpleOpenNI context;

///////////////////////////////////////////////

void setup(){

context = new SimpleOpenNI (this);

context.enableDepth();

context.enableUser();

size(context.depthWidth(), context.depthHeight());

}

///////////////////////////////////////////////

void draw(){

context.update();

image(context.userImage(),0,0);

}

Add this line

Change “depthImage” to “userImage”

Page 9: Kinect=001=basic

Now

You

See

Me

In

Color

Page 10: Kinect=001=basic

Multi

Players,

Cool!

Page 11: Kinect=001=basic

Initiate?

Page 12: Kinect=001=basic

import SimpleOpenNI.*;

SimpleOpenNI context;

///////////////////////////////////////////////

void setup(){

context = new SimpleOpenNI (this);

context.enableDepth();

context.enableUser();

if(context.isInit() == false){

println("Maybe your Kinect is not connected");

exit();

return;

}

size(context.depthWidth(), context.depthHeight());

}

///////////////////////////////////////////////

void draw(){

context.update();

image(context.userImage(),0,0);

}

Add these lines

Page 14: Kinect=001=basic

Once you

disconnect

your Kinect, it

will tell you.