We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there a method to obtain the high resolution RGB image with Processing? I am using Processing 2 with the simple openni library in combination with opencv.
Theoretically it should be possible to get the 1280*1024 RGB image with a lower refres rate of 10. This is my setup function:
void setup() { //fs = new FullScreen(this); frame.setBackground(new java.awt.Color(0, 0, 0)); background(0); frameRate(30); size (displayWidth, displayHeight); //video = new Capture(this, 640, 480);
SimpleOpenNI.start(); // print all the cams StrVector strList = new StrVector(); SimpleOpenNI.deviceNames(strList); for (int i=0; i<strList.size (); i++) println(i + ":" + strList.get(i));
RGBNI = new SimpleOpenNI(0, this, SimpleOpenNI.RUN_MODE_MULTI_THREADED); RGBNI.enableRGB(640, 480, 10);
depthNI = new SimpleOpenNI(0, this, SimpleOpenNI.RUN_MODE_MULTI_THREADED); depthNI.setMirror(true); depthNI.enableDepth(); depthNI.enableHand(); depthNI.startGesture(SimpleOpenNI.GESTURE_WAVE);
opencv = new OpenCV(this, 640, 480); opencv.loadCascade(OpenCV.CASCADE_FRONTALFACE);
//video.start(); //img = createImage(RGBNI.rgbImage().width, RGBNI.rgbImage().height, RGB); lastTimeCheck = millis(); captureTimer = new Timer(3000); refreshTimer = new Timer (15000); refreshTimer.start(); noCursor();
// fs.enter();
}