SimpleOpenNI : Unsupported resolution requested
in
Contributed Library Questions
•
10 months ago
I am having trouble getting the kinect scene image with simpleopenni. It compiles fine but crashes immediately, and the only error given is "Unsupported resolution requested" in the console. I am getting the same error in both Processing 1.5.1 and 2.0b7, and using the latest SimpleOpenNI (0.27). I am on OSX Lion.
The code I am using is copied straight from one of the included examples.
- import SimpleOpenNI.*;
- SimpleOpenNI context;
- void setup()
- {
- context = new SimpleOpenNI(this);
- // enable depthMap generation
- if(context.enableScene() == false)
- {
- println("Can't open the sceneMap, maybe the camera is not connected!");
- exit();
- return;
- }
- background(200,0,0);
- size(context.sceneWidth() , context.sceneHeight());
- }
- void draw()
- {
- // update the cam
- context.update();
- // draw irImageMap
- image(context.sceneImage(),0,0);
- }
1