iphone camera automation
In article
<joshuafwhalen-4C962A.23421829012012@news.eternal-september.org>,
Joshua Whalen <joshuafwhalen@gmail.com> wrote:
> I need to write a script on my jailbroken iphone 4 to automate the video
> camera, and another to do the same with the still camera on a jailbroken
> iphone 3g. the 3g is running 4.2.1, the 4 is running 5.0.1.
>
> I was wondering if anyone had any info on how to access the camera
> controls from the cli? I'll be doing this in the bash shell, I don't
> know objc, so that's out, and my python sucks, although if there's
> sample code for a similar task I'm competent to hack it together into
> something I can use, usually
>
> TIA!
>
> Joshua
I *really* doubt you'll be doing it without ObjectiveC / Cocoa, since
it's highly unlikely Apple has provided command-line tools for camera
access, since Apple does not intend people to rummage around on the
command line on their phones.
As I said in reply to your previous post about this in comp.sys.mac.*,
Erica Sadun has written command-line tools that capture images from the
iPhone camera. She's probably one of the best people in a position to
help you do what you want. In fact, she has sample code available on her
web site for you to use as a starting point. Take a look at her "3.0
Code Samples" on her web site - in particular: iphone-3.0-cookbook- /
C07-Images / 0Xa-DirectCamera / main.m seems to be closest to what you
would want to do:
<http://ericasadun.com/>
If you do get started with such a project (seems like it wouldn't be all
that complicated, if you put your mind to it) and have specific
questions about Objective C, Cocoa, or iPhone development in general,
this and the comp.sys.mac.* news groups seem like good places to ask for
help. And of course Erica, if she is willing, can probably answer
specific questions about getting that code running on newer versions of
iOS.
--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR
|