Application only runs on original computer. Help? OpenCV?
in
Contributed Library Questions
•
3 years ago
After exporting this sketch (as an app to Mac OS X) I can run it fine on my computer, but not when copied to another computer. The app will launch, but just gives a black screen, doesn't access the iSight camera...
The two machines are both Snow Leopard MacBook Pros.
My code is [EDIT, now it's the most simple version that will create the error]:
- import processing.video.*;
- import hypermedia.video.*;
- OpenCV opencv;
- int w = 640;
- int h = 480;
- int COLOR_SPACE = OpenCV.RGB;
- public void setup() {
- size(640, 480, P2D);
- frame.setBackground(new java.awt.Color(0, 0, 0));
- frame.setTitle("can you hear me | 2010 | charlie williams");
- opencv = new OpenCV(this);
- opencv.capture(w, h);
- }
- public void draw() {
- background(0);
- opencv.read();
- opencv.flip(OpenCV.FLIP_HORIZONTAL);
- blend(opencv.image(), 0, 0, w, h, 0, 0, w, h, SCREEN);
- }
- public void stop() {
- opencv.stop();
- super.stop();
- }
1