kinect and processing issues
in
Integration and Hardware
•
10 months ago
Im trying to use processing with openni to use the kinect. i seem to have everything setup but i keep getting this error:
[code]
Exception in thread "Animation Thread" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
[/code]
import SimpleOpenNI.*;
SimpleOpenNI kinect;
void setup() {
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
kinect.enableRGB();
kinect.setMirror(true);
size(kinect.depthWidth()+kinect.rgbWidth(), kinect.depthHeight());
}
void draw() {
kinect.update();
image(kinect.depthImage(), 0, 0);
image(kinect.rgbImage(), kinect.depthWidth(), 0);
}
[/code]
1