How to set rgbImage 's size using simpleopenni and kinect.

edited December 2013 in Kinect

I'm on windows 7 64 bit, processing 151, simpleopenni 0.20. Reference said that we can set the rgbImage's size as enbaleRGB(Width, Height, FPS); It return blank, however, if i code enableRGB(320,240, 30);. And I know there are Issue on wiki. But, it doesn't work well. I'll leave a simple sample as below.

import SimpleOpenNI.*;//import library
SimpleOpenNI context;//declear class type 

void setup(){
  context = new SimpleOpenNI(this);//init SimpleOpenni
  context.enableRGB(320, 240, 30);//enbale rgb camera

  //specification window's size
  size(context.rgbWidth(), context.rgbHeight());
}

void draw(){
  context.update();

  //specification where picture place
  image(context.rgbImage(), 0, 0);
}

Please let me know if you have any kind of solutions. BEST :D

Answers

  • Hi @popcosorn! I'm on Mac OS X 10.8 with Processing 2, and I have the same problem as you... Have you found any solution? Thanks!

Sign In or Register to comment.