Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
jppely
jppely's Profile
1
Posts
3
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
passing parameters with open()
[3 Replies]
21-Aug-2013 11:35 PM
Forum:
Programming Questions
hi.
i'm doing an auto shooter for a DSLR camera using gphot2 library (
http://www.gphoto.org/
).
i've tried two different things. none have workerd :/
String[] params = { "/opt/local/bin/gphoto2", "--capture-image-and-download"};
open(params);
it dosen't do anithing. if i just do
open("/opt/local/bin/gphoto2");
it opens the terminal (i'm on OSX) and show the manual of gphoto2....
SECOND APROACH:
i wrote a little script and made it excutable with chmod +x. the script take an argument ($1) to set the filename of the photo file...
killall PTPCamera
gphoto2 --capture-image-and-download --filename $1.jpg
the first line is to be sure that no other app is using the camera (photobooth or another).
again, if i open it with terminal it works like a charm, but in P5:
String[] params = { "/Users/pely/shutter_1milesima", "p5"};
open(params);
it doesn't work at all...
what am i missing here?
maybe using exec() from the java.runtime could work, but i don't really know how to neither...
please help me!
«Prev
Next »
Moderate user : jppely
Forum