This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.video.*; | |
Capture cam; | |
void setup() { | |
size(320, 240); | |
cam = new Capture(this, 320, 240); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.video.*; | |
Capture cam; | |
void setup() { | |
size(320, 240); | |
} | |
void draw() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 手を上下左右に動かすことで格子状のパネルにタッチする | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
// NITEモジュール | |
XnVSessionManager sessionManager; | |
XnVSelectableSlider2D trackPad; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 手で円を描き、その時の回転角を取得して矢印を描画する | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
// NITEモジュール | |
XnVSessionManager sessionManager; | |
XnVCircleDetector circleDetector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 深度カメラとRGBカメラの映像を適合させて描画する | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
float zoomF =0.3f; | |
float rotX = radians(180); // デフォルトでは視界をx軸に対して180度回転させる | |
// OpenNIのデータは反対から来る | |
float rotY = radians(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 深度カメラの映像を3次元描画し、手を検出してその軌跡を描画する | |
import SimpleOpenNI.*; | |
//import processing.opengl.*; | |
SimpleOpenNI context; | |
float zoomF =0.5f; | |
float rotX = radians(180); // デフォルトでは視界をx軸に対して180度回転させる | |
// OpenNIのデータは反対から来る | |
float rotY = radians(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 骨格をを3次元描画する | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
float zoomF =0.5f; | |
float rotX = radians(180); // デフォルトでは視界をx軸に対して180度回転させる | |
// OpenNIのデータは反対から来る | |
float rotY = radians(0); | |
void setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 深度カメラの映像を3次元で描画する | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
float zoomF =0.3f; | |
float rotX = radians(180); // デフォルトでは視界をx軸に対して180度回転させる | |
// OpenNIのデータは反対から来る | |
float rotY = radians(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 手の軌跡を描く。手の位置はWaveなどで検出する。 | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
// NITEモジュールを使う | |
XnVSessionManager sessionManager; | |
XnVFlowRouter flowRouter; | |
PointDrawer pointDrawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 骨格を描画する | |
import SimpleOpenNI.*; | |
SimpleOpenNI context; | |
void setup() | |
{ | |
context = new SimpleOpenNI(this); | |
// 深度カメラを有効にする |