Processing Forum
// ----------------------------------------------------------------- //
void onCreateHands(int handId, PVector position, float time) { kinect.convertRealWorldToProjective(position, position); handPositions.add(position);
}
void onUpdateHands(int handId, PVector position, float time) { kinect.convertRealWorldToProjective(position, position); handPositions.add(position);
}
void onDestroyHands(int handId, float time) { handPositions.clear(); kinect.addGesture("RaiseHand");
}
// ----------------------------------------------------------------- //
void onRecognizeGesture(String strGesture, PVector idPosition, PVector endPosition) {
kinect.startTrackingHands(endPosition);
kinect.removeGesture("RaiseHand");
}
// ----------------------------------------------------------------- //
void onCreateHands(int handId, PVector position, float time) { kinect.convertRealWorldToProjective(position, position); handPositions.add(position);
}
void onUpdateHands(int handId, PVector position, float time) { kinect.convertRealWorldToProjective(position, position); handPositions.add(position);
}
void onDestroyHands(int handId, float time) { handPositions.clear(); kinect.addGesture("RaiseHand");
}
// ----------------------------------------------------------------- //
void onRecognizeGesture(String strGesture, PVector idPosition, PVector endPosition) {
kinect.startTrackingHands(endPosition);
kinect.removeGesture("RaiseHand");
}