FaceOSC + oscP5 + Processing Capture().start() = NullPointerException
in
Contributed Library Questions
•
22 days ago
Hello all!
I'm using FaceOSC and then oscP5 on Processing to access the coordinates of my face.
I'm using FaceOSC and then oscP5 on Processing to access the coordinates of my face.
The problem: on my processing sketch I also use Capture() to get video frames from the camera, but I get a NullPointerException when trying to do this. (Oh, and if I'm not running FaceOSC the sketch works just fine)
What I think is happening is that FaceOSC is already accessing the camera and that's why I can't start it on processing. This is where my code crashes:
- video = new Capture(this, myWidth, myHeight);
- video.start(); // <--- NullPointerException
I tried to comment the video.start() and just try to .read() the new frames but then I get a black screen...
Well, I think that's pretty much it. The main problem is how can I get two different softwares to access the same camera?
I appreciate any help/directions u guys can give me (:
Thanks! :)
1