open a app while closing another app
in
Contributed Library Questions
•
1 year ago
Hi there guys
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
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
The photocam this inside the c++ app C++.app->contents->Resources->Data->photocam->photocam.app
please help this for a svhool project
1