forum home page
register faq member list calendar search
MacShock.com - Apple Forums
Reload this Page
Old 01-30-2012, 04:30 AM
Joshua Whalen
Guest
 
Posts: n/a
Default iphone camera automation

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
  Reply With Quote
Old 01-30-2012, 12:50 PM
Jolly Roger
Guest
 
Posts: n/a
Default 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
  Reply With Quote
Old 01-31-2012, 10:50 PM
Joshua Whalen
Guest
 
Posts: n/a
Default iphone camera automation

Jolly, you are, as always, the best.

I visited Erica's site, actually, posting either the comp.sys.mac.* or
this one. Here's the problem: there is a tool, it's called picsnap or
something like that. but it's listed as deprecated. I'm wondering if
here iphone 3 cookbook stuff works on 4.x or 5.x? That's basically what
I'm looking for an answer too. I suppose I should post on here page, but
there doesn't seem to be a lot of recent activity.

Thanks for the input. I'm hoping that I'll be taking an ObjC
certification course in the fall, but in the meantime tinkering to gain
familiarty would be great! Thanks for the offer!

Joshua


In article <jollyroger-5FC927.07434730012012@news.individual.net>,
Jolly Roger <jollyroger@pobox.com> wrote:

> 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.
>

  Reply With Quote
Old 01-31-2012, 10:50 PM
nospam
Guest
 
Posts: n/a
Default iphone camera automation

In article
<joshuafwhalen-2D3AB7.17003231012012@news.eternal-september.org>,
Joshua Whalen <joshuafwhalen@gmail.com> wrote:

> I visited Erica's site, actually, posting either the comp.sys.mac.* or
> this one. Here's the problem: there is a tool, it's called picsnap or
> something like that. but it's listed as deprecated. I'm wondering if
> here iphone 3 cookbook stuff works on 4.x or 5.x? That's basically what
> I'm looking for an answer too. I suppose I should post on here page, but
> there doesn't seem to be a lot of recent activity.


install it and see what happens. my guess is it won't work anymore,
especially if it relies on undocumented api calls which it more than
likely does.

> Thanks for the input. I'm hoping that I'll be taking an ObjC
> certification course in the fall, but in the meantime tinkering to gain
> familiarty would be great! Thanks for the offer!


certification? nobody cares about certification. buy a book on
objective c and start writing. if you know c, it's not that hard to
learn.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:54 PM.
Copyright ©2007-2008 MacShock.com. Powered by vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.