Simple-OpenNI problems with Mac
in
Contributed Library Questions
•
1 year ago
Hey Guys,
Brand new to Processing but not development. I've been trying to get basic feedback from my Kinect for windows without much luck. Hoping that maybe I'm missing something fairly simple.
I've gone through the process of installation here:
http://code.google.com/p/simple-openni/wiki/Installation#OSX
The "sudo ./install.sh" command yeilds:
-------- Install OpenNI/NITE ------------
copy OpenNI-Module...
copy NITE-Conf...
mkdir: /usr/etc: File exists
copy OpenNI+NITE dynamic libs into /usr/lib
create the folders for libusb(macport)
mkdir: /opt: File exists
mkdir: /opt/local: File exists
mkdir: /opt/local/lib: File exists
copy libusb dynamic libs into /opt/local/lib
-------- Done Install OpenNI/NITE ------------
Then I've "installed" the actual simple-openni libraries ( ./Processing/libraries/SimpleOpenNI )
Both the Microsoft Kinect Camera and Microsoft Kinect Audio are visible in the system profiler.
When trying to run this simple program to test everything:
-
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);}
I am getting an error on the "size(kinect.depthWidth()+kinect.rgbWidth(), kinect.depthHeight());" line.
Error is "IllegalArgumentException: Width (0) and height (0) cannot be <= 0"
I understand what this error is protecting against. My concern is why the kinect object is returning zero for the depthWidth, rgbWidth, and depthHeight functions.
Any ideas or would more information need to be provided to help out? Thanks a lot!
Edit: Sorry, forgot some potentially essential info. Running Processing 2.0b3 and it appears that SimpleOpenNI that is being loaded is Version 0.27
Edit2: OS 10.7.4
1