I'm making a C++ program wich when i press a keyboad it will open a processing program.
The C++ its a augmented reality program, when press p it will open the photocam app (processing), but i have to quit the c++ program to open the photocam app because both use my isght camera.
the photocam do this
import JMyron.*;
JMyron m;//a camera object
void setup(){
size(640,480);
m = new JMyron();//make a new instance of the object
m.start(width,height);//start a capture at 320x240
m.findGlobs(0);//disable the intelligence to speed up frame rate
println("Myron " + m.version());
}
void draw(){
m.update();//update the camera view
int[] img = m.image(); //get the normal image of the camera
loadPixels();
for(int i=0;i<width*height;i++){ //loop through all the pixels
pixels[i] = img[i]; //draw each pixel to the screen
}
updatePixels();
}
void mousePressed(){
saveFrame("screenmarkless.jpg");
}
public void stop(){
m.stop();//stop the object
super.stop();
}
but now i need to do after the mouse pressed and saved the jpg i want to quit photocam and re-open my c++ app.
The photocam this inside the c++ app C++.app->contents->Resources->Data->photocam->photocam.app
please help this for a svhool project
Im trying to use the nyar4psg library but i got this message "unsupportedclassversionError, a library is using code complied with an unsupported version of java" and the library is in java 1.6 and my prosseging can only use 1.5, please help me, what can i do??? thanks