problems only running depthImage
in
Contributed Library Questions
•
7 months ago
hey,
i have big problems running this code (without rgbImage):
- i get a picture after felt 5 minutes
- the picture doesn't move
import SimpleOpenNI.*;
SimpleOpenNI kinect;
void setup()
{
size(640, 480);
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
}
void draw()
{
kinect.update();
PImage depth = kinect.depthImage();
image(depth, 0, 0);
}
BUT: if i add the rgb information, there is no problem at all running the programme.
why is that?
thanx for helping
so, this runs fine:
import SimpleOpenNI.*;
SimpleOpenNI kinect;
void setup()
{
size(640, 480*2);
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
kinect.enableRGB();
}
void draw()
{
kinect.update();
PImage depth = kinect.depthImage();
PImage rgb = kinect.rgbImage();
image(depth, 0, 0);
image(rgb, 0, 480);
}
1