Slide 30
Slide 30 text
kinect.getJointPositionSkeleton(userId,
SimpleOpenNI.SKEL_RIGHT_HAND,
rightHand);
kinect.getJointPositionSkeleton(userId,
SimpleOpenNI.SKEL_RIGHT_ELBOW,
rightElbow);
kinect.getJointPositionSkeleton(userId,
SimpleOpenNI.SKEL_RIGHT_SHOULDER,
rightShoulder);
if(rightElbow.y > rightShoulder.y
&& rightElbow.x > rightShoulder.x) {
stroke(255); // <2>
} else {
stroke(255,0,0); // <3>
}
Tuesday, April 17, 12